mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
glsl2: Initialize yylineno and yycolumn so line numbers are sane.
This commit is contained in:
parent
e78e0fa42b
commit
388ab9fa6b
2 changed files with 3 additions and 0 deletions
|
|
@ -36,6 +36,7 @@
|
|||
yylloc->first_line = yylineno; \
|
||||
yycolumn += yyleng; \
|
||||
} while(0);
|
||||
#define YY_USER_INIT yylineno = 0; yycolumn = 0;
|
||||
%}
|
||||
|
||||
%option bison-bridge bison-locations reentrant noyywrap
|
||||
|
|
|
|||
|
|
@ -34,6 +34,8 @@
|
|||
yycolumn += yyleng; \
|
||||
} while(0);
|
||||
|
||||
#define YY_USER_INIT yylineno = 0; yycolumn = 0;
|
||||
|
||||
%}
|
||||
|
||||
%option bison-bridge bison-locations reentrant noyywrap
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue