glsl2: Initialize yylineno and yycolumn so line numbers are sane.

This commit is contained in:
Kenneth Graunke 2010-07-07 11:40:51 -07:00 committed by Ian Romanick
parent e78e0fa42b
commit 388ab9fa6b
2 changed files with 3 additions and 0 deletions

View file

@ -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

View file

@ -34,6 +34,8 @@
yycolumn += yyleng; \
} while(0);
#define YY_USER_INIT yylineno = 0; yycolumn = 0;
%}
%option bison-bridge bison-locations reentrant noyywrap