bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-inetutils] Re: K&R prototypes in ftp/extern.h


From: Alfred M. Szmidt
Subject: Re: [bug-inetutils] Re: K&R prototypes in ftp/extern.h
Date: Sun, 28 Nov 2010 13:51:27 -0500

   >> > --- a/ftp/extern.h
   >> > +++ b/ftp/extern.h
   >> > @@ -119,7 +119,7 @@ void reset (int, char **);
   >> >  void restart (int, char **);
   >> >  void rmthelp (int, char **);
   >> >  void rmtstatus (int, char **);
   >> 
   >> Any reason K&R prototypes are used here?  Should we change this?
   >
   > Maybe I'm missing something, but how are those K&R prototypes?
   > K&R style lack function arguments, these only lack argument names
   > which is fine.

   Duh, sorry.  So these are valid C89 and/or C99 prototypes?  That
   would explain why I didn't find a gcc parameter to catch them...

Back in the day you'd skip the name of a variable in the prototype,
hence it being called K&Rism.  It is valid C though, be it C90 or C99;
much like it is still valid to write:

int foo (int, char)
  int a, char b;
{
...
}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]