From: Arvid Norlander Date: Tue, 18 Nov 2008 19:34:06 +0000 (-0500) Subject: Add a missing forward decl in lexer.l, add void in () in some places in oil.y X-Git-Tag: 0.29~178 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=e4924c6eca0ed9176e099d4bc92d6e55f251f0dc;p=intercal.git Add a missing forward decl in lexer.l, add void in () in some places in oil.y --- diff --git a/src/lexer.l b/src/lexer.l index 0ee48a8..0bd8da2 100644 --- a/src/lexer.l +++ b/src/lexer.l @@ -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;\ diff --git a/src/oil.y b/src/oil.y index e01f290..6a247b1 100644 --- 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