projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bcff4c
)
glcpp: Initialize line and column numbers to 1, not 0.
author
Carl Worth
<cworth@cworth.org>
Wed, 11 Aug 2010 20:09:14 +0000
(13:09 -0700)
committer
Carl Worth
<cworth@cworth.org>
Wed, 11 Aug 2010 21:38:03 +0000
(14:38 -0700)
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.
src/glsl/glcpp/glcpp-lex.l
patch
|
blob
|
history
diff --git
a/src/glsl/glcpp/glcpp-lex.l
b/src/glsl/glcpp/glcpp-lex.l
index 1a0052d689a30dac4587af9e593bb32ca3a18413..fa6289135400841621e913f69a47738e34214f8f 100644
(file)
--- 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