diff options
author | Pixel <Pixel> | 2002-07-26 13:45:53 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2002-07-26 13:45:53 +0000 |
commit | b5c9aec9a9725bac99f948dab8bececb43e414e1 (patch) | |
tree | 6e1f703a2b5dc3c58939a55f8bca98d4a6350987 /Xenogears/compil.lex | |
parent | 8cc5bf50f11bca8ee945e6716c68d609fdaa9e8f (diff) |
Updated the lex thingies
Diffstat (limited to 'Xenogears/compil.lex')
-rw-r--r-- | Xenogears/compil.lex | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Xenogears/compil.lex b/Xenogears/compil.lex index f6ceda8..7d221df 100644 --- a/Xenogears/compil.lex +++ b/Xenogears/compil.lex @@ -254,9 +254,10 @@ <I>"<Bare"\ +[[:xdigit:]]{1,2}">" { char str[5] = {'0', 'x', 0, 0, 0}; int d; - for (yytext += 6; *yytext == ' '; yytext++); - str[2] = *(yytext++); - str[3] = *(yytext++); + char * _yytext = yytext; + for (_yytext += 6; *_yytext == ' '; _yytext++); + str[2] = *(_yytext++); + str[3] = *(_yytext++); sscanf(str, "%i", &d); if (d > 255) { fprintf(stderr, "Error: Bare number too important: %i\n", d); |