summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/otps/otp-lexer.l
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-11-10 10:27:09 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-11-10 10:27:09 +0000
commit5e8e9500102800e68c9e7fcac9e85c1668b71a36 (patch)
tree81d79ac70ffbb127e8063f18c8f55475ca169ee1 /Build/source/texk/web2c/otps/otp-lexer.l
parente6a9c88ada2f11dd61e4c4e39dff84944bed5787 (diff)
towards TL2010: texk/web2c
git-svn-id: svn://tug.org/texlive/trunk@15964 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/otps/otp-lexer.l')
-rw-r--r--Build/source/texk/web2c/otps/otp-lexer.l5
1 files changed, 4 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/otps/otp-lexer.l b/Build/source/texk/web2c/otps/otp-lexer.l
index 32142af1ea7..fcc4ca63c5f 100644
--- a/Build/source/texk/web2c/otps/otp-lexer.l
+++ b/Build/source/texk/web2c/otps/otp-lexer.l
@@ -30,7 +30,6 @@ along with Omega; if not, write to the Free Software Foundation, Inc.,
#define YY_NO_UNPUT
#define OTP_MAXCODE 0xFFFF
int line_number = 1;
-int i,j,last;
extern YYSTYPE yylval;
%}
@@ -46,6 +45,7 @@ string \"([^\"]|\"\")*\"
"%".*\n { line_number++;}
\r\n|\n|\r { line_number++;}
{hexnumber} {
+ int i, j;
yylval.yint=0;
for (i=2; i<yyleng; i++) {
j = yytext[i];
@@ -65,6 +65,7 @@ string \"([^\"]|\"\")*\"
return(NUMBER);
}
{octnumber} {
+ int i, j;
yylval.yint=0;
for (i=2; i<yyleng; i++) {
j = yytext[i];
@@ -78,6 +79,7 @@ string \"([^\"]|\"\")*\"
return(NUMBER);
}
{decnumber} {
+ int i, j;
yylval.yint=0;
for (i=0; i<yyleng; i++) {
j = yytext[i];
@@ -96,6 +98,7 @@ string \"([^\"]|\"\")*\"
}
{id} { yylval.ystring=xstrdup(yytext); return(ID); }
{string} {
+ int i, j, last;
char *newtext;
last=yyleng-2;
i=0;