bootparse.c
来自「PostgreSQL7.4.6 for Linux」· C语言 代码 · 共 1,634 行 · 第 1/3 页
C
1,634 行
75, 19, 65, 54, 21, 56, -1, -1, 59, -1, -1, -1, 63, -1, 65, -1, 67, -1, -1, 70, 71, -1, -1, -1, 75};/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */static const unsigned char Int_yystos[] ={ 0, 5, 6, 7, 8, 11, 15, 30, 31, 32, 33, 34, 35, 38, 40, 41, 42, 4, 54, 54, 23, 45, 22, 50, 12, 17, 16, 0, 32, 24, 46, 19, 39, 54, 12, 25, 47, 54, 20, 13, 54, 54, 3, 26, 51, 52, 53, 54, 54, 13, 20, 18, 21, 52, 14, 54, 36, 52, 54, 14, 48, 49, 54, 20, 54, 18, 37, 19, 43, 44, 54, 20, 49, 21, 54, 18, 21, 54, 43, 44, 21};#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)# define YYSIZE_T __SIZE_TYPE__#endif#if ! defined (YYSIZE_T) && defined (size_t)# define YYSIZE_T size_t#endif#if ! defined (YYSIZE_T)# if defined (__STDC__) || defined (__cplusplus)# include <stddef.h> /* INFRINGES ON USER NAME SPACE */# define YYSIZE_T size_t# endif#endif#if ! defined (YYSIZE_T)# define YYSIZE_T unsigned int#endif#define Int_yyerrok (Int_yyerrstatus = 0)#define Int_yyclearin (Int_yychar = YYEMPTY)#define YYEMPTY (-2)#define YYEOF 0#define YYACCEPT goto Int_yyacceptlab#define YYABORT goto Int_yyabortlab#define YYERROR goto Int_yyerrlab1/* Like YYERROR except do call Int_yyerror. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. Once GCC version 2 has supplanted version 1, this can go. */#define YYFAIL goto Int_yyerrlab#define YYRECOVERING() (!!Int_yyerrstatus)#define YYBACKUP(Token, Value) \do \ if (Int_yychar == YYEMPTY && Int_yylen == 1) \ { \ Int_yychar = (Token); \ Int_yylval = (Value); \ Int_yytoken = YYTRANSLATE (Int_yychar); \ YYPOPSTACK; \ goto Int_yybackup; \ } \ else \ { \ Int_yyerror ("syntax error: cannot back up");\ YYERROR; \ } \while (0)#define YYTERROR 1#define YYERRCODE 256/* YYLLOC_DEFAULT -- Compute the default location (before the actions are run). */#ifndef YYLLOC_DEFAULT# define YYLLOC_DEFAULT(Current, Rhs, N) \ Current.first_line = Rhs[1].first_line; \ Current.first_column = Rhs[1].first_column; \ Current.last_line = Rhs[N].last_line; \ Current.last_column = Rhs[N].last_column;#endif/* YYLEX -- calling `Int_yylex' with the right arguments. */#ifdef YYLEX_PARAM# define YYLEX Int_yylex (YYLEX_PARAM)#else# define YYLEX Int_yylex ()#endif/* Enable debugging if requested. */#if YYDEBUG# ifndef YYFPRINTF# include <stdio.h> /* INFRINGES ON USER NAME SPACE */# define YYFPRINTF fprintf# endif# define YYDPRINTF(Args) \do { \ if (Int_yydebug) \ YYFPRINTF Args; \} while (0)# define YYDSYMPRINT(Args) \do { \ if (Int_yydebug) \ Int_yysymprint Args; \} while (0)# define YYDSYMPRINTF(Title, Token, Value, Location) \do { \ if (Int_yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ Int_yysymprint (stderr, \ Token, Value); \ YYFPRINTF (stderr, "\n"); \ } \} while (0)/*------------------------------------------------------------------.| Int_yy_stack_print -- Print the state stack from its BOTTOM up to its || TOP (cinluded). |`------------------------------------------------------------------*/#if defined (__STDC__) || defined (__cplusplus)static voidInt_yy_stack_print (short *bottom, short *top)#elsestatic voidInt_yy_stack_print (bottom, top) short *bottom; short *top;#endif{ YYFPRINTF (stderr, "Stack now"); for (/* Nothing. */; bottom <= top; ++bottom) YYFPRINTF (stderr, " %d", *bottom); YYFPRINTF (stderr, "\n");}# define YY_STACK_PRINT(Bottom, Top) \do { \ if (Int_yydebug) \ Int_yy_stack_print ((Bottom), (Top)); \} while (0)/*------------------------------------------------.| Report that the YYRULE is going to be reduced. |`------------------------------------------------*/#if defined (__STDC__) || defined (__cplusplus)static voidInt_yy_reduce_print (int Int_yyrule)#elsestatic voidInt_yy_reduce_print (Int_yyrule) int Int_yyrule;#endif{ int Int_yyi; unsigned int Int_yylineno = Int_yyrline[Int_yyrule]; YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ", Int_yyrule - 1, Int_yylineno); /* Print the symbols being reduced, and their result. */ for (Int_yyi = Int_yyprhs[Int_yyrule]; 0 <= Int_yyrhs[Int_yyi]; Int_yyi++) YYFPRINTF (stderr, "%s ", Int_yytname [Int_yyrhs[Int_yyi]]); YYFPRINTF (stderr, "-> %s\n", Int_yytname [Int_yyr1[Int_yyrule]]);}# define YY_REDUCE_PRINT(Rule) \do { \ if (Int_yydebug) \ Int_yy_reduce_print (Rule); \} while (0)/* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */int Int_yydebug;#else /* !YYDEBUG */# define YYDPRINTF(Args)# define YYDSYMPRINT(Args)# define YYDSYMPRINTF(Title, Token, Value, Location)# define YY_STACK_PRINT(Bottom, Top)# define YY_REDUCE_PRINT(Rule)#endif /* !YYDEBUG *//* YYINITDEPTH -- initial size of the parser's stacks. */#ifndef YYINITDEPTH# define YYINITDEPTH 200#endif/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only if the built-in stack extension method is used). Do not make this value too large; the results are undefined if SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH) evaluated with infinite-precision integer arithmetic. */#if YYMAXDEPTH == 0# undef YYMAXDEPTH#endif#ifndef YYMAXDEPTH# define YYMAXDEPTH 10000#endif#if YYERROR_VERBOSE# ifndef Int_yystrlen# if defined (__GLIBC__) && defined (_STRING_H)# define Int_yystrlen strlen# else/* Return the length of YYSTR. */static YYSIZE_T# if defined (__STDC__) || defined (__cplusplus)Int_yystrlen (const char *Int_yystr)# elseInt_yystrlen (Int_yystr) const char *Int_yystr;# endif{ register const char *Int_yys = Int_yystr; while (*Int_yys++ != '\0') continue; return Int_yys - Int_yystr - 1;}# endif# endif# ifndef Int_yystpcpy# if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)# define Int_yystpcpy stpcpy# else/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */static char *# if defined (__STDC__) || defined (__cplusplus)Int_yystpcpy (char *Int_yydest, const char *Int_yysrc)# elseInt_yystpcpy (Int_yydest, Int_yysrc) char *Int_yydest; const char *Int_yysrc;# endif{ register char *Int_yyd = Int_yydest; register const char *Int_yys = Int_yysrc; while ((*Int_yyd++ = *Int_yys++) != '\0') continue; return Int_yyd - 1;}# endif# endif#endif /* !YYERROR_VERBOSE */#if YYDEBUG/*--------------------------------.| Print this symbol on YYOUTPUT. |`--------------------------------*/#if defined (__STDC__) || defined (__cplusplus)static voidInt_yysymprint (FILE *Int_yyoutput, int Int_yytype, YYSTYPE *Int_yyvaluep)#elsestatic voidInt_yysymprint (Int_yyoutput, Int_yytype, Int_yyvaluep) FILE *Int_yyoutput; int Int_yytype; YYSTYPE *Int_yyvaluep;#endif{ /* Pacify ``unused variable'' warnings. */ (void) Int_yyvaluep; if (Int_yytype < YYNTOKENS) { YYFPRINTF (Int_yyoutput, "token %s (", Int_yytname[Int_yytype]);# ifdef YYPRINT YYPRINT (Int_yyoutput, Int_yytoknum[Int_yytype], *Int_yyvaluep);# endif } else YYFPRINTF (Int_yyoutput, "nterm %s (", Int_yytname[Int_yytype]); switch (Int_yytype) { default: break; } YYFPRINTF (Int_yyoutput, ")");}#endif /* ! YYDEBUG *//*-----------------------------------------------.| Release the memory associated to this symbol. |`-----------------------------------------------*/#if defined (__STDC__) || defined (__cplusplus)static voidInt_yydestruct (int Int_yytype, YYSTYPE *Int_yyvaluep)#elsestatic voidInt_yydestruct (Int_yytype, Int_yyvaluep) int Int_yytype; YYSTYPE *Int_yyvaluep;#endif{ /* Pacify ``unused variable'' warnings. */ (void) Int_yyvaluep; switch (Int_yytype) { default: break; }}/* Prevent warnings from -Wmissing-prototypes. */#ifdef YYPARSE_PARAM# if defined (__STDC__) || defined (__cplusplus)int Int_yyparse (void *YYPARSE_PARAM);# elseint Int_yyparse ();# endif#else /* ! YYPARSE_PARAM */#if defined (__STDC__) || defined (__cplusplus)int Int_yyparse (void);#elseint Int_yyparse ();#endif#endif /* ! YYPARSE_PARAM *//* The lookahead symbol. */int Int_yychar;/* The semantic value of the lookahead symbol. */YYSTYPE Int_yylval;/* Number of syntax errors so far. */int Int_yynerrs;/*----------.| Int_yyparse. |`----------*/#ifdef YYPARSE_PARAM# if defined (__STDC__) || defined (__cplusplus)int Int_yyparse (void *YYPARSE_PARAM)# elseint Int_yyparse (YYPARSE_PARAM) void *YYPARSE_PARAM;# endif#else /* ! YYPARSE_PARAM */#if defined (__STDC__) || defined (__cplusplus)intInt_yyparse (void)#elseintInt_yyparse ()#endif#endif{ register int Int_yystate; register int Int_yyn; int Int_yyresult; /* Number of tokens to shift before error messages enabled. */ int Int_yyerrstatus; /* Lookahead token as an internal (translated) token number. */ int Int_yytoken = 0; /* Three stacks and their tools: `Int_yyss': related to states, `Int_yyvs': related to semantic values, `Int_yyls': related to locations. Refer to the stacks thru separate pointers, to allow Int_yyoverflow to reallocate them elsewhere. */ /* The state stack. */ short Int_yyssa[YYINITDEPTH]; short *Int_yyss = Int_yyssa; register short *Int_yyssp; /* The semantic value stack. */ YYSTYPE Int_yyvsa[YYINITDEPTH]; YYSTYPE *Int_yyvs = Int_yyvsa; register YYSTYPE *Int_yyvsp;#define YYPOPSTACK (Int_yyvsp--, Int_yyssp--) YYSIZE_T Int_yystacksize = YYINITDEPTH; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE Int_yyval; /* When reducing, the number of symbols on the RHS of the reduced rule. */ int Int_yylen; YYDPRINTF ((stderr, "Starting parse\n")); Int_yystate = 0; Int_yyerrstatus = 0; Int_yynerrs = 0; Int_yychar = YYEMPTY; /* Cause a token to be read. */ /* Initialize stack pointers. Waste one element of value and location stack so that they stay on the same level as the state stack. The wasted elements are never initialized. */ Int_yyssp = Int_yyss; Int_yyvsp = Int_yyvs; goto Int_yysetstate;/*------------------------------------------------------------.| Int_yynewstate -- Push a new state, which is found in Int_yystate. |`------------------------------------------------------------*/ Int_yynewstate: /* In all cases, when you get here, the value and location stacks have just been pushed. so pushing a state here evens the stacks. */ Int_yyssp++; Int_yysetstate: *Int_yyssp = Int_yystate; if (Int_yyss + Int_yystacksize - 1 <= Int_yyssp) { /* Get the current used size of the three stacks, in elements. */ YYSIZE_T Int_yysize = Int_yyssp - Int_yyss + 1;#ifdef Int_yyoverflow { /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ YYSTYPE *Int_yyvs1 = Int_yyvs; short *Int_yyss1 = Int_yyss; /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. This used to be a conditional around just the two extra args, but that might be undefined if Int_yyoverflow is a macro. */ Int_yyoverflow ("parser stack overflow", &Int_yyss1, Int_yysize * sizeof (*Int_yyssp), &Int_yyvs1, Int_yysize * sizeof (*Int_yyvsp), &Int_yystacksize); Int_yyss = Int_yyss1; Int_yyvs = Int_yyvs1; }#else /* no Int_yyoverflow */# ifndef YYSTACK_RELOCATE goto Int_yyoverflowlab;# else /* Extend the stack our own way. */ if (YYMAXDEPTH <= Int_yystacksize) goto Int_yyoverflowlab; Int_yystacksize *= 2; if (YYMAXDEPTH < Int_yystacksize) Int_yystacksize = YYMAXDEPTH; { short *Int_yyss1 = Int_yyss; union Int_yyalloc *Int_yyptr = (union Int_yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (Int_yystacksize)); if (! Int_yyptr) goto Int_yyoverflowlab; YYSTACK_RELOCATE (Int_yyss); YYSTACK_RELOCATE (Int_yyvs);# undef YYSTACK_RELOCATE if (Int_yyss1 != Int_yyssa) YYSTACK_FREE (Int_yyss1); }# endif#endif /* no Int_yyoverflow */ Int_yyssp = Int_yyss + Int_yysize - 1; Int_yyvsp = Int_yyvs + Int_yysize - 1; YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long int) Int_yystacksize)); if (Int_yyss + Int_yystacksize - 1 <= Int_yyssp) YYABORT; } YYDPRINTF ((stderr, "Entering state %d\n", Int_yystate)); goto Int_yybackup;/*-----------.| Int_yybackup. |`-----------*/Int_yybackup:/* Do appropriate processing given the current state. *//* Read a lookahead token if we need one and don't already have one. *//* Int_yyresume: */ /* First try to decide what to do without reference to lookahead token. */ Int_yyn = Int_yypact[Int_yystate]; if (Int_yyn == YYPACT_NINF) goto Int_yydefault; /* Not known => get a lookahead token if don't already have one. */ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ if (Int_yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: "));
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?