Declaration of main() in gcc.c

Billinghurst, David (CRTS) David.Billinghurst@riotinto.com
Mon Apr 9 19:11:00 GMT 2001


I don't understand why gcc.c declares main as 

extern int main PARAMS ((int, const char *const *));

int
main (argc, argv)
     int argc;
     const char *const *argv;


Shouldn't in be ...

extern int main PARAMS ((int, char **));

int
main (argc, argv)
     int argc;
     char *argv[];

+++++++++++++++++++++++++++++++++++++++++
(Mr) David Billinghurst
Comalco Research Centre
PO Box 316, Thomastown, Vic, Australia, 3074
Phone:	+61 3 9469 0642
FAX:	+61 3 9462 2700
Email:	David.Billinghurst@riotinto.com






More information about the Gcc-bugs mailing list