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: Guy Montag <theguymontag at yahoo dot com>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 1 Sep 2002 14:38:02 -0700 (PDT)
- Subject: Re: parse error before `PARAMS' ? help please.
--- Alexandre Oliva <aoliva@redhat.com> wrote:
> 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
Alexandre,
I knew I had seen the expression in the context of old
c syntax. I started looking through the headers file
and the first definition in config.h is ansidecl.h.
What an idiot. I should try using a little more
discression before risking the waste of anyones time.
I was just about to closeout the question! Thank you
for your time and the detail on K&R C!!!
Rock on down in Brazil! !Y tenga una buena semana mi
amigo! !Tu ayuda fue excelente!
Muchas gracias,
-Guy
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com