X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Faltlex.c;h=a7115d6f4262c0f687ac2ffbfae13c980029edd3;hb=998d25b727d2fd1842b51a6a6b3a084e97660323;hp=5de195461cc1f424ddec2d0c42eba71a9ca918fe;hpb=817beb07e406ae505fb0b1354d42025a1bfd14ce;p=fw%2Fsdcc diff --git a/src/altlex.c b/src/altlex.c index 5de19546..a7115d6f 100644 --- a/src/altlex.c +++ b/src/altlex.c @@ -47,7 +47,7 @@ extern char *filename; FILE *yyin; -int yylineno; +int mylineno; char *currFname; char *yytext; @@ -292,8 +292,8 @@ handle_line (void) if (line[0] == '\0') error ("Error in number in #line"); /* This is weird but cpp seems to add an extra three to the line no */ - yylineno = atoi (line) - 3; - lineno = yylineno; + mylineno = atoi (line) - 3; + lineno = mylineno; /* Fetch the filename if there is one */ while (c == '\t' || c == ' ') c = GETC (); @@ -325,8 +325,8 @@ static INLINE int check_newline (void) { int c; - yylineno++; - lineno = yylineno; + mylineno++; + lineno = mylineno; /* Skip any leading white space */ c = GETC ();