summaryrefslogtreecommitdiff
path: root/src/glsl/glcpp/glcpp-lex.l
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2010-07-07 11:40:51 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-07-07 12:41:26 -0700
commit388ab9fa6b468d8c162dd4fc645d2f758c49051c (patch)
tree0c7bc5ee94cbc56e0493ef3e7e1e8a1661e7bccd /src/glsl/glcpp/glcpp-lex.l
parente78e0fa42b49b50ed1150f7fdb74bf942ebd6bcf (diff)
glsl2: Initialize yylineno and yycolumn so line numbers are sane.
Diffstat (limited to 'src/glsl/glcpp/glcpp-lex.l')
-rw-r--r--src/glsl/glcpp/glcpp-lex.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/glcpp/glcpp-lex.l b/src/glsl/glcpp/glcpp-lex.l
index 6a91b09954..53e85556c1 100644
--- a/src/glsl/glcpp/glcpp-lex.l
+++ b/src/glsl/glcpp/glcpp-lex.l
@@ -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