PHP  
 PHP: Test and Code Coverage Analysis
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

LCOV - code coverage report
Current view: top level - Zend - zend_ini_parser.c (source / functions) Hit Total Coverage
Test: PHP Code Coverage Lines: 137 204 67.2 %
Date: 2015-07-26 Functions: 4 4 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : 
       2             : /* A Bison parser, made by GNU Bison 2.4.1.  */
       3             : 
       4             : /* Skeleton implementation for Bison's Yacc-like parsers in C
       5             :    
       6             :       Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
       7             :    Free Software Foundation, Inc.
       8             :    
       9             :    This program is free software: you can redistribute it and/or modify
      10             :    it under the terms of the GNU General Public License as published by
      11             :    the Free Software Foundation, either version 3 of the License, or
      12             :    (at your option) any later version.
      13             :    
      14             :    This program is distributed in the hope that it will be useful,
      15             :    but WITHOUT ANY WARRANTY; without even the implied warranty of
      16             :    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      17             :    GNU General Public License for more details.
      18             :    
      19             :    You should have received a copy of the GNU General Public License
      20             :    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
      21             : 
      22             : /* As a special exception, you may create a larger work that contains
      23             :    part or all of the Bison parser skeleton and distribute that work
      24             :    under terms of your choice, so long as that work isn't itself a
      25             :    parser generator using the skeleton or a modified version thereof
      26             :    as a parser skeleton.  Alternatively, if you modify or redistribute
      27             :    the parser skeleton itself, you may (at your option) remove this
      28             :    special exception, which will cause the skeleton and the resulting
      29             :    Bison output files to be licensed under the GNU General Public
      30             :    License without this special exception.
      31             :    
      32             :    This special exception was added by the Free Software Foundation in
      33             :    version 2.2 of Bison.  */
      34             : 
      35             : /* C LALR(1) parser skeleton written by Richard Stallman, by
      36             :    simplifying the original so-called "semantic" parser.  */
      37             : 
      38             : /* All symbols defined below should begin with yy or YY, to avoid
      39             :    infringing on user name space.  This should be done even for local
      40             :    variables, as they might otherwise be expanded by user macros.
      41             :    There are some unavoidable exceptions within include files to
      42             :    define necessary library symbols; they are noted "INFRINGES ON
      43             :    USER NAME SPACE" below.  */
      44             : 
      45             : /* Identify Bison output.  */
      46             : #define YYBISON 1
      47             : 
      48             : /* Bison version.  */
      49             : #define YYBISON_VERSION "2.4.1"
      50             : 
      51             : /* Skeleton name.  */
      52             : #define YYSKELETON_NAME "yacc.c"
      53             : 
      54             : /* Pure parsers.  */
      55             : #define YYPURE 1
      56             : 
      57             : /* Push parsers.  */
      58             : #define YYPUSH 0
      59             : 
      60             : /* Pull parsers.  */
      61             : #define YYPULL 1
      62             : 
      63             : /* Using locations.  */
      64             : #define YYLSP_NEEDED 0
      65             : 
      66             : /* Substitute the variable and function names.  */
      67             : #define yyparse         ini_parse
      68             : #define yylex           ini_lex
      69             : #define yyerror         ini_error
      70             : #define yylval          ini_lval
      71             : #define yychar          ini_char
      72             : #define yydebug         ini_debug
      73             : #define yynerrs         ini_nerrs
      74             : 
      75             : 
      76             : /* Copy the first part of user declarations.  */
      77             : 
      78             : /* Line 189 of yacc.c  */
      79             : #line 1 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
      80             : 
      81             : /*
      82             :    +----------------------------------------------------------------------+
      83             :    | Zend Engine                                                          |
      84             :    +----------------------------------------------------------------------+
      85             :    | Copyright (c) 1998-2015 Zend Technologies Ltd. (http://www.zend.com) |
      86             :    +----------------------------------------------------------------------+
      87             :    | This source file is subject to version 2.00 of the Zend license,     |
      88             :    | that is bundled with this package in the file LICENSE, and is        |
      89             :    | available through the world-wide-web at the following url:           |
      90             :    | http://www.zend.com/license/2_00.txt.                                |
      91             :    | If you did not receive a copy of the Zend license and are unable to  |
      92             :    | obtain it through the world-wide-web, please send a note to          |
      93             :    | license@zend.com so we can mail you a copy immediately.              |
      94             :    +----------------------------------------------------------------------+
      95             :    | Authors: Zeev Suraski <zeev@zend.com>                                |
      96             :    |          Jani Taskinen <jani@php.net>                                |
      97             :    +----------------------------------------------------------------------+
      98             : */
      99             : 
     100             : /* $Id$ */
     101             : 
     102             : #define DEBUG_CFG_PARSER 0
     103             : 
     104             : #include "zend.h"
     105             : #include "zend_API.h"
     106             : #include "zend_ini.h"
     107             : #include "zend_constants.h"
     108             : #include "zend_ini_scanner.h"
     109             : #include "zend_extensions.h"
     110             : 
     111             : #ifdef PHP_WIN32
     112             : #include "win32/syslog.h"
     113             : #endif
     114             : 
     115             : #define YYERROR_VERBOSE
     116             : #define YYSTYPE zval
     117             : 
     118             : int ini_parse(void);
     119             : 
     120             : #define ZEND_INI_PARSER_CB      (CG(ini_parser_param))->ini_parser_cb
     121             : #define ZEND_INI_PARSER_ARG     (CG(ini_parser_param))->arg
     122             : 
     123             : #ifdef _MSC_VER
     124             : #define YYMALLOC malloc
     125             : #define YYFREE free
     126             : #endif
     127             : 
     128             : /* {{{ zend_ini_do_op()
     129             : */
     130             : static void zend_ini_do_op(char type, zval *result, zval *op1, zval *op2)
     131             : {
     132             :         int i_result;
     133             :         int i_op1, i_op2;
     134             :         int str_len;
     135             :         char str_result[MAX_LENGTH_OF_LONG];
     136             : 
     137             :         i_op1 = atoi(Z_STRVAL_P(op1));
     138             :         zend_string_free(Z_STR_P(op1));
     139             :         if (op2) {
     140             :                 i_op2 = atoi(Z_STRVAL_P(op2));
     141             :                 zend_string_free(Z_STR_P(op2));
     142             :         } else {
     143             :                 i_op2 = 0;
     144             :         }
     145             : 
     146             :         switch (type) {
     147             :                 case '|':
     148             :                         i_result = i_op1 | i_op2;
     149             :                         break;
     150             :                 case '&':
     151             :                         i_result = i_op1 & i_op2;
     152             :                         break;
     153             :                 case '^':
     154             :                         i_result = i_op1 ^ i_op2;
     155             :                         break;
     156             :                 case '~':
     157             :                         i_result = ~i_op1;
     158             :                         break;
     159             :                 case '!':
     160             :                         i_result = !i_op1;
     161             :                         break;
     162             :                 default:
     163             :                         i_result = 0;
     164             :                         break;
     165             :         }
     166             : 
     167             :         str_len = zend_sprintf(str_result, "%d", i_result);
     168             :         ZVAL_PSTRINGL(result, str_result, str_len);
     169             : }
     170             : /* }}} */
     171             : 
     172             : /* {{{ zend_ini_init_string()
     173             : */
     174             : static void zend_ini_init_string(zval *result)
     175             : {
     176             :         ZVAL_EMPTY_PSTRING(result);
     177             : }
     178             : /* }}} */
     179             : 
     180             : /* {{{ zend_ini_add_string()
     181             : */
     182             : static void zend_ini_add_string(zval *result, zval *op1, zval *op2)
     183             : {
     184             :         int op1_len = (int)Z_STRLEN_P(op1);
     185             :         int length = op1_len + (int)Z_STRLEN_P(op2);
     186             : 
     187             :         ZVAL_NEW_STR(result, zend_string_extend(Z_STR_P(op1), length, 1));
     188             :         memcpy(Z_STRVAL_P(result)+op1_len, Z_STRVAL_P(op2), Z_STRLEN_P(op2));
     189             :         Z_STRVAL_P(result)[length] = 0;
     190             : }
     191             : /* }}} */
     192             : 
     193             : /* {{{ zend_ini_get_constant()
     194             : */
     195             : static void zend_ini_get_constant(zval *result, zval *name)
     196             : {
     197             :         zval *c, tmp;
     198             : 
     199             :         /* If name contains ':' it is not a constant. Bug #26893. */
     200             :         if (!memchr(Z_STRVAL_P(name), ':', Z_STRLEN_P(name))
     201             :                         && (c = zend_get_constant(Z_STR_P(name))) != 0) {
     202             :                 if (Z_TYPE_P(c) != IS_STRING) {
     203             :                         ZVAL_COPY_VALUE(&tmp, c);
     204             :                         if (Z_OPT_CONSTANT(tmp)) {
     205             :                                 zval_update_constant_ex(&tmp, 1, NULL);
     206             :                         }
     207             :                         zval_opt_copy_ctor(&tmp);
     208             :                         convert_to_string(&tmp);
     209             :                         c = &tmp;
     210             :                 }
     211             :                 ZVAL_PSTRINGL(result, Z_STRVAL_P(c), Z_STRLEN_P(c));
     212             :                 if (c == &tmp) {
     213             :                         zend_string_release(Z_STR(tmp));
     214             :                 }
     215             :                 zend_string_free(Z_STR_P(name));
     216             :         } else {
     217             :                 *result = *name;
     218             :         }
     219             : }
     220             : /* }}} */
     221             : 
     222             : /* {{{ zend_ini_get_var()
     223             : */
     224             : static void zend_ini_get_var(zval *result, zval *name)
     225             : {
     226             :         zval *curval;
     227             :         char *envvar;
     228             : 
     229             :         /* Fetch configuration option value */
     230             :         if ((curval = zend_get_configuration_directive(Z_STR_P(name))) != NULL) {
     231             :                 ZVAL_PSTRINGL(result, Z_STRVAL_P(curval), Z_STRLEN_P(curval));
     232             :         /* ..or if not found, try ENV */
     233             :         } else if ((envvar = zend_getenv(Z_STRVAL_P(name), Z_STRLEN_P(name))) != NULL ||
     234             :                            (envvar = getenv(Z_STRVAL_P(name))) != NULL) {
     235             :                 ZVAL_PSTRING(result, envvar);
     236             :         } else {
     237             :                 zend_ini_init_string(result);
     238             :         }
     239             : }
     240             : /* }}} */
     241             : 
     242             : /* {{{ ini_error()
     243             : */
     244             : static void ini_error(const char *msg)
     245             : {
     246             :         char *error_buf;
     247             :         int error_buf_len;
     248             :         char *currently_parsed_filename;
     249             : 
     250             :         currently_parsed_filename = zend_ini_scanner_get_filename();
     251             :         if (currently_parsed_filename) {
     252             :                 error_buf_len = 128 + (int)strlen(msg) + (int)strlen(currently_parsed_filename); /* should be more than enough */
     253             :                 error_buf = (char *) emalloc(error_buf_len);
     254             : 
     255             :                 sprintf(error_buf, "%s in %s on line %d\n", msg, currently_parsed_filename, zend_ini_scanner_get_lineno());
     256             :         } else {
     257             :                 error_buf = estrdup("Invalid configuration directive\n");
     258             :         }
     259             : 
     260             :         if (CG(ini_parser_unbuffered_errors)) {
     261             : #ifdef PHP_WIN32
     262             :                 syslog(LOG_ALERT, "PHP: %s (%s)", error_buf, GetCommandLine());
     263             : #endif
     264             :                 fprintf(stderr, "PHP:  %s", error_buf);
     265             :         } else {
     266             :                 zend_error(E_WARNING, "%s", error_buf);
     267             :         }
     268             :         efree(error_buf);
     269             : }
     270             : /* }}} */
     271             : 
     272             : /* {{{ zend_parse_ini_file()
     273             : */
     274             : ZEND_API int zend_parse_ini_file(zend_file_handle *fh, zend_bool unbuffered_errors, int scanner_mode, zend_ini_parser_cb_t ini_parser_cb, void *arg)
     275             : {
     276             :         int retval;
     277             :         zend_ini_parser_param ini_parser_param;
     278             : 
     279             :         ini_parser_param.ini_parser_cb = ini_parser_cb;
     280             :         ini_parser_param.arg = arg;
     281             :         CG(ini_parser_param) = &ini_parser_param;
     282             : 
     283             :         if (zend_ini_open_file_for_scanning(fh, scanner_mode) == FAILURE) {
     284             :                 return FAILURE;
     285             :         }
     286             : 
     287             :         CG(ini_parser_unbuffered_errors) = unbuffered_errors;
     288             :         retval = ini_parse();
     289             :         zend_file_handle_dtor(fh);
     290             : 
     291             :         shutdown_ini_scanner();
     292             : 
     293             :         if (retval == 0) {
     294             :                 return SUCCESS;
     295             :         } else {
     296             :                 return FAILURE;
     297             :         }
     298             : }
     299             : /* }}} */
     300             : 
     301             : /* {{{ zend_parse_ini_string()
     302             : */
     303             : ZEND_API int zend_parse_ini_string(char *str, zend_bool unbuffered_errors, int scanner_mode, zend_ini_parser_cb_t ini_parser_cb, void *arg)
     304             : {
     305             :         int retval;
     306             :         zend_ini_parser_param ini_parser_param;
     307             : 
     308             :         ini_parser_param.ini_parser_cb = ini_parser_cb;
     309             :         ini_parser_param.arg = arg;
     310             :         CG(ini_parser_param) = &ini_parser_param;
     311             : 
     312             :         if (zend_ini_prepare_string_for_scanning(str, scanner_mode) == FAILURE) {
     313             :                 return FAILURE;
     314             :         }
     315             : 
     316             :         CG(ini_parser_unbuffered_errors) = unbuffered_errors;
     317             :         retval = ini_parse();
     318             : 
     319             :         shutdown_ini_scanner();
     320             : 
     321             :         if (retval == 0) {
     322             :                 return SUCCESS;
     323             :         } else {
     324             :                 return FAILURE;
     325             :         }
     326             : }
     327             : /* }}} */
     328             : 
     329             : 
     330             : 
     331             : /* Line 189 of yacc.c  */
     332             : #line 333 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.c"
     333             : 
     334             : /* Enabling traces.  */
     335             : #ifndef YYDEBUG
     336             : # define YYDEBUG 0
     337             : #endif
     338             : 
     339             : /* Enabling verbose error messages.  */
     340             : #ifdef YYERROR_VERBOSE
     341             : # undef YYERROR_VERBOSE
     342             : # define YYERROR_VERBOSE 1
     343             : #else
     344             : # define YYERROR_VERBOSE 0
     345             : #endif
     346             : 
     347             : /* Enabling the token table.  */
     348             : #ifndef YYTOKEN_TABLE
     349             : # define YYTOKEN_TABLE 0
     350             : #endif
     351             : 
     352             : 
     353             : /* Tokens.  */
     354             : #ifndef YYTOKENTYPE
     355             : # define YYTOKENTYPE
     356             :    /* Put the tokens into the symbol table, so that GDB and other debuggers
     357             :       know about them.  */
     358             :    enum yytokentype {
     359             :      TC_SECTION = 258,
     360             :      TC_RAW = 259,
     361             :      TC_CONSTANT = 260,
     362             :      TC_NUMBER = 261,
     363             :      TC_STRING = 262,
     364             :      TC_WHITESPACE = 263,
     365             :      TC_LABEL = 264,
     366             :      TC_OFFSET = 265,
     367             :      TC_DOLLAR_CURLY = 266,
     368             :      TC_VARNAME = 267,
     369             :      TC_QUOTED_STRING = 268,
     370             :      BOOL_TRUE = 269,
     371             :      BOOL_FALSE = 270,
     372             :      NULL_NULL = 271,
     373             :      END_OF_LINE = 272
     374             :    };
     375             : #endif
     376             : /* Tokens.  */
     377             : #define TC_SECTION 258
     378             : #define TC_RAW 259
     379             : #define TC_CONSTANT 260
     380             : #define TC_NUMBER 261
     381             : #define TC_STRING 262
     382             : #define TC_WHITESPACE 263
     383             : #define TC_LABEL 264
     384             : #define TC_OFFSET 265
     385             : #define TC_DOLLAR_CURLY 266
     386             : #define TC_VARNAME 267
     387             : #define TC_QUOTED_STRING 268
     388             : #define BOOL_TRUE 269
     389             : #define BOOL_FALSE 270
     390             : #define NULL_NULL 271
     391             : #define END_OF_LINE 272
     392             : 
     393             : 
     394             : 
     395             : 
     396             : #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
     397             : typedef int YYSTYPE;
     398             : # define YYSTYPE_IS_TRIVIAL 1
     399             : # define yystype YYSTYPE /* obsolescent; will be withdrawn */
     400             : # define YYSTYPE_IS_DECLARED 1
     401             : #endif
     402             : 
     403             : 
     404             : /* Copy the second part of user declarations.  */
     405             : 
     406             : 
     407             : /* Line 264 of yacc.c  */
     408             : #line 409 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.c"
     409             : 
     410             : #ifdef short
     411             : # undef short
     412             : #endif
     413             : 
     414             : #ifdef YYTYPE_UINT8
     415             : typedef YYTYPE_UINT8 yytype_uint8;
     416             : #else
     417             : typedef unsigned char yytype_uint8;
     418             : #endif
     419             : 
     420             : #ifdef YYTYPE_INT8
     421             : typedef YYTYPE_INT8 yytype_int8;
     422             : #elif (defined __STDC__ || defined __C99__FUNC__ \
     423             :      || defined __cplusplus || defined _MSC_VER)
     424             : typedef signed char yytype_int8;
     425             : #else
     426             : typedef short int yytype_int8;
     427             : #endif
     428             : 
     429             : #ifdef YYTYPE_UINT16
     430             : typedef YYTYPE_UINT16 yytype_uint16;
     431             : #else
     432             : typedef unsigned short int yytype_uint16;
     433             : #endif
     434             : 
     435             : #ifdef YYTYPE_INT16
     436             : typedef YYTYPE_INT16 yytype_int16;
     437             : #else
     438             : typedef short int yytype_int16;
     439             : #endif
     440             : 
     441             : #ifndef YYSIZE_T
     442             : # ifdef __SIZE_TYPE__
     443             : #  define YYSIZE_T __SIZE_TYPE__
     444             : # elif defined size_t
     445             : #  define YYSIZE_T size_t
     446             : # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
     447             :      || defined __cplusplus || defined _MSC_VER)
     448             : #  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
     449             : #  define YYSIZE_T size_t
     450             : # else
     451             : #  define YYSIZE_T unsigned int
     452             : # endif
     453             : #endif
     454             : 
     455             : #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
     456             : 
     457             : #ifndef YY_
     458             : # if YYENABLE_NLS
     459             : #  if ENABLE_NLS
     460             : #   include <libintl.h> /* INFRINGES ON USER NAME SPACE */
     461             : #   define YY_(msgid) dgettext ("bison-runtime", msgid)
     462             : #  endif
     463             : # endif
     464             : # ifndef YY_
     465             : #  define YY_(msgid) msgid
     466             : # endif
     467             : #endif
     468             : 
     469             : /* Suppress unused-variable warnings by "using" E.  */
     470             : #if ! defined lint || defined __GNUC__
     471             : # define YYUSE(e) ((void) (e))
     472             : #else
     473             : # define YYUSE(e) /* empty */
     474             : #endif
     475             : 
     476             : /* Identity function, used to suppress warnings about constant conditions.  */
     477             : #ifndef lint
     478             : # define YYID(n) (n)
     479             : #else
     480             : #if (defined __STDC__ || defined __C99__FUNC__ \
     481             :      || defined __cplusplus || defined _MSC_VER)
     482             : static int
     483             : YYID (int yyi)
     484             : #else
     485             : static int
     486             : YYID (yyi)
     487             :     int yyi;
     488             : #endif
     489             : {
     490             :   return yyi;
     491             : }
     492             : #endif
     493             : 
     494             : #if ! defined yyoverflow || YYERROR_VERBOSE
     495             : 
     496             : /* The parser invokes alloca or malloc; define the necessary symbols.  */
     497             : 
     498             : # ifdef YYSTACK_USE_ALLOCA
     499             : #  if YYSTACK_USE_ALLOCA
     500             : #   ifdef __GNUC__
     501             : #    define YYSTACK_ALLOC __builtin_alloca
     502             : #   elif defined __BUILTIN_VA_ARG_INCR
     503             : #    include <alloca.h> /* INFRINGES ON USER NAME SPACE */
     504             : #   elif defined _AIX
     505             : #    define YYSTACK_ALLOC __alloca
     506             : #   elif defined _MSC_VER
     507             : #    include <malloc.h> /* INFRINGES ON USER NAME SPACE */
     508             : #    define alloca _alloca
     509             : #   else
     510             : #    define YYSTACK_ALLOC alloca
     511             : #    if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
     512             :      || defined __cplusplus || defined _MSC_VER)
     513             : #     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
     514             : #     ifndef _STDLIB_H
     515             : #      define _STDLIB_H 1
     516             : #     endif
     517             : #    endif
     518             : #   endif
     519             : #  endif
     520             : # endif
     521             : 
     522             : # ifdef YYSTACK_ALLOC
     523             :    /* Pacify GCC's `empty if-body' warning.  */
     524             : #  define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
     525             : #  ifndef YYSTACK_ALLOC_MAXIMUM
     526             :     /* The OS might guarantee only one guard page at the bottom of the stack,
     527             :        and a page size can be as small as 4096 bytes.  So we cannot safely
     528             :        invoke alloca (N) if N exceeds 4096.  Use a slightly smaller number
     529             :        to allow for a few compiler-allocated temporary stack slots.  */
     530             : #   define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
     531             : #  endif
     532             : # else
     533             : #  define YYSTACK_ALLOC YYMALLOC
     534             : #  define YYSTACK_FREE YYFREE
     535             : #  ifndef YYSTACK_ALLOC_MAXIMUM
     536             : #   define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
     537             : #  endif
     538             : #  if (defined __cplusplus && ! defined _STDLIB_H \
     539             :        && ! ((defined YYMALLOC || defined malloc) \
     540             :              && (defined YYFREE || defined free)))
     541             : #   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
     542             : #   ifndef _STDLIB_H
     543             : #    define _STDLIB_H 1
     544             : #   endif
     545             : #  endif
     546             : #  ifndef YYMALLOC
     547             : #   define YYMALLOC malloc
     548             : #   if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
     549             :      || defined __cplusplus || defined _MSC_VER)
     550             : void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
     551             : #   endif
     552             : #  endif
     553             : #  ifndef YYFREE
     554             : #   define YYFREE free
     555             : #   if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
     556             :      || defined __cplusplus || defined _MSC_VER)
     557             : void free (void *); /* INFRINGES ON USER NAME SPACE */
     558             : #   endif
     559             : #  endif
     560             : # endif
     561             : #endif /* ! defined yyoverflow || YYERROR_VERBOSE */
     562             : 
     563             : 
     564             : #if (! defined yyoverflow \
     565             :      && (! defined __cplusplus \
     566             :          || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
     567             : 
     568             : /* A type that is properly aligned for any stack member.  */
     569             : union yyalloc
     570             : {
     571             :   yytype_int16 yyss_alloc;
     572             :   YYSTYPE yyvs_alloc;
     573             : };
     574             : 
     575             : /* The size of the maximum gap between one aligned stack and the next.  */
     576             : # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
     577             : 
     578             : /* The size of an array large to enough to hold all stacks, each with
     579             :    N elements.  */
     580             : # define YYSTACK_BYTES(N) \
     581             :      ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
     582             :       + YYSTACK_GAP_MAXIMUM)
     583             : 
     584             : /* Copy COUNT objects from FROM to TO.  The source and destination do
     585             :    not overlap.  */
     586             : # ifndef YYCOPY
     587             : #  if defined __GNUC__ && 1 < __GNUC__
     588             : #   define YYCOPY(To, From, Count) \
     589             :       __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
     590             : #  else
     591             : #   define YYCOPY(To, From, Count)              \
     592             :       do                                        \
     593             :         {                                       \
     594             :           YYSIZE_T yyi;                         \
     595             :           for (yyi = 0; yyi < (Count); yyi++)        \
     596             :             (To)[yyi] = (From)[yyi];            \
     597             :         }                                       \
     598             :       while (YYID (0))
     599             : #  endif
     600             : # endif
     601             : 
     602             : /* Relocate STACK from its old location to the new one.  The
     603             :    local variables YYSIZE and YYSTACKSIZE give the old and new number of
     604             :    elements in the stack, and YYPTR gives the new location of the
     605             :    stack.  Advance YYPTR to a properly aligned location for the next
     606             :    stack.  */
     607             : # define YYSTACK_RELOCATE(Stack_alloc, Stack)                           \
     608             :     do                                                                  \
     609             :       {                                                                 \
     610             :         YYSIZE_T yynewbytes;                                            \
     611             :         YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                     \
     612             :         Stack = &yyptr->Stack_alloc;                                     \
     613             :         yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
     614             :         yyptr += yynewbytes / sizeof (*yyptr);                          \
     615             :       }                                                                 \
     616             :     while (YYID (0))
     617             : 
     618             : #endif
     619             : 
     620             : /* YYFINAL -- State number of the termination state.  */
     621             : #define YYFINAL  2
     622             : /* YYLAST -- Last index in YYTABLE.  */
     623             : #define YYLAST   123
     624             : 
     625             : /* YYNTOKENS -- Number of terminals.  */
     626             : #define YYNTOKENS  44
     627             : /* YYNNTS -- Number of nonterminals.  */
     628             : #define YYNNTS  13
     629             : /* YYNRULES -- Number of rules.  */
     630             : #define YYNRULES  50
     631             : /* YYNRULES -- Number of states.  */
     632             : #define YYNSTATES  72
     633             : 
     634             : /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */
     635             : #define YYUNDEFTOK  2
     636             : #define YYMAXUTOK   272
     637             : 
     638             : #define YYTRANSLATE(YYX)                                                \
     639             :   ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
     640             : 
     641             : /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */
     642             : static const yytype_uint8 yytranslate[] =
     643             : {
     644             :        0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     645             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     646             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     647             :        2,     2,     2,    40,    22,     2,    30,    29,    39,    23,
     648             :       42,    43,    28,    25,    20,    26,    21,    27,     2,     2,
     649             :        2,     2,     2,     2,     2,     2,     2,     2,    19,     2,
     650             :       32,    18,    33,    34,    35,     2,     2,     2,     2,     2,
     651             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     652             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     653             :        2,     2,     2,    41,    24,     2,     2,     2,     2,     2,
     654             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     655             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     656             :        2,     2,     2,    36,    38,    37,    31,     2,     2,     2,
     657             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     658             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     659             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     660             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     661             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     662             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     663             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     664             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     665             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     666             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     667             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     668             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     669             :        2,     2,     2,     2,     2,     2,     1,     2,     3,     4,
     670             :        5,     6,     7,     8,     9,    10,    11,    12,    13,    14,
     671             :       15,    16,    17
     672             : };
     673             : 
     674             : #if YYDEBUG
     675             : /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
     676             :    YYRHS.  */
     677             : static const yytype_uint8 yyprhs[] =
     678             : {
     679             :        0,     0,     3,     6,     7,    11,    15,    21,    23,    25,
     680             :       27,    28,    30,    32,    34,    36,    38,    40,    41,    44,
     681             :       47,    48,    50,    52,    56,    59,    62,    67,    69,    71,
     682             :       75,    78,    81,    86,    88,    92,    96,   100,   103,   106,
     683             :      110,   114,   116,   118,   120,   122,   124,   126,   128,   130,
     684             :      132
     685             : };
     686             : 
     687             : /* YYRHS -- A `-1'-separated list of the rules' RHS.  */
     688             : static const yytype_int8 yyrhs[] =
     689             : {
     690             :       45,     0,    -1,    45,    46,    -1,    -1,     3,    47,    41,
     691             :       -1,     9,    18,    48,    -1,    10,    49,    41,    18,    48,
     692             :       -1,     9,    -1,    17,    -1,    51,    -1,    -1,    53,    -1,
     693             :       14,    -1,    15,    -1,    16,    -1,    17,    -1,    52,    -1,
     694             :       -1,    50,    54,    -1,    50,    13,    -1,    -1,    54,    -1,
     695             :       55,    -1,    22,    50,    22,    -1,    51,    54,    -1,    51,
     696             :       55,    -1,    51,    22,    50,    22,    -1,    54,    -1,    56,
     697             :       -1,    22,    50,    22,    -1,    52,    54,    -1,    52,    56,
     698             :       -1,    52,    22,    50,    22,    -1,    52,    -1,    53,    38,
     699             :       53,    -1,    53,    39,    53,    -1,    53,    24,    53,    -1,
     700             :       31,    53,    -1,    40,    53,    -1,    42,    53,    43,    -1,
     701             :       11,    12,    37,    -1,     5,    -1,     4,    -1,     6,    -1,
     702             :        7,    -1,     8,    -1,     5,    -1,     4,    -1,     6,    -1,
     703             :        7,    -1,     8,    -1
     704             : };
     705             : 
     706             : /* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
     707             : static const yytype_uint16 yyrline[] =
     708             : {
     709             :        0,   277,   277,   278,   282,   289,   297,   306,   307,   311,
     710             :      312,   316,   317,   318,   319,   320,   324,   325,   329,   330,
     711             :      331,   335,   336,   337,   338,   339,   340,   344,   345,   346,
     712             :      347,   348,   349,   353,   354,   355,   356,   357,   358,   359,
     713             :      363,   367,   368,   369,   370,   371,   375,   376,   377,   378,
     714             :      379
     715             : };
     716             : #endif
     717             : 
     718             : #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
     719             : /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
     720             :    First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
     721             : static const char *const yytname[] =
     722             : {
     723             :   "$end", "error", "$undefined", "TC_SECTION", "TC_RAW", "TC_CONSTANT",
     724             :   "TC_NUMBER", "TC_STRING", "TC_WHITESPACE", "TC_LABEL", "TC_OFFSET",
     725             :   "TC_DOLLAR_CURLY", "TC_VARNAME", "TC_QUOTED_STRING", "BOOL_TRUE",
     726             :   "BOOL_FALSE", "NULL_NULL", "END_OF_LINE", "'='", "':'", "','", "'.'",
     727             :   "'\"'", "'\\''", "'^'", "'+'", "'-'", "'/'", "'*'", "'%'", "'$'", "'~'",
     728             :   "'<'", "'>'", "'?'", "'@'", "'{'", "'}'", "'|'", "'&'", "'!'", "']'",
     729             :   "'('", "')'", "$accept", "statement_list", "statement",
     730             :   "section_string_or_value", "string_or_value", "option_offset",
     731             :   "encapsed_list", "var_string_list_section", "var_string_list", "expr",
     732             :   "cfg_var_ref", "constant_literal", "constant_string", 0
     733             : };
     734             : #endif
     735             : 
     736             : # ifdef YYPRINT
     737             : /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
     738             :    token YYLEX-NUM.  */
     739             : static const yytype_uint16 yytoknum[] =
     740             : {
     741             :        0,   256,   257,   258,   259,   260,   261,   262,   263,   264,
     742             :      265,   266,   267,   268,   269,   270,   271,   272,    61,    58,
     743             :       44,    46,    34,    39,    94,    43,    45,    47,    42,    37,
     744             :       36,   126,    60,    62,    63,    64,   123,   125,   124,    38,
     745             :       33,    93,    40,    41
     746             : };
     747             : # endif
     748             : 
     749             : /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
     750             : static const yytype_uint8 yyr1[] =
     751             : {
     752             :        0,    44,    45,    45,    46,    46,    46,    46,    46,    47,
     753             :       47,    48,    48,    48,    48,    48,    49,    49,    50,    50,
     754             :       50,    51,    51,    51,    51,    51,    51,    52,    52,    52,
     755             :       52,    52,    52,    53,    53,    53,    53,    53,    53,    53,
     756             :       54,    55,    55,    55,    55,    55,    56,    56,    56,    56,
     757             :       56
     758             : };
     759             : 
     760             : /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */
     761             : static const yytype_uint8 yyr2[] =
     762             : {
     763             :        0,     2,     2,     0,     3,     3,     5,     1,     1,     1,
     764             :        0,     1,     1,     1,     1,     1,     1,     0,     2,     2,
     765             :        0,     1,     1,     3,     2,     2,     4,     1,     1,     3,
     766             :        2,     2,     4,     1,     3,     3,     3,     2,     2,     3,
     767             :        3,     1,     1,     1,     1,     1,     1,     1,     1,     1,
     768             :        1
     769             : };
     770             : 
     771             : /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
     772             :    STATE-NUM when YYTABLE doesn't specify something else to do.  Zero
     773             :    means the default is an error.  */
     774             : static const yytype_uint8 yydefact[] =
     775             : {
     776             :        3,     0,     1,    10,     7,    17,     8,     2,    42,    41,
     777             :       43,    44,    45,     0,    20,     0,     9,    21,    22,     0,
     778             :       47,    46,    48,    49,    50,    20,     0,    16,    27,    28,
     779             :        0,     0,     4,    20,    24,    25,    12,    13,    14,    15,
     780             :        0,     0,     0,     5,    33,    11,     0,     0,    20,    30,
     781             :       31,    40,    19,    23,    18,     0,    37,    38,     0,     0,
     782             :        0,     0,    29,     0,     0,    26,    39,    36,    34,    35,
     783             :        6,    32
     784             : };
     785             : 
     786             : /* YYDEFGOTO[NTERM-NUM].  */
     787             : static const yytype_int8 yydefgoto[] =
     788             : {
     789             :       -1,     1,     7,    15,    43,    26,    31,    16,    44,    45,
     790             :       28,    18,    29
     791             : };
     792             : 
     793             : /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
     794             :    STATE-NUM.  */
     795             : #define YYPACT_NINF -25
     796             : static const yytype_int8 yypact[] =
     797             : {
     798             :      -25,     9,   -25,    73,   -17,    81,   -25,   -25,   -25,   -25,
     799             :      -25,   -25,   -25,    15,   -25,   -20,    93,   -25,   -25,     0,
     800             :      -25,   -25,   -25,   -25,   -25,   -25,   -12,   101,   -25,   -25,
     801             :       -7,    36,   -25,   -25,   -25,   -25,   -25,   -25,   -25,   -25,
     802             :       28,    28,    28,   -25,   101,    -1,    40,    30,   -25,   -25,
     803             :      -25,   -25,   -25,   -25,   -25,    80,   -25,   -25,    33,    28,
     804             :       28,    28,   -25,     0,   100,   -25,   -25,   -25,   -25,   -25,
     805             :      -25,   -25
     806             : };
     807             : 
     808             : /* YYPGOTO[NTERM-NUM].  */
     809             : static const yytype_int8 yypgoto[] =
     810             : {
     811             :      -25,   -25,   -25,   -25,    -9,   -25,   -23,   -25,    50,     4,
     812             :       -3,    44,   -24
     813             : };
     814             : 
     815             : /* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If
     816             :    positive, shift that token.  If negative, reduce the rule which
     817             :    number is the opposite.  If zero, do what YYDEFACT says.
     818             :    If YYTABLE_NINF, syntax error.  */
     819             : #define YYTABLE_NINF -1
     820             : static const yytype_uint8 yytable[] =
     821             : {
     822             :       17,    19,    46,    50,    20,    21,    22,    23,    24,     2,
     823             :       55,    13,     3,    34,    36,    37,    38,    39,     4,     5,
     824             :       50,    32,    25,    59,    49,    64,     6,    30,    54,    47,
     825             :       51,    40,    20,    21,    22,    23,    24,    60,    61,    13,
     826             :       41,    49,    42,    54,    56,    57,    58,    13,    63,    52,
     827             :       25,    13,    54,    52,    70,    27,     0,    59,    53,    40,
     828             :       35,    54,    62,    67,    68,    69,     0,     0,    41,     0,
     829             :       42,    60,    61,     0,     0,     0,    66,     8,     9,    10,
     830             :       11,    12,     0,     0,    13,    20,    21,    22,    23,    24,
     831             :        0,    13,    13,    52,     0,    14,     0,     8,     9,    10,
     832             :       11,    12,    65,    25,    13,    20,    21,    22,    23,    24,
     833             :        0,    13,    13,    52,     0,    33,     0,     0,     0,     0,
     834             :        0,     0,    71,    48
     835             : };
     836             : 
     837             : static const yytype_int8 yycheck[] =
     838             : {
     839             :        3,    18,    25,    27,     4,     5,     6,     7,     8,     0,
     840             :       33,    11,     3,    16,    14,    15,    16,    17,     9,    10,
     841             :       44,    41,    22,    24,    27,    48,    17,    12,    31,    41,
     842             :       37,    31,     4,     5,     6,     7,     8,    38,    39,    11,
     843             :       40,    44,    42,    46,    40,    41,    42,    11,    18,    13,
     844             :       22,    11,    55,    13,    63,     5,    -1,    24,    22,    31,
     845             :       16,    64,    22,    59,    60,    61,    -1,    -1,    40,    -1,
     846             :       42,    38,    39,    -1,    -1,    -1,    43,     4,     5,     6,
     847             :        7,     8,    -1,    -1,    11,     4,     5,     6,     7,     8,
     848             :       -1,    11,    11,    13,    -1,    22,    -1,     4,     5,     6,
     849             :        7,     8,    22,    22,    11,     4,     5,     6,     7,     8,
     850             :       -1,    11,    11,    13,    -1,    22,    -1,    -1,    -1,    -1,
     851             :       -1,    -1,    22,    22
     852             : };
     853             : 
     854             : /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
     855             :    symbol of state STATE-NUM.  */
     856             : static const yytype_uint8 yystos[] =
     857             : {
     858             :        0,    45,     0,     3,     9,    10,    17,    46,     4,     5,
     859             :        6,     7,     8,    11,    22,    47,    51,    54,    55,    18,
     860             :        4,     5,     6,     7,     8,    22,    49,    52,    54,    56,
     861             :       12,    50,    41,    22,    54,    55,    14,    15,    16,    17,
     862             :       31,    40,    42,    48,    52,    53,    50,    41,    22,    54,
     863             :       56,    37,    13,    22,    54,    50,    53,    53,    53,    24,
     864             :       38,    39,    22,    18,    50,    22,    43,    53,    53,    53,
     865             :       48,    22
     866             : };
     867             : 
     868             : #define yyerrok         (yyerrstatus = 0)
     869             : #define yyclearin       (yychar = YYEMPTY)
     870             : #define YYEMPTY         (-2)
     871             : #define YYEOF           0
     872             : 
     873             : #define YYACCEPT        goto yyacceptlab
     874             : #define YYABORT         goto yyabortlab
     875             : #define YYERROR         goto yyerrorlab
     876             : 
     877             : 
     878             : /* Like YYERROR except do call yyerror.  This remains here temporarily
     879             :    to ease the transition to the new meaning of YYERROR, for GCC.
     880             :    Once GCC version 2 has supplanted version 1, this can go.  */
     881             : 
     882             : #define YYFAIL          goto yyerrlab
     883             : 
     884             : #define YYRECOVERING()  (!!yyerrstatus)
     885             : 
     886             : #define YYBACKUP(Token, Value)                                  \
     887             : do                                                              \
     888             :   if (yychar == YYEMPTY && yylen == 1)                          \
     889             :     {                                                           \
     890             :       yychar = (Token);                                         \
     891             :       yylval = (Value);                                         \
     892             :       yytoken = YYTRANSLATE (yychar);                           \
     893             :       YYPOPSTACK (1);                                           \
     894             :       goto yybackup;                                            \
     895             :     }                                                           \
     896             :   else                                                          \
     897             :     {                                                           \
     898             :       yyerror (YY_("syntax error: cannot back up")); \
     899             :       YYERROR;                                                  \
     900             :     }                                                           \
     901             : while (YYID (0))
     902             : 
     903             : 
     904             : #define YYTERROR        1
     905             : #define YYERRCODE       256
     906             : 
     907             : 
     908             : /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
     909             :    If N is 0, then set CURRENT to the empty location which ends
     910             :    the previous symbol: RHS[0] (always defined).  */
     911             : 
     912             : #define YYRHSLOC(Rhs, K) ((Rhs)[K])
     913             : #ifndef YYLLOC_DEFAULT
     914             : # define YYLLOC_DEFAULT(Current, Rhs, N)                                \
     915             :     do                                                                  \
     916             :       if (YYID (N))                                                    \
     917             :         {                                                               \
     918             :           (Current).first_line   = YYRHSLOC (Rhs, 1).first_line;        \
     919             :           (Current).first_column = YYRHSLOC (Rhs, 1).first_column;      \
     920             :           (Current).last_line    = YYRHSLOC (Rhs, N).last_line;         \
     921             :           (Current).last_column  = YYRHSLOC (Rhs, N).last_column;       \
     922             :         }                                                               \
     923             :       else                                                              \
     924             :         {                                                               \
     925             :           (Current).first_line   = (Current).last_line   =              \
     926             :             YYRHSLOC (Rhs, 0).last_line;                                \
     927             :           (Current).first_column = (Current).last_column =              \
     928             :             YYRHSLOC (Rhs, 0).last_column;                              \
     929             :         }                                                               \
     930             :     while (YYID (0))
     931             : #endif
     932             : 
     933             : 
     934             : /* YY_LOCATION_PRINT -- Print the location on the stream.
     935             :    This macro was not mandated originally: define only if we know
     936             :    we won't break user code: when these are the locations we know.  */
     937             : 
     938             : #ifndef YY_LOCATION_PRINT
     939             : # if YYLTYPE_IS_TRIVIAL
     940             : #  define YY_LOCATION_PRINT(File, Loc)                  \
     941             :      fprintf (File, "%d.%d-%d.%d",                    \
     942             :               (Loc).first_line, (Loc).first_column,     \
     943             :               (Loc).last_line,  (Loc).last_column)
     944             : # else
     945             : #  define YY_LOCATION_PRINT(File, Loc) ((void) 0)
     946             : # endif
     947             : #endif
     948             : 
     949             : 
     950             : /* YYLEX -- calling `yylex' with the right arguments.  */
     951             : 
     952             : #ifdef YYLEX_PARAM
     953             : # define YYLEX yylex (&yylval, YYLEX_PARAM)
     954             : #else
     955             : # define YYLEX yylex (&yylval)
     956             : #endif
     957             : 
     958             : /* Enable debugging if requested.  */
     959             : #if YYDEBUG
     960             : 
     961             : # ifndef YYFPRINTF
     962             : #  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
     963             : #  define YYFPRINTF fprintf
     964             : # endif
     965             : 
     966             : # define YYDPRINTF(Args)                        \
     967             : do {                                            \
     968             :   if (yydebug)                                  \
     969             :     YYFPRINTF Args;                             \
     970             : } while (YYID (0))
     971             : 
     972             : # define YY_SYMBOL_PRINT(Title, Type, Value, Location)                    \
     973             : do {                                                                      \
     974             :   if (yydebug)                                                            \
     975             :     {                                                                     \
     976             :       YYFPRINTF (stderr, "%s ", Title);                                         \
     977             :       yy_symbol_print (stderr,                                            \
     978             :                   Type, Value); \
     979             :       YYFPRINTF (stderr, "\n");                                                 \
     980             :     }                                                                     \
     981             : } while (YYID (0))
     982             : 
     983             : 
     984             : /*--------------------------------.
     985             : | Print this symbol on YYOUTPUT.  |
     986             : `--------------------------------*/
     987             : 
     988             : /*ARGSUSED*/
     989             : #if (defined __STDC__ || defined __C99__FUNC__ \
     990             :      || defined __cplusplus || defined _MSC_VER)
     991             : static void
     992             : yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
     993             : #else
     994             : static void
     995             : yy_symbol_value_print (yyoutput, yytype, yyvaluep)
     996             :     FILE *yyoutput;
     997             :     int yytype;
     998             :     YYSTYPE const * const yyvaluep;
     999             : #endif
    1000             : {
    1001             :   if (!yyvaluep)
    1002             :     return;
    1003             : # ifdef YYPRINT
    1004             :   if (yytype < YYNTOKENS)
    1005             :     YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
    1006             : # else
    1007             :   YYUSE (yyoutput);
    1008             : # endif
    1009             :   switch (yytype)
    1010             :     {
    1011             :       default:
    1012             :         break;
    1013             :     }
    1014             : }
    1015             : 
    1016             : 
    1017             : /*--------------------------------.
    1018             : | Print this symbol on YYOUTPUT.  |
    1019             : `--------------------------------*/
    1020             : 
    1021             : #if (defined __STDC__ || defined __C99__FUNC__ \
    1022             :      || defined __cplusplus || defined _MSC_VER)
    1023             : static void
    1024             : yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
    1025             : #else
    1026             : static void
    1027             : yy_symbol_print (yyoutput, yytype, yyvaluep)
    1028             :     FILE *yyoutput;
    1029             :     int yytype;
    1030             :     YYSTYPE const * const yyvaluep;
    1031             : #endif
    1032             : {
    1033             :   if (yytype < YYNTOKENS)
    1034             :     YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
    1035             :   else
    1036             :     YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
    1037             : 
    1038             :   yy_symbol_value_print (yyoutput, yytype, yyvaluep);
    1039             :   YYFPRINTF (yyoutput, ")");
    1040             : }
    1041             : 
    1042             : /*------------------------------------------------------------------.
    1043             : | yy_stack_print -- Print the state stack from its BOTTOM up to its |
    1044             : | TOP (included).                                                   |
    1045             : `------------------------------------------------------------------*/
    1046             : 
    1047             : #if (defined __STDC__ || defined __C99__FUNC__ \
    1048             :      || defined __cplusplus || defined _MSC_VER)
    1049             : static void
    1050             : yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
    1051             : #else
    1052             : static void
    1053             : yy_stack_print (yybottom, yytop)
    1054             :     yytype_int16 *yybottom;
    1055             :     yytype_int16 *yytop;
    1056             : #endif
    1057             : {
    1058             :   YYFPRINTF (stderr, "Stack now");
    1059             :   for (; yybottom <= yytop; yybottom++)
    1060             :     {
    1061             :       int yybot = *yybottom;
    1062             :       YYFPRINTF (stderr, " %d", yybot);
    1063             :     }
    1064             :   YYFPRINTF (stderr, "\n");
    1065             : }
    1066             : 
    1067             : # define YY_STACK_PRINT(Bottom, Top)                            \
    1068             : do {                                                            \
    1069             :   if (yydebug)                                                  \
    1070             :     yy_stack_print ((Bottom), (Top));                           \
    1071             : } while (YYID (0))
    1072             : 
    1073             : 
    1074             : /*------------------------------------------------.
    1075             : | Report that the YYRULE is going to be reduced.  |
    1076             : `------------------------------------------------*/
    1077             : 
    1078             : #if (defined __STDC__ || defined __C99__FUNC__ \
    1079             :      || defined __cplusplus || defined _MSC_VER)
    1080             : static void
    1081             : yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
    1082             : #else
    1083             : static void
    1084             : yy_reduce_print (yyvsp, yyrule)
    1085             :     YYSTYPE *yyvsp;
    1086             :     int yyrule;
    1087             : #endif
    1088             : {
    1089             :   int yynrhs = yyr2[yyrule];
    1090             :   int yyi;
    1091             :   unsigned long int yylno = yyrline[yyrule];
    1092             :   YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
    1093             :              yyrule - 1, yylno);
    1094             :   /* The symbols being reduced.  */
    1095             :   for (yyi = 0; yyi < yynrhs; yyi++)
    1096             :     {
    1097             :       YYFPRINTF (stderr, "   $%d = ", yyi + 1);
    1098             :       yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
    1099             :                        &(yyvsp[(yyi + 1) - (yynrhs)])
    1100             :                                        );
    1101             :       YYFPRINTF (stderr, "\n");
    1102             :     }
    1103             : }
    1104             : 
    1105             : # define YY_REDUCE_PRINT(Rule)          \
    1106             : do {                                    \
    1107             :   if (yydebug)                          \
    1108             :     yy_reduce_print (yyvsp, Rule); \
    1109             : } while (YYID (0))
    1110             : 
    1111             : /* Nonzero means print parse trace.  It is left uninitialized so that
    1112             :    multiple parsers can coexist.  */
    1113             : int yydebug;
    1114             : #else /* !YYDEBUG */
    1115             : # define YYDPRINTF(Args)
    1116             : # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
    1117             : # define YY_STACK_PRINT(Bottom, Top)
    1118             : # define YY_REDUCE_PRINT(Rule)
    1119             : #endif /* !YYDEBUG */
    1120             : 
    1121             : 
    1122             : /* YYINITDEPTH -- initial size of the parser's stacks.  */
    1123             : #ifndef YYINITDEPTH
    1124             : # define YYINITDEPTH 200
    1125             : #endif
    1126             : 
    1127             : /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
    1128             :    if the built-in stack extension method is used).
    1129             : 
    1130             :    Do not make this value too large; the results are undefined if
    1131             :    YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
    1132             :    evaluated with infinite-precision integer arithmetic.  */
    1133             : 
    1134             : #ifndef YYMAXDEPTH
    1135             : # define YYMAXDEPTH 10000
    1136             : #endif
    1137             : 
    1138             : 
    1139             : 
    1140             : #if YYERROR_VERBOSE
    1141             : 
    1142             : # ifndef yystrlen
    1143             : #  if defined __GLIBC__ && defined _STRING_H
    1144             : #   define yystrlen strlen
    1145             : #  else
    1146             : /* Return the length of YYSTR.  */
    1147             : #if (defined __STDC__ || defined __C99__FUNC__ \
    1148             :      || defined __cplusplus || defined _MSC_VER)
    1149             : static YYSIZE_T
    1150             : yystrlen (const char *yystr)
    1151             : #else
    1152             : static YYSIZE_T
    1153             : yystrlen (yystr)
    1154             :     const char *yystr;
    1155             : #endif
    1156             : {
    1157             :   YYSIZE_T yylen;
    1158             :   for (yylen = 0; yystr[yylen]; yylen++)
    1159             :     continue;
    1160             :   return yylen;
    1161             : }
    1162             : #  endif
    1163             : # endif
    1164             : 
    1165             : # ifndef yystpcpy
    1166             : #  if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
    1167             : #   define yystpcpy stpcpy
    1168             : #  else
    1169             : /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
    1170             :    YYDEST.  */
    1171             : #if (defined __STDC__ || defined __C99__FUNC__ \
    1172             :      || defined __cplusplus || defined _MSC_VER)
    1173             : static char *
    1174             : yystpcpy (char *yydest, const char *yysrc)
    1175             : #else
    1176             : static char *
    1177             : yystpcpy (yydest, yysrc)
    1178             :     char *yydest;
    1179             :     const char *yysrc;
    1180             : #endif
    1181             : {
    1182             :   char *yyd = yydest;
    1183             :   const char *yys = yysrc;
    1184             : 
    1185             :   while ((*yyd++ = *yys++) != '\0')
    1186             :     continue;
    1187             : 
    1188             :   return yyd - 1;
    1189             : }
    1190             : #  endif
    1191             : # endif
    1192             : 
    1193             : # ifndef yytnamerr
    1194             : /* Copy to YYRES the contents of YYSTR after stripping away unnecessary
    1195             :    quotes and backslashes, so that it's suitable for yyerror.  The
    1196             :    heuristic is that double-quoting is unnecessary unless the string
    1197             :    contains an apostrophe, a comma, or backslash (other than
    1198             :    backslash-backslash).  YYSTR is taken from yytname.  If YYRES is
    1199             :    null, do not copy; instead, return the length of what the result
    1200             :    would have been.  */
    1201             : static YYSIZE_T
    1202          55 : yytnamerr (char *yyres, const char *yystr)
    1203             : {
    1204          55 :   if (*yystr == '"')
    1205             :     {
    1206           0 :       YYSIZE_T yyn = 0;
    1207           0 :       char const *yyp = yystr;
    1208             : 
    1209             :       for (;;)
    1210           0 :         switch (*++yyp)
    1211             :           {
    1212             :           case '\'':
    1213             :           case ',':
    1214           0 :             goto do_not_strip_quotes;
    1215             : 
    1216             :           case '\\':
    1217           0 :             if (*++yyp != '\\')
    1218           0 :               goto do_not_strip_quotes;
    1219             :             /* Fall through.  */
    1220             :           default:
    1221           0 :             if (yyres)
    1222           0 :               yyres[yyn] = *yyp;
    1223           0 :             yyn++;
    1224           0 :             break;
    1225             : 
    1226             :           case '"':
    1227           0 :             if (yyres)
    1228           0 :               yyres[yyn] = '\0';
    1229           0 :             return yyn;
    1230           0 :           }
    1231             :     do_not_strip_quotes: ;
    1232             :     }
    1233             : 
    1234          55 :   if (! yyres)
    1235          50 :     return yystrlen (yystr);
    1236             : 
    1237           5 :   return yystpcpy (yyres, yystr) - yyres;
    1238             : }
    1239             : # endif
    1240             : 
    1241             : /* Copy into YYRESULT an error message about the unexpected token
    1242             :    YYCHAR while in state YYSTATE.  Return the number of bytes copied,
    1243             :    including the terminating null byte.  If YYRESULT is null, do not
    1244             :    copy anything; just return the number of bytes that would be
    1245             :    copied.  As a special case, return 0 if an ordinary "syntax error"
    1246             :    message will do.  Return YYSIZE_MAXIMUM if overflow occurs during
    1247             :    size calculation.  */
    1248             : static YYSIZE_T
    1249          10 : yysyntax_error (char *yyresult, int yystate, int yychar)
    1250             : {
    1251          10 :   int yyn = yypact[yystate];
    1252             : 
    1253          10 :   if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
    1254           0 :     return 0;
    1255             :   else
    1256             :     {
    1257          10 :       int yytype = YYTRANSLATE (yychar);
    1258          10 :       YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
    1259          10 :       YYSIZE_T yysize = yysize0;
    1260             :       YYSIZE_T yysize1;
    1261          10 :       int yysize_overflow = 0;
    1262             :       enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
    1263             :       char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
    1264             :       int yyx;
    1265             : 
    1266             : # if 0
    1267             :       /* This is so xgettext sees the translatable formats that are
    1268             :          constructed on the fly.  */
    1269             :       YY_("syntax error, unexpected %s");
    1270             :       YY_("syntax error, unexpected %s, expecting %s");
    1271             :       YY_("syntax error, unexpected %s, expecting %s or %s");
    1272             :       YY_("syntax error, unexpected %s, expecting %s or %s or %s");
    1273             :       YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
    1274             : # endif
    1275             :       char *yyfmt;
    1276             :       char const *yyf;
    1277             :       static char const yyunexpected[] = "syntax error, unexpected %s";
    1278             :       static char const yyexpecting[] = ", expecting %s";
    1279             :       static char const yyor[] = " or %s";
    1280             :       char yyformat[sizeof yyunexpected
    1281             :                     + sizeof yyexpecting - 1
    1282             :                     + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
    1283             :                        * (sizeof yyor - 1))];
    1284          10 :       char const *yyprefix = yyexpecting;
    1285             : 
    1286             :       /* Start YYX at -YYN if negative to avoid negative indexes in
    1287             :          YYCHECK.  */
    1288          10 :       int yyxbegin = yyn < 0 ? -yyn : 0;
    1289             : 
    1290             :       /* Stay within bounds of both yycheck and yytname.  */
    1291          10 :       int yychecklim = YYLAST - yyn + 1;
    1292          10 :       int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
    1293          10 :       int yycount = 1;
    1294             : 
    1295          10 :       yyarg[0] = yytname[yytype];
    1296          10 :       yyfmt = yystpcpy (yyformat, yyunexpected);
    1297             : 
    1298         180 :       for (yyx = yyxbegin; yyx < yyxend; ++yyx)
    1299         180 :         if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
    1300             :           {
    1301          50 :             if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
    1302             :               {
    1303          10 :                 yycount = 1;
    1304          10 :                 yysize = yysize0;
    1305          10 :                 yyformat[sizeof yyunexpected - 1] = '\0';
    1306          10 :                 break;
    1307             :               }
    1308          40 :             yyarg[yycount++] = yytname[yyx];
    1309          40 :             yysize1 = yysize + yytnamerr (0, yytname[yyx]);
    1310          40 :             yysize_overflow |= (yysize1 < yysize);
    1311          40 :             yysize = yysize1;
    1312          40 :             yyfmt = yystpcpy (yyfmt, yyprefix);
    1313          40 :             yyprefix = yyor;
    1314             :           }
    1315             : 
    1316          10 :       yyf = YY_(yyformat);
    1317          10 :       yysize1 = yysize + yystrlen (yyf);
    1318          10 :       yysize_overflow |= (yysize1 < yysize);
    1319          10 :       yysize = yysize1;
    1320             : 
    1321          10 :       if (yysize_overflow)
    1322           0 :         return YYSIZE_MAXIMUM;
    1323             : 
    1324          10 :       if (yyresult)
    1325             :         {
    1326             :           /* Avoid sprintf, as that infringes on the user's name space.
    1327             :              Don't have undefined behavior even if the translation
    1328             :              produced a string with the wrong number of "%s"s.  */
    1329           5 :           char *yyp = yyresult;
    1330           5 :           int yyi = 0;
    1331         140 :           while ((*yyp = *yyf) != '\0')
    1332             :             {
    1333         135 :               if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
    1334             :                 {
    1335           5 :                   yyp += yytnamerr (yyp, yyarg[yyi++]);
    1336           5 :                   yyf += 2;
    1337             :                 }
    1338             :               else
    1339             :                 {
    1340         125 :                   yyp++;
    1341         125 :                   yyf++;
    1342             :                 }
    1343             :             }
    1344             :         }
    1345          10 :       return yysize;
    1346             :     }
    1347             : }
    1348             : #endif /* YYERROR_VERBOSE */
    1349             : 
    1350             : 
    1351             : /*-----------------------------------------------.
    1352             : | Release the memory associated to this symbol.  |
    1353             : `-----------------------------------------------*/
    1354             : 
    1355             : /*ARGSUSED*/
    1356             : #if (defined __STDC__ || defined __C99__FUNC__ \
    1357             :      || defined __cplusplus || defined _MSC_VER)
    1358             : static void
    1359       84042 : yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
    1360             : #else
    1361             : static void
    1362             : yydestruct (yymsg, yytype, yyvaluep)
    1363             :     const char *yymsg;
    1364             :     int yytype;
    1365             :     YYSTYPE *yyvaluep;
    1366             : #endif
    1367             : {
    1368             :   YYUSE (yyvaluep);
    1369             : 
    1370       84042 :   if (!yymsg)
    1371           0 :     yymsg = "Deleting";
    1372             :   YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
    1373             : 
    1374             :   switch (yytype)
    1375             :     {
    1376             : 
    1377             :       default:
    1378             :         break;
    1379             :     }
    1380       84042 : }
    1381             : 
    1382             : /* Prevent warnings from -Wmissing-prototypes.  */
    1383             : #ifdef YYPARSE_PARAM
    1384             : #if defined __STDC__ || defined __cplusplus
    1385             : int yyparse (void *YYPARSE_PARAM);
    1386             : #else
    1387             : int yyparse ();
    1388             : #endif
    1389             : #else /* ! YYPARSE_PARAM */
    1390             : #if defined __STDC__ || defined __cplusplus
    1391             : int yyparse (void);
    1392             : #else
    1393             : int yyparse ();
    1394             : #endif
    1395             : #endif /* ! YYPARSE_PARAM */
    1396             : 
    1397             : 
    1398             : 
    1399             : 
    1400             : 
    1401             : /*-------------------------.
    1402             : | yyparse or yypush_parse.  |
    1403             : `-------------------------*/
    1404             : 
    1405             : #ifdef YYPARSE_PARAM
    1406             : #if (defined __STDC__ || defined __C99__FUNC__ \
    1407             :      || defined __cplusplus || defined _MSC_VER)
    1408             : int
    1409             : yyparse (void *YYPARSE_PARAM)
    1410             : #else
    1411             : int
    1412             : yyparse (YYPARSE_PARAM)
    1413             :     void *YYPARSE_PARAM;
    1414             : #endif
    1415             : #else /* ! YYPARSE_PARAM */
    1416             : #if (defined __STDC__ || defined __C99__FUNC__ \
    1417             :      || defined __cplusplus || defined _MSC_VER)
    1418             : int
    1419       42021 : yyparse (void)
    1420             : #else
    1421             : int
    1422             : yyparse ()
    1423             : 
    1424             : #endif
    1425             : #endif
    1426             : {
    1427             : /* The lookahead symbol.  */
    1428             : int yychar;
    1429             : 
    1430             : /* The semantic value of the lookahead symbol.  */
    1431             : YYSTYPE yylval;
    1432             : 
    1433             :     /* Number of syntax errors so far.  */
    1434             :     int yynerrs;
    1435             : 
    1436             :     int yystate;
    1437             :     /* Number of tokens to shift before error messages enabled.  */
    1438             :     int yyerrstatus;
    1439             : 
    1440             :     /* The stacks and their tools:
    1441             :        `yyss': related to states.
    1442             :        `yyvs': related to semantic values.
    1443             : 
    1444             :        Refer to the stacks thru separate pointers, to allow yyoverflow
    1445             :        to reallocate them elsewhere.  */
    1446             : 
    1447             :     /* The state stack.  */
    1448             :     yytype_int16 yyssa[YYINITDEPTH];
    1449             :     yytype_int16 *yyss;
    1450             :     yytype_int16 *yyssp;
    1451             : 
    1452             :     /* The semantic value stack.  */
    1453             :     YYSTYPE yyvsa[YYINITDEPTH];
    1454             :     YYSTYPE *yyvs;
    1455             :     YYSTYPE *yyvsp;
    1456             : 
    1457             :     YYSIZE_T yystacksize;
    1458             : 
    1459             :   int yyn;
    1460             :   int yyresult;
    1461             :   /* Lookahead token as an internal (translated) token number.  */
    1462             :   int yytoken;
    1463             :   /* The variables used to return semantic value and location from the
    1464             :      action routines.  */
    1465             :   YYSTYPE yyval;
    1466             : 
    1467             : #if YYERROR_VERBOSE
    1468             :   /* Buffer for error messages, and its allocated size.  */
    1469             :   char yymsgbuf[128];
    1470       42021 :   char *yymsg = yymsgbuf;
    1471       42021 :   YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
    1472             : #endif
    1473             : 
    1474             : #define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
    1475             : 
    1476             :   /* The number of symbols on the RHS of the reduced rule.
    1477             :      Keep to zero when no symbol should be popped.  */
    1478       42021 :   int yylen = 0;
    1479             : 
    1480       42021 :   yytoken = 0;
    1481       42021 :   yyss = yyssa;
    1482       42021 :   yyvs = yyvsa;
    1483       42021 :   yystacksize = YYINITDEPTH;
    1484             : 
    1485             :   YYDPRINTF ((stderr, "Starting parse\n"));
    1486             : 
    1487       42021 :   yystate = 0;
    1488       42021 :   yyerrstatus = 0;
    1489       42021 :   yynerrs = 0;
    1490       42021 :   yychar = YYEMPTY; /* Cause a token to be read.  */
    1491             : 
    1492             :   /* Initialize stack pointers.
    1493             :      Waste one element of value and location stack
    1494             :      so that they stay on the same level as the state stack.
    1495             :      The wasted elements are never initialized.  */
    1496       42021 :   yyssp = yyss;
    1497       42021 :   yyvsp = yyvs;
    1498             : 
    1499       42021 :   goto yysetstate;
    1500             : 
    1501             : /*------------------------------------------------------------.
    1502             : | yynewstate -- Push a new state, which is found in yystate.  |
    1503             : `------------------------------------------------------------*/
    1504             :  yynewstate:
    1505             :   /* In all cases, when you get here, the value and location stacks
    1506             :      have just been pushed.  So pushing a state here evens the stacks.  */
    1507     9705004 :   yyssp++;
    1508             : 
    1509             :  yysetstate:
    1510     9747025 :   *yyssp = yystate;
    1511             : 
    1512     9747025 :   if (yyss + yystacksize - 1 <= yyssp)
    1513             :     {
    1514             :       /* Get the current used size of the three stacks, in elements.  */
    1515           0 :       YYSIZE_T yysize = yyssp - yyss + 1;
    1516             : 
    1517             : #ifdef yyoverflow
    1518             :       {
    1519             :         /* Give user a chance to reallocate the stack.  Use copies of
    1520             :            these so that the &'s don't force the real ones into
    1521             :            memory.  */
    1522             :         YYSTYPE *yyvs1 = yyvs;
    1523             :         yytype_int16 *yyss1 = yyss;
    1524             : 
    1525             :         /* Each stack pointer address is followed by the size of the
    1526             :            data in use in that stack, in bytes.  This used to be a
    1527             :            conditional around just the two extra args, but that might
    1528             :            be undefined if yyoverflow is a macro.  */
    1529             :         yyoverflow (YY_("memory exhausted"),
    1530             :                     &yyss1, yysize * sizeof (*yyssp),
    1531             :                     &yyvs1, yysize * sizeof (*yyvsp),
    1532             :                     &yystacksize);
    1533             : 
    1534             :         yyss = yyss1;
    1535             :         yyvs = yyvs1;
    1536             :       }
    1537             : #else /* no yyoverflow */
    1538             : # ifndef YYSTACK_RELOCATE
    1539             :       goto yyexhaustedlab;
    1540             : # else
    1541             :       /* Extend the stack our own way.  */
    1542           0 :       if (YYMAXDEPTH <= yystacksize)
    1543           0 :         goto yyexhaustedlab;
    1544           0 :       yystacksize *= 2;
    1545           0 :       if (YYMAXDEPTH < yystacksize)
    1546           0 :         yystacksize = YYMAXDEPTH;
    1547             : 
    1548             :       {
    1549           0 :         yytype_int16 *yyss1 = yyss;
    1550             :         union yyalloc *yyptr =
    1551           0 :           (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
    1552           0 :         if (! yyptr)
    1553           0 :           goto yyexhaustedlab;
    1554           0 :         YYSTACK_RELOCATE (yyss_alloc, yyss);
    1555           0 :         YYSTACK_RELOCATE (yyvs_alloc, yyvs);
    1556             : #  undef YYSTACK_RELOCATE
    1557           0 :         if (yyss1 != yyssa)
    1558           0 :           YYSTACK_FREE (yyss1);
    1559             :       }
    1560             : # endif
    1561             : #endif /* no yyoverflow */
    1562             : 
    1563           0 :       yyssp = yyss + yysize - 1;
    1564           0 :       yyvsp = yyvs + yysize - 1;
    1565             : 
    1566             :       YYDPRINTF ((stderr, "Stack size increased to %lu\n",
    1567             :                   (unsigned long int) yystacksize));
    1568             : 
    1569           0 :       if (yyss + yystacksize - 1 <= yyssp)
    1570           0 :         YYABORT;
    1571             :     }
    1572             : 
    1573             :   YYDPRINTF ((stderr, "Entering state %d\n", yystate));
    1574             : 
    1575     9747025 :   if (yystate == YYFINAL)
    1576       42016 :     YYACCEPT;
    1577             : 
    1578             :   goto yybackup;
    1579             : 
    1580             : /*-----------.
    1581             : | yybackup.  |
    1582             : `-----------*/
    1583             : yybackup:
    1584             : 
    1585             :   /* Do appropriate processing given the current state.  Read a
    1586             :      lookahead token if we need one and don't already have one.  */
    1587             : 
    1588             :   /* First try to decide what to do without reference to lookahead token.  */
    1589     9705009 :   yyn = yypact[yystate];
    1590     9705009 :   if (yyn == YYPACT_NINF)
    1591     4863631 :     goto yydefault;
    1592             : 
    1593             :   /* Not known => get a lookahead token if don't already have one.  */
    1594             : 
    1595             :   /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol.  */
    1596     4841378 :   if (yychar == YYEMPTY)
    1597             :     {
    1598             :       YYDPRINTF ((stderr, "Reading a token: "));
    1599     3536099 :       yychar = YYLEX;
    1600             :     }
    1601             : 
    1602     4841378 :   if (yychar <= YYEOF)
    1603             :     {
    1604       42022 :       yychar = yytoken = YYEOF;
    1605             :       YYDPRINTF ((stderr, "Now at end of input.\n"));
    1606             :     }
    1607             :   else
    1608             :     {
    1609     4799356 :       yytoken = YYTRANSLATE (yychar);
    1610             :       YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
    1611             :     }
    1612             : 
    1613             :   /* If the proper action on seeing token YYTOKEN is to reduce or to
    1614             :      detect an error, take that action.  */
    1615     4841378 :   yyn += yytoken;
    1616     4841378 :   if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
    1617             :     goto yydefault;
    1618     3536094 :   yyn = yytable[yyn];
    1619     3536094 :   if (yyn <= 0)
    1620             :     {
    1621           0 :       if (yyn == 0 || yyn == YYTABLE_NINF)
    1622             :         goto yyerrlab;
    1623           0 :       yyn = -yyn;
    1624           0 :       goto yyreduce;
    1625             :     }
    1626             : 
    1627             :   /* Count tokens shifted since error; after three, turn off error
    1628             :      status.  */
    1629     3536094 :   if (yyerrstatus)
    1630           0 :     yyerrstatus--;
    1631             : 
    1632             :   /* Shift the lookahead token.  */
    1633             :   YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
    1634             : 
    1635             :   /* Discard the shifted token.  */
    1636     3536094 :   yychar = YYEMPTY;
    1637             : 
    1638     3536094 :   yystate = yyn;
    1639     3536094 :   *++yyvsp = yylval;
    1640             : 
    1641     3536094 :   goto yynewstate;
    1642             : 
    1643             : 
    1644             : /*-----------------------------------------------------------.
    1645             : | yydefault -- do the default action for the current state.  |
    1646             : `-----------------------------------------------------------*/
    1647             : yydefault:
    1648     6168915 :   yyn = yydefact[yystate];
    1649     6168915 :   if (yyn == 0)
    1650           5 :     goto yyerrlab;
    1651             :   goto yyreduce;
    1652             : 
    1653             : 
    1654             : /*-----------------------------.
    1655             : | yyreduce -- Do a reduction.  |
    1656             : `-----------------------------*/
    1657             : yyreduce:
    1658             :   /* yyn is the number of a rule to reduce with.  */
    1659     6168910 :   yylen = yyr2[yyn];
    1660             : 
    1661             :   /* If YYLEN is nonzero, implement the default value of the action:
    1662             :      `$$ = $1'.
    1663             : 
    1664             :      Otherwise, the following line sets YYVAL to garbage.
    1665             :      This behavior is undocumented and Bison
    1666             :      users should not rely upon it.  Assigning to YYVAL
    1667             :      unconditionally makes the parser a bit smaller, and it avoids a
    1668             :      GCC warning that YYVAL may be used uninitialized.  */
    1669     6168910 :   yyval = yyvsp[1-yylen];
    1670             : 
    1671             : 
    1672             :   YY_REDUCE_PRINT (yyn);
    1673     6168910 :   switch (yyn)
    1674             :     {
    1675             :         case 4:
    1676             : 
    1677             : /* Line 1455 of yacc.c  */
    1678             : #line 282 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1679             :     {
    1680             : #if DEBUG_CFG_PARSER
    1681             :                         printf("SECTION: [%s]\n", Z_STRVAL((yyvsp[(2) - (3)])));
    1682             : #endif
    1683             :                         ZEND_INI_PARSER_CB(&(yyvsp[(2) - (3)]), NULL, NULL, ZEND_INI_PARSER_SECTION, ZEND_INI_PARSER_ARG);
    1684             :                         zend_string_release(Z_STR((yyvsp[(2) - (3)])));
    1685             :                 }
    1686             :     break;
    1687             : 
    1688             :   case 5:
    1689             : 
    1690             : /* Line 1455 of yacc.c  */
    1691             : #line 289 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1692             :     {
    1693             : #if DEBUG_CFG_PARSER
    1694             :                         printf("NORMAL: '%s' = '%s'\n", Z_STRVAL((yyvsp[(1) - (3)])), Z_STRVAL((yyvsp[(3) - (3)])));
    1695             : #endif
    1696             :                         ZEND_INI_PARSER_CB(&(yyvsp[(1) - (3)]), &(yyvsp[(3) - (3)]), NULL, ZEND_INI_PARSER_ENTRY, ZEND_INI_PARSER_ARG);
    1697             :                         zend_string_release(Z_STR((yyvsp[(1) - (3)])));
    1698             :                         zval_ptr_dtor(&(yyvsp[(3) - (3)]));
    1699             :                 }
    1700             :     break;
    1701             : 
    1702             :   case 6:
    1703             : 
    1704             : /* Line 1455 of yacc.c  */
    1705             : #line 297 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1706             :     {
    1707             : #if DEBUG_CFG_PARSER
    1708             :                         printf("OFFSET: '%s'[%s] = '%s'\n", Z_STRVAL((yyvsp[(1) - (5)])), Z_STRVAL((yyvsp[(2) - (5)])), Z_STRVAL((yyvsp[(5) - (5)])));
    1709             : #endif
    1710             :                         ZEND_INI_PARSER_CB(&(yyvsp[(1) - (5)]), &(yyvsp[(5) - (5)]), &(yyvsp[(2) - (5)]), ZEND_INI_PARSER_POP_ENTRY, ZEND_INI_PARSER_ARG);
    1711             :                         zend_string_release(Z_STR((yyvsp[(1) - (5)])));
    1712             :                         zend_string_release(Z_STR((yyvsp[(2) - (5)])));
    1713             :                         zval_ptr_dtor(&(yyvsp[(5) - (5)]));
    1714             :                 }
    1715             :     break;
    1716             : 
    1717             :   case 7:
    1718             : 
    1719             : /* Line 1455 of yacc.c  */
    1720             : #line 306 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1721             :     { ZEND_INI_PARSER_CB(&(yyvsp[(1) - (1)]), NULL, NULL, ZEND_INI_PARSER_ENTRY, ZEND_INI_PARSER_ARG); zend_string_release(Z_STR((yyvsp[(1) - (1)]))); }
    1722             :     break;
    1723             : 
    1724             :   case 9:
    1725             : 
    1726             : /* Line 1455 of yacc.c  */
    1727             : #line 311 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1728             :     { (yyval) = (yyvsp[(1) - (1)]); }
    1729             :     break;
    1730             : 
    1731             :   case 10:
    1732             : 
    1733             : /* Line 1455 of yacc.c  */
    1734             : #line 312 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1735             :     { zend_ini_init_string(&(yyval)); }
    1736             :     break;
    1737             : 
    1738             :   case 11:
    1739             : 
    1740             : /* Line 1455 of yacc.c  */
    1741             : #line 316 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1742             :     { (yyval) = (yyvsp[(1) - (1)]); }
    1743             :     break;
    1744             : 
    1745             :   case 12:
    1746             : 
    1747             : /* Line 1455 of yacc.c  */
    1748             : #line 317 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1749             :     { (yyval) = (yyvsp[(1) - (1)]); }
    1750             :     break;
    1751             : 
    1752             :   case 13:
    1753             : 
    1754             : /* Line 1455 of yacc.c  */
    1755             : #line 318 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1756             :     { (yyval) = (yyvsp[(1) - (1)]); }
    1757             :     break;
    1758             : 
    1759             :   case 14:
    1760             : 
    1761             : /* Line 1455 of yacc.c  */
    1762             : #line 319 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1763             :     { (yyval) = (yyvsp[(1) - (1)]); }
    1764             :     break;
    1765             : 
    1766             :   case 15:
    1767             : 
    1768             : /* Line 1455 of yacc.c  */
    1769             : #line 320 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1770             :     { zend_ini_init_string(&(yyval)); }
    1771             :     break;
    1772             : 
    1773             :   case 16:
    1774             : 
    1775             : /* Line 1455 of yacc.c  */
    1776             : #line 324 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1777             :     { (yyval) = (yyvsp[(1) - (1)]); }
    1778             :     break;
    1779             : 
    1780             :   case 17:
    1781             : 
    1782             : /* Line 1455 of yacc.c  */
    1783             : #line 325 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1784             :     { zend_ini_init_string(&(yyval)); }
    1785             :     break;
    1786             : 
    1787             :   case 18:
    1788             : 
    1789             : /* Line 1455 of yacc.c  */
    1790             : #line 329 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1791             :     { zend_ini_add_string(&(yyval), &(yyvsp[(1) - (2)]), &(yyvsp[(2) - (2)])); zend_string_free(Z_STR((yyvsp[(2) - (2)]))); }
    1792             :     break;
    1793             : 
    1794             :   case 19:
    1795             : 
    1796             : /* Line 1455 of yacc.c  */
    1797             : #line 330 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1798             :     { zend_ini_add_string(&(yyval), &(yyvsp[(1) - (2)]), &(yyvsp[(2) - (2)])); zend_string_free(Z_STR((yyvsp[(2) - (2)]))); }
    1799             :     break;
    1800             : 
    1801             :   case 20:
    1802             : 
    1803             : /* Line 1455 of yacc.c  */
    1804             : #line 331 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1805             :     { zend_ini_init_string(&(yyval)); }
    1806             :     break;
    1807             : 
    1808             :   case 21:
    1809             : 
    1810             : /* Line 1455 of yacc.c  */
    1811             : #line 335 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1812             :     { (yyval) = (yyvsp[(1) - (1)]); }
    1813             :     break;
    1814             : 
    1815             :   case 22:
    1816             : 
    1817             : /* Line 1455 of yacc.c  */
    1818             : #line 336 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1819             :     { (yyval) = (yyvsp[(1) - (1)]); }
    1820             :     break;
    1821             : 
    1822             :   case 23:
    1823             : 
    1824             : /* Line 1455 of yacc.c  */
    1825             : #line 337 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1826             :     { (yyval) = (yyvsp[(2) - (3)]); }
    1827             :     break;
    1828             : 
    1829             :   case 24:
    1830             : 
    1831             : /* Line 1455 of yacc.c  */
    1832             : #line 338 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1833             :     { zend_ini_add_string(&(yyval), &(yyvsp[(1) - (2)]), &(yyvsp[(2) - (2)])); zend_string_free(Z_STR((yyvsp[(2) - (2)]))); }
    1834             :     break;
    1835             : 
    1836             :   case 25:
    1837             : 
    1838             : /* Line 1455 of yacc.c  */
    1839             : #line 339 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1840             :     { zend_ini_add_string(&(yyval), &(yyvsp[(1) - (2)]), &(yyvsp[(2) - (2)])); zend_string_free(Z_STR((yyvsp[(2) - (2)]))); }
    1841             :     break;
    1842             : 
    1843             :   case 26:
    1844             : 
    1845             : /* Line 1455 of yacc.c  */
    1846             : #line 340 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1847             :     { zend_ini_add_string(&(yyval), &(yyvsp[(1) - (4)]), &(yyvsp[(3) - (4)])); zend_string_free(Z_STR((yyvsp[(3) - (4)]))); }
    1848             :     break;
    1849             : 
    1850             :   case 27:
    1851             : 
    1852             : /* Line 1455 of yacc.c  */
    1853             : #line 344 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1854             :     { (yyval) = (yyvsp[(1) - (1)]); }
    1855             :     break;
    1856             : 
    1857             :   case 28:
    1858             : 
    1859             : /* Line 1455 of yacc.c  */
    1860             : #line 345 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1861             :     { (yyval) = (yyvsp[(1) - (1)]); }
    1862             :     break;
    1863             : 
    1864             :   case 29:
    1865             : 
    1866             : /* Line 1455 of yacc.c  */
    1867             : #line 346 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1868             :     { (yyval) = (yyvsp[(2) - (3)]); }
    1869             :     break;
    1870             : 
    1871             :   case 30:
    1872             : 
    1873             : /* Line 1455 of yacc.c  */
    1874             : #line 347 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1875             :     { zend_ini_add_string(&(yyval), &(yyvsp[(1) - (2)]), &(yyvsp[(2) - (2)])); zend_string_free(Z_STR((yyvsp[(2) - (2)]))); }
    1876             :     break;
    1877             : 
    1878             :   case 31:
    1879             : 
    1880             : /* Line 1455 of yacc.c  */
    1881             : #line 348 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1882             :     { zend_ini_add_string(&(yyval), &(yyvsp[(1) - (2)]), &(yyvsp[(2) - (2)])); zend_string_free(Z_STR((yyvsp[(2) - (2)]))); }
    1883             :     break;
    1884             : 
    1885             :   case 32:
    1886             : 
    1887             : /* Line 1455 of yacc.c  */
    1888             : #line 349 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1889             :     { zend_ini_add_string(&(yyval), &(yyvsp[(1) - (4)]), &(yyvsp[(3) - (4)])); zend_string_free(Z_STR((yyvsp[(3) - (4)]))); }
    1890             :     break;
    1891             : 
    1892             :   case 33:
    1893             : 
    1894             : /* Line 1455 of yacc.c  */
    1895             : #line 353 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1896             :     { (yyval) = (yyvsp[(1) - (1)]); }
    1897             :     break;
    1898             : 
    1899             :   case 34:
    1900             : 
    1901             : /* Line 1455 of yacc.c  */
    1902             : #line 354 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1903             :     { zend_ini_do_op('|', &(yyval), &(yyvsp[(1) - (3)]), &(yyvsp[(3) - (3)])); }
    1904             :     break;
    1905             : 
    1906             :   case 35:
    1907             : 
    1908             : /* Line 1455 of yacc.c  */
    1909             : #line 355 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1910             :     { zend_ini_do_op('&', &(yyval), &(yyvsp[(1) - (3)]), &(yyvsp[(3) - (3)])); }
    1911             :     break;
    1912             : 
    1913             :   case 36:
    1914             : 
    1915             : /* Line 1455 of yacc.c  */
    1916             : #line 356 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1917             :     { zend_ini_do_op('^', &(yyval), &(yyvsp[(1) - (3)]), &(yyvsp[(3) - (3)])); }
    1918             :     break;
    1919             : 
    1920             :   case 37:
    1921             : 
    1922             : /* Line 1455 of yacc.c  */
    1923             : #line 357 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1924             :     { zend_ini_do_op('~', &(yyval), &(yyvsp[(2) - (2)]), NULL); }
    1925             :     break;
    1926             : 
    1927             :   case 38:
    1928             : 
    1929             : /* Line 1455 of yacc.c  */
    1930             : #line 358 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1931             :     { zend_ini_do_op('!', &(yyval), &(yyvsp[(2) - (2)]), NULL); }
    1932             :     break;
    1933             : 
    1934             :   case 39:
    1935             : 
    1936             : /* Line 1455 of yacc.c  */
    1937             : #line 359 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1938             :     { (yyval) = (yyvsp[(2) - (3)]); }
    1939             :     break;
    1940             : 
    1941             :   case 40:
    1942             : 
    1943             : /* Line 1455 of yacc.c  */
    1944             : #line 363 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1945             :     { zend_ini_get_var(&(yyval), &(yyvsp[(2) - (3)])); zend_string_free(Z_STR((yyvsp[(2) - (3)]))); }
    1946             :     break;
    1947             : 
    1948             :   case 41:
    1949             : 
    1950             : /* Line 1455 of yacc.c  */
    1951             : #line 367 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1952             :     { (yyval) = (yyvsp[(1) - (1)]); }
    1953             :     break;
    1954             : 
    1955             :   case 42:
    1956             : 
    1957             : /* Line 1455 of yacc.c  */
    1958             : #line 368 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1959             :     { (yyval) = (yyvsp[(1) - (1)]); /*printf("TC_RAW: '%s'\n", Z_STRVAL($1));*/ }
    1960             :     break;
    1961             : 
    1962             :   case 43:
    1963             : 
    1964             : /* Line 1455 of yacc.c  */
    1965             : #line 369 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1966             :     { (yyval) = (yyvsp[(1) - (1)]); /*printf("TC_NUMBER: '%s'\n", Z_STRVAL($1));*/ }
    1967             :     break;
    1968             : 
    1969             :   case 44:
    1970             : 
    1971             : /* Line 1455 of yacc.c  */
    1972             : #line 370 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1973             :     { (yyval) = (yyvsp[(1) - (1)]); /*printf("TC_STRING: '%s'\n", Z_STRVAL($1));*/ }
    1974             :     break;
    1975             : 
    1976             :   case 45:
    1977             : 
    1978             : /* Line 1455 of yacc.c  */
    1979             : #line 371 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1980             :     { (yyval) = (yyvsp[(1) - (1)]); /*printf("TC_WHITESPACE: '%s'\n", Z_STRVAL($1));*/ }
    1981             :     break;
    1982             : 
    1983             :   case 46:
    1984             : 
    1985             : /* Line 1455 of yacc.c  */
    1986             : #line 375 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1987             :     { zend_ini_get_constant(&(yyval), &(yyvsp[(1) - (1)])); }
    1988             :     break;
    1989             : 
    1990             :   case 47:
    1991             : 
    1992             : /* Line 1455 of yacc.c  */
    1993             : #line 376 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    1994             :     { (yyval) = (yyvsp[(1) - (1)]); /*printf("TC_RAW: '%s'\n", Z_STRVAL($1));*/ }
    1995             :     break;
    1996             : 
    1997             :   case 48:
    1998             : 
    1999             : /* Line 1455 of yacc.c  */
    2000             : #line 377 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    2001             :     { (yyval) = (yyvsp[(1) - (1)]); /*printf("TC_NUMBER: '%s'\n", Z_STRVAL($1));*/ }
    2002             :     break;
    2003             : 
    2004             :   case 49:
    2005             : 
    2006             : /* Line 1455 of yacc.c  */
    2007             : #line 378 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    2008             :     { (yyval) = (yyvsp[(1) - (1)]); /*printf("TC_STRING: '%s'\n", Z_STRVAL($1));*/ }
    2009             :     break;
    2010             : 
    2011             :   case 50:
    2012             : 
    2013             : /* Line 1455 of yacc.c  */
    2014             : #line 379 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.y"
    2015             :     { (yyval) = (yyvsp[(1) - (1)]); /*printf("TC_WHITESPACE: '%s'\n", Z_STRVAL($1));*/ }
    2016             :     break;
    2017             : 
    2018             : 
    2019             : 
    2020             : /* Line 1455 of yacc.c  */
    2021             : #line 2022 "/var/php_gcov/PHP_HEAD/Zend/zend_ini_parser.c"
    2022             :       default: break;
    2023             :     }
    2024             :   YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
    2025             : 
    2026     6168910 :   YYPOPSTACK (yylen);
    2027     6168910 :   yylen = 0;
    2028             :   YY_STACK_PRINT (yyss, yyssp);
    2029             : 
    2030     6168910 :   *++yyvsp = yyval;
    2031             : 
    2032             :   /* Now `shift' the result of the reduction.  Determine what state
    2033             :      that goes to, based on the state we popped back to and the rule
    2034             :      number reduced by.  */
    2035             : 
    2036     6168910 :   yyn = yyr1[yyn];
    2037             : 
    2038     6168910 :   yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
    2039     6296476 :   if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
    2040      127566 :     yystate = yytable[yystate];
    2041             :   else
    2042     6041344 :     yystate = yydefgoto[yyn - YYNTOKENS];
    2043             : 
    2044     6168910 :   goto yynewstate;
    2045             : 
    2046             : 
    2047             : /*------------------------------------.
    2048             : | yyerrlab -- here on detecting error |
    2049             : `------------------------------------*/
    2050             : yyerrlab:
    2051             :   /* If not already recovering from an error, report this error.  */
    2052           5 :   if (!yyerrstatus)
    2053             :     {
    2054           5 :       ++yynerrs;
    2055             : #if ! YYERROR_VERBOSE
    2056             :       yyerror (YY_("syntax error"));
    2057             : #else
    2058             :       {
    2059           5 :         YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
    2060           5 :         if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
    2061             :           {
    2062           0 :             YYSIZE_T yyalloc = 2 * yysize;
    2063           0 :             if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
    2064           0 :               yyalloc = YYSTACK_ALLOC_MAXIMUM;
    2065           0 :             if (yymsg != yymsgbuf)
    2066           0 :               YYSTACK_FREE (yymsg);
    2067           0 :             yymsg = (char *) YYSTACK_ALLOC (yyalloc);
    2068           0 :             if (yymsg)
    2069           0 :               yymsg_alloc = yyalloc;
    2070             :             else
    2071             :               {
    2072           0 :                 yymsg = yymsgbuf;
    2073           0 :                 yymsg_alloc = sizeof yymsgbuf;
    2074             :               }
    2075             :           }
    2076             : 
    2077          10 :         if (0 < yysize && yysize <= yymsg_alloc)
    2078             :           {
    2079           5 :             (void) yysyntax_error (yymsg, yystate, yychar);
    2080           5 :             yyerror (yymsg);
    2081             :           }
    2082             :         else
    2083             :           {
    2084           0 :             yyerror (YY_("syntax error"));
    2085           0 :             if (yysize != 0)
    2086           0 :               goto yyexhaustedlab;
    2087             :           }
    2088             :       }
    2089             : #endif
    2090             :     }
    2091             : 
    2092             : 
    2093             : 
    2094           5 :   if (yyerrstatus == 3)
    2095             :     {
    2096             :       /* If just tried and failed to reuse lookahead token after an
    2097             :          error, discard it.  */
    2098             : 
    2099           0 :       if (yychar <= YYEOF)
    2100             :         {
    2101             :           /* Return failure if at end of input.  */
    2102           0 :           if (yychar == YYEOF)
    2103           0 :             YYABORT;
    2104             :         }
    2105             :       else
    2106             :         {
    2107           0 :           yydestruct ("Error: discarding",
    2108             :                       yytoken, &yylval);
    2109           0 :           yychar = YYEMPTY;
    2110             :         }
    2111             :     }
    2112             : 
    2113             :   /* Else will try to reuse lookahead token after shifting the error
    2114             :      token.  */
    2115           5 :   goto yyerrlab1;
    2116             : 
    2117             : 
    2118             : /*---------------------------------------------------.
    2119             : | yyerrorlab -- error raised explicitly by YYERROR.  |
    2120             : `---------------------------------------------------*/
    2121             : yyerrorlab:
    2122             : 
    2123             :   /* Pacify compilers like GCC when the user code never invokes
    2124             :      YYERROR and the label yyerrorlab therefore never appears in user
    2125             :      code.  */
    2126             :   if (/*CONSTCOND*/ 0)
    2127             :      goto yyerrorlab;
    2128             : 
    2129             :   /* Do not reclaim the symbols of the rule which action triggered
    2130             :      this YYERROR.  */
    2131             :   YYPOPSTACK (yylen);
    2132             :   yylen = 0;
    2133             :   YY_STACK_PRINT (yyss, yyssp);
    2134             :   yystate = *yyssp;
    2135             :   goto yyerrlab1;
    2136             : 
    2137             : 
    2138             : /*-------------------------------------------------------------.
    2139             : | yyerrlab1 -- common code for both syntax error and YYERROR.  |
    2140             : `-------------------------------------------------------------*/
    2141             : yyerrlab1:
    2142           5 :   yyerrstatus = 3;      /* Each real token shifted decrements this.  */
    2143             : 
    2144             :   for (;;)
    2145             :     {
    2146          10 :       yyn = yypact[yystate];
    2147          10 :       if (yyn != YYPACT_NINF)
    2148             :         {
    2149           5 :           yyn += YYTERROR;
    2150           5 :           if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
    2151             :             {
    2152           0 :               yyn = yytable[yyn];
    2153           0 :               if (0 < yyn)
    2154           0 :                 break;
    2155             :             }
    2156             :         }
    2157             : 
    2158             :       /* Pop the current state because it cannot handle the error token.  */
    2159          10 :       if (yyssp == yyss)
    2160           5 :         YYABORT;
    2161             : 
    2162             : 
    2163           5 :       yydestruct ("Error: popping",
    2164           5 :                   yystos[yystate], yyvsp);
    2165           5 :       YYPOPSTACK (1);
    2166           5 :       yystate = *yyssp;
    2167             :       YY_STACK_PRINT (yyss, yyssp);
    2168           5 :     }
    2169             : 
    2170           0 :   *++yyvsp = yylval;
    2171             : 
    2172             : 
    2173             :   /* Shift the error token.  */
    2174             :   YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
    2175             : 
    2176           0 :   yystate = yyn;
    2177           0 :   goto yynewstate;
    2178             : 
    2179             : 
    2180             : /*-------------------------------------.
    2181             : | yyacceptlab -- YYACCEPT comes here.  |
    2182             : `-------------------------------------*/
    2183             : yyacceptlab:
    2184       42016 :   yyresult = 0;
    2185       42016 :   goto yyreturn;
    2186             : 
    2187             : /*-----------------------------------.
    2188             : | yyabortlab -- YYABORT comes here.  |
    2189             : `-----------------------------------*/
    2190             : yyabortlab:
    2191           5 :   yyresult = 1;
    2192           5 :   goto yyreturn;
    2193             : 
    2194             : #if !defined(yyoverflow) || YYERROR_VERBOSE
    2195             : /*-------------------------------------------------.
    2196             : | yyexhaustedlab -- memory exhaustion comes here.  |
    2197             : `-------------------------------------------------*/
    2198             : yyexhaustedlab:
    2199           0 :   yyerror (YY_("memory exhausted"));
    2200           0 :   yyresult = 2;
    2201             :   /* Fall through.  */
    2202             : #endif
    2203             : 
    2204             : yyreturn:
    2205       42021 :   if (yychar != YYEMPTY)
    2206           5 :      yydestruct ("Cleanup: discarding lookahead",
    2207             :                  yytoken, &yylval);
    2208             :   /* Do not reclaim the symbols of the rule which action triggered
    2209             :      this YYABORT or YYACCEPT.  */
    2210       42021 :   YYPOPSTACK (yylen);
    2211             :   YY_STACK_PRINT (yyss, yyssp);
    2212      168074 :   while (yyssp != yyss)
    2213             :     {
    2214       84032 :       yydestruct ("Cleanup: popping",
    2215       84032 :                   yystos[*yyssp], yyvsp);
    2216       84032 :       YYPOPSTACK (1);
    2217             :     }
    2218             : #ifndef yyoverflow
    2219       42021 :   if (yyss != yyssa)
    2220           0 :     YYSTACK_FREE (yyss);
    2221             : #endif
    2222             : #if YYERROR_VERBOSE
    2223       42021 :   if (yymsg != yymsgbuf)
    2224           0 :     YYSTACK_FREE (yymsg);
    2225             : #endif
    2226             :   /* Make sure YYID is used.  */
    2227       42021 :   return YYID (yyresult);
    2228             : }
    2229             : 
    2230             : 
    2231             : 

Generated by: LCOV version 1.10

Generated at Mon, 27 Jul 2015 02:32:14 +0000 (2 days ago)

Copyright © 2005-2015 The PHP Group
All rights reserved.