diff options
author | ed <ed@FreeBSD.org> | 2013-05-25 15:36:15 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2013-05-25 15:36:15 +0000 |
commit | 9b52f7b4ed3c8328148e0309a1940c05066ddf43 (patch) | |
tree | 21ab1e11459d9d731bd9b64200e223511a7c0464 /usr.bin/mkesdb/lex.l | |
parent | 843b520e070189fc9edf7f90939fc984e2611572 (diff) | |
download | FreeBSD-src-9b52f7b4ed3c8328148e0309a1940c05066ddf43.zip FreeBSD-src-9b52f7b4ed3c8328148e0309a1940c05066ddf43.tar.gz |
Prevent shadowing.
The name line_number seems to be used as a function parameter name for
one of the Lex functions. Change the name to linenumber.
Diffstat (limited to 'usr.bin/mkesdb/lex.l')
-rw-r--r-- | usr.bin/mkesdb/lex.l | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mkesdb/lex.l b/usr.bin/mkesdb/lex.l index 3e852b0..19c5379 100644 --- a/usr.bin/mkesdb/lex.l +++ b/usr.bin/mkesdb/lex.l @@ -43,7 +43,7 @@ #include "ldef.h" #include "yacc.h" -int line_number = 1; +int linenumber = 1; %} %option noinput %option nounput @@ -53,11 +53,11 @@ int line_number = 1; %% [ \t]+ { } -#.*[\n]|"//".*[\n]|[\n] { line_number++; return (R_LN); } +#.*[\n]|"//".*[\n]|[\n] { linenumber++; return (R_LN); } "/*" { BEGIN COMMENT; } <COMMENT>"*/" { BEGIN 0; } -<COMMENT>[\n] { line_number++; } +<COMMENT>[\n] { linenumber++; } <COMMENT>. { } <COMMENT><<EOF>> { yyerror("unexpected file end (unterminated comment)\n"); |