- Fixes for GCC on Linux.

SVN r202 (trunk)
This commit is contained in:
Randy Heit 2006-06-20 22:26:04 +00:00
parent 19dad144e1
commit c32afb8b4c
3 changed files with 11 additions and 10 deletions

View file

@ -15,7 +15,7 @@
char *cursor = ScriptPtr; char *cursor = ScriptPtr;
char *limit = ScriptEndPtr; char *limit = ScriptEndPtr;
std: std1:
tok = YYCURSOR; tok = YYCURSOR;
std2: std2:
#line 33 "src/sc_man_scanner.re" #line 33 "src/sc_man_scanner.re"
@ -70,7 +70,7 @@ yy6:
goto yy23; goto yy23;
yy7: yy7:
#line 40 "src/sc_man_scanner.re" #line 40 "src/sc_man_scanner.re"
{ goto std; } { goto std1; }
#line 75 "src/sc_man_scanner.h" #line 75 "src/sc_man_scanner.h"
yy8: yy8:
++YYCURSOR; ++YYCURSOR;
@ -260,7 +260,7 @@ yy34:
goto yy72; goto yy72;
yy35: yy35:
#line 58 "src/sc_man_scanner.re" #line 58 "src/sc_man_scanner.re"
{ goto std; } { goto std1; }
#line 265 "src/sc_man_scanner.h" #line 265 "src/sc_man_scanner.h"
yy36: yy36:
++YYCURSOR; ++YYCURSOR;
@ -509,7 +509,7 @@ yy85:
yy86: yy86:
++YYCURSOR; ++YYCURSOR;
#line 97 "src/sc_man_scanner.re" #line 97 "src/sc_man_scanner.re"
{ goto std; } { goto std1; }
#line 514 "src/sc_man_scanner.h" #line 514 "src/sc_man_scanner.h"
} }
#line 110 "src/sc_man_scanner.re" #line 110 "src/sc_man_scanner.re"
@ -523,7 +523,7 @@ newline:
} }
sc_Line++; sc_Line++;
sc_Crossed = true; sc_Crossed = true;
goto std; goto std1;
normal_token: normal_token:
ScriptPtr = (YYCURSOR >= YYLIMIT) ? ScriptEndPtr : cursor; ScriptPtr = (YYCURSOR >= YYLIMIT) ? ScriptEndPtr : cursor;

View file

@ -13,7 +13,7 @@
char *cursor = ScriptPtr; char *cursor = ScriptPtr;
char *limit = ScriptEndPtr; char *limit = ScriptEndPtr;
std: std1:
tok = YYCURSOR; tok = YYCURSOR;
std2: std2:
/*!re2c /*!re2c
@ -37,7 +37,7 @@ std2:
"/*" { goto comment; } /* C comment */ "/*" { goto comment; } /* C comment */
("//"|";") (any\"\n")* "\n" { goto newline; } /* C++/Hexen comment */ ("//"|";") (any\"\n")* "\n" { goto newline; } /* C++/Hexen comment */
WSP+ { goto std; } /* whitespace */ WSP+ { goto std1; } /* whitespace */
"\n" { goto newline; } "\n" { goto newline; }
"\"" { goto string; } "\"" { goto string; }
@ -55,7 +55,7 @@ std2:
"/*" { goto comment; } /* C comment */ "/*" { goto comment; } /* C comment */
"//" (any\"\n")* "\n" { goto newline; } /* C++ comment */ "//" (any\"\n")* "\n" { goto newline; } /* C++ comment */
WSP+ { goto std; } /* whitespace */ WSP+ { goto std1; } /* whitespace */
"\n" { goto newline; } "\n" { goto newline; }
"\"" { goto string; } "\"" { goto string; }
@ -94,7 +94,7 @@ negative_check:
comment: comment:
/*!re2c /*!re2c
"*/" { goto std; } "*/" { goto std1; }
"\n" "\n"
{ {
if (YYCURSOR >= YYLIMIT) if (YYCURSOR >= YYLIMIT)
@ -117,7 +117,7 @@ newline:
} }
sc_Line++; sc_Line++;
sc_Crossed = true; sc_Crossed = true;
goto std; goto std1;
normal_token: normal_token:
ScriptPtr = (YYCURSOR >= YYLIMIT) ? ScriptEndPtr : cursor; ScriptPtr = (YYCURSOR >= YYLIMIT) ? ScriptEndPtr : cursor;

View file

@ -11,6 +11,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>
#include <errno.h>
int main(int argc, char **argv) int main(int argc, char **argv)
{ {