]> thyrsus.com Git - intercal.git/commitdiff
Add a missing forward decl in lexer.l, add void in () in some places in oil.y
authorArvid Norlander <anmaster@tele2.se>
Tue, 18 Nov 2008 19:34:06 +0000 (14:34 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 26 Aug 2010 00:35:22 +0000 (20:35 -0400)
src/lexer.l
src/oil.y

index 0ee48a87b9a71874ace4632ac68dec5b0efe2966..0bd8da2e16aa628fd534599d0dc7135cc028046b 100644 (file)
@@ -82,6 +82,7 @@ ick_bool re_send_token = ick_FALSE;
 
 int lexer(void);
 static int myatoi(const char *text);
+void yyerror(const char *errtype);
 
 #define SETLINENO                                      \
     {if (stbeginline == 0)     stbeginline = iyylineno;\
index e01f2900784fa35c8eaf1c56a6d84a8625393584..6a247b1c87299c5a42a74ca4008e9e2a7dbda0ca 100644 (file)
--- a/src/oil.y
+++ b/src/oil.y
@@ -98,8 +98,8 @@ char optname[MAXOPTNAMELEN]="undefined";
 
 typedef struct ickstype *YYSTYPE;
 
-void splitend();
-void splitstart();
+void splitend(void);
+void splitstart(void);
 
 void treedepthup(YYSTYPE, mybool);
 void treefree(YYSTYPE);
@@ -708,7 +708,7 @@ int countungetc(int c, FILE* f)
   return c;
 }
 
-void splitstart()
+void splitstart(void)
 {
   static char fname[]="oilout00.c";
   if(filenumber>255)
@@ -730,7 +730,7 @@ void splitstart()
         "  node *tp;\n", filenumber);
 }
 
-void splitend()
+void splitend(void)
 {
   /* Disabling warnings about unused variables. gcc will optimize this right
      out, and in any case the raise(SIGSEGV) will be unreachable (but will