]> granicus.if.org Git - flex/commitdiff
Added declaration of arguments
authorVern Paxson <vern@ee.lbl.gov>
Sat, 26 May 1990 16:50:08 +0000 (16:50 +0000)
committerVern Paxson <vern@ee.lbl.gov>
Sat, 26 May 1990 16:50:08 +0000 (16:50 +0000)
made yylex() a function

libmain.c

index 31adc8c3d573ba9abe6227e663587a30aaea6fc6..951bdaab92e402e0345b1305512cf71d17711af5 100644 (file)
--- a/libmain.c
+++ b/libmain.c
@@ -2,8 +2,12 @@
 
 /* $Header$ */
 
-main()
+extern int yylex();
+
+int main( argc, argv )
+int argc;
+char *argv[];
 
     {
-    yylex();
+    return yylex();
     }