diff options
Diffstat (limited to 'pic')
-rw-r--r-- | pic/input.c | 2 | ||||
-rw-r--r-- | pic/main.c | 5 | ||||
-rw-r--r-- | pic/picl.l | 3 |
3 files changed, 5 insertions, 5 deletions
diff --git a/pic/input.c b/pic/input.c index d052f67ed5a9..80e90fe9ba10 100644 --- a/pic/input.c +++ b/pic/input.c @@ -492,8 +492,6 @@ void eprint(void) /* try to print context around error */ ep = ebuf; } -void yywrap(void) {} - static char *newfile = 0; /* filename for file copy */ char *untilstr = 0; /* string that terminates a thru */ int thru = 0; /* 1 if copying thru macro */ diff --git a/pic/main.c b/pic/main.c index 75ed59185837..92acfe9875bc 100644 --- a/pic/main.c +++ b/pic/main.c @@ -17,6 +17,7 @@ #include "pic.h" #include "y.tab.h" +static void reset(void); extern const char version[]; obj **objlist = 0; /* store the elements here */ @@ -208,7 +209,7 @@ void getdata(void) char *p, *buf = NULL, *buf1 = NULL; size_t size = 0; int ln; - void reset(void), openpl(char *), closepl(char *); + void openpl(char *), closepl(char *); int yyparse(void); curfile->lineno = 0; @@ -281,7 +282,7 @@ void getdata(void) free(buf1); } -void reset(void) +static void reset(void) { obj *op; int i; diff --git a/pic/picl.l b/pic/picl.l index bffecb429081..7f51e8488d73 100644 --- a/pic/picl.l +++ b/pic/picl.l @@ -12,6 +12,8 @@ /* Sccsid @(#)picl.l 1.9 (gritter) 8/6/06 */ %} +%option noyywrap +%option nounput %Start A str def xsc br thru sh %e 1700 %k 150 @@ -47,7 +49,6 @@ extern struct symtab symtab[]; int yyback(int *, int); int yylook(void); -int yywrap(void); #define CADD cbuf[clen++]=yytext[0]; \ if (clen>=CBUFLEN-1) { WARNING("string too long", cbuf); BEGIN A; } |