Changeset 16466a in git
- Timestamp:
- Apr 15, 2008, 2:04:31 PM (15 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- 936551d9412a5b90762e763a532a71c37dbe42c1
- Parents:
- 229b08c2403663b9333b0017b2f7942281ea7619
- Location:
- factory
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_gcd_charp.cc
r229b08 r16466a 2 2 #include <stdio.h> 3 3 #ifndef NOSTREAMIO 4 #ifdef HAVE_IOSTREAM 5 #include <iostream> 6 #define ISTREAM std::istream 7 #define OSTREAM std::ostream 8 #define CERR std::cerr 9 #elif defined(HAVE_IOSTREAM_H) 4 10 #include <iostream.h> 11 #define ISTREAM istream 12 #define OSTREAM ostream 13 #define CERR cerr 14 #endif 5 15 #endif 6 16 #include <math.h> -
factory/readcf.cc
r229b08 r16466a 1 /* A Bison parser, made by GNU Bison 2.1. */ 2 3 /* Skeleton parser for Yacc-like parsing with Bison, 4 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 1 /* A Bison parser, made by GNU Bison 2.3. */ 2 3 /* Skeleton implementation for Bison's Yacc-like parsers in C 4 5 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 6 Free Software Foundation, Inc. 5 7 6 8 This program is free software; you can redistribute it and/or modify … … 19 21 Boston, MA 02110-1301, USA. */ 20 22 21 /* As a special exception, when this file is copied by Bison into a 22 Bison output file, you may use that output file without restriction. 23 This special exception was added by the Free Software Foundation 24 in version 1.24 of Bison. */ 25 26 /* Written by Richard Stallman by simplifying the original so called 27 ``semantic'' parser. */ 23 /* As a special exception, you may create a larger work that contains 24 part or all of the Bison parser skeleton and distribute that work 25 under terms of your choice, so long as that work isn't itself a 26 parser generator using the skeleton or a modified version thereof 27 as a parser skeleton. Alternatively, if you modify or redistribute 28 the parser skeleton itself, you may (at your option) remove this 29 special exception, which will cause the skeleton and the resulting 30 Bison output files to be licensed under the GNU General Public 31 License without this special exception. 32 33 This special exception was added by the Free Software Foundation in 34 version 2.2 of Bison. */ 35 36 /* C LALR(1) parser skeleton written by Richard Stallman, by 37 simplifying the original so-called "semantic" parser. */ 28 38 29 39 /* All symbols defined below should begin with yy or YY, to avoid … … 38 48 39 49 /* Bison version. */ 40 #define YYBISON_VERSION "2. 1"50 #define YYBISON_VERSION "2.3" 41 51 42 52 /* Skeleton name. */ … … 78 88 #endif 79 89 90 #include <cstring> // we need this for gcc 4.3 80 91 #include <config.h> 81 92 … … 138 149 #endif 139 150 140 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)151 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED 141 152 typedef int YYSTYPE; 142 153 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ … … 150 161 151 162 152 /* Line 219 of yacc.c. */ 153 #line 154 "readcf.cc" 154 155 #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) 156 # define YYSIZE_T __SIZE_TYPE__ 157 #endif 158 #if ! defined (YYSIZE_T) && defined (size_t) 159 # define YYSIZE_T size_t 160 #endif 161 #if ! defined (YYSIZE_T) && (defined (__STDC__) || defined (__cplusplus)) 162 # include <stddef.h> /* INFRINGES ON USER NAME SPACE */ 163 # define YYSIZE_T size_t 164 #endif 165 #if ! defined (YYSIZE_T) 166 # define YYSIZE_T unsigned int 167 #endif 163 /* Line 216 of yacc.c. */ 164 #line 165 "readcf.cc" 165 166 #ifdef short 167 # undef short 168 #endif 169 170 #ifdef YYTYPE_UINT8 171 typedef YYTYPE_UINT8 yytype_uint8; 172 #else 173 typedef unsigned char yytype_uint8; 174 #endif 175 176 #ifdef YYTYPE_INT8 177 typedef YYTYPE_INT8 yytype_int8; 178 #elif (defined __STDC__ || defined __C99__FUNC__ \ 179 || defined __cplusplus || defined _MSC_VER) 180 typedef signed char yytype_int8; 181 #else 182 typedef short int yytype_int8; 183 #endif 184 185 #ifdef YYTYPE_UINT16 186 typedef YYTYPE_UINT16 yytype_uint16; 187 #else 188 typedef unsigned short int yytype_uint16; 189 #endif 190 191 #ifdef YYTYPE_INT16 192 typedef YYTYPE_INT16 yytype_int16; 193 #else 194 typedef short int yytype_int16; 195 #endif 196 197 #ifndef YYSIZE_T 198 # ifdef __SIZE_TYPE__ 199 # define YYSIZE_T __SIZE_TYPE__ 200 # elif defined size_t 201 # define YYSIZE_T size_t 202 # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \ 203 || defined __cplusplus || defined _MSC_VER) 204 # include <stddef.h> /* INFRINGES ON USER NAME SPACE */ 205 # define YYSIZE_T size_t 206 # else 207 # define YYSIZE_T unsigned int 208 # endif 209 #endif 210 211 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) 168 212 169 213 #ifndef YY_ … … 179 223 #endif 180 224 181 #if ! defined (yyoverflow) || YYERROR_VERBOSE 225 /* Suppress unused-variable warnings by "using" E. */ 226 #if ! defined lint || defined __GNUC__ 227 # define YYUSE(e) ((void) (e)) 228 #else 229 # define YYUSE(e) /* empty */ 230 #endif 231 232 /* Identity function, used to suppress warnings about constant conditions. */ 233 #ifndef lint 234 # define YYID(n) (n) 235 #else 236 #if (defined __STDC__ || defined __C99__FUNC__ \ 237 || defined __cplusplus || defined _MSC_VER) 238 static int 239 YYID (int i) 240 #else 241 static int 242 YYID (i) 243 int i; 244 #endif 245 { 246 return i; 247 } 248 #endif 249 250 #if ! defined yyoverflow || YYERROR_VERBOSE 182 251 183 252 /* The parser invokes alloca or malloc; define the necessary symbols. */ … … 187 256 # ifdef __GNUC__ 188 257 # define YYSTACK_ALLOC __builtin_alloca 258 # elif defined __BUILTIN_VA_ARG_INCR 259 # include <alloca.h> /* INFRINGES ON USER NAME SPACE */ 260 # elif defined _AIX 261 # define YYSTACK_ALLOC __alloca 262 # elif defined _MSC_VER 263 # include <malloc.h> /* INFRINGES ON USER NAME SPACE */ 264 # define alloca _alloca 189 265 # else 190 266 # define YYSTACK_ALLOC alloca 191 # if defined (__STDC__) || defined (__cplusplus) 267 # if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ 268 || defined __cplusplus || defined _MSC_VER) 192 269 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ 193 # define YYINCLUDED_STDLIB_H 270 # ifndef _STDLIB_H 271 # define _STDLIB_H 1 272 # endif 194 273 # endif 195 274 # endif … … 198 277 199 278 # ifdef YYSTACK_ALLOC 200 /* Pacify GCC's `empty if-body' warning. */201 # define YYSTACK_FREE(Ptr) do { /* empty */; } while ( 0)279 /* Pacify GCC's `empty if-body' warning. */ 280 # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0)) 202 281 # ifndef YYSTACK_ALLOC_MAXIMUM 203 282 /* The OS might guarantee only one guard page at the bottom of the stack, … … 205 284 invoke alloca (N) if N exceeds 4096. Use a slightly smaller number 206 285 to allow for a few compiler-allocated temporary stack slots. */ 207 # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 200 5*/286 # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ 208 287 # endif 209 288 # else … … 211 290 # define YYSTACK_FREE YYFREE 212 291 # ifndef YYSTACK_ALLOC_MAXIMUM 213 # define YYSTACK_ALLOC_MAXIMUM ((YYSIZE_T) -1)292 # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM 214 293 # endif 215 # ifdef __cplusplus 216 extern "C" { 294 # if (defined __cplusplus && ! defined _STDLIB_H \ 295 && ! ((defined YYMALLOC || defined malloc) \ 296 && (defined YYFREE || defined free))) 297 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ 298 # ifndef _STDLIB_H 299 # define _STDLIB_H 1 300 # endif 217 301 # endif 218 302 # ifndef YYMALLOC 219 303 # define YYMALLOC malloc 220 # if (! defined (malloc) && ! defined (YYINCLUDED_STDLIB_H)\221 && (defined (__STDC__) || defined (__cplusplus)))304 # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ 305 || defined __cplusplus || defined _MSC_VER) 222 306 void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ 223 307 # endif … … 225 309 # ifndef YYFREE 226 310 # define YYFREE free 227 # if (! defined (free) && ! defined (YYINCLUDED_STDLIB_H)\228 && (defined (__STDC__) || defined (__cplusplus)))311 # if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ 312 || defined __cplusplus || defined _MSC_VER) 229 313 void free (void *); /* INFRINGES ON USER NAME SPACE */ 230 314 # endif 231 315 # endif 232 # ifdef __cplusplus233 }234 # endif235 316 # endif 236 #endif /* ! defined (yyoverflow)|| YYERROR_VERBOSE */237 238 239 #if (! defined (yyoverflow)\240 && (! defined (__cplusplus)\241 || (defined (YYSTYPE_IS_TRIVIAL)&& YYSTYPE_IS_TRIVIAL)))317 #endif /* ! defined yyoverflow || YYERROR_VERBOSE */ 318 319 320 #if (! defined yyoverflow \ 321 && (! defined __cplusplus \ 322 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) 242 323 243 324 /* A type that is properly aligned for any stack member. */ 244 325 union yyalloc 245 326 { 246 short intyyss;327 yytype_int16 yyss; 247 328 YYSTYPE yyvs; 248 329 }; … … 254 335 N elements. */ 255 336 # define YYSTACK_BYTES(N) \ 256 ((N) * (sizeof ( short int) + sizeof (YYSTYPE))\337 ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ 257 338 + YYSTACK_GAP_MAXIMUM) 258 339 … … 260 341 not overlap. */ 261 342 # ifndef YYCOPY 262 # if defined (__GNUC__)&& 1 < __GNUC__343 # if defined __GNUC__ && 1 < __GNUC__ 263 344 # define YYCOPY(To, From, Count) \ 264 345 __builtin_memcpy (To, From, (Count) * sizeof (*(From))) … … 271 352 (To)[yyi] = (From)[yyi]; \ 272 353 } \ 273 while ( 0)354 while (YYID (0)) 274 355 # endif 275 356 # endif … … 289 370 yyptr += yynewbytes / sizeof (*yyptr); \ 290 371 } \ 291 while (0) 292 293 #endif 294 295 #if defined (__STDC__) || defined (__cplusplus) 296 typedef signed char yysigned_char; 297 #else 298 typedef short int yysigned_char; 299 #endif 300 301 /* YYFINAL -- State number of the termination state. */ 372 while (YYID (0)) 373 374 #endif 375 376 /* YYFINAL -- State number of the termination state. */ 302 377 #define YYFINAL 2 303 378 /* YYLAST -- Last index in YYTABLE. */ 304 379 #define YYLAST 44 305 380 306 /* YYNTOKENS -- Number of terminals. */381 /* YYNTOKENS -- Number of terminals. */ 307 382 #define YYNTOKENS 13 308 /* YYNNTS -- Number of nonterminals. */383 /* YYNNTS -- Number of nonterminals. */ 309 384 #define YYNNTS 4 310 /* YYNRULES -- Number of rules. */385 /* YYNRULES -- Number of rules. */ 311 386 #define YYNRULES 14 312 /* YYNRULES -- Number of states. */387 /* YYNRULES -- Number of states. */ 313 388 #define YYNSTATES 25 314 389 … … 321 396 322 397 /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ 323 static const unsigned charyytranslate[] =398 static const yytype_uint8 yytranslate[] = 324 399 { 325 400 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, … … 354 429 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in 355 430 YYRHS. */ 356 static const unsigned charyyprhs[] =431 static const yytype_uint8 yyprhs[] = 357 432 { 358 433 0, 0, 3, 4, 7, 9, 12, 14, 18, 22, … … 360 435 }; 361 436 362 /* YYRHS -- A `-1'-separated list of the rules' RHS. */363 static const yy signed_charyyrhs[] =437 /* YYRHS -- A `-1'-separated list of the rules' RHS. */ 438 static const yytype_int8 yyrhs[] = 364 439 { 365 440 14, 0, -1, -1, 14, 15, -1, 10, -1, 16, … … 371 446 372 447 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ 373 static const unsigned charyyrline[] =374 { 375 0, 6 5, 65, 66, 69, 70, 73, 74, 75, 76,376 7 7, 78, 79, 80, 81448 static const yytype_uint8 yyrline[] = 449 { 450 0, 66, 66, 67, 70, 71, 74, 75, 76, 77, 451 78, 79, 80, 81, 82 377 452 }; 378 453 #endif … … 380 455 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE 381 456 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. 382 First, the terminals, then, starting at YYNTOKENS, nonterminals. */457 First, the terminals, then, starting at YYNTOKENS, nonterminals. */ 383 458 static const char *const yytname[] = 384 459 { … … 391 466 /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to 392 467 token YYLEX-NUM. */ 393 static const unsigned short intyytoknum[] =468 static const yytype_uint16 yytoknum[] = 394 469 { 395 470 0, 256, 257, 258, 45, 43, 42, 47, 259, 94, … … 399 474 400 475 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ 401 static const unsigned charyyr1[] =476 static const yytype_uint8 yyr1[] = 402 477 { 403 478 0, 13, 14, 14, 15, 15, 16, 16, 16, 16, … … 406 481 407 482 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ 408 static const unsigned charyyr2[] =483 static const yytype_uint8 yyr2[] = 409 484 { 410 485 0, 2, 0, 2, 1, 2, 1, 3, 3, 3, … … 415 490 STATE-NUM when YYTABLE doesn't specify something else to do. Zero 416 491 means the default is an error. */ 417 static const unsigned charyydefact[] =492 static const yytype_uint8 yydefact[] = 418 493 { 419 494 2, 0, 1, 6, 0, 0, 4, 0, 3, 0, … … 422 497 }; 423 498 424 /* YYDEFGOTO[NTERM-NUM]. */425 static const yy signed_charyydefgoto[] =499 /* YYDEFGOTO[NTERM-NUM]. */ 500 static const yytype_int8 yydefgoto[] = 426 501 { 427 502 -1, 1, 8, 9 … … 431 506 STATE-NUM. */ 432 507 #define YYPACT_NINF -8 433 static const yy signed_charyypact[] =508 static const yytype_int8 yypact[] = 434 509 { 435 510 -8, 13, -8, -8, 3, 3, -8, 3, -8, 30, … … 439 514 440 515 /* YYPGOTO[NTERM-NUM]. */ 441 static const yy signed_charyypgoto[] =516 static const yytype_int8 yypgoto[] = 442 517 { 443 518 -8, -8, -8, -4 … … 449 524 If YYTABLE_NINF, syntax error. */ 450 525 #define YYTABLE_NINF -1 451 static const unsigned charyytable[] =526 static const yytype_uint8 yytable[] = 452 527 { 453 528 10, 11, 17, 12, 24, 0, 3, 4, 5, 20, … … 458 533 }; 459 534 460 static const yy signed_charyycheck[] =535 static const yytype_int8 yycheck[] = 461 536 { 462 537 4, 5, 9, 7, 3, -1, 3, 4, 5, 13, … … 469 544 /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing 470 545 symbol of state STATE-NUM. */ 471 static const unsigned charyystos[] =546 static const yytype_uint8 yystos[] = 472 547 { 473 548 0, 14, 0, 3, 4, 5, 10, 11, 15, 16, … … 501 576 yylval = (Value); \ 502 577 yytoken = YYTRANSLATE (yychar); \ 503 YYPOPSTACK ; \578 YYPOPSTACK (1); \ 504 579 goto yybackup; \ 505 580 } \ … … 509 584 YYERROR; \ 510 585 } \ 511 while ( 0)586 while (YYID (0)) 512 587 513 588 … … 524 599 # define YYLLOC_DEFAULT(Current, Rhs, N) \ 525 600 do \ 526 if ( N)\601 if (YYID (N)) \ 527 602 { \ 528 603 (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ … … 538 613 YYRHSLOC (Rhs, 0).last_column; \ 539 614 } \ 540 while ( 0)615 while (YYID (0)) 541 616 #endif 542 617 … … 550 625 # define YY_LOCATION_PRINT(File, Loc) \ 551 626 fprintf (File, "%d.%d-%d.%d", \ 552 553 627 (Loc).first_line, (Loc).first_column, \ 628 (Loc).last_line, (Loc).last_column) 554 629 # else 555 630 # define YY_LOCATION_PRINT(File, Loc) ((void) 0) … … 578 653 if (yydebug) \ 579 654 YYFPRINTF Args; \ 580 } while (0) 581 582 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ 583 do { \ 584 if (yydebug) \ 585 { \ 586 YYFPRINTF (stderr, "%s ", Title); \ 587 yysymprint (stderr, \ 588 Type, Value); \ 589 YYFPRINTF (stderr, "\n"); \ 590 } \ 591 } while (0) 655 } while (YYID (0)) 656 657 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ 658 do { \ 659 if (yydebug) \ 660 { \ 661 YYFPRINTF (stderr, "%s ", Title); \ 662 yy_symbol_print (stderr, \ 663 Type, Value); \ 664 YYFPRINTF (stderr, "\n"); \ 665 } \ 666 } while (YYID (0)) 667 668 669 /*--------------------------------. 670 | Print this symbol on YYOUTPUT. | 671 `--------------------------------*/ 672 673 /*ARGSUSED*/ 674 #if (defined __STDC__ || defined __C99__FUNC__ \ 675 || defined __cplusplus || defined _MSC_VER) 676 static void 677 yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) 678 #else 679 static void 680 yy_symbol_value_print (yyoutput, yytype, yyvaluep) 681 FILE *yyoutput; 682 int yytype; 683 YYSTYPE const * const yyvaluep; 684 #endif 685 { 686 if (!yyvaluep) 687 return; 688 # ifdef YYPRINT 689 if (yytype < YYNTOKENS) 690 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); 691 # else 692 YYUSE (yyoutput); 693 # endif 694 switch (yytype) 695 { 696 default: 697 break; 698 } 699 } 700 701 702 /*--------------------------------. 703 | Print this symbol on YYOUTPUT. | 704 `--------------------------------*/ 705 706 #if (defined __STDC__ || defined __C99__FUNC__ \ 707 || defined __cplusplus || defined _MSC_VER) 708 static void 709 yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) 710 #else 711 static void 712 yy_symbol_print (yyoutput, yytype, yyvaluep) 713 FILE *yyoutput; 714 int yytype; 715 YYSTYPE const * const yyvaluep; 716 #endif 717 { 718 if (yytype < YYNTOKENS) 719 YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); 720 else 721 YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); 722 723 yy_symbol_value_print (yyoutput, yytype, yyvaluep); 724 YYFPRINTF (yyoutput, ")"); 725 } 592 726 593 727 /*------------------------------------------------------------------. … … 596 730 `------------------------------------------------------------------*/ 597 731 598 #if defined (__STDC__) || defined (__cplusplus) 732 #if (defined __STDC__ || defined __C99__FUNC__ \ 733 || defined __cplusplus || defined _MSC_VER) 599 734 static void 600 yy_stack_print ( short int *bottom, short int*top)735 yy_stack_print (yytype_int16 *bottom, yytype_int16 *top) 601 736 #else 602 737 static void 603 738 yy_stack_print (bottom, top) 604 short int*bottom;605 short int*top;739 yytype_int16 *bottom; 740 yytype_int16 *top; 606 741 #endif 607 742 { 608 743 YYFPRINTF (stderr, "Stack now"); 609 for ( /* Nothing. */; bottom <= top; ++bottom)744 for (; bottom <= top; ++bottom) 610 745 YYFPRINTF (stderr, " %d", *bottom); 611 746 YYFPRINTF (stderr, "\n"); … … 616 751 if (yydebug) \ 617 752 yy_stack_print ((Bottom), (Top)); \ 618 } while ( 0)753 } while (YYID (0)) 619 754 620 755 … … 623 758 `------------------------------------------------*/ 624 759 625 #if defined (__STDC__) || defined (__cplusplus) 760 #if (defined __STDC__ || defined __C99__FUNC__ \ 761 || defined __cplusplus || defined _MSC_VER) 626 762 static void 627 yy_reduce_print ( int yyrule)763 yy_reduce_print (YYSTYPE *yyvsp, int yyrule) 628 764 #else 629 765 static void 630 yy_reduce_print (yyrule) 766 yy_reduce_print (yyvsp, yyrule) 767 YYSTYPE *yyvsp; 631 768 int yyrule; 632 769 #endif 633 770 { 771 int yynrhs = yyr2[yyrule]; 634 772 int yyi; 635 773 unsigned long int yylno = yyrline[yyrule]; 636 YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu), ", 637 yyrule - 1, yylno); 638 /* Print the symbols being reduced, and their result. */ 639 for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++) 640 YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]); 641 YYFPRINTF (stderr, "-> %s\n", yytname[yyr1[yyrule]]); 774 YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", 775 yyrule - 1, yylno); 776 /* The symbols being reduced. */ 777 for (yyi = 0; yyi < yynrhs; yyi++) 778 { 779 fprintf (stderr, " $%d = ", yyi + 1); 780 yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], 781 &(yyvsp[(yyi + 1) - (yynrhs)]) 782 ); 783 fprintf (stderr, "\n"); 784 } 642 785 } 643 786 … … 645 788 do { \ 646 789 if (yydebug) \ 647 yy_reduce_print ( Rule);\648 } while ( 0)790 yy_reduce_print (yyvsp, Rule); \ 791 } while (YYID (0)) 649 792 650 793 /* Nonzero means print parse trace. It is left uninitialized so that … … 681 824 682 825 # ifndef yystrlen 683 # if defined (__GLIBC__) && defined (_STRING_H)826 # if defined __GLIBC__ && defined _STRING_H 684 827 # define yystrlen strlen 685 828 # else 686 829 /* Return the length of YYSTR. */ 830 #if (defined __STDC__ || defined __C99__FUNC__ \ 831 || defined __cplusplus || defined _MSC_VER) 687 832 static YYSIZE_T 688 # if defined (__STDC__) || defined (__cplusplus)689 833 yystrlen (const char *yystr) 690 # else 834 #else 835 static YYSIZE_T 691 836 yystrlen (yystr) 692 const char *yystr; 693 # endif 694 { 695 const char *yys = yystr; 696 697 while (*yys++ != '\0') 837 const char *yystr; 838 #endif 839 { 840 YYSIZE_T yylen; 841 for (yylen = 0; yystr[yylen]; yylen++) 698 842 continue; 699 700 return yys - yystr - 1; 843 return yylen; 701 844 } 702 845 # endif … … 704 847 705 848 # ifndef yystpcpy 706 # if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)849 # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE 707 850 # define yystpcpy stpcpy 708 851 # else 709 852 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in 710 853 YYDEST. */ 854 #if (defined __STDC__ || defined __C99__FUNC__ \ 855 || defined __cplusplus || defined _MSC_VER) 711 856 static char * 712 # if defined (__STDC__) || defined (__cplusplus)713 857 yystpcpy (char *yydest, const char *yysrc) 714 # else 858 #else 859 static char * 715 860 yystpcpy (yydest, yysrc) 716 717 718 # 861 char *yydest; 862 const char *yysrc; 863 #endif 719 864 { 720 865 char *yyd = yydest; … … 742 887 if (*yystr == '"') 743 888 { 744 size_tyyn = 0;889 YYSIZE_T yyn = 0; 745 890 char const *yyp = yystr; 746 891 … … 777 922 # endif 778 923 924 /* Copy into YYRESULT an error message about the unexpected token 925 YYCHAR while in state YYSTATE. Return the number of bytes copied, 926 including the terminating null byte. If YYRESULT is null, do not 927 copy anything; just return the number of bytes that would be 928 copied. As a special case, return 0 if an ordinary "syntax error" 929 message will do. Return YYSIZE_MAXIMUM if overflow occurs during 930 size calculation. */ 931 static YYSIZE_T 932 yysyntax_error (char *yyresult, int yystate, int yychar) 933 { 934 int yyn = yypact[yystate]; 935 936 if (! (YYPACT_NINF < yyn && yyn <= YYLAST)) 937 return 0; 938 else 939 { 940 int yytype = YYTRANSLATE (yychar); 941 YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]); 942 YYSIZE_T yysize = yysize0; 943 YYSIZE_T yysize1; 944 int yysize_overflow = 0; 945 enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; 946 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; 947 int yyx; 948 949 # if 0 950 /* This is so xgettext sees the translatable formats that are 951 constructed on the fly. */ 952 YY_("syntax error, unexpected %s"); 953 YY_("syntax error, unexpected %s, expecting %s"); 954 YY_("syntax error, unexpected %s, expecting %s or %s"); 955 YY_("syntax error, unexpected %s, expecting %s or %s or %s"); 956 YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"); 957 # endif 958 char *yyfmt; 959 char const *yyf; 960 static char const yyunexpected[] = "syntax error, unexpected %s"; 961 static char const yyexpecting[] = ", expecting %s"; 962 static char const yyor[] = " or %s"; 963 char yyformat[sizeof yyunexpected 964 + sizeof yyexpecting - 1 965 + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2) 966 * (sizeof yyor - 1))]; 967 char const *yyprefix = yyexpecting; 968 969 /* Start YYX at -YYN if negative to avoid negative indexes in 970 YYCHECK. */ 971 int yyxbegin = yyn < 0 ? -yyn : 0; 972 973 /* Stay within bounds of both yycheck and yytname. */ 974 int yychecklim = YYLAST - yyn + 1; 975 int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; 976 int yycount = 1; 977 978 yyarg[0] = yytname[yytype]; 979 yyfmt = yystpcpy (yyformat, yyunexpected); 980 981 for (yyx = yyxbegin; yyx < yyxend; ++yyx) 982 if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) 983 { 984 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) 985 { 986 yycount = 1; 987 yysize = yysize0; 988 yyformat[sizeof yyunexpected - 1] = '\0'; 989 break; 990 } 991 yyarg[yycount++] = yytname[yyx]; 992 yysize1 = yysize + yytnamerr (0, yytname[yyx]); 993 yysize_overflow |= (yysize1 < yysize); 994 yysize = yysize1; 995 yyfmt = yystpcpy (yyfmt, yyprefix); 996 yyprefix = yyor; 997 } 998 999 yyf = YY_(yyformat); 1000 yysize1 = yysize + yystrlen (yyf); 1001 yysize_overflow |= (yysize1 < yysize); 1002 yysize = yysize1; 1003 1004 if (yysize_overflow) 1005 return YYSIZE_MAXIMUM; 1006 1007 if (yyresult) 1008 { 1009 /* Avoid sprintf, as that infringes on the user's name space. 1010 Don't have undefined behavior even if the translation 1011 produced a string with the wrong number of "%s"s. */ 1012 char *yyp = yyresult; 1013 int yyi = 0; 1014 while ((*yyp = *yyf) != '\0') 1015 { 1016 if (*yyp == '%' && yyf[1] == 's' && yyi < yycount) 1017 { 1018 yyp += yytnamerr (yyp, yyarg[yyi++]); 1019 yyf += 2; 1020 } 1021 else 1022 { 1023 yyp++; 1024 yyf++; 1025 } 1026 } 1027 } 1028 return yysize; 1029 } 1030 } 779 1031 #endif /* YYERROR_VERBOSE */ 780 1032 781 1033 782 1034 783 784 #if YYDEBUG785 /*--------------------------------.786 | Print this symbol on YYOUTPUT. |787 `--------------------------------*/788 789 #if defined (__STDC__) || defined (__cplusplus)790 static void791 yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep)792 #else793 static void794 yysymprint (yyoutput, yytype, yyvaluep)795 FILE *yyoutput;796 int yytype;797 YYSTYPE *yyvaluep;798 #endif799 {800 /* Pacify ``unused variable'' warnings. */801 (void) yyvaluep;802 803 if (yytype < YYNTOKENS)804 YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);805 else806 YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);807 808 809 # ifdef YYPRINT810 if (yytype < YYNTOKENS)811 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);812 # endif813 switch (yytype)814 {815 default:816 break;817 }818 YYFPRINTF (yyoutput, ")");819 }820 821 #endif /* ! YYDEBUG */822 1035 /*-----------------------------------------------. 823 1036 | Release the memory associated to this symbol. | 824 1037 `-----------------------------------------------*/ 825 1038 826 #if defined (__STDC__) || defined (__cplusplus) 1039 /*ARGSUSED*/ 1040 #if (defined __STDC__ || defined __C99__FUNC__ \ 1041 || defined __cplusplus || defined _MSC_VER) 827 1042 static void 828 1043 yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) … … 835 1050 #endif 836 1051 { 837 /* Pacify ``unused variable'' warnings. */ 838 (void) yyvaluep; 1052 YYUSE (yyvaluep); 839 1053 840 1054 if (!yymsg) … … 846 1060 847 1061 default: 848 1062 break; 849 1063 } 850 1064 } … … 855 1069 856 1070 #ifdef YYPARSE_PARAM 857 # if defined (__STDC__) || defined (__cplusplus)1071 #if defined __STDC__ || defined __cplusplus 858 1072 int yyparse (void *YYPARSE_PARAM); 859 # 1073 #else 860 1074 int yyparse (); 861 # 1075 #endif 862 1076 #else /* ! YYPARSE_PARAM */ 863 #if defined (__STDC__) || defined (__cplusplus)1077 #if defined __STDC__ || defined __cplusplus 864 1078 int yyparse (void); 865 1079 #else … … 886 1100 887 1101 #ifdef YYPARSE_PARAM 888 # if defined (__STDC__) || defined (__cplusplus) 889 int yyparse (void *YYPARSE_PARAM) 890 # else 891 int yyparse (YYPARSE_PARAM) 892 void *YYPARSE_PARAM; 893 # endif 1102 #if (defined __STDC__ || defined __C99__FUNC__ \ 1103 || defined __cplusplus || defined _MSC_VER) 1104 int 1105 yyparse (void *YYPARSE_PARAM) 1106 #else 1107 int 1108 yyparse (YYPARSE_PARAM) 1109 void *YYPARSE_PARAM; 1110 #endif 894 1111 #else /* ! YYPARSE_PARAM */ 895 #if defined (__STDC__) || defined (__cplusplus) 1112 #if (defined __STDC__ || defined __C99__FUNC__ \ 1113 || defined __cplusplus || defined _MSC_VER) 896 1114 int 897 1115 yyparse (void) … … 899 1117 int 900 1118 yyparse () 901 ; 1119 902 1120 #endif 903 1121 #endif … … 911 1129 /* Look-ahead token as an internal (translated) token number. */ 912 1130 int yytoken = 0; 1131 #if YYERROR_VERBOSE 1132 /* Buffer for error messages, and its allocated size. */ 1133 char yymsgbuf[128]; 1134 char *yymsg = yymsgbuf; 1135 YYSIZE_T yymsg_alloc = sizeof yymsgbuf; 1136 #endif 913 1137 914 1138 /* Three stacks and their tools: … … 921 1145 922 1146 /* The state stack. */ 923 short intyyssa[YYINITDEPTH];924 short int*yyss = yyssa;925 short int*yyssp;1147 yytype_int16 yyssa[YYINITDEPTH]; 1148 yytype_int16 *yyss = yyssa; 1149 yytype_int16 *yyssp; 926 1150 927 1151 /* The semantic value stack. */ … … 932 1156 933 1157 934 #define YYPOPSTACK (yyvsp--, yyssp--)1158 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) 935 1159 936 1160 YYSIZE_T yystacksize = YYINITDEPTH; … … 941 1165 942 1166 943 /* When reducing, the number of symbols on the RHS of the reduced944 rule. */945 int yylen ;1167 /* The number of symbols on the RHS of the reduced rule. 1168 Keep to zero when no symbol should be popped. */ 1169 int yylen = 0; 946 1170 947 1171 YYDPRINTF ((stderr, "Starting parse\n")); … … 967 1191 yynewstate: 968 1192 /* In all cases, when you get here, the value and location stacks 969 have just been pushed. so pushing a state here evens the stacks. 970 */ 1193 have just been pushed. So pushing a state here evens the stacks. */ 971 1194 yyssp++; 972 1195 … … 981 1204 #ifdef yyoverflow 982 1205 { 983 /* Give user a chance to reallocate the stack. Use copies of1206 /* Give user a chance to reallocate the stack. Use copies of 984 1207 these so that the &'s don't force the real ones into 985 1208 memory. */ 986 1209 YYSTYPE *yyvs1 = yyvs; 987 short int*yyss1 = yyss;1210 yytype_int16 *yyss1 = yyss; 988 1211 989 1212 … … 1013 1236 1014 1237 { 1015 short int*yyss1 = yyss;1238 yytype_int16 *yyss1 = yyss; 1016 1239 union yyalloc *yyptr = 1017 1240 (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); … … 1048 1271 yybackup: 1049 1272 1050 /* Do appropriate processing given the current state. */ 1051 /* Read a look-ahead token if we need one and don't already have one. */ 1052 /* yyresume: */ 1273 /* Do appropriate processing given the current state. Read a 1274 look-ahead token if we need one and don't already have one. */ 1053 1275 1054 1276 /* First try to decide what to do without reference to look-ahead token. */ 1055 1056 1277 yyn = yypact[yystate]; 1057 1278 if (yyn == YYPACT_NINF) … … 1095 1316 YYACCEPT; 1096 1317 1097 /* Shift the look-ahead token. */1098 YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);1099 1100 /* Discard the token being shifted unless it is eof. */1101 if (yychar != YYEOF)1102 yychar = YYEMPTY;1103 1104 *++yyvsp = yylval;1105 1106 1107 1318 /* Count tokens shifted since error; after three, turn off error 1108 1319 status. */ … … 1110 1321 yyerrstatus--; 1111 1322 1323 /* Shift the look-ahead token. */ 1324 YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); 1325 1326 /* Discard the shifted token unless it is eof. */ 1327 if (yychar != YYEOF) 1328 yychar = YYEMPTY; 1329 1112 1330 yystate = yyn; 1331 *++yyvsp = yylval; 1332 1113 1333 goto yynewstate; 1114 1334 … … 1146 1366 { 1147 1367 case 5: 1148 #line 7 0"readcf.y"1149 { *retvalue = (yyvsp[ -1]).getval(); return 0; ;}1368 #line 71 "readcf.y" 1369 { *retvalue = (yyvsp[(1) - (2)]).getval(); return 0; ;} 1150 1370 break; 1151 1371 1152 1372 case 6: 1153 #line 7 3"readcf.y"1154 { (yyval) = (yyvsp[ 0]); ;}1373 #line 74 "readcf.y" 1374 { (yyval) = (yyvsp[(1) - (1)]); ;} 1155 1375 break; 1156 1376 1157 1377 case 7: 1158 #line 7 4"readcf.y"1159 { (yyval) = (yyvsp[ -2]).getval() + (yyvsp[0]).getval(); ;}1378 #line 75 "readcf.y" 1379 { (yyval) = (yyvsp[(1) - (3)]).getval() + (yyvsp[(3) - (3)]).getval(); ;} 1160 1380 break; 1161 1381 1162 1382 case 8: 1163 #line 7 5"readcf.y"1164 { (yyval) = (yyvsp[ -2]).getval() - (yyvsp[0]).getval(); ;}1383 #line 76 "readcf.y" 1384 { (yyval) = (yyvsp[(1) - (3)]).getval() - (yyvsp[(3) - (3)]).getval(); ;} 1165 1385 break; 1166 1386 1167 1387 case 9: 1168 #line 7 6"readcf.y"1169 { (yyval) = (yyvsp[ -2]).getval() * (yyvsp[0]).getval(); ;}1388 #line 77 "readcf.y" 1389 { (yyval) = (yyvsp[(1) - (3)]).getval() * (yyvsp[(3) - (3)]).getval(); ;} 1170 1390 break; 1171 1391 1172 1392 case 10: 1173 #line 7 7"readcf.y"1174 { (yyval) = (yyvsp[ -2]).getval() / (yyvsp[0]).getval(); ;}1393 #line 78 "readcf.y" 1394 { (yyval) = (yyvsp[(1) - (3)]).getval() / (yyvsp[(3) - (3)]).getval(); ;} 1175 1395 break; 1176 1396 1177 1397 case 11: 1178 #line 7 8"readcf.y"1179 { (yyval) = -(yyvsp[ 0]).getval(); ;}1398 #line 79 "readcf.y" 1399 { (yyval) = -(yyvsp[(2) - (2)]).getval(); ;} 1180 1400 break; 1181 1401 1182 1402 case 12: 1183 #line 79"readcf.y"1184 { (yyval) = (yyvsp[ 0]).getval(); ;}1403 #line 80 "readcf.y" 1404 { (yyval) = (yyvsp[(2) - (2)]).getval(); ;} 1185 1405 break; 1186 1406 1187 1407 case 13: 1188 #line 8 0"readcf.y"1189 { (yyval) = power( (yyvsp[ -2]).getval(), (yyvsp[0]).getintval() ); ;}1408 #line 81 "readcf.y" 1409 { (yyval) = power( (yyvsp[(1) - (3)]).getval(), (yyvsp[(3) - (3)]).getintval() ); ;} 1190 1410 break; 1191 1411 1192 1412 case 14: 1193 #line 8 1"readcf.y"1194 { (yyval) = (yyvsp[ -1]).getval(); ;}1413 #line 82 "readcf.y" 1414 { (yyval) = (yyvsp[(2) - (3)]).getval(); ;} 1195 1415 break; 1196 1416 1197 1417 1418 /* Line 1267 of yacc.c. */ 1419 #line 1417 "readcf.cc" 1198 1420 default: break; 1199 1421 } 1200 1201 /* Line 1126 of yacc.c. */ 1202 #line 1200 "readcf.cc" 1203 1204 1205 yyvsp -= yylen; 1206 yyssp -= yylen; 1207 1208 1422 YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); 1423 1424 YYPOPSTACK (yylen); 1425 yylen = 0; 1209 1426 YY_STACK_PRINT (yyss, yyssp); 1210 1427 … … 1235 1452 { 1236 1453 ++yynerrs; 1237 #if YYERROR_VERBOSE 1238 yyn = yypact[yystate]; 1239 1240 if (YYPACT_NINF < yyn && yyn < YYLAST) 1241 { 1242 int yytype = YYTRANSLATE (yychar); 1243 YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]); 1244 YYSIZE_T yysize = yysize0; 1245 YYSIZE_T yysize1; 1246 int yysize_overflow = 0; 1247 char *yymsg = 0; 1248 # define YYERROR_VERBOSE_ARGS_MAXIMUM 5 1249 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; 1250 int yyx; 1251 1252 #if 0 1253 /* This is so xgettext sees the translatable formats that are 1254 constructed on the fly. */ 1255 YY_("syntax error, unexpected %s"); 1256 YY_("syntax error, unexpected %s, expecting %s"); 1257 YY_("syntax error, unexpected %s, expecting %s or %s"); 1258 YY_("syntax error, unexpected %s, expecting %s or %s or %s"); 1259 YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"); 1260 #endif 1261 char *yyfmt; 1262 char const *yyf; 1263 static char const yyunexpected[] = "syntax error, unexpected %s"; 1264 static char const yyexpecting[] = ", expecting %s"; 1265 static char const yyor[] = " or %s"; 1266 char yyformat[sizeof yyunexpected 1267 + sizeof yyexpecting - 1 1268 + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2) 1269 * (sizeof yyor - 1))]; 1270 char const *yyprefix = yyexpecting; 1271 1272 /* Start YYX at -YYN if negative to avoid negative indexes in 1273 YYCHECK. */ 1274 int yyxbegin = yyn < 0 ? -yyn : 0; 1275 1276 /* Stay within bounds of both yycheck and yytname. */ 1277 int yychecklim = YYLAST - yyn; 1278 int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; 1279 int yycount = 1; 1280 1281 yyarg[0] = yytname[yytype]; 1282 yyfmt = yystpcpy (yyformat, yyunexpected); 1283 1284 for (yyx = yyxbegin; yyx < yyxend; ++yyx) 1285 if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) 1454 #if ! YYERROR_VERBOSE 1455 yyerror (YY_("syntax error")); 1456 #else 1457 { 1458 YYSIZE_T yysize = yysyntax_error (0, yystate, yychar); 1459 if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM) 1460 { 1461 YYSIZE_T yyalloc = 2 * yysize; 1462 if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM)) 1463 yyalloc = YYSTACK_ALLOC_MAXIMUM; 1464 if (yymsg != yymsgbuf) 1465 YYSTACK_FREE (yymsg); 1466 yymsg = (char *) YYSTACK_ALLOC (yyalloc); 1467 if (yymsg) 1468 yymsg_alloc = yyalloc; 1469 else 1286 1470 { 1287 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) 1288 { 1289 yycount = 1; 1290 yysize = yysize0; 1291 yyformat[sizeof yyunexpected - 1] = '\0'; 1292 break; 1293 } 1294 yyarg[yycount++] = yytname[yyx]; 1295 yysize1 = yysize + yytnamerr (0, yytname[yyx]); 1296 yysize_overflow |= yysize1 < yysize; 1297 yysize = yysize1; 1298 yyfmt = yystpcpy (yyfmt, yyprefix); 1299 yyprefix = yyor; 1471 yymsg = yymsgbuf; 1472 yymsg_alloc = sizeof yymsgbuf; 1300 1473 } 1301 1302 yyf = YY_(yyformat); 1303 yysize1 = yysize + yystrlen (yyf); 1304 yysize_overflow |= yysize1 < yysize; 1305 yysize = yysize1; 1306 1307 if (!yysize_overflow && yysize <= YYSTACK_ALLOC_MAXIMUM) 1308 yymsg = (char *) YYSTACK_ALLOC (yysize); 1309 if (yymsg) 1310 { 1311 /* Avoid sprintf, as that infringes on the user's name space. 1312 Don't have undefined behavior even if the translation 1313 produced a string with the wrong number of "%s"s. */ 1314 char *yyp = yymsg; 1315 int yyi = 0; 1316 while ((*yyp = *yyf)) 1317 { 1318 if (*yyp == '%' && yyf[1] == 's' && yyi < yycount) 1319 { 1320 yyp += yytnamerr (yyp, yyarg[yyi++]); 1321 yyf += 2; 1322 } 1323 else 1324 { 1325 yyp++; 1326 yyf++; 1327 } 1328 } 1329 yyerror (yymsg); 1330 YYSTACK_FREE (yymsg); 1331 } 1332 else 1333 { 1334 yyerror (YY_("syntax error")); 1474 } 1475 1476 if (0 < yysize && yysize <= yymsg_alloc) 1477 { 1478 (void) yysyntax_error (yymsg, yystate, yychar); 1479 yyerror (yymsg); 1480 } 1481 else 1482 { 1483 yyerror (YY_("syntax error")); 1484 if (yysize != 0) 1335 1485 goto yyexhaustedlab; 1336 } 1337 } 1338 else 1339 #endif /* YYERROR_VERBOSE */ 1340 yyerror (YY_("syntax error")); 1486 } 1487 } 1488 #endif 1341 1489 } 1342 1490 … … 1349 1497 1350 1498 if (yychar <= YYEOF) 1351 1499 { 1352 1500 /* Return failure if at end of input. */ 1353 1501 if (yychar == YYEOF) 1354 1502 YYABORT; 1355 1503 } 1356 1504 else 1357 1505 { 1358 yydestruct ("Error: discarding", yytoken, &yylval); 1506 yydestruct ("Error: discarding", 1507 yytoken, &yylval); 1359 1508 yychar = YYEMPTY; 1360 1509 } … … 1374 1523 YYERROR and the label yyerrorlab therefore never appears in user 1375 1524 code. */ 1376 if ( 0)1525 if (/*CONSTCOND*/ 0) 1377 1526 goto yyerrorlab; 1378 1527 1379 yyvsp -= yylen; 1380 yyssp -= yylen; 1528 /* Do not reclaim the symbols of the rule which action triggered 1529 this YYERROR. */ 1530 YYPOPSTACK (yylen); 1531 yylen = 0; 1532 YY_STACK_PRINT (yyss, yyssp); 1381 1533 yystate = *yyssp; 1382 1534 goto yyerrlab1; … … 1408 1560 1409 1561 1410 yydestruct ("Error: popping", yystos[yystate], yyvsp); 1411 YYPOPSTACK; 1562 yydestruct ("Error: popping", 1563 yystos[yystate], yyvsp); 1564 YYPOPSTACK (1); 1412 1565 yystate = *yyssp; 1413 1566 YY_STACK_PRINT (yyss, yyssp); … … 1420 1573 1421 1574 1422 /* Shift the error token. */1575 /* Shift the error token. */ 1423 1576 YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); 1424 1577 … … 1455 1608 yydestruct ("Cleanup: discarding lookahead", 1456 1609 yytoken, &yylval); 1610 /* Do not reclaim the symbols of the rule which action triggered 1611 this YYABORT or YYACCEPT. */ 1612 YYPOPSTACK (yylen); 1613 YY_STACK_PRINT (yyss, yyssp); 1457 1614 while (yyssp != yyss) 1458 1615 { 1459 1616 yydestruct ("Cleanup: popping", 1460 1617 yystos[*yyssp], yyvsp); 1461 YYPOPSTACK ;1618 YYPOPSTACK (1); 1462 1619 } 1463 1620 #ifndef yyoverflow … … 1465 1622 YYSTACK_FREE (yyss); 1466 1623 #endif 1467 return yyresult; 1624 #if YYERROR_VERBOSE 1625 if (yymsg != yymsgbuf) 1626 YYSTACK_FREE (yymsg); 1627 #endif 1628 /* Make sure YYID is used. */ 1629 return YYID (yyresult); 1468 1630 } 1469 1631 1470 1632 1471 #line 8 4"readcf.y"1633 #line 85 "readcf.y" 1472 1634 1473 1635 … … 1598 1760 } 1599 1761 1600 -
factory/readcf.y
r229b08 r16466a 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: readcf.y,v 1.1 0 2006-05-15 09:03:07Singular Exp $ */2 /* $Id: readcf.y,v 1.11 2008-04-15 12:04:31 Singular Exp $ */ 3 3 4 4 %{ … … 10 10 #endif 11 11 12 #include <cstring> // we need this for gcc 4.3 12 13 #include <config.h> 13 14
Note: See TracChangeset
for help on using the changeset viewer.