Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!sdd.hp.com!wuarchive!udel!mmdf From: breure%ITIHP1.TNO.NL@pucc.princeton.edu (Frank Breure) Newsgroups: comp.os.minix Subject: bug in C68 Message-ID: <53799@nigel.ee.udel.edu> Date: 16 May 91 16:08:37 GMT Sender: mmdf@ee.udel.edu Lines: 32 I discovered a bug in the parser of C68, in a function definition you don't have to use comma's to separate the parameters, thus main(argc argv) /* no comma between argc and argv !! */ int argc; char *argv[]; is accepted! The bug is in decl.c, only if the symbol after an identifier is a comma, the next symbol will be read. The following cdiff will correct this: ----------------- cut here ----------------- *** decl.c Thu May 16 15:22:51 1991 --- decl.c~ Thu May 16 14:22:18 1991 *************** *** 318,325 **** getsym(); if (lastst == comma) getsym(); - else - break; } needpunc(closepa); } --- 318,323 ---- ----------------- cut here ----------------- Frank Breure (breure@itihp1.tno.nl) Instituut voor Toegepaste Informatica-TNO Delft, The Netherlands ---------------------------------------------------------------------- My opinions may be subject to change without notice.