Re: FoTW: src/debug.c -- function and macro do the same thing

2007-05-17 Thread Klaas-Jan Stol
On 5/17/07, Andy Dougherty <[EMAIL PROTECTED]> wrote: On Wed, 16 May 2007, jerry gay wrote: > good comments... but why keep both function and macro? which would you > prefer keeping over the other, and why? i can't understand why both > exist. In src/debug.c, for handling user input, I don't s

Re: FoTW: src/debug.c -- function and macro do the same thing

2007-05-16 Thread Andy Dougherty
On Wed, 16 May 2007, jerry gay wrote: > good comments... but why keep both function and macro? which would you > prefer keeping over the other, and why? i can't understand why both > exist. In src/debug.c, for handling user input, I don't see any particular advantage to the macro version. The f

Re: FoTW: src/debug.c -- function and macro do the same thing

2007-05-16 Thread Nicholas Clark
On Wed, May 16, 2007 at 09:36:48AM -0700, jerry gay wrote: > good comments... but why keep both function and macro? which would you > prefer keeping over the other, and why? i can't understand why both > exist. Yes, sorry, I sort of missed that part. Er. I don't know. One deserves to die. Nichol

Re: FoTW: src/debug.c -- function and macro do the same thing

2007-05-16 Thread jerry gay
On 5/16/07, Nicholas Clark <[EMAIL PROTECTED]> wrote: On Wed, May 16, 2007 at 08:45:04AM -0700, jerry gay wrote: > here's a macro to move to the next argument (kjs mentioned in an > earlier thread that this isn't a descriptive name) > > /* na(c) [Next Argument (Char pointer)] > * > * Moves t

Re: FoTW: src/debug.c -- function and macro do the same thing

2007-05-16 Thread Nicholas Clark
On Wed, May 16, 2007 at 08:45:04AM -0700, jerry gay wrote: > here's a macro to move to the next argument (kjs mentioned in an > earlier thread that this isn't a descriptive name) > > /* na(c) [Next Argument (Char pointer)] > * > * Moves the pointer to the next argument in the user input. >