@@ -66,7 +66,7 @@ static char rcsid[] = "$Id: lexact.c,v 1.10 1997/09/24 20:05:38 dar Exp $";
6666#include "dict.h"
6767#include "memory.h"
6868
69- extern int expyylineno ;
69+ extern int yylineno ;
7070extern FILE * yyin ;
7171
7272#ifdef FLEX
219219SCANpush_buffer (char * filename ,FILE * fp )
220220{
221221 SCANbuffer .savedPos = SCANcurrent ;
222- SCANbuffer .lineno = expyylineno ;
223- expyylineno = 1 ;
222+ SCANbuffer .lineno = yylineno ;
223+ yylineno = 1 ;
224224 ++ SCAN_current_buffer ;
225225#ifdef keep_nul
226226 SCANbuffer .numRead = 0 ;
@@ -240,7 +240,7 @@ SCANpop_buffer()
240240 fclose (SCANbuffer .file );
241241 -- SCAN_current_buffer ;
242242 SCANcurrent = SCANbuffer .savedPos ;
243- expyylineno = SCANbuffer .lineno ; /* DEL */
243+ yylineno = SCANbuffer .lineno ; /* DEL */
244244 current_filename = SCANbuffer .filename ;
245245}
246246
@@ -371,7 +371,7 @@ SCANprocess_identifier_or_keyword(void)
371371 } else {
372372#endif
373373
374- yylval .symbol = SYMBOLcreate (test_string ,expyylineno ,current_filename );
374+ yylval .symbol = SYMBOLcreate (test_string ,yylineno ,current_filename );
375375 if (k ) {
376376 /* built-in function/procedure */
377377 return (k -> token );
@@ -442,12 +442,12 @@ SCANprocess_encoded_string(void)
442442 count = 0 ;
443443 for (s = yylval .string ;* s ;s ++ ,count ++ ) {
444444 if (!isxdigit (* s )) {
445- ERRORreport_with_line (ERROR_encoded_string_bad_digit ,expyylineno ,* s );
445+ ERRORreport_with_line (ERROR_encoded_string_bad_digit ,yylineno ,* s );
446446 }
447447 }
448448
449449 if (0 != (count %8 )) {
450- ERRORreport_with_line (ERROR_encoded_string_bad_count ,expyylineno ,count );
450+ ERRORreport_with_line (ERROR_encoded_string_bad_count ,yylineno ,count );
451451 }
452452
453453 return TOK_STRING_LITERAL_ENCODED ;
@@ -548,11 +548,11 @@ SCANinclude_file(char *filename)
548548 FILE * fp ;
549549
550550 if ((fp = fopen (filename , "r" )) == NULL ) {
551- ERRORreport_with_line (ERROR_include_file , expyylineno );
551+ ERRORreport_with_line (ERROR_include_file , yylineno );
552552 } else {
553553 if (print_objects_while_running & OBJ_SCHEMA_BITS ) {
554554 fprintf (stderr ,"parse: including %s at line %d of %s\n" ,
555- filename ,expyylineno ,SCANbuffer .filename );
555+ filename ,yylineno ,SCANbuffer .filename );
556556 }
557557 SCANpush_buffer (filename ,fp );
558558 }
@@ -586,5 +586,5 @@ SCANstrdup(char *s)
586586
587587long
588588SCANtell () {
589- return expyylineno ;
589+ return yylineno ;
590590}
0 commit comments