This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: parse error before `PARAMS' ? help please.


On Sep  1, 2002, Guy Montag <theguymontag@yahoo.com> wrote:

> Is it an older C function style or is some kind of macro specific to
> GCC?

It's specific to GCC, even though it's a common idiom to projects that
still care about being compilable by K&R C compilers without giving up
prototypes when being compiled with ISO C compilers.

Basically, PARAMS is defined such that, on K&R C, it expands to (),
whereas in ISO C, it expands to its sole argument, an argument list
enclosed in parentheses.  See include/ansidecl.h.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]