summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp
diff options
context:
space:
mode:
authorCarl Worth <[email protected]>2010-08-11 13:09:14 -0700
committerCarl Worth <[email protected]>2010-08-11 14:38:03 -0700
commitbc64b8980803a5ba1cc91c63dc2ed1517db800c6 (patch)
treeb8429c8137be08379633c3e58e86cc1b03da936f /src/glsl/glcpp
parent2bcff4c879acec31ef0b39ecf04e9df41c5cbfab (diff)
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.
Diffstat (limited to 'src/glsl/glcpp')
-rw-r--r--src/glsl/glcpp/glcpp-lex.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/glcpp/glcpp-lex.l b/src/glsl/glcpp/glcpp-lex.l
index 1a0052d689a..fa628913540 100644
--- a/src/glsl/glcpp/glcpp-lex.l
+++ b/src/glsl/glcpp/glcpp-lex.l
@@ -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