This is the mail archive of the gcc-patches@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]

Re: RFA: include/*.h {Free,Net}BSD have correct prototypes for getopt() and basename().


On Dec  1, 1999, Andrew Cagney <ac131313@cygnus.com> wrote:

>   int getopt(int argc, char * const argv[], const char *optstring);
>   int getopt (int argc, char *const *argv, const char *shortopts);
> I assume GCC would assume these to clash?

Nope, `x[]' decays to `*x' in function arguments.  These are
identical.

-- 
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them


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