This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: include/*.h {Free,Net}BSD have correct prototypes for getopt() and basename().
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: RFA: include/*.h {Free,Net}BSD have correct prototypes for getopt() and basename().
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 01 Dec 1999 09:38:58 -0200
- Cc: law at cygnus dot com, GCC Patches <gcc-patches at gcc dot gnu dot org>
- References: <28976.943952540@upchuck> <3844FE2E.60C1D9BA@cygnus.com>
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