prototyped

This commit is contained in:
gdr 1997-10-03 04:45:27 +00:00
parent 6848d48a2e
commit a669d1f0ac
2 changed files with 9 additions and 5 deletions

View File

@ -31,11 +31,15 @@
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
#ifndef lint #if !defined(lint) && !defined(__GNO__)
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/4/93"; static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/4/93";
#endif /* not lint */ #endif /* not lint */
main() extern int yyparse(void);
extern int exit(int);
int
main(int argc, char **argv)
{ {
exit(yyparse()); exit(yyparse());
} }

View File

@ -31,14 +31,14 @@
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
#ifndef lint #if !defined(lint) && !defined(__GNO__)
static char sccsid[] = "@(#)yyerror.c 8.1 (Berkeley) 6/4/93"; static char sccsid[] = "@(#)yyerror.c 8.1 (Berkeley) 6/4/93";
#endif /* not lint */ #endif /* not lint */
#include <stdio.h> #include <stdio.h>
yyerror(msg) int
char *msg; yyerror(char *msg)
{ {
(void)fprintf(stderr, "%s\n", msg); (void)fprintf(stderr, "%s\n", msg);
return(0); return(0);