aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/dtc/dtc-lexer.lex.c_shipped
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-09-28 17:25:59 -0400
committerRob Herring <rob.herring@calxeda.com>2012-10-01 12:11:35 -0400
commitcd296721a9645f9f28800a072490fa15458d1fb7 (patch)
tree492b9a268a48af07844fbbd39519f95676ee73fe /scripts/dtc/dtc-lexer.lex.c_shipped
parentacc2097934b5403b97f95763fe99fc115b818061 (diff)
dtc: import latest upstream dtc
This updates scripts/dtc to commit 317a5d9 "dtc: zero out new label objects" from git://git.jdl.com/software/dtc.git. This adds features such as: * /bits/ syntax for cell data. * Math expressions within cell data. * The ability to delete properties or nodes. * Support for #line directives in the input file, which allows the use of cpp on *.dts. * -i command-line option (/include/ path) * -W/-E command-line options for error/warning control. * Removal of spew to STDOUT containing the filename being compiled. * Many additions to the libfdt API. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Jon Loeliger <jdl@jdl.com> Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'scripts/dtc/dtc-lexer.lex.c_shipped')
-rw-r--r--scripts/dtc/dtc-lexer.lex.c_shipped503
1 files changed, 361 insertions, 142 deletions
diff --git a/scripts/dtc/dtc-lexer.lex.c_shipped b/scripts/dtc/dtc-lexer.lex.c_shipped
index 8bbe12817050..a6c5fcdfc032 100644
--- a/scripts/dtc/dtc-lexer.lex.c_shipped
+++ b/scripts/dtc/dtc-lexer.lex.c_shipped
@@ -1,5 +1,6 @@
1#line 2 "dtc-lexer.lex.c"
1 2
2#line 3 "scripts/dtc/dtc-lexer.lex.c_shipped" 3#line 4 "dtc-lexer.lex.c"
3 4
4#define YY_INT_ALIGNED short int 5#define YY_INT_ALIGNED short int
5 6
@@ -53,7 +54,6 @@ typedef int flex_int32_t;
53typedef unsigned char flex_uint8_t; 54typedef unsigned char flex_uint8_t;
54typedef unsigned short int flex_uint16_t; 55typedef unsigned short int flex_uint16_t;
55typedef unsigned int flex_uint32_t; 56typedef unsigned int flex_uint32_t;
56#endif /* ! C99 */
57 57
58/* Limits of integral types. */ 58/* Limits of integral types. */
59#ifndef INT8_MIN 59#ifndef INT8_MIN
@@ -84,6 +84,8 @@ typedef unsigned int flex_uint32_t;
84#define UINT32_MAX (4294967295U) 84#define UINT32_MAX (4294967295U)
85#endif 85#endif
86 86
87#endif /* ! C99 */
88
87#endif /* ! FLEXINT_H */ 89#endif /* ! FLEXINT_H */
88 90
89#ifdef __cplusplus 91#ifdef __cplusplus
@@ -140,7 +142,15 @@ typedef unsigned int flex_uint32_t;
140 142
141/* Size of default input buffer. */ 143/* Size of default input buffer. */
142#ifndef YY_BUF_SIZE 144#ifndef YY_BUF_SIZE
145#ifdef __ia64__
146/* On IA-64, the buffer size is 16k, not 8k.
147 * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
148 * Ditto for the __ia64__ case accordingly.
149 */
150#define YY_BUF_SIZE 32768
151#else
143#define YY_BUF_SIZE 16384 152#define YY_BUF_SIZE 16384
153#endif /* __ia64__ */
144#endif 154#endif
145 155
146/* The state buf must be large enough to hold one state per character in the main buffer. 156/* The state buf must be large enough to hold one state per character in the main buffer.
@@ -362,8 +372,8 @@ static void yy_fatal_error (yyconst char msg[] );
362 *yy_cp = '\0'; \ 372 *yy_cp = '\0'; \
363 (yy_c_buf_p) = yy_cp; 373 (yy_c_buf_p) = yy_cp;
364 374
365#define YY_NUM_RULES 17 375#define YY_NUM_RULES 30
366#define YY_END_OF_BUFFER 18 376#define YY_END_OF_BUFFER 31
367/* This struct is not used in this scanner, 377/* This struct is not used in this scanner,
368 but its presence is necessary. */ 378 but its presence is necessary. */
369struct yy_trans_info 379struct yy_trans_info
@@ -371,19 +381,25 @@ struct yy_trans_info
371 flex_int32_t yy_verify; 381 flex_int32_t yy_verify;
372 flex_int32_t yy_nxt; 382 flex_int32_t yy_nxt;
373 }; 383 };
374static yyconst flex_int16_t yy_accept[94] = 384static yyconst flex_int16_t yy_accept[161] =
375 { 0, 385 { 0,
376 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 386 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
377 18, 16, 13, 13, 16, 16, 16, 16, 16, 16, 387 31, 29, 18, 18, 29, 29, 29, 29, 29, 29,
378 16, 10, 11, 11, 6, 6, 13, 0, 2, 0, 388 29, 29, 29, 29, 29, 29, 29, 29, 15, 16,
379 7, 0, 0, 0, 0, 0, 0, 0, 5, 0, 389 16, 29, 16, 10, 10, 18, 26, 0, 3, 0,
380 9, 9, 11, 11, 6, 0, 7, 0, 0, 0, 390 27, 12, 0, 0, 11, 0, 0, 0, 0, 0,
381 0, 15, 0, 0, 0, 0, 6, 0, 14, 0, 391 0, 0, 21, 23, 25, 24, 22, 0, 9, 28,
382 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 392 0, 0, 0, 14, 14, 16, 16, 16, 10, 10,
383 0, 0, 0, 0, 0, 0, 0, 0, 3, 12, 393 10, 0, 12, 0, 11, 0, 0, 0, 20, 0,
384 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 394 0, 0, 0, 0, 0, 0, 0, 16, 10, 10,
385 0, 4, 0 395 10, 0, 19, 0, 0, 0, 0, 0, 0, 0,
386 396
397 0, 0, 16, 13, 0, 0, 0, 0, 0, 0,
398 0, 0, 0, 16, 6, 0, 0, 0, 0, 0,
399 0, 2, 0, 0, 0, 0, 0, 0, 0, 0,
400 4, 17, 0, 0, 2, 0, 0, 0, 0, 0,
401 0, 0, 0, 0, 0, 0, 0, 1, 0, 0,
402 0, 0, 5, 8, 0, 0, 0, 0, 7, 0
387 } ; 403 } ;
388 404
389static yyconst flex_int32_t yy_ec[256] = 405static yyconst flex_int32_t yy_ec[256] =
@@ -391,17 +407,17 @@ static yyconst flex_int32_t yy_ec[256] =
391 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 407 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
392 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 408 2, 2, 2, 1, 1, 1, 1, 1, 1, 1,
393 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 409 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
394 1, 2, 1, 4, 5, 1, 1, 6, 1, 1, 410 1, 2, 4, 5, 6, 1, 1, 7, 8, 1,
395 1, 7, 5, 5, 8, 5, 9, 10, 11, 12, 411 1, 9, 10, 10, 11, 10, 12, 13, 14, 15,
396 12, 12, 12, 12, 12, 12, 12, 13, 1, 1, 412 15, 15, 15, 15, 15, 15, 15, 16, 1, 17,
397 1, 1, 5, 5, 14, 14, 14, 14, 14, 14, 413 18, 19, 10, 10, 20, 20, 20, 20, 20, 20,
398 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 414 21, 21, 21, 21, 21, 22, 21, 21, 21, 21,
399 15, 15, 15, 15, 15, 15, 15, 16, 15, 15, 415 21, 21, 21, 21, 23, 21, 21, 24, 21, 21,
400 1, 17, 18, 1, 15, 1, 14, 19, 20, 21, 416 1, 25, 26, 1, 21, 1, 20, 27, 28, 29,
401 417
402 22, 14, 15, 15, 23, 15, 15, 24, 25, 26, 418 30, 20, 21, 21, 31, 21, 21, 32, 33, 34,
403 15, 15, 15, 27, 28, 29, 30, 31, 15, 16, 419 35, 36, 21, 37, 38, 39, 40, 41, 21, 24,
404 15, 15, 32, 1, 33, 1, 1, 1, 1, 1, 420 42, 21, 43, 44, 45, 1, 1, 1, 1, 1,
405 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 421 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
406 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 422 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
407 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 423 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
@@ -418,112 +434,163 @@ static yyconst flex_int32_t yy_ec[256] =
418 1, 1, 1, 1, 1 434 1, 1, 1, 1, 1
419 } ; 435 } ;
420 436
421static yyconst flex_int32_t yy_meta[34] = 437static yyconst flex_int32_t yy_meta[46] =
422 { 0, 438 { 0,
423 1, 1, 1, 1, 2, 1, 2, 2, 3, 4, 439 1, 1, 1, 1, 1, 2, 3, 1, 2, 2,
424 4, 4, 5, 6, 7, 7, 1, 1, 6, 6, 440 2, 4, 5, 5, 5, 6, 1, 1, 1, 7,
425 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 441 8, 8, 8, 8, 1, 1, 7, 7, 7, 7,
426 7, 8, 1 442 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
443 8, 8, 3, 1, 1
427 } ; 444 } ;
428 445
429static yyconst flex_int16_t yy_base[106] = 446static yyconst flex_int16_t yy_base[175] =
430 { 0, 447 { 0,
431 0, 0, 237, 236, 25, 0, 47, 0, 30, 71, 448 0, 388, 381, 40, 41, 386, 71, 385, 34, 44,
432 244, 247, 82, 84, 84, 211, 95, 229, 218, 0, 449 390, 395, 60, 62, 371, 112, 111, 111, 111, 104,
433 111, 247, 0, 84, 83, 95, 106, 86, 247, 237, 450 370, 106, 371, 342, 124, 119, 0, 144, 395, 0,
434 0, 230, 231, 234, 207, 209, 212, 220, 247, 206, 451 123, 0, 159, 153, 165, 167, 395, 130, 395, 382,
435 247, 218, 0, 106, 116, 0, 0, 0, 223, 89, 452 395, 0, 372, 122, 395, 157, 374, 379, 350, 21,
436 226, 219, 199, 206, 200, 204, 0, 190, 213, 212, 453 346, 349, 395, 395, 395, 395, 395, 362, 395, 395,
437 202, 91, 178, 161, 247, 172, 144, 150, 140, 130, 454 181, 346, 342, 395, 359, 0, 191, 343, 190, 351,
438 140, 124, 128, 120, 138, 137, 123, 122, 247, 247, 455 350, 0, 0, 0, 173, 362, 177, 367, 357, 329,
439 134, 114, 132, 86, 135, 125, 90, 136, 247, 97, 456 335, 328, 337, 331, 206, 329, 334, 327, 395, 338,
440 29, 247, 247, 153, 156, 161, 165, 170, 176, 180, 457 170, 314, 346, 345, 318, 325, 343, 158, 316, 212,
441 458
442 187, 195, 200, 205, 212 459 322, 319, 320, 395, 340, 336, 308, 305, 314, 304,
460 295, 138, 208, 220, 395, 292, 305, 265, 264, 254,
461 201, 222, 285, 275, 273, 270, 236, 235, 225, 115,
462 395, 395, 252, 216, 216, 217, 214, 230, 209, 220,
463 213, 239, 211, 217, 216, 209, 229, 395, 240, 225,
464 206, 169, 395, 395, 116, 106, 99, 54, 395, 395,
465 254, 260, 268, 272, 276, 282, 289, 293, 301, 309,
466 313, 319, 327, 335
443 } ; 467 } ;
444 468
445static yyconst flex_int16_t yy_def[106] = 469static yyconst flex_int16_t yy_def[175] =
446 { 0, 470 { 0,
447 93, 1, 1, 1, 1, 5, 93, 7, 1, 1, 471 160, 1, 1, 1, 1, 5, 160, 7, 1, 1,
448 93, 93, 93, 93, 94, 95, 93, 96, 17, 97, 472 160, 160, 160, 160, 160, 161, 162, 163, 160, 160,
449 96, 93, 98, 99, 93, 93, 93, 94, 93, 94, 473 160, 160, 164, 160, 160, 160, 165, 164, 160, 166,
450 100, 93, 101, 102, 93, 93, 93, 96, 93, 93, 474 167, 166, 166, 160, 160, 160, 160, 161, 160, 161,
451 93, 96, 98, 99, 93, 103, 100, 104, 101, 101, 475 160, 168, 160, 163, 160, 163, 169, 170, 160, 160,
452 102, 93, 93, 93, 93, 93, 103, 104, 93, 93, 476 160, 160, 160, 160, 160, 160, 160, 164, 160, 160,
453 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 477 160, 160, 160, 160, 164, 166, 167, 166, 160, 160,
454 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 478 160, 171, 168, 172, 163, 169, 169, 170, 160, 160,
455 93, 93, 93, 93, 93, 105, 93, 105, 93, 105, 479 160, 160, 160, 160, 160, 160, 160, 166, 160, 160,
456 93, 93, 0, 93, 93, 93, 93, 93, 93, 93, 480 171, 172, 160, 160, 160, 160, 160, 160, 160, 160,
457 481
458 93, 93, 93, 93, 93 482 160, 160, 166, 160, 160, 160, 160, 160, 160, 160,
483 160, 173, 160, 166, 160, 160, 160, 160, 160, 160,
484 173, 160, 173, 160, 160, 160, 160, 160, 160, 160,
485 160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
486 160, 160, 174, 160, 160, 160, 174, 160, 174, 160,
487 160, 160, 160, 160, 160, 160, 160, 160, 160, 0,
488 160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
489 160, 160, 160, 160
459 } ; 490 } ;
460 491
461static yyconst flex_int16_t yy_nxt[281] = 492static yyconst flex_int16_t yy_nxt[441] =
462 { 0, 493 { 0,
463 12, 13, 14, 15, 12, 16, 12, 12, 17, 12, 494 12, 13, 14, 15, 16, 12, 17, 18, 12, 12,
464 12, 12, 12, 18, 18, 18, 12, 12, 18, 18, 495 12, 19, 12, 12, 12, 12, 20, 21, 22, 23,
465 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 496 23, 23, 23, 23, 12, 12, 23, 23, 23, 23,
466 18, 12, 12, 19, 20, 20, 20, 92, 21, 25, 497 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
467 26, 26, 22, 21, 21, 21, 21, 12, 13, 14, 498 23, 23, 12, 24, 12, 25, 34, 35, 35, 25,
468 15, 23, 16, 23, 23, 19, 23, 23, 23, 12, 499 81, 26, 26, 27, 27, 27, 34, 35, 35, 82,
469 24, 24, 24, 12, 12, 24, 24, 24, 24, 24, 500 28, 36, 36, 36, 36, 159, 29, 28, 28, 28,
470 24, 24, 24, 24, 24, 24, 24, 24, 12, 12, 501 28, 12, 13, 14, 15, 16, 30, 17, 18, 30,
471 25, 26, 26, 27, 27, 27, 27, 29, 43, 29, 502 30, 30, 26, 30, 30, 30, 12, 20, 21, 22,
472 43, 43, 45, 45, 45, 50, 39, 59, 46, 93, 503 31, 31, 31, 31, 31, 32, 12, 31, 31, 31,
473 504
474 30, 33, 30, 34, 45, 45, 45, 27, 27, 68, 505 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
475 43, 91, 43, 43, 69, 35, 87, 36, 39, 37, 506 31, 31, 31, 12, 24, 12, 39, 41, 45, 47,
476 42, 42, 42, 39, 42, 45, 45, 45, 89, 42, 507 53, 54, 48, 56, 57, 61, 61, 47, 66, 45,
477 42, 42, 42, 85, 85, 86, 85, 85, 86, 89, 508 48, 66, 66, 66, 39, 46, 40, 49, 59, 50,
478 84, 90, 83, 82, 81, 80, 79, 78, 77, 76, 509 158, 51, 122, 52, 157, 49, 46, 50, 136, 63,
479 75, 74, 90, 28, 28, 28, 28, 28, 28, 28, 510 137, 52, 156, 43, 40, 62, 65, 65, 65, 59,
480 28, 31, 31, 31, 38, 38, 38, 38, 41, 73, 511 61, 61, 123, 65, 75, 69, 69, 69, 36, 36,
481 41, 43, 72, 43, 71, 43, 43, 44, 33, 44, 512 65, 65, 65, 65, 70, 71, 72, 69, 69, 69,
482 44, 44, 44, 47, 69, 47, 47, 49, 49, 49, 513 45, 46, 61, 61, 109, 77, 70, 71, 93, 110,
483 49, 49, 49, 49, 49, 51, 51, 51, 51, 51, 514 68, 70, 71, 85, 85, 85, 66, 46, 155, 66,
484 515
485 51, 51, 51, 57, 70, 57, 58, 58, 58, 67, 516 66, 66, 69, 69, 69, 122, 59, 100, 100, 61,
486 58, 58, 88, 88, 88, 88, 88, 88, 88, 88, 517 61, 70, 71, 100, 100, 148, 112, 154, 85, 85,
487 34, 66, 65, 64, 63, 62, 61, 60, 52, 50, 518 85, 61, 61, 129, 129, 123, 129, 129, 135, 135,
488 39, 56, 39, 55, 54, 53, 52, 50, 48, 93, 519 135, 142, 142, 148, 143, 149, 153, 135, 135, 135,
489 40, 39, 32, 93, 19, 19, 11, 93, 93, 93, 520 142, 142, 160, 143, 152, 151, 150, 146, 145, 144,
490 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 521 141, 140, 139, 149, 38, 38, 38, 38, 38, 38,
491 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 522 38, 38, 42, 138, 134, 133, 42, 42, 44, 44,
492 93, 93, 93, 93, 93, 93, 93, 93, 93, 93 523 44, 44, 44, 44, 44, 44, 58, 58, 58, 58,
524 64, 132, 64, 66, 131, 130, 66, 160, 66, 66,
525 67, 128, 127, 67, 67, 67, 67, 73, 126, 73,
526
527 73, 76, 76, 76, 76, 76, 76, 76, 76, 78,
528 78, 78, 78, 78, 78, 78, 78, 91, 125, 91,
529 92, 124, 92, 92, 120, 92, 92, 121, 121, 121,
530 121, 121, 121, 121, 121, 147, 147, 147, 147, 147,
531 147, 147, 147, 119, 118, 117, 116, 115, 47, 114,
532 110, 113, 111, 108, 107, 106, 48, 105, 104, 89,
533 103, 102, 101, 99, 98, 97, 96, 95, 94, 79,
534 77, 90, 89, 88, 59, 87, 86, 59, 84, 83,
535 80, 79, 77, 74, 160, 60, 59, 55, 37, 160,
536 33, 25, 26, 25, 11, 160, 160, 160, 160, 160,
537
538 160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
539 160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
540 160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
541 160, 160, 160, 160, 160, 160, 160, 160, 160, 160
493 } ; 542 } ;
494 543
495static yyconst flex_int16_t yy_chk[281] = 544static yyconst flex_int16_t yy_chk[441] =
496 { 0, 545 { 0,
497 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 546 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
498 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 547 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
499 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 548 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
500 1, 1, 1, 5, 5, 5, 5, 91, 5, 9, 549 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
501 9, 9, 5, 5, 5, 5, 5, 7, 7, 7, 550 1, 1, 1, 1, 1, 4, 9, 9, 9, 10,
551 50, 4, 5, 5, 5, 5, 10, 10, 10, 50,
552 5, 13, 13, 14, 14, 158, 5, 5, 5, 5,
553 5, 7, 7, 7, 7, 7, 7, 7, 7, 7,
502 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 554 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
503 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 555 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
556
504 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 557 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
505 10, 10, 10, 13, 13, 14, 14, 15, 24, 28, 558 7, 7, 7, 7, 7, 7, 16, 17, 18, 19,
506 24, 24, 25, 25, 25, 50, 24, 50, 25, 90, 559 20, 20, 19, 22, 22, 25, 25, 26, 31, 44,
507 560 26, 31, 31, 31, 38, 18, 16, 19, 31, 19,
508 15, 17, 28, 17, 26, 26, 26, 27, 27, 62, 561 157, 19, 112, 19, 156, 26, 44, 26, 130, 26,
509 44, 87, 44, 44, 62, 17, 84, 17, 44, 17, 562 130, 26, 155, 17, 38, 25, 28, 28, 28, 28,
510 21, 21, 21, 21, 21, 45, 45, 45, 86, 21, 563 33, 33, 112, 28, 46, 34, 34, 34, 36, 36,
511 21, 21, 21, 83, 83, 83, 85, 85, 85, 88, 564 28, 28, 28, 28, 34, 34, 34, 35, 35, 35,
512 82, 86, 81, 78, 77, 76, 75, 74, 73, 72, 565 75, 46, 61, 61, 98, 77, 35, 35, 77, 98,
513 71, 70, 88, 94, 94, 94, 94, 94, 94, 94, 566 33, 91, 91, 61, 61, 61, 67, 75, 152, 67,
514 94, 95, 95, 95, 96, 96, 96, 96, 97, 69, 567
515 97, 98, 68, 98, 67, 98, 98, 99, 66, 99, 568 67, 67, 69, 69, 69, 121, 67, 85, 85, 113,
516 99, 99, 99, 100, 64, 100, 100, 101, 101, 101, 569 113, 69, 69, 100, 100, 143, 100, 151, 85, 85,
517 101, 101, 101, 101, 101, 102, 102, 102, 102, 102, 570 85, 114, 114, 122, 122, 121, 129, 129, 135, 135,
518 571 135, 138, 138, 147, 138, 143, 150, 129, 129, 129,
519 102, 102, 102, 103, 63, 103, 104, 104, 104, 61, 572 142, 142, 149, 142, 146, 145, 144, 141, 140, 139,
520 104, 104, 105, 105, 105, 105, 105, 105, 105, 105, 573 137, 136, 134, 147, 161, 161, 161, 161, 161, 161,
521 60, 59, 58, 56, 55, 54, 53, 52, 51, 49, 574 161, 161, 162, 133, 128, 127, 162, 162, 163, 163,
522 42, 40, 38, 37, 36, 35, 34, 33, 32, 30, 575 163, 163, 163, 163, 163, 163, 164, 164, 164, 164,
523 19, 18, 16, 11, 4, 3, 93, 93, 93, 93, 576 165, 126, 165, 166, 125, 124, 166, 123, 166, 166,
524 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 577 167, 120, 119, 167, 167, 167, 167, 168, 118, 168,
525 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 578
526 93, 93, 93, 93, 93, 93, 93, 93, 93, 93 579 168, 169, 169, 169, 169, 169, 169, 169, 169, 170,
580 170, 170, 170, 170, 170, 170, 170, 171, 117, 171,
581 172, 116, 172, 172, 111, 172, 172, 173, 173, 173,
582 173, 173, 173, 173, 173, 174, 174, 174, 174, 174,
583 174, 174, 174, 110, 109, 108, 107, 106, 105, 103,
584 102, 101, 99, 97, 96, 95, 94, 93, 92, 90,
585 88, 87, 86, 84, 83, 82, 81, 80, 79, 78,
586 76, 71, 70, 68, 65, 63, 62, 58, 52, 51,
587 49, 48, 47, 43, 40, 24, 23, 21, 15, 11,
588 8, 6, 3, 2, 160, 160, 160, 160, 160, 160,
589
590 160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
591 160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
592 160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
593 160, 160, 160, 160, 160, 160, 160, 160, 160, 160
527 } ; 594 } ;
528 595
529static yy_state_type yy_last_accepting_state; 596static yy_state_type yy_last_accepting_state;
@@ -540,6 +607,7 @@ int yy_flex_debug = 0;
540#define YY_MORE_ADJ 0 607#define YY_MORE_ADJ 0
541#define YY_RESTORE_YY_MORE_OFFSET 608#define YY_RESTORE_YY_MORE_OFFSET
542char *yytext; 609char *yytext;
610#line 1 "dtc-lexer.l"
543/* 611/*
544 * (C) Copyright David Gibson <dwg@au1.ibm.com>, IBM Corporation. 2005. 612 * (C) Copyright David Gibson <dwg@au1.ibm.com>, IBM Corporation. 2005.
545 * 613 *
@@ -561,6 +629,10 @@ char *yytext;
561 */ 629 */
562#define YY_NO_INPUT 1 630#define YY_NO_INPUT 1
563 631
632
633
634
635#line 38 "dtc-lexer.l"
564#include "dtc.h" 636#include "dtc.h"
565#include "srcpos.h" 637#include "srcpos.h"
566#include "dtc-parser.tab.h" 638#include "dtc-parser.tab.h"
@@ -588,6 +660,7 @@ static int dts_version = 1;
588 660
589static void push_input_file(const char *filename); 661static void push_input_file(const char *filename);
590static int pop_input_file(void); 662static int pop_input_file(void);
663#line 664 "dtc-lexer.lex.c"
591 664
592#define INITIAL 0 665#define INITIAL 0
593#define INCLUDE 1 666#define INCLUDE 1
@@ -670,7 +743,12 @@ static int input (void );
670 743
671/* Amount of stuff to slurp up with each read. */ 744/* Amount of stuff to slurp up with each read. */
672#ifndef YY_READ_BUF_SIZE 745#ifndef YY_READ_BUF_SIZE
746#ifdef __ia64__
747/* On IA-64, the buffer size is 16k, not 8k */
748#define YY_READ_BUF_SIZE 16384
749#else
673#define YY_READ_BUF_SIZE 8192 750#define YY_READ_BUF_SIZE 8192
751#endif /* __ia64__ */
674#endif 752#endif
675 753
676/* Copy whatever the last rule matched to the standard output. */ 754/* Copy whatever the last rule matched to the standard output. */
@@ -689,7 +767,7 @@ static int input (void );
689 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ 767 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
690 { \ 768 { \
691 int c = '*'; \ 769 int c = '*'; \
692 unsigned n; \ 770 size_t n; \
693 for ( n = 0; n < max_size && \ 771 for ( n = 0; n < max_size && \
694 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ 772 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
695 buf[n] = (char) c; \ 773 buf[n] = (char) c; \
@@ -761,6 +839,9 @@ extern int yylex (void);
761#endif 839#endif
762 840
763#define YY_RULE_SETUP \ 841#define YY_RULE_SETUP \
842 if ( yyleng > 0 ) \
843 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
844 (yytext[yyleng - 1] == '\n'); \
764 YY_USER_ACTION 845 YY_USER_ACTION
765 846
766/** The main scanner function which does all the work. 847/** The main scanner function which does all the work.
@@ -771,6 +852,10 @@ YY_DECL
771 register char *yy_cp, *yy_bp; 852 register char *yy_cp, *yy_bp;
772 register int yy_act; 853 register int yy_act;
773 854
855#line 67 "dtc-lexer.l"
856
857#line 858 "dtc-lexer.lex.c"
858
774 if ( !(yy_init) ) 859 if ( !(yy_init) )
775 { 860 {
776 (yy_init) = 1; 861 (yy_init) = 1;
@@ -810,6 +895,7 @@ YY_DECL
810 yy_bp = yy_cp; 895 yy_bp = yy_cp;
811 896
812 yy_current_state = (yy_start); 897 yy_current_state = (yy_start);
898 yy_current_state += YY_AT_BOL();
813yy_match: 899yy_match:
814 do 900 do
815 { 901 {
@@ -822,13 +908,13 @@ yy_match:
822 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) 908 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
823 { 909 {
824 yy_current_state = (int) yy_def[yy_current_state]; 910 yy_current_state = (int) yy_def[yy_current_state];
825 if ( yy_current_state >= 94 ) 911 if ( yy_current_state >= 161 )
826 yy_c = yy_meta[(unsigned int) yy_c]; 912 yy_c = yy_meta[(unsigned int) yy_c];
827 } 913 }
828 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; 914 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
829 ++yy_cp; 915 ++yy_cp;
830 } 916 }
831 while ( yy_current_state != 93 ); 917 while ( yy_current_state != 160 );
832 yy_cp = (yy_last_accepting_cpos); 918 yy_cp = (yy_last_accepting_cpos);
833 yy_current_state = (yy_last_accepting_state); 919 yy_current_state = (yy_last_accepting_state);
834 920
@@ -851,26 +937,54 @@ do_action: /* This label is used only to access EOF actions. */
851case 1: 937case 1:
852/* rule 1 can match eol */ 938/* rule 1 can match eol */
853YY_RULE_SETUP 939YY_RULE_SETUP
940#line 68 "dtc-lexer.l"
854{ 941{
855 char *name = strchr(yytext, '\"') + 1; 942 char *name = strchr(yytext, '\"') + 1;
856 yytext[yyleng-1] = '\0'; 943 yytext[yyleng-1] = '\0';
857 push_input_file(name); 944 push_input_file(name);
858 } 945 }
859 YY_BREAK 946 YY_BREAK
947case 2:
948/* rule 2 can match eol */
949YY_RULE_SETUP
950#line 74 "dtc-lexer.l"
951{
952 char *line, *tmp, *fn;
953 /* skip text before line # */
954 line = yytext;
955 while (!isdigit(*line))
956 line++;
957 /* skip digits in line # */
958 tmp = line;
959 while (!isspace(*tmp))
960 tmp++;
961 /* "NULL"-terminate line # */
962 *tmp = '\0';
963 /* start of filename */
964 fn = strchr(tmp + 1, '"') + 1;
965 /* strip trailing " from filename */
966 tmp = strchr(fn, '"');
967 *tmp = 0;
968 /* -1 since #line is the number of the next line */
969 srcpos_set_line(xstrdup(fn), atoi(line) - 1);
970 }
971 YY_BREAK
860case YY_STATE_EOF(INITIAL): 972case YY_STATE_EOF(INITIAL):
861case YY_STATE_EOF(INCLUDE): 973case YY_STATE_EOF(INCLUDE):
862case YY_STATE_EOF(BYTESTRING): 974case YY_STATE_EOF(BYTESTRING):
863case YY_STATE_EOF(PROPNODENAME): 975case YY_STATE_EOF(PROPNODENAME):
864case YY_STATE_EOF(V1): 976case YY_STATE_EOF(V1):
977#line 95 "dtc-lexer.l"
865{ 978{
866 if (!pop_input_file()) { 979 if (!pop_input_file()) {
867 yyterminate(); 980 yyterminate();
868 } 981 }
869 } 982 }
870 YY_BREAK 983 YY_BREAK
871case 2: 984case 3:
872/* rule 2 can match eol */ 985/* rule 3 can match eol */
873YY_RULE_SETUP 986YY_RULE_SETUP
987#line 101 "dtc-lexer.l"
874{ 988{
875 DPRINT("String: %s\n", yytext); 989 DPRINT("String: %s\n", yytext);
876 yylval.data = data_copy_escape_string(yytext+1, 990 yylval.data = data_copy_escape_string(yytext+1,
@@ -878,8 +992,9 @@ YY_RULE_SETUP
878 return DT_STRING; 992 return DT_STRING;
879 } 993 }
880 YY_BREAK 994 YY_BREAK
881case 3: 995case 4:
882YY_RULE_SETUP 996YY_RULE_SETUP
997#line 108 "dtc-lexer.l"
883{ 998{
884 DPRINT("Keyword: /dts-v1/\n"); 999 DPRINT("Keyword: /dts-v1/\n");
885 dts_version = 1; 1000 dts_version = 1;
@@ -887,16 +1002,47 @@ YY_RULE_SETUP
887 return DT_V1; 1002 return DT_V1;
888 } 1003 }
889 YY_BREAK 1004 YY_BREAK
890case 4: 1005case 5:
891YY_RULE_SETUP 1006YY_RULE_SETUP
1007#line 115 "dtc-lexer.l"
892{ 1008{
893 DPRINT("Keyword: /memreserve/\n"); 1009 DPRINT("Keyword: /memreserve/\n");
894 BEGIN_DEFAULT(); 1010 BEGIN_DEFAULT();
895 return DT_MEMRESERVE; 1011 return DT_MEMRESERVE;
896 } 1012 }
897 YY_BREAK 1013 YY_BREAK
898case 5: 1014case 6:
1015YY_RULE_SETUP
1016#line 121 "dtc-lexer.l"
1017{
1018 DPRINT("Keyword: /bits/\n");
1019 BEGIN_DEFAULT();
1020 return DT_BITS;
1021 }
1022 YY_BREAK
1023case 7:
899YY_RULE_SETUP 1024YY_RULE_SETUP
1025#line 127 "dtc-lexer.l"
1026{
1027 DPRINT("Keyword: /delete-property/\n");
1028 DPRINT("<PROPNODENAME>\n");
1029 BEGIN(PROPNODENAME);
1030 return DT_DEL_PROP;
1031 }
1032 YY_BREAK
1033case 8:
1034YY_RULE_SETUP
1035#line 134 "dtc-lexer.l"
1036{
1037 DPRINT("Keyword: /delete-node/\n");
1038 DPRINT("<PROPNODENAME>\n");
1039 BEGIN(PROPNODENAME);
1040 return DT_DEL_NODE;
1041 }
1042 YY_BREAK
1043case 9:
1044YY_RULE_SETUP
1045#line 141 "dtc-lexer.l"
900{ 1046{
901 DPRINT("Label: %s\n", yytext); 1047 DPRINT("Label: %s\n", yytext);
902 yylval.labelref = xstrdup(yytext); 1048 yylval.labelref = xstrdup(yytext);
@@ -904,24 +1050,38 @@ YY_RULE_SETUP
904 return DT_LABEL; 1050 return DT_LABEL;
905 } 1051 }
906 YY_BREAK 1052 YY_BREAK
907case 6: 1053case 10:
908YY_RULE_SETUP 1054YY_RULE_SETUP
1055#line 148 "dtc-lexer.l"
909{ 1056{
910 yylval.literal = xstrdup(yytext); 1057 yylval.literal = xstrdup(yytext);
911 DPRINT("Literal: '%s'\n", yylval.literal); 1058 DPRINT("Literal: '%s'\n", yylval.literal);
912 return DT_LITERAL; 1059 return DT_LITERAL;
913 } 1060 }
914 YY_BREAK 1061 YY_BREAK
915case 7: 1062case 11:
1063/* rule 11 can match eol */
1064YY_RULE_SETUP
1065#line 154 "dtc-lexer.l"
1066{
1067 yytext[yyleng-1] = '\0';
1068 yylval.literal = xstrdup(yytext+1);
1069 DPRINT("Character literal: %s\n", yylval.literal);
1070 return DT_CHAR_LITERAL;
1071 }
1072 YY_BREAK
1073case 12:
916YY_RULE_SETUP 1074YY_RULE_SETUP
1075#line 161 "dtc-lexer.l"
917{ /* label reference */ 1076{ /* label reference */
918 DPRINT("Ref: %s\n", yytext+1); 1077 DPRINT("Ref: %s\n", yytext+1);
919 yylval.labelref = xstrdup(yytext+1); 1078 yylval.labelref = xstrdup(yytext+1);
920 return DT_REF; 1079 return DT_REF;
921 } 1080 }
922 YY_BREAK 1081 YY_BREAK
923case 8: 1082case 13:
924YY_RULE_SETUP 1083YY_RULE_SETUP
1084#line 167 "dtc-lexer.l"
925{ /* new-style path reference */ 1085{ /* new-style path reference */
926 yytext[yyleng-1] = '\0'; 1086 yytext[yyleng-1] = '\0';
927 DPRINT("Ref: %s\n", yytext+2); 1087 DPRINT("Ref: %s\n", yytext+2);
@@ -929,55 +1089,104 @@ YY_RULE_SETUP
929 return DT_REF; 1089 return DT_REF;
930 } 1090 }
931 YY_BREAK 1091 YY_BREAK
932case 9: 1092case 14:
933YY_RULE_SETUP 1093YY_RULE_SETUP
1094#line 174 "dtc-lexer.l"
934{ 1095{
935 yylval.byte = strtol(yytext, NULL, 16); 1096 yylval.byte = strtol(yytext, NULL, 16);
936 DPRINT("Byte: %02x\n", (int)yylval.byte); 1097 DPRINT("Byte: %02x\n", (int)yylval.byte);
937 return DT_BYTE; 1098 return DT_BYTE;
938 } 1099 }
939 YY_BREAK 1100 YY_BREAK
940case 10: 1101case 15:
941YY_RULE_SETUP 1102YY_RULE_SETUP
1103#line 180 "dtc-lexer.l"
942{ 1104{
943 DPRINT("/BYTESTRING\n"); 1105 DPRINT("/BYTESTRING\n");
944 BEGIN_DEFAULT(); 1106 BEGIN_DEFAULT();
945 return ']'; 1107 return ']';
946 } 1108 }
947 YY_BREAK 1109 YY_BREAK
948case 11: 1110case 16:
949YY_RULE_SETUP 1111YY_RULE_SETUP
1112#line 186 "dtc-lexer.l"
950{ 1113{
951 DPRINT("PropNodeName: %s\n", yytext); 1114 DPRINT("PropNodeName: %s\n", yytext);
952 yylval.propnodename = xstrdup(yytext); 1115 yylval.propnodename = xstrdup((yytext[0] == '\\') ?
1116 yytext + 1 : yytext);
953 BEGIN_DEFAULT(); 1117 BEGIN_DEFAULT();
954 return DT_PROPNODENAME; 1118 return DT_PROPNODENAME;
955 } 1119 }
956 YY_BREAK 1120 YY_BREAK
957case 12: 1121case 17:
958YY_RULE_SETUP 1122YY_RULE_SETUP
1123#line 194 "dtc-lexer.l"
959{ 1124{
960 DPRINT("Binary Include\n"); 1125 DPRINT("Binary Include\n");
961 return DT_INCBIN; 1126 return DT_INCBIN;
962 } 1127 }
963 YY_BREAK 1128 YY_BREAK
964case 13: 1129case 18:
965/* rule 13 can match eol */ 1130/* rule 18 can match eol */
966YY_RULE_SETUP 1131YY_RULE_SETUP
1132#line 199 "dtc-lexer.l"
967/* eat whitespace */ 1133/* eat whitespace */
968 YY_BREAK 1134 YY_BREAK
969case 14: 1135case 19:
970/* rule 14 can match eol */ 1136/* rule 19 can match eol */
971YY_RULE_SETUP 1137YY_RULE_SETUP
1138#line 200 "dtc-lexer.l"
972/* eat C-style comments */ 1139/* eat C-style comments */
973 YY_BREAK 1140 YY_BREAK
974case 15: 1141case 20:
975/* rule 15 can match eol */ 1142/* rule 20 can match eol */
976YY_RULE_SETUP 1143YY_RULE_SETUP
1144#line 201 "dtc-lexer.l"
977/* eat C++-style comments */ 1145/* eat C++-style comments */
978 YY_BREAK 1146 YY_BREAK
979case 16: 1147case 21:
980YY_RULE_SETUP 1148YY_RULE_SETUP
1149#line 203 "dtc-lexer.l"
1150{ return DT_LSHIFT; };
1151 YY_BREAK
1152case 22:
1153YY_RULE_SETUP
1154#line 204 "dtc-lexer.l"
1155{ return DT_RSHIFT; };
1156 YY_BREAK
1157case 23:
1158YY_RULE_SETUP
1159#line 205 "dtc-lexer.l"
1160{ return DT_LE; };
1161 YY_BREAK
1162case 24:
1163YY_RULE_SETUP
1164#line 206 "dtc-lexer.l"
1165{ return DT_GE; };
1166 YY_BREAK
1167case 25:
1168YY_RULE_SETUP
1169#line 207 "dtc-lexer.l"
1170{ return DT_EQ; };
1171 YY_BREAK
1172case 26:
1173YY_RULE_SETUP
1174#line 208 "dtc-lexer.l"
1175{ return DT_NE; };
1176 YY_BREAK
1177case 27:
1178YY_RULE_SETUP
1179#line 209 "dtc-lexer.l"
1180{ return DT_AND; };
1181 YY_BREAK
1182case 28:
1183YY_RULE_SETUP
1184#line 210 "dtc-lexer.l"
1185{ return DT_OR; };
1186 YY_BREAK
1187case 29:
1188YY_RULE_SETUP
1189#line 212 "dtc-lexer.l"
981{ 1190{
982 DPRINT("Char: %c (\\x%02x)\n", yytext[0], 1191 DPRINT("Char: %c (\\x%02x)\n", yytext[0],
983 (unsigned)yytext[0]); 1192 (unsigned)yytext[0]);
@@ -993,10 +1202,12 @@ YY_RULE_SETUP
993 return yytext[0]; 1202 return yytext[0];
994 } 1203 }
995 YY_BREAK 1204 YY_BREAK
996case 17: 1205case 30:
997YY_RULE_SETUP 1206YY_RULE_SETUP
1207#line 227 "dtc-lexer.l"
998ECHO; 1208ECHO;
999 YY_BREAK 1209 YY_BREAK
1210#line 1211 "dtc-lexer.lex.c"
1000 1211
1001 case YY_END_OF_BUFFER: 1212 case YY_END_OF_BUFFER:
1002 { 1213 {
@@ -1275,6 +1486,7 @@ static int yy_get_next_buffer (void)
1275 register char *yy_cp; 1486 register char *yy_cp;
1276 1487
1277 yy_current_state = (yy_start); 1488 yy_current_state = (yy_start);
1489 yy_current_state += YY_AT_BOL();
1278 1490
1279 for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) 1491 for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
1280 { 1492 {
@@ -1287,7 +1499,7 @@ static int yy_get_next_buffer (void)
1287 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) 1499 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1288 { 1500 {
1289 yy_current_state = (int) yy_def[yy_current_state]; 1501 yy_current_state = (int) yy_def[yy_current_state];
1290 if ( yy_current_state >= 94 ) 1502 if ( yy_current_state >= 161 )
1291 yy_c = yy_meta[(unsigned int) yy_c]; 1503 yy_c = yy_meta[(unsigned int) yy_c];
1292 } 1504 }
1293 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; 1505 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
@@ -1315,11 +1527,11 @@ static int yy_get_next_buffer (void)
1315 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) 1527 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1316 { 1528 {
1317 yy_current_state = (int) yy_def[yy_current_state]; 1529 yy_current_state = (int) yy_def[yy_current_state];
1318 if ( yy_current_state >= 94 ) 1530 if ( yy_current_state >= 161 )
1319 yy_c = yy_meta[(unsigned int) yy_c]; 1531 yy_c = yy_meta[(unsigned int) yy_c];
1320 } 1532 }
1321 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; 1533 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1322 yy_is_jam = (yy_current_state == 93); 1534 yy_is_jam = (yy_current_state == 160);
1323 1535
1324 return yy_is_jam ? 0 : yy_current_state; 1536 return yy_is_jam ? 0 : yy_current_state;
1325} 1537}
@@ -1394,6 +1606,8 @@ static int yy_get_next_buffer (void)
1394 *(yy_c_buf_p) = '\0'; /* preserve yytext */ 1606 *(yy_c_buf_p) = '\0'; /* preserve yytext */
1395 (yy_hold_char) = *++(yy_c_buf_p); 1607 (yy_hold_char) = *++(yy_c_buf_p);
1396 1608
1609 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
1610
1397 return c; 1611 return c;
1398} 1612}
1399#endif /* ifndef YY_NO_INPUT */ 1613#endif /* ifndef YY_NO_INPUT */
@@ -1712,8 +1926,8 @@ YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
1712 1926
1713/** Setup the input buffer state to scan the given bytes. The next call to yylex() will 1927/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
1714 * scan from a @e copy of @a bytes. 1928 * scan from a @e copy of @a bytes.
1715 * @param bytes the byte buffer to scan 1929 * @param yybytes the byte buffer to scan
1716 * @param len the number of bytes in the buffer pointed to by @a bytes. 1930 * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
1717 * 1931 *
1718 * @return the newly allocated buffer state object. 1932 * @return the newly allocated buffer state object.
1719 */ 1933 */
@@ -1952,6 +2166,10 @@ void yyfree (void * ptr )
1952 2166
1953#define YYTABLES_NAME "yytables" 2167#define YYTABLES_NAME "yytables"
1954 2168
2169#line 227 "dtc-lexer.l"
2170
2171
2172
1955static void push_input_file(const char *filename) 2173static void push_input_file(const char *filename)
1956{ 2174{
1957 assert(filename); 2175 assert(filename);
@@ -1963,6 +2181,7 @@ static void push_input_file(const char *filename)
1963 yypush_buffer_state(yy_create_buffer(yyin,YY_BUF_SIZE)); 2181 yypush_buffer_state(yy_create_buffer(yyin,YY_BUF_SIZE));
1964} 2182}
1965 2183
2184
1966static int pop_input_file(void) 2185static int pop_input_file(void)
1967{ 2186{
1968 if (srcfile_pop() == 0) 2187 if (srcfile_pop() == 0)