This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] h8300.c: Move TARGET_INITIALIZER to the end of the file.
On Jun 19, 2003, Kazu Hirata <kazu@cs.umass.edu> wrote:
> Are you talking about (void) in the argument list? Is that void
> optional or required? I thought C needs it and C++ doesn't, but then
> I am by no means an expert.
C needs them to tell the function has a prototype, and takes no
arguments. If there's no separate declaration, you definitely need it
in the definition, but if the declaration has a (void) prototype, I
believe it doesn't matter whether the definition uses () or (void), as
long as it's after the declaration.
--
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