This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: parse error before `PARAMS' ? help please.
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Guy Montag <theguymontag at yahoo dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 01 Sep 2002 18:23:30 -0300
- Subject: Re: parse error before `PARAMS' ? help please.
- Organization: GCC Team, Red Hat
- References: <20020901193703.45589.qmail@web13002.mail.yahoo.com>
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