diff options
| author | Jan Beulich <JBeulich@suse.com> | 2015-01-20 07:52:48 -0500 |
|---|---|---|
| committer | Michal Marek <mmarek@suse.cz> | 2015-06-11 08:25:56 -0400 |
| commit | 2e0d737fc76f8d31e2265b3f0392749f75efd735 (patch) | |
| tree | 3be9c2967960e2fedd52237af43dd82088c0be5a /scripts | |
| parent | fa75a727c01963088299a7fa691e71ed90018a7d (diff) | |
kconfig: don't silently ignore unhandled characters
At the very least we should tell people that what they wrote is not
what the utility understands.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/kconfig/zconf.l | 7 | ||||
| -rw-r--r-- | scripts/kconfig/zconf.lex.c_shipped | 195 |
2 files changed, 113 insertions, 89 deletions
diff --git a/scripts/kconfig/zconf.l b/scripts/kconfig/zconf.l index 6c62d93b4ffb..16741396d264 100644 --- a/scripts/kconfig/zconf.l +++ b/scripts/kconfig/zconf.l | |||
| @@ -141,7 +141,12 @@ n [A-Za-z0-9_] | |||
| 141 | } | 141 | } |
| 142 | #.* /* comment */ | 142 | #.* /* comment */ |
| 143 | \\\n current_file->lineno++; | 143 | \\\n current_file->lineno++; |
| 144 | . | 144 | [[:blank:]]+ |
| 145 | . { | ||
| 146 | fprintf(stderr, | ||
| 147 | "%s:%d:warning: ignoring unsupported character '%c'\n", | ||
| 148 | zconf_curname(), zconf_lineno(), *yytext); | ||
| 149 | } | ||
| 145 | <<EOF>> { | 150 | <<EOF>> { |
| 146 | BEGIN(INITIAL); | 151 | BEGIN(INITIAL); |
| 147 | } | 152 | } |
diff --git a/scripts/kconfig/zconf.lex.c_shipped b/scripts/kconfig/zconf.lex.c_shipped index 349a7f24315b..746691ed010e 100644 --- a/scripts/kconfig/zconf.lex.c_shipped +++ b/scripts/kconfig/zconf.lex.c_shipped | |||
| @@ -414,14 +414,14 @@ static yyconst flex_int16_t yy_nxt[][17] = | |||
| 414 | }, | 414 | }, |
| 415 | 415 | ||
| 416 | { | 416 | { |
| 417 | 11, 26, 26, 27, 28, 29, 30, 31, 29, 32, | 417 | 11, 26, 27, 28, 29, 30, 31, 32, 30, 33, |
| 418 | 33, 34, 35, 35, 36, 37, 38 | 418 | 34, 35, 36, 36, 37, 38, 39 |
| 419 | 419 | ||
| 420 | }, | 420 | }, |
| 421 | 421 | ||
| 422 | { | 422 | { |
| 423 | 11, 26, 26, 27, 28, 29, 30, 31, 29, 32, | 423 | 11, 26, 27, 28, 29, 30, 31, 32, 30, 33, |
| 424 | 33, 34, 35, 35, 36, 37, 38 | 424 | 34, 35, 36, 36, 37, 38, 39 |
| 425 | }, | 425 | }, |
| 426 | 426 | ||
| 427 | { | 427 | { |
| @@ -435,7 +435,7 @@ static yyconst flex_int16_t yy_nxt[][17] = | |||
| 435 | }, | 435 | }, |
| 436 | 436 | ||
| 437 | { | 437 | { |
| 438 | 11, -13, 39, 40, -13, -13, 41, -13, -13, -13, | 438 | 11, -13, 40, 41, -13, -13, 42, -13, -13, -13, |
| 439 | -13, -13, -13, -13, -13, -13, -13 | 439 | -13, -13, -13, -13, -13, -13, -13 |
| 440 | }, | 440 | }, |
| 441 | 441 | ||
| @@ -446,8 +446,8 @@ static yyconst flex_int16_t yy_nxt[][17] = | |||
| 446 | }, | 446 | }, |
| 447 | 447 | ||
| 448 | { | 448 | { |
| 449 | 11, 42, 42, 43, 42, 42, 42, 42, 42, 42, | 449 | 11, 43, 43, 44, 43, 43, 43, 43, 43, 43, |
| 450 | 42, 42, 42, 42, 42, 42, 42 | 450 | 43, 43, 43, 43, 43, 43, 43 |
| 451 | }, | 451 | }, |
| 452 | 452 | ||
| 453 | { | 453 | { |
| @@ -462,28 +462,28 @@ static yyconst flex_int16_t yy_nxt[][17] = | |||
| 462 | 462 | ||
| 463 | { | 463 | { |
| 464 | 11, -18, -18, -18, -18, -18, -18, -18, -18, -18, | 464 | 11, -18, -18, -18, -18, -18, -18, -18, -18, -18, |
| 465 | -18, -18, -18, 44, -18, -18, -18 | 465 | -18, -18, -18, 45, -18, -18, -18 |
| 466 | }, | 466 | }, |
| 467 | 467 | ||
| 468 | { | 468 | { |
| 469 | 11, 45, 45, -19, 45, 45, 45, 45, 45, 45, | 469 | 11, 46, 46, -19, 46, 46, 46, 46, 46, 46, |
| 470 | 45, 45, 45, 45, 45, 45, 45 | 470 | 46, 46, 46, 46, 46, 46, 46 |
| 471 | 471 | ||
| 472 | }, | 472 | }, |
| 473 | 473 | ||
| 474 | { | 474 | { |
| 475 | 11, -20, 46, 47, -20, -20, -20, -20, -20, -20, | 475 | 11, -20, 47, 48, -20, -20, -20, -20, -20, -20, |
| 476 | -20, -20, -20, -20, -20, -20, -20 | 476 | -20, -20, -20, -20, -20, -20, -20 |
| 477 | }, | 477 | }, |
| 478 | 478 | ||
| 479 | { | 479 | { |
| 480 | 11, 48, -21, -21, 48, 48, 48, 48, 48, 48, | 480 | 11, 49, -21, -21, 49, 49, 49, 49, 49, 49, |
| 481 | 48, 48, 48, 48, 48, 48, 48 | 481 | 49, 49, 49, 49, 49, 49, 49 |
| 482 | }, | 482 | }, |
| 483 | 483 | ||
| 484 | { | 484 | { |
| 485 | 11, 49, 49, 50, 49, -22, 49, 49, -22, 49, | 485 | 11, 50, 50, 51, 50, -22, 50, 50, -22, 50, |
| 486 | 49, 49, 49, 49, 49, -22, 49 | 486 | 50, 50, 50, 50, 50, -22, 50 |
| 487 | }, | 487 | }, |
| 488 | 488 | ||
| 489 | { | 489 | { |
| @@ -498,8 +498,8 @@ static yyconst flex_int16_t yy_nxt[][17] = | |||
| 498 | }, | 498 | }, |
| 499 | 499 | ||
| 500 | { | 500 | { |
| 501 | 11, 51, 51, 52, 51, 51, 51, 51, 51, 51, | 501 | 11, 52, 52, 53, 52, 52, 52, 52, 52, 52, |
| 502 | 51, 51, 51, 51, 51, 51, 51 | 502 | 52, 52, 52, 52, 52, 52, 52 |
| 503 | }, | 503 | }, |
| 504 | 504 | ||
| 505 | { | 505 | { |
| @@ -508,33 +508,33 @@ static yyconst flex_int16_t yy_nxt[][17] = | |||
| 508 | }, | 508 | }, |
| 509 | 509 | ||
| 510 | { | 510 | { |
| 511 | 11, -27, -27, -27, -27, -27, -27, -27, -27, -27, | 511 | 11, -27, 54, -27, -27, -27, -27, -27, -27, -27, |
| 512 | -27, -27, -27, -27, -27, -27, -27 | 512 | -27, -27, -27, -27, -27, -27, -27 |
| 513 | }, | 513 | }, |
| 514 | 514 | ||
| 515 | { | 515 | { |
| 516 | 11, -28, -28, -28, -28, -28, -28, -28, -28, -28, | 516 | 11, -28, -28, -28, -28, -28, -28, -28, -28, -28, |
| 517 | -28, -28, -28, -28, 53, -28, -28 | 517 | -28, -28, -28, -28, -28, -28, -28 |
| 518 | }, | 518 | }, |
| 519 | 519 | ||
| 520 | { | 520 | { |
| 521 | 11, -29, -29, -29, -29, -29, -29, -29, -29, -29, | 521 | 11, -29, -29, -29, -29, -29, -29, -29, -29, -29, |
| 522 | -29, -29, -29, -29, -29, -29, -29 | 522 | -29, -29, -29, -29, 55, -29, -29 |
| 523 | 523 | ||
| 524 | }, | 524 | }, |
| 525 | 525 | ||
| 526 | { | 526 | { |
| 527 | 11, 54, 54, -30, 54, 54, 54, 54, 54, 54, | 527 | 11, -30, -30, -30, -30, -30, -30, -30, -30, -30, |
| 528 | 54, 54, 54, 54, 54, 54, 54 | 528 | -30, -30, -30, -30, -30, -30, -30 |
| 529 | }, | 529 | }, |
| 530 | 530 | ||
| 531 | { | 531 | { |
| 532 | 11, -31, -31, -31, -31, -31, -31, 55, -31, -31, | 532 | 11, 56, 56, -31, 56, 56, 56, 56, 56, 56, |
| 533 | -31, -31, -31, -31, -31, -31, -31 | 533 | 56, 56, 56, 56, 56, 56, 56 |
| 534 | }, | 534 | }, |
| 535 | 535 | ||
| 536 | { | 536 | { |
| 537 | 11, -32, -32, -32, -32, -32, -32, -32, -32, -32, | 537 | 11, -32, -32, -32, -32, -32, -32, 57, -32, -32, |
| 538 | -32, -32, -32, -32, -32, -32, -32 | 538 | -32, -32, -32, -32, -32, -32, -32 |
| 539 | }, | 539 | }, |
| 540 | 540 | ||
| @@ -545,100 +545,100 @@ static yyconst flex_int16_t yy_nxt[][17] = | |||
| 545 | 545 | ||
| 546 | { | 546 | { |
| 547 | 11, -34, -34, -34, -34, -34, -34, -34, -34, -34, | 547 | 11, -34, -34, -34, -34, -34, -34, -34, -34, -34, |
| 548 | -34, 56, 57, 57, -34, -34, -34 | 548 | -34, -34, -34, -34, -34, -34, -34 |
| 549 | 549 | ||
| 550 | }, | 550 | }, |
| 551 | 551 | ||
| 552 | { | 552 | { |
| 553 | 11, -35, -35, -35, -35, -35, -35, -35, -35, -35, | 553 | 11, -35, -35, -35, -35, -35, -35, -35, -35, -35, |
| 554 | -35, 57, 57, 57, -35, -35, -35 | 554 | -35, 58, 59, 59, -35, -35, -35 |
| 555 | }, | 555 | }, |
| 556 | 556 | ||
| 557 | { | 557 | { |
| 558 | 11, -36, -36, -36, -36, -36, -36, -36, -36, -36, | 558 | 11, -36, -36, -36, -36, -36, -36, -36, -36, -36, |
| 559 | -36, -36, -36, -36, -36, -36, -36 | 559 | -36, 59, 59, 59, -36, -36, -36 |
| 560 | }, | 560 | }, |
| 561 | 561 | ||
| 562 | { | 562 | { |
| 563 | 11, -37, -37, 58, -37, -37, -37, -37, -37, -37, | 563 | 11, -37, -37, -37, -37, -37, -37, -37, -37, -37, |
| 564 | -37, -37, -37, -37, -37, -37, -37 | 564 | -37, -37, -37, -37, -37, -37, -37 |
| 565 | }, | 565 | }, |
| 566 | 566 | ||
| 567 | { | 567 | { |
| 568 | 11, -38, -38, -38, -38, -38, -38, -38, -38, -38, | 568 | 11, -38, -38, 60, -38, -38, -38, -38, -38, -38, |
| 569 | -38, -38, -38, -38, -38, -38, 59 | 569 | -38, -38, -38, -38, -38, -38, -38 |
| 570 | }, | 570 | }, |
| 571 | 571 | ||
| 572 | { | 572 | { |
| 573 | 11, -39, 39, 40, -39, -39, 41, -39, -39, -39, | 573 | 11, -39, -39, -39, -39, -39, -39, -39, -39, -39, |
| 574 | -39, -39, -39, -39, -39, -39, -39 | 574 | -39, -39, -39, -39, -39, -39, 61 |
| 575 | 575 | ||
| 576 | }, | 576 | }, |
| 577 | 577 | ||
| 578 | { | 578 | { |
| 579 | 11, -40, -40, -40, -40, -40, -40, -40, -40, -40, | 579 | 11, -40, 40, 41, -40, -40, 42, -40, -40, -40, |
| 580 | -40, -40, -40, -40, -40, -40, -40 | 580 | -40, -40, -40, -40, -40, -40, -40 |
| 581 | }, | 581 | }, |
| 582 | 582 | ||
| 583 | { | 583 | { |
| 584 | 11, 42, 42, 43, 42, 42, 42, 42, 42, 42, | 584 | 11, -41, -41, -41, -41, -41, -41, -41, -41, -41, |
| 585 | 42, 42, 42, 42, 42, 42, 42 | 585 | -41, -41, -41, -41, -41, -41, -41 |
| 586 | }, | 586 | }, |
| 587 | 587 | ||
| 588 | { | 588 | { |
| 589 | 11, 42, 42, 43, 42, 42, 42, 42, 42, 42, | 589 | 11, 43, 43, 44, 43, 43, 43, 43, 43, 43, |
| 590 | 42, 42, 42, 42, 42, 42, 42 | 590 | 43, 43, 43, 43, 43, 43, 43 |
| 591 | }, | 591 | }, |
| 592 | 592 | ||
| 593 | { | 593 | { |
| 594 | 11, -43, -43, -43, -43, -43, -43, -43, -43, -43, | 594 | 11, 43, 43, 44, 43, 43, 43, 43, 43, 43, |
| 595 | -43, -43, -43, -43, -43, -43, -43 | 595 | 43, 43, 43, 43, 43, 43, 43 |
| 596 | }, | 596 | }, |
| 597 | 597 | ||
| 598 | { | 598 | { |
| 599 | 11, -44, -44, -44, -44, -44, -44, -44, -44, -44, | 599 | 11, -44, -44, -44, -44, -44, -44, -44, -44, -44, |
| 600 | -44, -44, -44, 44, -44, -44, -44 | 600 | -44, -44, -44, -44, -44, -44, -44 |
| 601 | 601 | ||
| 602 | }, | 602 | }, |
| 603 | 603 | ||
| 604 | { | 604 | { |
| 605 | 11, 45, 45, -45, 45, 45, 45, 45, 45, 45, | 605 | 11, -45, -45, -45, -45, -45, -45, -45, -45, -45, |
| 606 | 45, 45, 45, 45, 45, 45, 45 | 606 | -45, -45, -45, 45, -45, -45, -45 |
| 607 | }, | 607 | }, |
| 608 | 608 | ||
| 609 | { | 609 | { |
| 610 | 11, -46, 46, 47, -46, -46, -46, -46, -46, -46, | 610 | 11, 46, 46, -46, 46, 46, 46, 46, 46, 46, |
| 611 | -46, -46, -46, -46, -46, -46, -46 | 611 | 46, 46, 46, 46, 46, 46, 46 |
| 612 | }, | 612 | }, |
| 613 | 613 | ||
| 614 | { | 614 | { |
| 615 | 11, 48, -47, -47, 48, 48, 48, 48, 48, 48, | 615 | 11, -47, 47, 48, -47, -47, -47, -47, -47, -47, |
| 616 | 48, 48, 48, 48, 48, 48, 48 | 616 | -47, -47, -47, -47, -47, -47, -47 |
| 617 | }, | 617 | }, |
| 618 | 618 | ||
| 619 | { | 619 | { |
| 620 | 11, -48, -48, -48, -48, -48, -48, -48, -48, -48, | 620 | 11, 49, -48, -48, 49, 49, 49, 49, 49, 49, |
| 621 | -48, -48, -48, -48, -48, -48, -48 | 621 | 49, 49, 49, 49, 49, 49, 49 |
| 622 | }, | 622 | }, |
| 623 | 623 | ||
| 624 | { | 624 | { |
| 625 | 11, 49, 49, 50, 49, -49, 49, 49, -49, 49, | 625 | 11, -49, -49, -49, -49, -49, -49, -49, -49, -49, |
| 626 | 49, 49, 49, 49, 49, -49, 49 | 626 | -49, -49, -49, -49, -49, -49, -49 |
| 627 | 627 | ||
| 628 | }, | 628 | }, |
| 629 | 629 | ||
| 630 | { | 630 | { |
| 631 | 11, -50, -50, -50, -50, -50, -50, -50, -50, -50, | 631 | 11, 50, 50, 51, 50, -50, 50, 50, -50, 50, |
| 632 | -50, -50, -50, -50, -50, -50, -50 | 632 | 50, 50, 50, 50, 50, -50, 50 |
| 633 | }, | 633 | }, |
| 634 | 634 | ||
| 635 | { | 635 | { |
| 636 | 11, -51, -51, 52, -51, -51, -51, -51, -51, -51, | 636 | 11, -51, -51, -51, -51, -51, -51, -51, -51, -51, |
| 637 | -51, -51, -51, -51, -51, -51, -51 | 637 | -51, -51, -51, -51, -51, -51, -51 |
| 638 | }, | 638 | }, |
| 639 | 639 | ||
| 640 | { | 640 | { |
| 641 | 11, -52, -52, -52, -52, -52, -52, -52, -52, -52, | 641 | 11, -52, -52, 53, -52, -52, -52, -52, -52, -52, |
| 642 | -52, -52, -52, -52, -52, -52, -52 | 642 | -52, -52, -52, -52, -52, -52, -52 |
| 643 | }, | 643 | }, |
| 644 | 644 | ||
| @@ -648,8 +648,8 @@ static yyconst flex_int16_t yy_nxt[][17] = | |||
| 648 | }, | 648 | }, |
| 649 | 649 | ||
| 650 | { | 650 | { |
| 651 | 11, 54, 54, -54, 54, 54, 54, 54, 54, 54, | 651 | 11, -54, 54, -54, -54, -54, -54, -54, -54, -54, |
| 652 | 54, 54, 54, 54, 54, 54, 54 | 652 | -54, -54, -54, -54, -54, -54, -54 |
| 653 | 653 | ||
| 654 | }, | 654 | }, |
| 655 | 655 | ||
| @@ -659,29 +659,39 @@ static yyconst flex_int16_t yy_nxt[][17] = | |||
| 659 | }, | 659 | }, |
| 660 | 660 | ||
| 661 | { | 661 | { |
| 662 | 11, -56, -56, -56, -56, -56, -56, -56, -56, -56, | 662 | 11, 56, 56, -56, 56, 56, 56, 56, 56, 56, |
| 663 | -56, 60, 57, 57, -56, -56, -56 | 663 | 56, 56, 56, 56, 56, 56, 56 |
| 664 | }, | 664 | }, |
| 665 | 665 | ||
| 666 | { | 666 | { |
| 667 | 11, -57, -57, -57, -57, -57, -57, -57, -57, -57, | 667 | 11, -57, -57, -57, -57, -57, -57, -57, -57, -57, |
| 668 | -57, 57, 57, 57, -57, -57, -57 | 668 | -57, -57, -57, -57, -57, -57, -57 |
| 669 | }, | 669 | }, |
| 670 | 670 | ||
| 671 | { | 671 | { |
| 672 | 11, -58, -58, -58, -58, -58, -58, -58, -58, -58, | 672 | 11, -58, -58, -58, -58, -58, -58, -58, -58, -58, |
| 673 | -58, -58, -58, -58, -58, -58, -58 | 673 | -58, 62, 59, 59, -58, -58, -58 |
| 674 | }, | 674 | }, |
| 675 | 675 | ||
| 676 | { | 676 | { |
| 677 | 11, -59, -59, -59, -59, -59, -59, -59, -59, -59, | 677 | 11, -59, -59, -59, -59, -59, -59, -59, -59, -59, |
| 678 | -59, -59, -59, -59, -59, -59, -59 | 678 | -59, 59, 59, 59, -59, -59, -59 |
| 679 | 679 | ||
| 680 | }, | 680 | }, |
| 681 | 681 | ||
| 682 | { | 682 | { |
| 683 | 11, -60, -60, -60, -60, -60, -60, -60, -60, -60, | 683 | 11, -60, -60, -60, -60, -60, -60, -60, -60, -60, |
| 684 | -60, 57, 57, 57, -60, -60, -60 | 684 | -60, -60, -60, -60, -60, -60, -60 |
| 685 | }, | ||
| 686 | |||
| 687 | { | ||
| 688 | 11, -61, -61, -61, -61, -61, -61, -61, -61, -61, | ||
| 689 | -61, -61, -61, -61, -61, -61, -61 | ||
| 690 | }, | ||
| 691 | |||
| 692 | { | ||
| 693 | 11, -62, -62, -62, -62, -62, -62, -62, -62, -62, | ||
| 694 | -62, 59, 59, 59, -62, -62, -62 | ||
| 685 | }, | 695 | }, |
| 686 | 696 | ||
| 687 | } ; | 697 | } ; |
| @@ -701,8 +711,8 @@ static void yy_fatal_error (yyconst char msg[] ); | |||
| 701 | *yy_cp = '\0'; \ | 711 | *yy_cp = '\0'; \ |
| 702 | (yy_c_buf_p) = yy_cp; | 712 | (yy_c_buf_p) = yy_cp; |
| 703 | 713 | ||
| 704 | #define YY_NUM_RULES 33 | 714 | #define YY_NUM_RULES 34 |
| 705 | #define YY_END_OF_BUFFER 34 | 715 | #define YY_END_OF_BUFFER 35 |
| 706 | /* This struct is not used in this scanner, | 716 | /* This struct is not used in this scanner, |
| 707 | but its presence is necessary. */ | 717 | but its presence is necessary. */ |
| 708 | struct yy_trans_info | 718 | struct yy_trans_info |
| @@ -710,14 +720,15 @@ struct yy_trans_info | |||
| 710 | flex_int32_t yy_verify; | 720 | flex_int32_t yy_verify; |
| 711 | flex_int32_t yy_nxt; | 721 | flex_int32_t yy_nxt; |
| 712 | }; | 722 | }; |
| 713 | static yyconst flex_int16_t yy_accept[61] = | 723 | static yyconst flex_int16_t yy_accept[63] = |
| 714 | { 0, | 724 | { 0, |
| 715 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | 725 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 716 | 34, 5, 4, 2, 3, 7, 8, 6, 32, 29, | 726 | 35, 5, 4, 2, 3, 7, 8, 6, 33, 30, |
| 717 | 31, 24, 28, 27, 26, 22, 17, 13, 16, 20, | 727 | 32, 25, 29, 28, 27, 23, 22, 17, 13, 16, |
| 718 | 22, 11, 12, 19, 19, 14, 22, 22, 4, 2, | 728 | 20, 23, 11, 12, 19, 19, 14, 23, 23, 4, |
| 719 | 3, 3, 1, 6, 32, 29, 31, 30, 24, 23, | 729 | 2, 3, 3, 1, 6, 33, 30, 32, 31, 25, |
| 720 | 26, 25, 15, 20, 9, 19, 19, 21, 10, 18 | 730 | 24, 27, 26, 22, 15, 20, 9, 19, 19, 21, |
| 731 | 10, 18 | ||
| 721 | } ; | 732 | } ; |
| 722 | 733 | ||
| 723 | static yyconst flex_int32_t yy_ec[256] = | 734 | static yyconst flex_int32_t yy_ec[256] = |
| @@ -920,7 +931,7 @@ static int input (void ); | |||
| 920 | /* This used to be an fputs(), but since the string might contain NUL's, | 931 | /* This used to be an fputs(), but since the string might contain NUL's, |
| 921 | * we now use fwrite(). | 932 | * we now use fwrite(). |
| 922 | */ | 933 | */ |
| 923 | #define ECHO do { if (fwrite( zconftext, zconfleng, 1, zconfout )) {} } while (0) | 934 | #define ECHO fwrite( zconftext, zconfleng, 1, zconfout ) |
| 924 | #endif | 935 | #endif |
| 925 | 936 | ||
| 926 | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, | 937 | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, |
| @@ -1183,14 +1194,22 @@ case 22: | |||
| 1183 | YY_RULE_SETUP | 1194 | YY_RULE_SETUP |
| 1184 | 1195 | ||
| 1185 | YY_BREAK | 1196 | YY_BREAK |
| 1197 | case 23: | ||
| 1198 | YY_RULE_SETUP | ||
| 1199 | { | ||
| 1200 | fprintf(stderr, | ||
| 1201 | "%s:%d:warning: ignoring unsupported character '%c'\n", | ||
| 1202 | zconf_curname(), zconf_lineno(), *zconftext); | ||
| 1203 | } | ||
| 1204 | YY_BREAK | ||
| 1186 | case YY_STATE_EOF(PARAM): | 1205 | case YY_STATE_EOF(PARAM): |
| 1187 | { | 1206 | { |
| 1188 | BEGIN(INITIAL); | 1207 | BEGIN(INITIAL); |
| 1189 | } | 1208 | } |
| 1190 | YY_BREAK | 1209 | YY_BREAK |
| 1191 | 1210 | ||
| 1192 | case 23: | 1211 | case 24: |
| 1193 | /* rule 23 can match eol */ | 1212 | /* rule 24 can match eol */ |
| 1194 | *yy_cp = (yy_hold_char); /* undo effects of setting up zconftext */ | 1213 | *yy_cp = (yy_hold_char); /* undo effects of setting up zconftext */ |
| 1195 | (yy_c_buf_p) = yy_cp -= 1; | 1214 | (yy_c_buf_p) = yy_cp -= 1; |
| 1196 | YY_DO_BEFORE_ACTION; /* set up zconftext again */ | 1215 | YY_DO_BEFORE_ACTION; /* set up zconftext again */ |
| @@ -1201,14 +1220,14 @@ YY_RULE_SETUP | |||
| 1201 | return T_WORD_QUOTE; | 1220 | return T_WORD_QUOTE; |
| 1202 | } | 1221 | } |
| 1203 | YY_BREAK | 1222 | YY_BREAK |
| 1204 | case 24: | 1223 | case 25: |
| 1205 | YY_RULE_SETUP | 1224 | YY_RULE_SETUP |
| 1206 | { | 1225 | { |
| 1207 | append_string(zconftext, zconfleng); | 1226 | append_string(zconftext, zconfleng); |
| 1208 | } | 1227 | } |
| 1209 | YY_BREAK | 1228 | YY_BREAK |
| 1210 | case 25: | 1229 | case 26: |
| 1211 | /* rule 25 can match eol */ | 1230 | /* rule 26 can match eol */ |
| 1212 | *yy_cp = (yy_hold_char); /* undo effects of setting up zconftext */ | 1231 | *yy_cp = (yy_hold_char); /* undo effects of setting up zconftext */ |
| 1213 | (yy_c_buf_p) = yy_cp -= 1; | 1232 | (yy_c_buf_p) = yy_cp -= 1; |
| 1214 | YY_DO_BEFORE_ACTION; /* set up zconftext again */ | 1233 | YY_DO_BEFORE_ACTION; /* set up zconftext again */ |
| @@ -1219,13 +1238,13 @@ YY_RULE_SETUP | |||
| 1219 | return T_WORD_QUOTE; | 1238 | return T_WORD_QUOTE; |
| 1220 | } | 1239 | } |
| 1221 | YY_BREAK | 1240 | YY_BREAK |
| 1222 | case 26: | 1241 | case 27: |
| 1223 | YY_RULE_SETUP | 1242 | YY_RULE_SETUP |
| 1224 | { | 1243 | { |
| 1225 | append_string(zconftext + 1, zconfleng - 1); | 1244 | append_string(zconftext + 1, zconfleng - 1); |
| 1226 | } | 1245 | } |
| 1227 | YY_BREAK | 1246 | YY_BREAK |
| 1228 | case 27: | 1247 | case 28: |
| 1229 | YY_RULE_SETUP | 1248 | YY_RULE_SETUP |
| 1230 | { | 1249 | { |
| 1231 | if (str == zconftext[0]) { | 1250 | if (str == zconftext[0]) { |
| @@ -1236,8 +1255,8 @@ YY_RULE_SETUP | |||
| 1236 | append_string(zconftext, 1); | 1255 | append_string(zconftext, 1); |
| 1237 | } | 1256 | } |
| 1238 | YY_BREAK | 1257 | YY_BREAK |
| 1239 | case 28: | 1258 | case 29: |
| 1240 | /* rule 28 can match eol */ | 1259 | /* rule 29 can match eol */ |
| 1241 | YY_RULE_SETUP | 1260 | YY_RULE_SETUP |
| 1242 | { | 1261 | { |
| 1243 | printf("%s:%d:warning: multi-line strings not supported\n", zconf_curname(), zconf_lineno()); | 1262 | printf("%s:%d:warning: multi-line strings not supported\n", zconf_curname(), zconf_lineno()); |
| @@ -1252,7 +1271,7 @@ case YY_STATE_EOF(STRING): | |||
| 1252 | } | 1271 | } |
| 1253 | YY_BREAK | 1272 | YY_BREAK |
| 1254 | 1273 | ||
| 1255 | case 29: | 1274 | case 30: |
| 1256 | YY_RULE_SETUP | 1275 | YY_RULE_SETUP |
| 1257 | { | 1276 | { |
| 1258 | ts = 0; | 1277 | ts = 0; |
| @@ -1277,8 +1296,8 @@ YY_RULE_SETUP | |||
| 1277 | } | 1296 | } |
| 1278 | } | 1297 | } |
| 1279 | YY_BREAK | 1298 | YY_BREAK |
| 1280 | case 30: | 1299 | case 31: |
| 1281 | /* rule 30 can match eol */ | 1300 | /* rule 31 can match eol */ |
| 1282 | *yy_cp = (yy_hold_char); /* undo effects of setting up zconftext */ | 1301 | *yy_cp = (yy_hold_char); /* undo effects of setting up zconftext */ |
| 1283 | (yy_c_buf_p) = yy_cp -= 1; | 1302 | (yy_c_buf_p) = yy_cp -= 1; |
| 1284 | YY_DO_BEFORE_ACTION; /* set up zconftext again */ | 1303 | YY_DO_BEFORE_ACTION; /* set up zconftext again */ |
| @@ -1289,15 +1308,15 @@ YY_RULE_SETUP | |||
| 1289 | return T_HELPTEXT; | 1308 | return T_HELPTEXT; |
| 1290 | } | 1309 | } |
| 1291 | YY_BREAK | 1310 | YY_BREAK |
| 1292 | case 31: | 1311 | case 32: |
| 1293 | /* rule 31 can match eol */ | 1312 | /* rule 32 can match eol */ |
| 1294 | YY_RULE_SETUP | 1313 | YY_RULE_SETUP |
| 1295 | { | 1314 | { |
| 1296 | current_file->lineno++; | 1315 | current_file->lineno++; |
| 1297 | append_string("\n", 1); | 1316 | append_string("\n", 1); |
| 1298 | } | 1317 | } |
| 1299 | YY_BREAK | 1318 | YY_BREAK |
| 1300 | case 32: | 1319 | case 33: |
| 1301 | YY_RULE_SETUP | 1320 | YY_RULE_SETUP |
| 1302 | { | 1321 | { |
| 1303 | while (zconfleng) { | 1322 | while (zconfleng) { |
| @@ -1328,7 +1347,7 @@ case YY_STATE_EOF(COMMAND): | |||
| 1328 | yyterminate(); | 1347 | yyterminate(); |
| 1329 | } | 1348 | } |
| 1330 | YY_BREAK | 1349 | YY_BREAK |
| 1331 | case 33: | 1350 | case 34: |
| 1332 | YY_RULE_SETUP | 1351 | YY_RULE_SETUP |
| 1333 | YY_FATAL_ERROR( "flex scanner jammed" ); | 1352 | YY_FATAL_ERROR( "flex scanner jammed" ); |
| 1334 | YY_BREAK | 1353 | YY_BREAK |
