mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 23:10:11 +01:00
glcpp: Initialize line and column numbers to 1, not 0.
Error messages make more sense this way since the convention is for the first line of a file to be numbered from 1, rather than 0.
This commit is contained in:
parent
2bcff4c879
commit
bc64b89808
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ void glcpp_set_column (int column_no , yyscan_t yyscanner);
|
|||
yylloc->first_line = yylineno; \
|
||||
yycolumn += yyleng; \
|
||||
} while(0);
|
||||
#define YY_USER_INIT yylineno = 0; yycolumn = 0;
|
||||
#define YY_USER_INIT yylineno = 1; yycolumn = 1;
|
||||
%}
|
||||
|
||||
%option bison-bridge bison-locations reentrant noyywrap
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue