diff options
Diffstat (limited to 'cpp/test/Freeze/complex/Scanner.cpp')
-rw-r--r-- | cpp/test/Freeze/complex/Scanner.cpp | 54 |
1 files changed, 40 insertions, 14 deletions
diff --git a/cpp/test/Freeze/complex/Scanner.cpp b/cpp/test/Freeze/complex/Scanner.cpp index bda3a878f1b..6f5b100bb2d 100644 --- a/cpp/test/Freeze/complex/Scanner.cpp +++ b/cpp/test/Freeze/complex/Scanner.cpp @@ -55,7 +55,6 @@ typedef int flex_int32_t; typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; -#endif /* ! C99 */ /* Limits of integral types. */ #ifndef INT8_MIN @@ -86,6 +85,8 @@ typedef unsigned int flex_uint32_t; #define UINT32_MAX (4294967295U) #endif +#endif /* ! C99 */ + #endif /* ! FLEXINT_H */ #ifdef __cplusplus @@ -142,7 +143,15 @@ typedef unsigned int flex_uint32_t; /* Size of default input buffer. */ #ifndef YY_BUF_SIZE +#ifdef __ia64__ +/* On IA-64, the buffer size is 16k, not 8k. + * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. + * Ditto for the __ia64__ case accordingly. + */ +#define YY_BUF_SIZE 32768 +#else #define YY_BUF_SIZE 16384 +#endif /* __ia64__ */ #endif /* The state buf must be large enough to hold one state per character in the main buffer. @@ -465,7 +474,6 @@ char *yytext; // // ********************************************************************** -#include <IceUtil/ScannerConfig.h> #include <Ice/Ice.h> #include <Parser.h> #include <Grammar.h> @@ -473,6 +481,11 @@ char *yytext; #if defined(_MSC_VER) && defined(ICE_64) // +// '=' : conversion from 'size_t' to 'int', possible loss of data +// The result of fread() is a size_t and gets inserted into an int +// +# pragma warning( 4 : 4267 ) +// // 'initializing' : conversion from '__int64' to 'int', possible loss of data // Puts a pointer-difference into an int // @@ -482,9 +495,17 @@ char *yytext; using namespace std; using namespace Ice; +#ifdef _MSC_VER +# ifdef yywrap +# undef yywrap +# define yywrap() 1 +# endif +# define YY_NO_UNISTD_H +#endif + #define YY_INPUT(buf, result, maxSize) parser->getInput(buf, result, maxSize) -#line 486 "lex.yy.c" +#line 507 "lex.yy.c" #define INITIAL 0 @@ -565,7 +586,12 @@ static int input (void ); /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE +#ifdef __ia64__ +/* On IA-64, the buffer size is 16k, not 8k */ +#define YY_READ_BUF_SIZE 16384 +#else #define YY_READ_BUF_SIZE 8192 +#endif /* __ia64__ */ #endif /* Copy whatever the last rule matched to the standard output. */ @@ -584,7 +610,7 @@ static int input (void ); if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ { \ int c = '*'; \ - unsigned n; \ + size_t n; \ for ( n = 0; n < max_size && \ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ @@ -666,10 +692,10 @@ YY_DECL register char *yy_cp, *yy_bp; register int yy_act; -#line 40 "Scanner.l" +#line 52 "Scanner.l" -#line 671 "lex.yy.c" +#line 697 "lex.yy.c" if ( !(yy_init) ) { @@ -750,7 +776,7 @@ do_action: /* This label is used only to access EOF actions. */ case 1: YY_RULE_SETUP -#line 42 "Scanner.l" +#line 54 "Scanner.l" { *yylvalp = new Complex::NumberNodeI(atoi(yytext)); return TOK_NUMBER; @@ -758,20 +784,20 @@ YY_RULE_SETUP YY_BREAK case 2: YY_RULE_SETUP -#line 47 "Scanner.l" +#line 59 "Scanner.l" /* eat whitespace */ YY_BREAK case 3: YY_RULE_SETUP -#line 49 "Scanner.l" +#line 61 "Scanner.l" { return *yytext; } YY_BREAK case 4: YY_RULE_SETUP -#line 51 "Scanner.l" +#line 63 "Scanner.l" ECHO; YY_BREAK -#line 773 "lex.yy.c" +#line 799 "lex.yy.c" case YY_STATE_EOF(INITIAL): yyterminate(); @@ -1526,8 +1552,8 @@ YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) /** Setup the input buffer state to scan the given bytes. The next call to yylex() will * scan from a @e copy of @a bytes. - * @param bytes the byte buffer to scan - * @param len the number of bytes in the buffer pointed to by @a bytes. + * @param yybytes the byte buffer to scan + * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. * * @return the newly allocated buffer state object. */ @@ -1766,7 +1792,7 @@ void yyfree (void * ptr ) #define YYTABLES_NAME "yytables" -#line 51 "Scanner.l" +#line 63 "Scanner.l" |