On Fri, Feb 17, 2006 at 01:56:57PM -0600, John J. Trammell wrote:
> On Fri, Feb 17, 2006 at 11:28:02AM -0800, Olwe Bottorff wrote:
> > Looking at some netbsd source I saw this:
> > 
> > void head __P((FILE *, int));
> > void obsolete __P((char *[]));
> > void usage __P((void));
> > int main __P((int, char *[]));
> > 
> > This isn't like bash is it?
> 
> http://www.eskimo.com/~scs/C-faq/q10.26.html

This construct is used in code that must be compilable with pre-ansi
(~ K&R) C compilers. It has little to do with macros with variable number
of arguments.

Olwe,

Look for the definition of __P macro. It will be something like:
   #ifdef __ANSI__
      #define __P(X) X
   #else
      #define __P(X)
   #endif

florin

-- 
Don't question authority: they don't know either!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20060217/affea969/attachment.pgp