1
1
2
- #line 3 "ncgenl .c"
2
+ #line 3 "lex.ncg .c"
3
3
4
4
#define YY_INT_ALIGNED short int
5
5
@@ -65,6 +65,7 @@ typedef int16_t flex_int16_t;
65
65
typedef uint16_t flex_uint16_t ;
66
66
typedef int32_t flex_int32_t ;
67
67
typedef uint32_t flex_uint32_t ;
68
+ typedef uint64_t flex_uint64_t ;
68
69
#else
69
70
typedef signed char flex_int8_t ;
70
71
typedef short int flex_int16_t ;
@@ -171,7 +172,12 @@ typedef unsigned int flex_uint32_t;
171
172
typedef struct yy_buffer_state * YY_BUFFER_STATE ;
172
173
#endif
173
174
174
- extern int ncgleng ;
175
+ #ifndef YY_TYPEDEF_YY_SIZE_T
176
+ #define YY_TYPEDEF_YY_SIZE_T
177
+ typedef size_t yy_size_t ;
178
+ #endif
179
+
180
+ extern yy_size_t ncgleng ;
175
181
176
182
extern FILE * ncgin , * ncgout ;
177
183
@@ -197,11 +203,6 @@ extern FILE *ncgin, *ncgout;
197
203
198
204
#define unput (c ) yyunput( c, (yytext_ptr) )
199
205
200
- #ifndef YY_TYPEDEF_YY_SIZE_T
201
- #define YY_TYPEDEF_YY_SIZE_T
202
- typedef size_t yy_size_t ;
203
- #endif
204
-
205
206
#ifndef YY_STRUCT_YY_BUFFER_STATE
206
207
#define YY_STRUCT_YY_BUFFER_STATE
207
208
struct yy_buffer_state
@@ -219,7 +220,7 @@ struct yy_buffer_state
219
220
/* Number of characters read into yy_ch_buf, not including EOB
220
221
* characters.
221
222
*/
222
- int yy_n_chars ;
223
+ yy_size_t yy_n_chars ;
223
224
224
225
/* Whether we "own" the buffer - i.e., we know we created it,
225
226
* and can realloc() it to grow it, and should free() it to
@@ -289,8 +290,8 @@ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
289
290
290
291
/* yy_hold_char holds the character lost when ncgtext is formed. */
291
292
static char yy_hold_char ;
292
- static int yy_n_chars ; /* number of characters read into yy_ch_buf */
293
- int ncgleng ;
293
+ static yy_size_t yy_n_chars ; /* number of characters read into yy_ch_buf */
294
+ yy_size_t ncgleng ;
294
295
295
296
/* Points to current character in buffer. */
296
297
static char * yy_c_buf_p = (char * ) 0 ;
@@ -318,7 +319,7 @@ static void ncg_init_buffer (YY_BUFFER_STATE b,FILE *file );
318
319
319
320
YY_BUFFER_STATE ncg_scan_buffer (char * base ,yy_size_t size );
320
321
YY_BUFFER_STATE ncg_scan_string (yyconst char * yy_str );
321
- YY_BUFFER_STATE ncg_scan_bytes (yyconst char * bytes ,int len );
322
+ YY_BUFFER_STATE ncg_scan_bytes (yyconst char * bytes ,yy_size_t len );
322
323
323
324
void * ncgalloc (yy_size_t );
324
325
void * ncgrealloc (void * ,yy_size_t );
@@ -373,7 +374,7 @@ static void yy_fatal_error (yyconst char msg[] );
373
374
*/
374
375
#define YY_DO_BEFORE_ACTION \
375
376
(yytext_ptr) = yy_bp; \
376
- ncgleng = (size_t ) (yy_cp - yy_bp); \
377
+ ncgleng = (yy_size_t ) (yy_cp - yy_bp); \
377
378
(yy_hold_char) = *yy_cp; \
378
379
*yy_cp = '\0'; \
379
380
(yy_c_buf_p) = yy_cp;
@@ -1319,7 +1320,7 @@ ID ([A-Za-z_]|{UTF8})([A-Z.@#\[\]a-z_0-9+-]|{UTF8})*
1319
1320
/* Note: this definition of string will work for utf8 as well,
1320
1321
although it is a very relaxed definition
1321
1322
*/
1322
- #line 1323 "ncgenl .c"
1323
+ #line 1324 "lex.ncg .c"
1323
1324
1324
1325
#define INITIAL 0
1325
1326
#define ST_C_COMMENT 1
@@ -1360,7 +1361,7 @@ FILE *ncgget_out (void );
1360
1361
1361
1362
void ncgset_out (FILE * out_str );
1362
1363
1363
- int ncgget_leng (void );
1364
+ yy_size_t ncgget_leng (void );
1364
1365
1365
1366
char * ncgget_text (void );
1366
1367
@@ -1421,7 +1422,7 @@ static int input (void );
1421
1422
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
1422
1423
{ \
1423
1424
int c = '*'; \
1424
- int n; \
1425
+ yy_size_t n; \
1425
1426
for ( n = 0; n < max_size && \
1426
1427
(c = getc( ncgin )) != EOF && c != '\n'; ++n ) \
1427
1428
buf[n] = (char) c; \
@@ -1505,7 +1506,7 @@ YY_DECL
1505
1506
1506
1507
#line 217 "ncgen.l"
1507
1508
1508
- #line 1509 "ncgenl .c"
1509
+ #line 1510 "lex.ncg .c"
1509
1510
1510
1511
if ( !(yy_init ) )
1511
1512
{
@@ -2118,7 +2119,7 @@ YY_RULE_SETUP
2118
2119
#line 570 "ncgen.l"
2119
2120
ECHO ;
2120
2121
YY_BREAK
2121
- #line 2122 "ncgenl .c"
2122
+ #line 2123 "lex.ncg .c"
2122
2123
case YY_STATE_EOF (INITIAL ):
2123
2124
case YY_STATE_EOF (TEXT ):
2124
2125
yyterminate ();
@@ -2305,7 +2306,7 @@ static int yy_get_next_buffer (void)
2305
2306
2306
2307
else
2307
2308
{
2308
- int num_to_read =
2309
+ yy_size_t num_to_read =
2309
2310
YY_CURRENT_BUFFER_LVALUE -> yy_buf_size - number_to_move - 1 ;
2310
2311
2311
2312
while ( num_to_read <= 0 )
@@ -2319,7 +2320,7 @@ static int yy_get_next_buffer (void)
2319
2320
2320
2321
if ( b -> yy_is_our_buffer )
2321
2322
{
2322
- int new_size = b -> yy_buf_size * 2 ;
2323
+ yy_size_t new_size = b -> yy_buf_size * 2 ;
2323
2324
2324
2325
if ( new_size <= 0 )
2325
2326
b -> yy_buf_size += b -> yy_buf_size / 8 ;
@@ -2350,7 +2351,7 @@ static int yy_get_next_buffer (void)
2350
2351
2351
2352
/* Read in more data. */
2352
2353
YY_INPUT ( (& YY_CURRENT_BUFFER_LVALUE -> yy_ch_buf [number_to_move ]),
2353
- (yy_n_chars ), ( size_t ) num_to_read );
2354
+ (yy_n_chars ), num_to_read );
2354
2355
2355
2356
YY_CURRENT_BUFFER_LVALUE -> yy_n_chars = (yy_n_chars );
2356
2357
}
@@ -2460,7 +2461,7 @@ static int yy_get_next_buffer (void)
2460
2461
if ( yy_cp < YY_CURRENT_BUFFER_LVALUE -> yy_ch_buf + 2 )
2461
2462
{ /* need to shift things up to make room */
2462
2463
/* +2 for EOB chars. */
2463
- register int number_to_move = (yy_n_chars ) + 2 ;
2464
+ register yy_size_t number_to_move = (yy_n_chars ) + 2 ;
2464
2465
register char * dest = & YY_CURRENT_BUFFER_LVALUE -> yy_ch_buf [
2465
2466
YY_CURRENT_BUFFER_LVALUE -> yy_buf_size + 2 ];
2466
2467
register char * source =
@@ -2509,7 +2510,7 @@ static int yy_get_next_buffer (void)
2509
2510
2510
2511
else
2511
2512
{ /* need more input */
2512
- int offset = (yy_c_buf_p ) - (yytext_ptr );
2513
+ yy_size_t offset = (yy_c_buf_p ) - (yytext_ptr );
2513
2514
++ (yy_c_buf_p );
2514
2515
2515
2516
switch ( yy_get_next_buffer ( ) )
@@ -2533,7 +2534,7 @@ static int yy_get_next_buffer (void)
2533
2534
case EOB_ACT_END_OF_FILE :
2534
2535
{
2535
2536
if ( ncgwrap ( ) )
2536
- return EOF ;
2537
+ return 0 ;
2537
2538
2538
2539
if ( ! (yy_did_buffer_switch_on_eof ) )
2539
2540
YY_NEW_FILE ;
@@ -2785,7 +2786,7 @@ void ncgpop_buffer_state (void)
2785
2786
*/
2786
2787
static void ncgensure_buffer_stack (void )
2787
2788
{
2788
- int num_to_alloc ;
2789
+ yy_size_t num_to_alloc ;
2789
2790
2790
2791
if (!(yy_buffer_stack )) {
2791
2792
@@ -2882,12 +2883,11 @@ YY_BUFFER_STATE ncg_scan_string (yyconst char * yystr )
2882
2883
*
2883
2884
* @return the newly allocated buffer state object.
2884
2885
*/
2885
- YY_BUFFER_STATE ncg_scan_bytes (yyconst char * yybytes , int _yybytes_len )
2886
+ YY_BUFFER_STATE ncg_scan_bytes (yyconst char * yybytes , yy_size_t _yybytes_len )
2886
2887
{
2887
2888
YY_BUFFER_STATE b ;
2888
2889
char * buf ;
2889
- yy_size_t n ;
2890
- int i ;
2890
+ yy_size_t n , i ;
2891
2891
2892
2892
/* Get memory for full buffer, including space for trailing EOB's. */
2893
2893
n = _yybytes_len + 2 ;
@@ -2969,7 +2969,7 @@ FILE *ncgget_out (void)
2969
2969
/** Get the length of the current token.
2970
2970
*
2971
2971
*/
2972
- int ncgget_leng (void )
2972
+ yy_size_t ncgget_leng (void )
2973
2973
{
2974
2974
return ncgleng ;
2975
2975
}
0 commit comments