diff options
author | Benoit Foucher <benoit@zeroc.com> | 2009-12-08 14:37:44 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2009-12-08 14:37:44 +0100 |
commit | 33a83ee4f83e9c3ed820f90122d8106dc9b41e74 (patch) | |
tree | 246b83b711150264ff79d1433b45e534b8a765d6 /cpp/src | |
parent | Fixes for the plugin demo (diff) | |
download | ice-33a83ee4f83e9c3ed820f90122d8106dc9b41e74.tar.bz2 ice-33a83ee4f83e9c3ed820f90122d8106dc9b41e74.tar.xz ice-33a83ee4f83e9c3ed820f90122d8106dc9b41e74.zip |
Fix for bug 3234 - Initial support for getting processor socket count with IceGrid
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Ice/PropertyNames.cpp | 3 | ||||
-rw-r--r-- | cpp/src/Ice/PropertyNames.h | 2 | ||||
-rw-r--r-- | cpp/src/IceGrid/AdminI.cpp | 19 | ||||
-rw-r--r-- | cpp/src/IceGrid/AdminI.h | 1 | ||||
-rw-r--r-- | cpp/src/IceGrid/Grammar.cpp | 3198 | ||||
-rw-r--r-- | cpp/src/IceGrid/Grammar.h | 155 | ||||
-rw-r--r-- | cpp/src/IceGrid/Grammar.y | 14 | ||||
-rw-r--r-- | cpp/src/IceGrid/Internal.ice | 8 | ||||
-rw-r--r-- | cpp/src/IceGrid/NodeI.cpp | 6 | ||||
-rw-r--r-- | cpp/src/IceGrid/NodeI.h | 1 | ||||
-rw-r--r-- | cpp/src/IceGrid/Parser.cpp | 58 | ||||
-rw-r--r-- | cpp/src/IceGrid/Parser.h | 1 | ||||
-rw-r--r-- | cpp/src/IceGrid/PlatformInfo.cpp | 70 | ||||
-rw-r--r-- | cpp/src/IceGrid/PlatformInfo.h | 2 | ||||
-rw-r--r-- | cpp/src/IceGrid/Scanner.cpp | 1 | ||||
-rw-r--r-- | cpp/src/IceGrid/Scanner.l | 1 |
16 files changed, 2049 insertions, 1491 deletions
diff --git a/cpp/src/Ice/PropertyNames.cpp b/cpp/src/Ice/PropertyNames.cpp index f32df36e64c..8006f446dad 100644 --- a/cpp/src/Ice/PropertyNames.cpp +++ b/cpp/src/Ice/PropertyNames.cpp @@ -8,7 +8,7 @@ // ********************************************************************** // -// Generated by makeprops.py from file ../config/PropertyNames.xml, Fri Dec 4 10:31:05 2009 +// Generated by makeprops.py from file ../config/PropertyNames.xml, Tue Dec 8 12:37:14 2009 // IMPORTANT: Do not edit this file -- any edits made here will be lost! @@ -230,6 +230,7 @@ const IceInternal::Property IceGridPropsData[] = IceInternal::Property("IceGrid.Node.DisableOnFailure", false, 0), IceInternal::Property("IceGrid.Node.Name", false, 0), IceInternal::Property("IceGrid.Node.Output", false, 0), + IceInternal::Property("IceGrid.Node.ProcessorSocketCount", false, 0), IceInternal::Property("IceGrid.Node.PrintServersReady", false, 0), IceInternal::Property("IceGrid.Node.PropertiesOverride", false, 0), IceInternal::Property("IceGrid.Node.RedirectErrToOut", false, 0), diff --git a/cpp/src/Ice/PropertyNames.h b/cpp/src/Ice/PropertyNames.h index 7572229ee14..2dfe9d800f0 100644 --- a/cpp/src/Ice/PropertyNames.h +++ b/cpp/src/Ice/PropertyNames.h @@ -8,7 +8,7 @@ // ********************************************************************** // -// Generated by makeprops.py from file ../config/PropertyNames.xml, Fri Dec 4 10:31:05 2009 +// Generated by makeprops.py from file ../config/PropertyNames.xml, Tue Dec 8 12:37:14 2009 // IMPORTANT: Do not edit this file -- any edits made here will be lost! diff --git a/cpp/src/IceGrid/AdminI.cpp b/cpp/src/IceGrid/AdminI.cpp index 5581ca7b35c..9642b35747e 100644 --- a/cpp/src/IceGrid/AdminI.cpp +++ b/cpp/src/IceGrid/AdminI.cpp @@ -774,6 +774,25 @@ AdminI::getNodeLoad(const string& name, const Current&) const return LoadInfo(); // Keep the compiler happy. } +int +AdminI::getNodeProcessorSocketCount(const string& name, const Current&) const +{ + try + { + return _database->getNode(name)->getProxy()->getProcessorSocketCount(); + } + catch(const Ice::ObjectNotExistException&) + { + throw NodeNotExistException(name); + } + catch(const Ice::LocalException& ex) + { + ostringstream os; + os << ex; + throw NodeUnreachableException(name, os.str()); + } +} + void AdminI::shutdownNode(const string& name, const Current&) { diff --git a/cpp/src/IceGrid/AdminI.h b/cpp/src/IceGrid/AdminI.h index f3cf4d717d9..2f3f37fff06 100644 --- a/cpp/src/IceGrid/AdminI.h +++ b/cpp/src/IceGrid/AdminI.h @@ -75,6 +75,7 @@ public: virtual NodeInfo getNodeInfo(const std::string&, const Ice::Current&) const; virtual bool pingNode(const std::string&, const Ice::Current&) const; virtual LoadInfo getNodeLoad(const std::string&, const Ice::Current&) const; + virtual int getNodeProcessorSocketCount(const std::string&, const Ice::Current&) const; virtual void shutdownNode(const std::string&, const Ice::Current&); virtual std::string getNodeHostname(const std::string&, const Ice::Current&) const; virtual Ice::StringSeq getAllNodeNames(const ::Ice::Current&) const; diff --git a/cpp/src/IceGrid/Grammar.cpp b/cpp/src/IceGrid/Grammar.cpp index 16c562d9eb4..0f90ffa2a65 100644 --- a/cpp/src/IceGrid/Grammar.cpp +++ b/cpp/src/IceGrid/Grammar.cpp @@ -1,7 +1,9 @@ -/* A Bison parser, made by GNU Bison 1.875c. */ +/* A Bison parser, made by GNU Bison 2.3. */ -/* Skeleton parser for Yacc-like parsing with Bison, - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. +/* Skeleton implementation for Bison's Yacc-like parsers in C + + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 + Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -15,16 +17,24 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. */ + +/* As a special exception, you may create a larger work that contains + part or all of the Bison parser skeleton and distribute that work + under terms of your choice, so long as that work isn't itself a + parser generator using the skeleton or a modified version thereof + as a parser skeleton. Alternatively, if you modify or redistribute + the parser skeleton itself, you may (at your option) remove this + special exception, which will cause the skeleton and the resulting + Bison output files to be licensed under the GNU General Public + License without this special exception. -/* As a special exception, when this file is copied by Bison into a - Bison output file, you may use that output file without restriction. - This special exception was added by the Free Software Foundation - in version 1.24 of Bison. */ + This special exception was added by the Free Software Foundation in + version 2.2 of Bison. */ -/* Written by Richard Stallman by simplifying the original so called - ``semantic'' parser. */ +/* C LALR(1) parser skeleton written by Richard Stallman, by + simplifying the original so-called "semantic" parser. */ /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local @@ -36,6 +46,9 @@ /* Identify Bison output. */ #define YYBISON 1 +/* Bison version. */ +#define YYBISON_VERSION "2.3" + /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" @@ -62,38 +75,40 @@ ICE_GRID_ADAPTER = 264, ICE_GRID_PING = 265, ICE_GRID_LOAD = 266, - ICE_GRID_ADD = 267, - ICE_GRID_REMOVE = 268, - ICE_GRID_LIST = 269, - ICE_GRID_SHUTDOWN = 270, - ICE_GRID_STRING = 271, - ICE_GRID_START = 272, - ICE_GRID_STOP = 273, - ICE_GRID_PATCH = 274, - ICE_GRID_SIGNAL = 275, - ICE_GRID_STDOUT = 276, - ICE_GRID_STDERR = 277, - ICE_GRID_DESCRIBE = 278, - ICE_GRID_PROPERTIES = 279, - ICE_GRID_PROPERTY = 280, - ICE_GRID_STATE = 281, - ICE_GRID_PID = 282, - ICE_GRID_ENDPOINTS = 283, - ICE_GRID_ACTIVATION = 284, - ICE_GRID_OBJECT = 285, - ICE_GRID_FIND = 286, - ICE_GRID_SHOW = 287, - ICE_GRID_COPYING = 288, - ICE_GRID_WARRANTY = 289, - ICE_GRID_DIFF = 290, - ICE_GRID_UPDATE = 291, - ICE_GRID_INSTANTIATE = 292, - ICE_GRID_TEMPLATE = 293, - ICE_GRID_SERVICE = 294, - ICE_GRID_ENABLE = 295, - ICE_GRID_DISABLE = 296 + ICE_GRID_PROCESSORS = 267, + ICE_GRID_ADD = 268, + ICE_GRID_REMOVE = 269, + ICE_GRID_LIST = 270, + ICE_GRID_SHUTDOWN = 271, + ICE_GRID_STRING = 272, + ICE_GRID_START = 273, + ICE_GRID_STOP = 274, + ICE_GRID_PATCH = 275, + ICE_GRID_SIGNAL = 276, + ICE_GRID_STDOUT = 277, + ICE_GRID_STDERR = 278, + ICE_GRID_DESCRIBE = 279, + ICE_GRID_PROPERTIES = 280, + ICE_GRID_PROPERTY = 281, + ICE_GRID_STATE = 282, + ICE_GRID_PID = 283, + ICE_GRID_ENDPOINTS = 284, + ICE_GRID_ACTIVATION = 285, + ICE_GRID_OBJECT = 286, + ICE_GRID_FIND = 287, + ICE_GRID_SHOW = 288, + ICE_GRID_COPYING = 289, + ICE_GRID_WARRANTY = 290, + ICE_GRID_DIFF = 291, + ICE_GRID_UPDATE = 292, + ICE_GRID_INSTANTIATE = 293, + ICE_GRID_TEMPLATE = 294, + ICE_GRID_SERVICE = 295, + ICE_GRID_ENABLE = 296, + ICE_GRID_DISABLE = 297 }; #endif +/* Tokens. */ #define ICE_GRID_HELP 258 #define ICE_GRID_EXIT 259 #define ICE_GRID_APPLICATION 260 @@ -103,42 +118,43 @@ #define ICE_GRID_ADAPTER 264 #define ICE_GRID_PING 265 #define ICE_GRID_LOAD 266 -#define ICE_GRID_ADD 267 -#define ICE_GRID_REMOVE 268 -#define ICE_GRID_LIST 269 -#define ICE_GRID_SHUTDOWN 270 -#define ICE_GRID_STRING 271 -#define ICE_GRID_START 272 -#define ICE_GRID_STOP 273 -#define ICE_GRID_PATCH 274 -#define ICE_GRID_SIGNAL 275 -#define ICE_GRID_STDOUT 276 -#define ICE_GRID_STDERR 277 -#define ICE_GRID_DESCRIBE 278 -#define ICE_GRID_PROPERTIES 279 -#define ICE_GRID_PROPERTY 280 -#define ICE_GRID_STATE 281 -#define ICE_GRID_PID 282 -#define ICE_GRID_ENDPOINTS 283 -#define ICE_GRID_ACTIVATION 284 -#define ICE_GRID_OBJECT 285 -#define ICE_GRID_FIND 286 -#define ICE_GRID_SHOW 287 -#define ICE_GRID_COPYING 288 -#define ICE_GRID_WARRANTY 289 -#define ICE_GRID_DIFF 290 -#define ICE_GRID_UPDATE 291 -#define ICE_GRID_INSTANTIATE 292 -#define ICE_GRID_TEMPLATE 293 -#define ICE_GRID_SERVICE 294 -#define ICE_GRID_ENABLE 295 -#define ICE_GRID_DISABLE 296 +#define ICE_GRID_PROCESSORS 267 +#define ICE_GRID_ADD 268 +#define ICE_GRID_REMOVE 269 +#define ICE_GRID_LIST 270 +#define ICE_GRID_SHUTDOWN 271 +#define ICE_GRID_STRING 272 +#define ICE_GRID_START 273 +#define ICE_GRID_STOP 274 +#define ICE_GRID_PATCH 275 +#define ICE_GRID_SIGNAL 276 +#define ICE_GRID_STDOUT 277 +#define ICE_GRID_STDERR 278 +#define ICE_GRID_DESCRIBE 279 +#define ICE_GRID_PROPERTIES 280 +#define ICE_GRID_PROPERTY 281 +#define ICE_GRID_STATE 282 +#define ICE_GRID_PID 283 +#define ICE_GRID_ENDPOINTS 284 +#define ICE_GRID_ACTIVATION 285 +#define ICE_GRID_OBJECT 286 +#define ICE_GRID_FIND 287 +#define ICE_GRID_SHOW 288 +#define ICE_GRID_COPYING 289 +#define ICE_GRID_WARRANTY 290 +#define ICE_GRID_DIFF 291 +#define ICE_GRID_UPDATE 292 +#define ICE_GRID_INSTANTIATE 293 +#define ICE_GRID_TEMPLATE 294 +#define ICE_GRID_SERVICE 295 +#define ICE_GRID_ENABLE 296 +#define ICE_GRID_DISABLE 297 /* Copy the first part of user declarations. */ -#line 1 "Grammar.y" +#line 1 "../IceGrid/Grammar.y" // ********************************************************************** @@ -186,7 +202,12 @@ yyerror(const char* s) # define YYERROR_VERBOSE 0 #endif -#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) +/* Enabling the token table. */ +#ifndef YYTOKEN_TABLE +# define YYTOKEN_TABLE 0 +#endif + +#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef int YYSTYPE; # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 @@ -198,56 +219,171 @@ typedef int YYSTYPE; /* Copy the second part of user declarations. */ -/* Line 214 of yacc.c. */ -#line 203 "Grammar.tab.c" +/* Line 216 of yacc.c. */ +#line 224 "Grammar.tab.c" + +#ifdef short +# undef short +#endif + +#ifdef YYTYPE_UINT8 +typedef YYTYPE_UINT8 yytype_uint8; +#else +typedef unsigned char yytype_uint8; +#endif + +#ifdef YYTYPE_INT8 +typedef YYTYPE_INT8 yytype_int8; +#elif (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +typedef signed char yytype_int8; +#else +typedef short int yytype_int8; +#endif + +#ifdef YYTYPE_UINT16 +typedef YYTYPE_UINT16 yytype_uint16; +#else +typedef unsigned short int yytype_uint16; +#endif + +#ifdef YYTYPE_INT16 +typedef YYTYPE_INT16 yytype_int16; +#else +typedef short int yytype_int16; +#endif + +#ifndef YYSIZE_T +# ifdef __SIZE_TYPE__ +# define YYSIZE_T __SIZE_TYPE__ +# elif defined size_t +# define YYSIZE_T size_t +# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +# include <stddef.h> /* INFRINGES ON USER NAME SPACE */ +# define YYSIZE_T size_t +# else +# define YYSIZE_T unsigned int +# endif +#endif -#if ! defined (yyoverflow) || YYERROR_VERBOSE +#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) -# ifndef YYFREE -# define YYFREE free +#ifndef YY_ +# if defined YYENABLE_NLS && YYENABLE_NLS +# if ENABLE_NLS +# include <libintl.h> /* INFRINGES ON USER NAME SPACE */ +# define YY_(msgid) dgettext ("bison-runtime", msgid) +# endif # endif -# ifndef YYMALLOC -# define YYMALLOC malloc +# ifndef YY_ +# define YY_(msgid) msgid # endif +#endif + +/* Suppress unused-variable warnings by "using" E. */ +#if ! defined lint || defined __GNUC__ +# define YYUSE(e) ((void) (e)) +#else +# define YYUSE(e) /* empty */ +#endif + +/* Identity function, used to suppress warnings about constant conditions. */ +#ifndef lint +# define YYID(n) (n) +#else +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +static int +YYID (int i) +#else +static int +YYID (i) + int i; +#endif +{ + return i; +} +#endif + +#if ! defined yyoverflow || YYERROR_VERBOSE /* The parser invokes alloca or malloc; define the necessary symbols. */ # ifdef YYSTACK_USE_ALLOCA # if YYSTACK_USE_ALLOCA -# define YYSTACK_ALLOC alloca -# endif -# else -# if defined (alloca) || defined (_ALLOCA_H) -# define YYSTACK_ALLOC alloca -# else # ifdef __GNUC__ # define YYSTACK_ALLOC __builtin_alloca +# elif defined __BUILTIN_VA_ARG_INCR +# include <alloca.h> /* INFRINGES ON USER NAME SPACE */ +# elif defined _AIX +# define YYSTACK_ALLOC __alloca +# elif defined _MSC_VER +# include <malloc.h> /* INFRINGES ON USER NAME SPACE */ +# define alloca _alloca +# else +# define YYSTACK_ALLOC alloca +# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ +# ifndef _STDLIB_H +# define _STDLIB_H 1 +# endif +# endif # endif # endif # endif # ifdef YYSTACK_ALLOC - /* Pacify GCC's `empty if-body' warning. */ -# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) -# else -# if defined (__STDC__) || defined (__cplusplus) -# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ -# define YYSIZE_T size_t + /* Pacify GCC's `empty if-body' warning. */ +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0)) +# ifndef YYSTACK_ALLOC_MAXIMUM + /* The OS might guarantee only one guard page at the bottom of the stack, + and a page size can be as small as 4096 bytes. So we cannot safely + invoke alloca (N) if N exceeds 4096. Use a slightly smaller number + to allow for a few compiler-allocated temporary stack slots. */ +# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ # endif +# else # define YYSTACK_ALLOC YYMALLOC # define YYSTACK_FREE YYFREE +# ifndef YYSTACK_ALLOC_MAXIMUM +# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM +# endif +# if (defined __cplusplus && ! defined _STDLIB_H \ + && ! ((defined YYMALLOC || defined malloc) \ + && (defined YYFREE || defined free))) +# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ +# ifndef _STDLIB_H +# define _STDLIB_H 1 +# endif +# endif +# ifndef YYMALLOC +# define YYMALLOC malloc +# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ +# endif +# endif +# ifndef YYFREE +# define YYFREE free +# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +void free (void *); /* INFRINGES ON USER NAME SPACE */ +# endif +# endif # endif -#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */ +#endif /* ! defined yyoverflow || YYERROR_VERBOSE */ -#if (! defined (yyoverflow) \ - && (! defined (__cplusplus) \ - || (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL))) +#if (! defined yyoverflow \ + && (! defined __cplusplus \ + || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { - short yyss; + yytype_int16 yyss; YYSTYPE yyvs; }; @@ -257,24 +393,24 @@ union yyalloc /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ - ((N) * (sizeof (short) + sizeof (YYSTYPE)) \ + ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM) /* Copy COUNT objects from FROM to TO. The source and destination do not overlap. */ # ifndef YYCOPY -# if defined (__GNUC__) && 1 < __GNUC__ +# if defined __GNUC__ && 1 < __GNUC__ # define YYCOPY(To, From, Count) \ __builtin_memcpy (To, From, (Count) * sizeof (*(From))) # else # define YYCOPY(To, From, Count) \ do \ { \ - register YYSIZE_T yyi; \ + YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ - while (0) + while (YYID (0)) # endif # endif @@ -292,46 +428,40 @@ union yyalloc yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ - while (0) + while (YYID (0)) #endif -#if defined (__STDC__) || defined (__cplusplus) - typedef signed char yysigned_char; -#else - typedef short yysigned_char; -#endif - -/* YYFINAL -- State number of the termination state. */ +/* YYFINAL -- State number of the termination state. */ #define YYFINAL 4 /* YYLAST -- Last index in YYTABLE. */ -#define YYLAST 2510 +#define YYLAST 2612 -/* YYNTOKENS -- Number of terminals. */ -#define YYNTOKENS 43 -/* YYNNTS -- Number of nonterminals. */ +/* YYNTOKENS -- Number of terminals. */ +#define YYNTOKENS 44 +/* YYNNTS -- Number of nonterminals. */ #define YYNNTS 7 -/* YYNRULES -- Number of rules. */ -#define YYNRULES 169 -/* YYNRULES -- Number of states. */ -#define YYNSTATES 361 +/* YYNRULES -- Number of rules. */ +#define YYNRULES 172 +/* YYNRULES -- Number of states. */ +#define YYNSTATES 367 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 -#define YYMAXUTOK 296 +#define YYMAXUTOK 297 -#define YYTRANSLATE(YYX) \ +#define YYTRANSLATE(YYX) \ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ -static const unsigned char yytranslate[] = +static const yytype_uint8 yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 42, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 43, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, @@ -355,13 +485,13 @@ static const unsigned char yytranslate[] = 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41 + 35, 36, 37, 38, 39, 40, 41, 42 }; #if YYDEBUG /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in YYRHS. */ -static const unsigned short yyprhs[] = +static const yytype_uint16 yyprhs[] = { 0, 0, 3, 5, 6, 10, 13, 14, 17, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, @@ -374,172 +504,176 @@ static const unsigned short yyprhs[] = 381, 386, 391, 396, 401, 406, 411, 416, 421, 426, 431, 436, 441, 446, 451, 456, 461, 466, 471, 476, 481, 486, 491, 496, 501, 506, 511, 516, 521, 526, - 531, 536, 541, 546, 550, 554, 558, 563, 569, 575, - 582, 587, 591, 595, 600, 604, 608, 611, 613, 616, - 619, 623, 627, 628, 630, 632, 634, 636, 638, 640, - 642, 644, 646, 648, 650, 652, 654, 656, 658, 660, - 662, 664, 666, 668, 670, 672, 674, 676, 678, 680, - 682, 684, 686, 688, 690, 692, 694, 696, 698, 700 + 531, 536, 541, 546, 551, 556, 560, 564, 568, 573, + 579, 585, 592, 597, 601, 605, 610, 614, 618, 621, + 623, 626, 629, 633, 637, 638, 640, 642, 644, 646, + 648, 650, 652, 654, 656, 658, 660, 662, 664, 666, + 668, 670, 672, 674, 676, 678, 680, 682, 684, 686, + 688, 690, 692, 694, 696, 698, 700, 702, 704, 706, + 708, 710, 712 }; -/* YYRHS -- A `-1'-separated list of the rules' RHS. */ -static const yysigned_char yyrhs[] = +/* YYRHS -- A `-1'-separated list of the rules' RHS. */ +static const yytype_int8 yyrhs[] = { - 44, 0, -1, 45, -1, -1, 45, 46, 47, -1, - 46, 47, -1, -1, 3, 42, -1, 4, 42, -1, - 5, 12, 48, 42, -1, 5, 12, 3, 42, -1, - 5, 13, 48, 42, -1, 5, 13, 3, 42, -1, - 5, 35, 48, 42, -1, 5, 35, 3, 42, -1, - 5, 36, 48, 42, -1, 5, 36, 3, 42, -1, - 5, 23, 48, 42, -1, 5, 23, 3, 42, -1, - 5, 19, 48, 42, -1, 5, 19, 3, 42, -1, - 5, 14, 48, 42, -1, 5, 14, 3, 42, -1, - 8, 38, 23, 48, 42, -1, 8, 38, 23, 3, - 42, -1, 8, 38, 37, 48, 42, -1, 8, 38, - 37, 3, 42, -1, 8, 38, 3, 42, -1, 39, - 38, 23, 48, 42, -1, 39, 38, 23, 3, 42, - -1, 39, 38, 3, 42, -1, 6, 23, 48, 42, - -1, 6, 23, 3, 42, -1, 6, 10, 48, 42, - -1, 6, 10, 3, 42, -1, 6, 11, 48, 42, - -1, 6, 11, 3, 42, -1, 6, 15, 48, 42, - -1, 6, 15, 3, 42, -1, 6, 14, 48, 42, - -1, 6, 14, 3, 42, -1, 6, 32, 48, 42, - -1, 6, 32, 3, 42, -1, 7, 23, 48, 42, - -1, 7, 23, 3, 42, -1, 7, 10, 48, 42, - -1, 7, 10, 3, 42, -1, 7, 15, 48, 42, - -1, 7, 15, 3, 42, -1, 7, 14, 48, 42, - -1, 7, 14, 3, 42, -1, 7, 32, 48, 42, - -1, 7, 32, 3, 42, -1, 8, 13, 48, 42, - -1, 8, 13, 3, 42, -1, 8, 23, 48, 42, - -1, 8, 23, 3, 42, -1, 8, 17, 48, 42, - -1, 8, 17, 3, 42, -1, 8, 18, 48, 42, - -1, 8, 18, 3, 42, -1, 8, 19, 48, 42, - -1, 8, 19, 3, 42, -1, 8, 20, 48, 42, - -1, 8, 20, 3, 42, -1, 8, 21, 48, 42, - -1, 8, 21, 3, 42, -1, 8, 22, 48, 42, - -1, 8, 22, 3, 42, -1, 8, 26, 48, 42, - -1, 8, 26, 3, 42, -1, 8, 27, 48, 42, - -1, 8, 27, 3, 42, -1, 8, 24, 48, 42, - -1, 8, 24, 3, 42, -1, 8, 25, 48, 42, - -1, 8, 25, 3, 42, -1, 8, 40, 48, 42, - -1, 8, 40, 3, 42, -1, 8, 41, 48, 42, - -1, 8, 41, 3, 42, -1, 8, 14, 48, 42, - -1, 8, 14, 3, 42, -1, 8, 32, 48, 42, - -1, 8, 32, 3, 42, -1, 39, 17, 48, 42, - -1, 39, 17, 3, 42, -1, 39, 18, 48, 42, - -1, 39, 18, 3, 42, -1, 39, 23, 48, 42, - -1, 39, 23, 3, 42, -1, 39, 24, 48, 42, - -1, 39, 24, 3, 42, -1, 39, 25, 48, 42, - -1, 39, 25, 3, 42, -1, 39, 14, 48, 42, - -1, 39, 14, 3, 42, -1, 9, 28, 48, 42, - -1, 9, 28, 3, 42, -1, 9, 13, 48, 42, - -1, 9, 13, 3, 42, -1, 9, 14, 48, 42, - -1, 9, 14, 3, 42, -1, 30, 12, 48, 42, - -1, 30, 12, 3, 42, -1, 30, 13, 48, 42, - -1, 30, 13, 3, 42, -1, 30, 31, 48, 42, - -1, 30, 31, 3, 42, -1, 30, 14, 48, 42, - -1, 30, 14, 3, 42, -1, 30, 23, 48, 42, - -1, 30, 23, 3, 42, -1, 32, 33, 42, -1, - 32, 34, 42, -1, 3, 49, 42, -1, 3, 49, - 49, 42, -1, 3, 49, 16, 48, 42, -1, 3, - 49, 49, 49, 42, -1, 3, 49, 49, 16, 48, - 42, -1, 3, 16, 48, 42, -1, 3, 1, 42, - -1, 49, 3, 42, -1, 49, 16, 1, 42, -1, - 49, 1, 42, -1, 16, 1, 42, -1, 1, 42, - -1, 42, -1, 16, 48, -1, 49, 48, -1, 16, - 3, 48, -1, 49, 3, 48, -1, -1, 4, -1, + 45, 0, -1, 46, -1, -1, 46, 47, 48, -1, + 47, 48, -1, -1, 3, 43, -1, 4, 43, -1, + 5, 13, 49, 43, -1, 5, 13, 3, 43, -1, + 5, 14, 49, 43, -1, 5, 14, 3, 43, -1, + 5, 36, 49, 43, -1, 5, 36, 3, 43, -1, + 5, 37, 49, 43, -1, 5, 37, 3, 43, -1, + 5, 24, 49, 43, -1, 5, 24, 3, 43, -1, + 5, 20, 49, 43, -1, 5, 20, 3, 43, -1, + 5, 15, 49, 43, -1, 5, 15, 3, 43, -1, + 8, 39, 24, 49, 43, -1, 8, 39, 24, 3, + 43, -1, 8, 39, 38, 49, 43, -1, 8, 39, + 38, 3, 43, -1, 8, 39, 3, 43, -1, 40, + 39, 24, 49, 43, -1, 40, 39, 24, 3, 43, + -1, 40, 39, 3, 43, -1, 6, 24, 49, 43, + -1, 6, 24, 3, 43, -1, 6, 10, 49, 43, + -1, 6, 10, 3, 43, -1, 6, 11, 49, 43, + -1, 6, 11, 3, 43, -1, 6, 12, 49, 43, + -1, 6, 12, 3, 43, -1, 6, 16, 49, 43, + -1, 6, 16, 3, 43, -1, 6, 15, 49, 43, + -1, 6, 15, 3, 43, -1, 6, 33, 49, 43, + -1, 6, 33, 3, 43, -1, 7, 24, 49, 43, + -1, 7, 24, 3, 43, -1, 7, 10, 49, 43, + -1, 7, 10, 3, 43, -1, 7, 16, 49, 43, + -1, 7, 16, 3, 43, -1, 7, 15, 49, 43, + -1, 7, 15, 3, 43, -1, 7, 33, 49, 43, + -1, 7, 33, 3, 43, -1, 8, 14, 49, 43, + -1, 8, 14, 3, 43, -1, 8, 24, 49, 43, + -1, 8, 24, 3, 43, -1, 8, 18, 49, 43, + -1, 8, 18, 3, 43, -1, 8, 19, 49, 43, + -1, 8, 19, 3, 43, -1, 8, 20, 49, 43, + -1, 8, 20, 3, 43, -1, 8, 21, 49, 43, + -1, 8, 21, 3, 43, -1, 8, 22, 49, 43, + -1, 8, 22, 3, 43, -1, 8, 23, 49, 43, + -1, 8, 23, 3, 43, -1, 8, 27, 49, 43, + -1, 8, 27, 3, 43, -1, 8, 28, 49, 43, + -1, 8, 28, 3, 43, -1, 8, 25, 49, 43, + -1, 8, 25, 3, 43, -1, 8, 26, 49, 43, + -1, 8, 26, 3, 43, -1, 8, 41, 49, 43, + -1, 8, 41, 3, 43, -1, 8, 42, 49, 43, + -1, 8, 42, 3, 43, -1, 8, 15, 49, 43, + -1, 8, 15, 3, 43, -1, 8, 33, 49, 43, + -1, 8, 33, 3, 43, -1, 40, 18, 49, 43, + -1, 40, 18, 3, 43, -1, 40, 19, 49, 43, + -1, 40, 19, 3, 43, -1, 40, 24, 49, 43, + -1, 40, 24, 3, 43, -1, 40, 25, 49, 43, + -1, 40, 25, 3, 43, -1, 40, 26, 49, 43, + -1, 40, 26, 3, 43, -1, 40, 15, 49, 43, + -1, 40, 15, 3, 43, -1, 9, 29, 49, 43, + -1, 9, 29, 3, 43, -1, 9, 14, 49, 43, + -1, 9, 14, 3, 43, -1, 9, 15, 49, 43, + -1, 9, 15, 3, 43, -1, 31, 13, 49, 43, + -1, 31, 13, 3, 43, -1, 31, 14, 49, 43, + -1, 31, 14, 3, 43, -1, 31, 32, 49, 43, + -1, 31, 32, 3, 43, -1, 31, 15, 49, 43, + -1, 31, 15, 3, 43, -1, 31, 24, 49, 43, + -1, 31, 24, 3, 43, -1, 33, 34, 43, -1, + 33, 35, 43, -1, 3, 50, 43, -1, 3, 50, + 50, 43, -1, 3, 50, 17, 49, 43, -1, 3, + 50, 50, 50, 43, -1, 3, 50, 50, 17, 49, + 43, -1, 3, 17, 49, 43, -1, 3, 1, 43, + -1, 50, 3, 43, -1, 50, 17, 1, 43, -1, + 50, 1, 43, -1, 17, 1, 43, -1, 1, 43, + -1, 43, -1, 17, 49, -1, 50, 49, -1, 17, + 3, 49, -1, 50, 3, 49, -1, -1, 4, -1, 5, -1, 6, -1, 7, -1, 8, -1, 9, -1, 10, -1, 11, -1, 12, -1, 13, -1, 14, -1, - 15, -1, 17, -1, 18, -1, 19, -1, 20, -1, - 23, -1, 26, -1, 27, -1, 24, -1, 25, -1, - 28, -1, 29, -1, 30, -1, 31, -1, 32, -1, + 15, -1, 16, -1, 18, -1, 19, -1, 20, -1, + 21, -1, 24, -1, 27, -1, 28, -1, 25, -1, + 26, -1, 29, -1, 30, -1, 31, -1, 32, -1, 33, -1, 34, -1, 35, -1, 36, -1, 37, -1, - 38, -1, 39, -1, 40, -1, 41, -1, 22, -1, - 21, -1 + 38, -1, 39, -1, 40, -1, 41, -1, 42, -1, + 23, -1, 22, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ -static const unsigned short yyrline[] = +static const yytype_uint16 yyrline[] = { - 0, 87, 87, 91, 98, 101, 108, 116, 120, 124, - 128, 132, 136, 140, 144, 148, 152, 156, 160, 164, - 168, 172, 176, 180, 184, 188, 192, 196, 200, 204, - 208, 212, 216, 220, 224, 228, 232, 236, 240, 244, - 248, 252, 256, 260, 264, 268, 272, 276, 280, 284, - 288, 292, 296, 300, 304, 308, 312, 316, 320, 324, - 328, 332, 336, 340, 344, 348, 352, 356, 360, 364, - 368, 372, 376, 380, 384, 388, 392, 396, 400, 404, - 408, 412, 416, 420, 424, 428, 432, 436, 440, 444, - 448, 452, 456, 460, 464, 468, 472, 476, 480, 484, - 488, 492, 496, 500, 504, 508, 512, 516, 520, 524, - 528, 532, 536, 540, 544, 548, 552, 563, 567, 578, - 589, 593, 597, 601, 607, 612, 617, 621, 630, 635, - 640, 646, 653, 661, 664, 667, 670, 673, 676, 679, - 682, 685, 688, 691, 694, 697, 700, 703, 706, 709, - 712, 715, 718, 721, 724, 727, 730, 733, 736, 739, - 742, 745, 748, 751, 754, 757, 760, 763, 766, 769 + 0, 88, 88, 92, 99, 102, 109, 117, 121, 125, + 129, 133, 137, 141, 145, 149, 153, 157, 161, 165, + 169, 173, 177, 181, 185, 189, 193, 197, 201, 205, + 209, 213, 217, 221, 225, 229, 233, 237, 241, 245, + 249, 253, 257, 261, 265, 269, 273, 277, 281, 285, + 289, 293, 297, 301, 305, 309, 313, 317, 321, 325, + 329, 333, 337, 341, 345, 349, 353, 357, 361, 365, + 369, 373, 377, 381, 385, 389, 393, 397, 401, 405, + 409, 413, 417, 421, 425, 429, 433, 437, 441, 445, + 449, 453, 457, 461, 465, 469, 473, 477, 481, 485, + 489, 493, 497, 501, 505, 509, 513, 517, 521, 525, + 529, 533, 537, 541, 545, 549, 553, 557, 561, 572, + 576, 587, 598, 602, 606, 610, 616, 621, 626, 630, + 639, 644, 649, 655, 662, 670, 673, 676, 679, 682, + 685, 688, 691, 694, 697, 700, 703, 706, 709, 712, + 715, 718, 721, 724, 727, 730, 733, 736, 739, 742, + 745, 748, 751, 754, 757, 760, 763, 766, 769, 772, + 775, 778, 781 }; #endif -#if YYDEBUG || YYERROR_VERBOSE -/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. - First, the terminals, then, starting at YYNTOKENS, nonterminals. */ +#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE +/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. + First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { "$end", "error", "$undefined", "ICE_GRID_HELP", "ICE_GRID_EXIT", "ICE_GRID_APPLICATION", "ICE_GRID_NODE", "ICE_GRID_REGISTRY", "ICE_GRID_SERVER", "ICE_GRID_ADAPTER", "ICE_GRID_PING", "ICE_GRID_LOAD", - "ICE_GRID_ADD", "ICE_GRID_REMOVE", "ICE_GRID_LIST", "ICE_GRID_SHUTDOWN", - "ICE_GRID_STRING", "ICE_GRID_START", "ICE_GRID_STOP", "ICE_GRID_PATCH", - "ICE_GRID_SIGNAL", "ICE_GRID_STDOUT", "ICE_GRID_STDERR", - "ICE_GRID_DESCRIBE", "ICE_GRID_PROPERTIES", "ICE_GRID_PROPERTY", - "ICE_GRID_STATE", "ICE_GRID_PID", "ICE_GRID_ENDPOINTS", - "ICE_GRID_ACTIVATION", "ICE_GRID_OBJECT", "ICE_GRID_FIND", - "ICE_GRID_SHOW", "ICE_GRID_COPYING", "ICE_GRID_WARRANTY", - "ICE_GRID_DIFF", "ICE_GRID_UPDATE", "ICE_GRID_INSTANTIATE", - "ICE_GRID_TEMPLATE", "ICE_GRID_SERVICE", "ICE_GRID_ENABLE", - "ICE_GRID_DISABLE", "';'", "$accept", "start", "commands", - "checkInterrupted", "command", "strings", "keyword", 0 + "ICE_GRID_PROCESSORS", "ICE_GRID_ADD", "ICE_GRID_REMOVE", + "ICE_GRID_LIST", "ICE_GRID_SHUTDOWN", "ICE_GRID_STRING", + "ICE_GRID_START", "ICE_GRID_STOP", "ICE_GRID_PATCH", "ICE_GRID_SIGNAL", + "ICE_GRID_STDOUT", "ICE_GRID_STDERR", "ICE_GRID_DESCRIBE", + "ICE_GRID_PROPERTIES", "ICE_GRID_PROPERTY", "ICE_GRID_STATE", + "ICE_GRID_PID", "ICE_GRID_ENDPOINTS", "ICE_GRID_ACTIVATION", + "ICE_GRID_OBJECT", "ICE_GRID_FIND", "ICE_GRID_SHOW", "ICE_GRID_COPYING", + "ICE_GRID_WARRANTY", "ICE_GRID_DIFF", "ICE_GRID_UPDATE", + "ICE_GRID_INSTANTIATE", "ICE_GRID_TEMPLATE", "ICE_GRID_SERVICE", + "ICE_GRID_ENABLE", "ICE_GRID_DISABLE", "';'", "$accept", "start", + "commands", "checkInterrupted", "command", "strings", "keyword", 0 }; #endif # ifdef YYPRINT /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to token YYLEX-NUM. */ -static const unsigned short yytoknum[] = +static const yytype_uint16 yytoknum[] = { 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, - 295, 296, 59 + 295, 296, 297, 59 }; # endif /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ -static const unsigned char yyr1[] = +static const yytype_uint8 yyr1[] = { - 0, 43, 44, 44, 45, 45, 46, 47, 47, 47, - 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, - 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, - 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, - 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, - 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, - 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, - 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, - 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, - 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, - 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, - 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, - 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, - 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, - 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, - 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, - 49, 49, 49, 49, 49, 49, 49, 49, 49, 49 + 0, 44, 45, 45, 46, 46, 47, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, + 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, + 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, + 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, + 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, + 50, 50, 50 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ -static const unsigned char yyr2[] = +static const yytype_uint8 yyr2[] = { 0, 2, 1, 0, 3, 2, 0, 2, 2, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, @@ -552,112 +686,113 @@ static const unsigned char yyr2[] = 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, - 4, 4, 4, 3, 3, 3, 4, 5, 5, 6, - 4, 3, 3, 4, 3, 3, 2, 1, 2, 2, - 3, 3, 0, 1, 1, 1, 1, 1, 1, 1, + 4, 4, 4, 4, 4, 3, 3, 3, 4, 5, + 5, 6, 4, 3, 3, 4, 3, 3, 2, 1, + 2, 2, 3, 3, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1 }; /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state STATE-NUM when YYTABLE doesn't specify something else to do. Zero means the default is an error. */ -static const unsigned char yydefact[] = +static const yytype_uint8 yydefact[] = { - 6, 0, 6, 0, 1, 0, 0, 0, 133, 134, - 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, - 0, 145, 146, 147, 148, 169, 168, 149, 152, 153, - 150, 151, 154, 155, 156, 157, 158, 159, 160, 161, - 162, 163, 164, 165, 166, 167, 127, 5, 0, 4, - 126, 0, 133, 134, 135, 136, 137, 138, 132, 156, - 158, 165, 7, 0, 8, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, - 132, 132, 132, 132, 132, 132, 132, 0, 132, 132, - 132, 132, 132, 0, 132, 132, 132, 132, 132, 0, - 0, 132, 132, 132, 132, 132, 132, 0, 0, 0, - 0, 121, 132, 0, 132, 132, 115, 0, 0, 0, + 6, 0, 6, 0, 1, 0, 0, 0, 135, 136, + 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, + 147, 0, 148, 149, 150, 151, 172, 171, 152, 155, + 156, 153, 154, 157, 158, 159, 160, 161, 162, 163, + 164, 165, 166, 167, 168, 169, 170, 129, 5, 0, + 4, 128, 0, 135, 136, 137, 138, 139, 140, 134, + 159, 161, 168, 7, 0, 8, 134, 134, 134, 134, + 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, + 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, + 134, 134, 134, 134, 134, 134, 134, 134, 134, 0, + 134, 134, 134, 134, 134, 0, 134, 134, 134, 134, + 134, 0, 0, 134, 134, 134, 134, 134, 134, 0, + 0, 0, 0, 123, 134, 0, 134, 134, 117, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 132, 132, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 125, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 113, 114, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 134, 134, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 127, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 132, 124, 122, 0, 132, 128, 120, 132, 129, - 0, 132, 116, 0, 10, 9, 12, 11, 22, 21, - 20, 19, 18, 17, 14, 13, 16, 15, 34, 33, - 36, 35, 40, 39, 38, 37, 32, 31, 42, 41, - 46, 45, 50, 49, 48, 47, 44, 43, 52, 51, - 54, 53, 82, 81, 58, 57, 60, 59, 62, 61, - 64, 63, 66, 65, 68, 67, 56, 55, 74, 73, - 76, 75, 70, 69, 72, 71, 84, 83, 27, 0, - 0, 0, 0, 78, 77, 80, 79, 100, 99, 102, - 101, 98, 97, 104, 103, 106, 105, 110, 109, 112, - 111, 108, 107, 96, 95, 86, 85, 88, 87, 90, - 89, 92, 91, 94, 93, 30, 0, 0, 123, 130, - 131, 117, 0, 118, 24, 23, 26, 25, 29, 28, - 119 + 115, 116, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 134, 126, 124, 0, 134, + 130, 122, 134, 131, 0, 134, 118, 0, 10, 9, + 12, 11, 22, 21, 20, 19, 18, 17, 14, 13, + 16, 15, 34, 33, 36, 35, 38, 37, 42, 41, + 40, 39, 32, 31, 44, 43, 48, 47, 52, 51, + 50, 49, 46, 45, 54, 53, 56, 55, 84, 83, + 60, 59, 62, 61, 64, 63, 66, 65, 68, 67, + 70, 69, 58, 57, 76, 75, 78, 77, 72, 71, + 74, 73, 86, 85, 27, 0, 0, 0, 0, 80, + 79, 82, 81, 102, 101, 104, 103, 100, 99, 106, + 105, 108, 107, 112, 111, 114, 113, 110, 109, 98, + 97, 88, 87, 90, 89, 92, 91, 94, 93, 96, + 95, 30, 0, 0, 125, 132, 133, 119, 0, 120, + 24, 23, 26, 25, 29, 28, 121 }; -/* YYDEFGOTO[NTERM-NUM]. */ -static const yysigned_char yydefgoto[] = +/* YYDEFGOTO[NTERM-NUM]. */ +static const yytype_int8 yydefgoto[] = { - -1, 1, 2, 3, 47, 123, 124 + -1, 1, 2, 3, 48, 125, 126 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ -#define YYPACT_NINF -66 -static const short yypact[] = +#define YYPACT_NINF -67 +static const yytype_int16 yypact[] = { - 38, 53, 55, 60, -66, 60, 20, 176, 62, 96, - 140, 142, 121, 98, -66, -66, -66, -66, -66, -66, - 112, -66, -66, -66, -66, -66, -66, -66, -66, -66, - -66, -66, -66, -66, 93, -66, 11, -66, -66, -66, - -66, -66, -66, 2388, -66, -66, -66, -66, 117, -66, - -66, 75, -66, -66, -66, -66, -66, -66, 2360, -66, - -66, -66, -66, 215, -66, 255, 294, 333, 372, 411, - 450, 489, 528, 567, 606, 645, 684, 723, 762, 801, - 840, 879, 918, 957, 996, 1035, 1074, 1113, 1152, 1191, - 1230, 1269, 1308, 1347, 1386, 1425, 1464, 100, 1503, 1542, - 1581, 1620, 1659, 79, 1698, 1737, 1776, 1815, 1854, 80, - 83, 1893, 1932, 1971, 2010, 2049, 2088, 29, 85, 88, - 135, -66, 2127, 107, 2166, 2360, -66, 2204, 116, 118, - 122, 125, 126, 127, 129, 133, 137, 2361, 2362, 2365, - 2366, 2367, 2368, 2372, 2373, 2374, 2375, 2376, 2377, 2378, - 2379, 2380, 2381, 2382, 2383, 2385, 2386, 2387, 2389, 2390, - 2391, 2392, 2393, 2394, 2395, 2396, 2397, 2398, 2399, 2400, - 2401, 2402, 2403, 2404, 2405, 2406, 2407, 2408, 2409, 2410, - 2411, 2412, 2413, 2414, 2415, 2416, 2417, 2418, 2419, 2420, - 2421, 2422, 2423, 2244, 2283, 2424, 2425, 2426, 2427, 2428, - 2429, 2430, 2431, 2432, 2433, -66, 2434, 2435, 2436, 2437, - 2438, 2439, 2440, 2441, 2442, 2443, -66, -66, 2444, 2445, - 2446, 2447, 2448, 2449, 2450, 2451, 2452, 2453, 2454, 2455, - 2456, 2322, -66, -66, 2457, 2360, -66, -66, 2360, -66, - 2458, 2360, -66, 2459, -66, -66, -66, -66, -66, -66, - -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, - -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, - -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, - -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, - -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, - -66, -66, -66, -66, -66, -66, -66, -66, -66, 2460, - 2461, 2462, 2463, -66, -66, -66, -66, -66, -66, -66, - -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, - -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, - -66, -66, -66, -66, -66, -66, 2464, 2465, -66, -66, - -66, -66, 2466, -66, -66, -66, -66, -66, -66, -66, - -66 + 39, 53, 56, 61, -67, 61, 20, 179, 69, 93, + 142, 2492, 123, 95, -67, -67, -67, -67, -67, -67, + -67, 117, -67, -67, -67, -67, -67, -67, -67, -67, + -67, -67, -67, -67, -67, 146, -67, 11, -67, -67, + -67, -67, -67, -67, 96, -67, -67, -67, -67, 122, + -67, -67, 76, -67, -67, -67, -67, -67, -67, 2459, + -67, -67, -67, -67, 219, -67, 260, 300, 340, 380, + 420, 460, 500, 540, 580, 620, 660, 700, 740, 780, + 820, 860, 900, 940, 980, 1020, 1060, 1100, 1140, 1180, + 1220, 1260, 1300, 1340, 1380, 1420, 1460, 1500, 1540, 102, + 1580, 1620, 1660, 1700, 1740, 84, 1780, 1820, 1860, 1900, + 1940, 85, 90, 1980, 2020, 2060, 2100, 2140, 2180, 30, + 91, 112, 135, -67, 2220, 120, 2260, 2459, -67, 2299, + 124, 125, 128, 129, 131, 134, 139, 2460, 2461, 2462, + 2463, 2466, 2467, 2468, 2469, 2470, 2471, 2472, 2474, 2475, + 2476, 2477, 2478, 2479, 2480, 2481, 2483, 2484, 2485, 2486, + 2487, 2488, 2489, 2490, 2491, 2493, 2494, 2495, 2496, 2497, + 2498, 2499, 2500, 2501, 2502, 2503, 2504, 2505, 2506, 2507, + 2508, 2509, 2510, 2511, 2512, 2513, 2514, 2515, 2516, 2517, + 2518, 2519, 2520, 2521, 2522, 2523, 2524, 2340, 2380, 2525, + 2526, 2527, 2528, 2529, 2530, 2531, 2532, 2533, 2534, -67, + 2535, 2536, 2537, 2538, 2539, 2540, 2541, 2542, 2543, 2544, + -67, -67, 2545, 2546, 2547, 2548, 2549, 2550, 2551, 2552, + 2553, 2554, 2555, 2556, 2557, 2420, -67, -67, 2558, 2459, + -67, -67, 2459, -67, 2559, 2459, -67, 2560, -67, -67, + -67, -67, -67, -67, -67, -67, -67, -67, -67, -67, + -67, -67, -67, -67, -67, -67, -67, -67, -67, -67, + -67, -67, -67, -67, -67, -67, -67, -67, -67, -67, + -67, -67, -67, -67, -67, -67, -67, -67, -67, -67, + -67, -67, -67, -67, -67, -67, -67, -67, -67, -67, + -67, -67, -67, -67, -67, -67, -67, -67, -67, -67, + -67, -67, -67, -67, -67, 2561, 2562, 2563, 2564, -67, + -67, -67, -67, -67, -67, -67, -67, -67, -67, -67, + -67, -67, -67, -67, -67, -67, -67, -67, -67, -67, + -67, -67, -67, -67, -67, -67, -67, -67, -67, -67, + -67, -67, 2565, 2566, -67, -67, -67, -67, 2567, -67, + -67, -67, -67, -67, -67, -67, -67 }; /* YYPGOTO[NTERM-NUM]. */ -static const short yypgoto[] = +static const yytype_int16 yypgoto[] = { - -66, -66, -66, 2507, 2505, -65, 51 + -67, -67, -67, 2609, 2607, -66, 52 }; /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If @@ -665,577 +800,581 @@ static const short yypgoto[] = number is the opposite. If zero, do what YYDEFACT says. If YYTABLE_NINF, syntax error. */ #define YYTABLE_NINF -4 -static const short yytable[] = +static const yytype_int16 yytable[] = { - 129, 131, 133, 135, 137, 139, 141, 143, 145, 147, - 149, 151, 153, 155, 157, 159, 161, 163, 165, 167, - 169, 171, 173, 175, 177, 179, 181, 183, 185, 187, - 189, 191, 230, 196, 198, 200, 202, 204, -3, 207, - 209, 211, 213, 215, 109, 110, 219, 221, 223, 225, - 227, 229, 231, 4, 48, -2, 48, 236, 63, 239, - 240, 6, 50, 7, 8, 9, 10, 11, 12, 13, - 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, - 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, - 44, 45, 46, 192, 64, 104, 105, 106, 65, 66, - 67, 100, 101, 103, 127, 68, 107, 121, 118, 69, - 119, 205, 216, 193, 108, 217, 102, 232, 310, 312, - 233, 70, 71, 120, 83, 84, 234, 194, 85, 86, - 87, 88, 89, 90, 91, 92, 93, 94, 95, 237, - 72, 73, 78, 96, 74, 75, 79, 80, 244, 97, - 245, 98, 99, 76, 246, 81, 347, 247, 248, 249, - 349, 250, 77, 350, 82, 251, 352, 51, 243, 252, - 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, - 18, 19, 58, 21, 22, 23, 24, 25, 26, 27, - 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, - 38, 39, 40, 41, 42, 61, 44, 45, 62, 52, - 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, - 19, 125, 21, 22, 23, 24, 25, 26, 27, 28, - 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, - 39, 40, 41, 42, 61, 44, 45, 126, 128, 52, - 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, - 19, 122, 21, 22, 23, 24, 25, 26, 27, 28, - 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, - 39, 40, 41, 42, 61, 44, 45, 130, 52, 53, - 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, - 122, 21, 22, 23, 24, 25, 26, 27, 28, 29, - 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, - 40, 41, 42, 61, 44, 45, 132, 52, 53, 54, - 55, 56, 57, 14, 15, 16, 17, 18, 19, 122, - 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, - 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, - 41, 42, 61, 44, 45, 134, 52, 53, 54, 55, - 56, 57, 14, 15, 16, 17, 18, 19, 122, 21, - 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, - 42, 61, 44, 45, 136, 52, 53, 54, 55, 56, - 57, 14, 15, 16, 17, 18, 19, 122, 21, 22, + 131, 133, 135, 137, 139, 141, 143, 145, 147, 149, + 151, 153, 155, 157, 159, 161, 163, 165, 167, 169, + 171, 173, 175, 177, 179, 181, 183, 185, 187, 189, + 191, 193, 195, 234, 200, 202, 204, 206, 208, -3, + 211, 213, 215, 217, 219, 111, 112, 223, 225, 227, + 229, 231, 233, 4, 235, 49, -2, 49, 240, 64, + 243, 244, 6, 51, 7, 8, 9, 10, 11, 12, + 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, - 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, - 61, 44, 45, 138, 52, 53, 54, 55, 56, 57, - 14, 15, 16, 17, 18, 19, 122, 21, 22, 23, + 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, + 43, 44, 45, 46, 47, 196, 66, 67, 68, 102, + 103, 113, 65, 69, 114, 115, 129, 70, 105, 123, + 116, 117, 118, 120, 104, 121, 197, 209, 220, 71, + 72, 316, 318, 221, 236, 119, 238, 85, 86, 122, + 198, 87, 88, 89, 90, 91, 92, 93, 94, 95, + 96, 97, 73, 74, 75, 237, 98, 76, 77, 106, + 107, 108, 99, 241, 100, 101, 78, 248, 249, 353, + 109, 250, 251, 355, 252, 79, 356, 253, 110, 358, + 52, 247, 254, 53, 54, 55, 56, 57, 58, 14, + 15, 16, 17, 18, 19, 20, 59, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, + 60, 36, 61, 38, 39, 40, 41, 42, 43, 62, + 45, 46, 63, 53, 54, 55, 56, 57, 58, 14, + 15, 16, 17, 18, 19, 20, 127, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, + 60, 36, 61, 38, 39, 40, 41, 42, 43, 62, + 45, 46, 128, 130, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, - 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, - 44, 45, 140, 52, 53, 54, 55, 56, 57, 14, - 15, 16, 17, 18, 19, 122, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, - 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, - 45, 142, 52, 53, 54, 55, 56, 57, 14, 15, - 16, 17, 18, 19, 122, 21, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, - 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, - 144, 52, 53, 54, 55, 56, 57, 14, 15, 16, - 17, 18, 19, 122, 21, 22, 23, 24, 25, 26, - 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, - 37, 38, 39, 40, 41, 42, 61, 44, 45, 146, - 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, - 18, 19, 122, 21, 22, 23, 24, 25, 26, 27, - 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, - 38, 39, 40, 41, 42, 61, 44, 45, 148, 52, - 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, - 19, 122, 21, 22, 23, 24, 25, 26, 27, 28, - 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, - 39, 40, 41, 42, 61, 44, 45, 150, 52, 53, - 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, - 122, 21, 22, 23, 24, 25, 26, 27, 28, 29, - 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, - 40, 41, 42, 61, 44, 45, 152, 52, 53, 54, - 55, 56, 57, 14, 15, 16, 17, 18, 19, 122, - 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, - 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, - 41, 42, 61, 44, 45, 154, 52, 53, 54, 55, - 56, 57, 14, 15, 16, 17, 18, 19, 122, 21, - 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, - 42, 61, 44, 45, 156, 52, 53, 54, 55, 56, - 57, 14, 15, 16, 17, 18, 19, 122, 21, 22, - 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, - 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, - 61, 44, 45, 158, 52, 53, 54, 55, 56, 57, - 14, 15, 16, 17, 18, 19, 122, 21, 22, 23, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 132, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, - 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, - 44, 45, 160, 52, 53, 54, 55, 56, 57, 14, - 15, 16, 17, 18, 19, 122, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, - 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, - 45, 162, 52, 53, 54, 55, 56, 57, 14, 15, - 16, 17, 18, 19, 122, 21, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, - 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, - 164, 52, 53, 54, 55, 56, 57, 14, 15, 16, - 17, 18, 19, 122, 21, 22, 23, 24, 25, 26, - 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, - 37, 38, 39, 40, 41, 42, 61, 44, 45, 166, - 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, - 18, 19, 122, 21, 22, 23, 24, 25, 26, 27, - 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, - 38, 39, 40, 41, 42, 61, 44, 45, 168, 52, - 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, - 19, 122, 21, 22, 23, 24, 25, 26, 27, 28, - 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, - 39, 40, 41, 42, 61, 44, 45, 170, 52, 53, - 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, - 122, 21, 22, 23, 24, 25, 26, 27, 28, 29, - 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, - 40, 41, 42, 61, 44, 45, 172, 52, 53, 54, - 55, 56, 57, 14, 15, 16, 17, 18, 19, 122, - 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, - 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, - 41, 42, 61, 44, 45, 174, 52, 53, 54, 55, - 56, 57, 14, 15, 16, 17, 18, 19, 122, 21, - 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, - 42, 61, 44, 45, 176, 52, 53, 54, 55, 56, - 57, 14, 15, 16, 17, 18, 19, 122, 21, 22, - 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, - 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, - 61, 44, 45, 178, 52, 53, 54, 55, 56, 57, - 14, 15, 16, 17, 18, 19, 122, 21, 22, 23, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 134, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, - 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, - 44, 45, 180, 52, 53, 54, 55, 56, 57, 14, - 15, 16, 17, 18, 19, 122, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, - 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, - 45, 182, 52, 53, 54, 55, 56, 57, 14, 15, - 16, 17, 18, 19, 122, 21, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, - 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, - 184, 52, 53, 54, 55, 56, 57, 14, 15, 16, - 17, 18, 19, 122, 21, 22, 23, 24, 25, 26, - 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, - 37, 38, 39, 40, 41, 42, 61, 44, 45, 186, - 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, - 18, 19, 122, 21, 22, 23, 24, 25, 26, 27, - 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, - 38, 39, 40, 41, 42, 61, 44, 45, 188, 52, - 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, - 19, 122, 21, 22, 23, 24, 25, 26, 27, 28, - 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, - 39, 40, 41, 42, 61, 44, 45, 190, 52, 53, - 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, - 122, 21, 22, 23, 24, 25, 26, 27, 28, 29, - 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, - 40, 41, 42, 61, 44, 45, 195, 52, 53, 54, - 55, 56, 57, 14, 15, 16, 17, 18, 19, 122, - 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, - 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, - 41, 42, 61, 44, 45, 197, 52, 53, 54, 55, - 56, 57, 14, 15, 16, 17, 18, 19, 122, 21, - 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, - 42, 61, 44, 45, 199, 52, 53, 54, 55, 56, - 57, 14, 15, 16, 17, 18, 19, 122, 21, 22, - 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, - 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, - 61, 44, 45, 201, 52, 53, 54, 55, 56, 57, - 14, 15, 16, 17, 18, 19, 122, 21, 22, 23, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 136, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, - 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, - 44, 45, 203, 52, 53, 54, 55, 56, 57, 14, - 15, 16, 17, 18, 19, 122, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, - 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, - 45, 206, 52, 53, 54, 55, 56, 57, 14, 15, - 16, 17, 18, 19, 122, 21, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, - 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, - 208, 52, 53, 54, 55, 56, 57, 14, 15, 16, - 17, 18, 19, 122, 21, 22, 23, 24, 25, 26, - 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, - 37, 38, 39, 40, 41, 42, 61, 44, 45, 210, - 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, - 18, 19, 122, 21, 22, 23, 24, 25, 26, 27, - 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, - 38, 39, 40, 41, 42, 61, 44, 45, 212, 52, - 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, - 19, 122, 21, 22, 23, 24, 25, 26, 27, 28, - 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, - 39, 40, 41, 42, 61, 44, 45, 214, 52, 53, - 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, - 122, 21, 22, 23, 24, 25, 26, 27, 28, 29, - 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, - 40, 41, 42, 61, 44, 45, 218, 52, 53, 54, - 55, 56, 57, 14, 15, 16, 17, 18, 19, 122, - 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, - 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, - 41, 42, 61, 44, 45, 220, 52, 53, 54, 55, - 56, 57, 14, 15, 16, 17, 18, 19, 122, 21, - 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, - 42, 61, 44, 45, 222, 52, 53, 54, 55, 56, - 57, 14, 15, 16, 17, 18, 19, 122, 21, 22, - 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, - 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, - 61, 44, 45, 224, 52, 53, 54, 55, 56, 57, - 14, 15, 16, 17, 18, 19, 122, 21, 22, 23, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 138, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, - 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, - 44, 45, 226, 52, 53, 54, 55, 56, 57, 14, - 15, 16, 17, 18, 19, 122, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, - 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, - 45, 228, 52, 53, 54, 55, 56, 57, 14, 15, - 16, 17, 18, 19, 122, 21, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, - 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, - 235, 52, 53, 54, 55, 56, 57, 14, 15, 16, - 17, 18, 19, 122, 21, 22, 23, 24, 25, 26, - 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, - 37, 38, 39, 40, 41, 42, 61, 44, 45, 238, - 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, - 18, 19, 122, 21, 22, 23, 24, 25, 26, 27, - 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, - 38, 39, 40, 41, 42, 61, 44, 45, 52, 53, - 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, - 241, 21, 22, 23, 24, 25, 26, 27, 28, 29, - 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, - 40, 41, 42, 61, 44, 45, 242, 309, 52, 53, - 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, - 122, 21, 22, 23, 24, 25, 26, 27, 28, 29, - 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, - 40, 41, 42, 61, 44, 45, 311, 52, 53, 54, - 55, 56, 57, 14, 15, 16, 17, 18, 19, 122, - 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, - 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, - 41, 42, 61, 44, 45, 346, 52, 53, 54, 55, - 56, 57, 14, 15, 16, 17, 18, 19, 122, 21, - 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, - 42, 61, 44, 45, 52, 53, 54, 55, 56, 57, - 14, 15, 16, 17, 18, 19, 122, 21, 22, 23, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 140, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, - 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, - 44, 45, 111, 253, 254, 112, 113, 255, 256, 257, - 258, 114, 115, 116, 259, 260, 261, 262, 263, 264, - 265, 266, 267, 268, 269, 270, 117, 271, 272, 273, - 0, 274, 275, 276, 277, 278, 279, 280, 281, 282, - 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, - 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, - 303, 304, 305, 306, 307, 308, 313, 314, 315, 316, - 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, - 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, - 337, 338, 339, 340, 341, 342, 343, 344, 345, 348, - 351, 353, 354, 355, 356, 357, 358, 359, 360, 5, - 49 -}; - -static const short yycheck[] = -{ - 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, - 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, - 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, - 95, 96, 3, 98, 99, 100, 101, 102, 0, 104, - 105, 106, 107, 108, 33, 34, 111, 112, 113, 114, - 115, 116, 23, 0, 3, 0, 5, 122, 7, 124, - 125, 1, 42, 3, 4, 5, 6, 7, 8, 9, - 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, - 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, - 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, 41, 42, 3, 42, 12, 13, 14, 12, 13, - 14, 13, 14, 1, 63, 19, 23, 42, 1, 23, - 3, 42, 42, 23, 31, 42, 28, 42, 193, 194, - 42, 35, 36, 16, 13, 14, 1, 37, 17, 18, - 19, 20, 21, 22, 23, 24, 25, 26, 27, 42, - 10, 11, 10, 32, 14, 15, 14, 15, 42, 38, - 42, 40, 41, 23, 42, 23, 231, 42, 42, 42, - 235, 42, 32, 238, 32, 42, 241, 1, 127, 42, - 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, - 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 142, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, 41, 42, 4, - 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 144, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 146, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 148, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 150, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 152, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 154, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 156, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 158, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 160, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 162, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 164, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 166, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 168, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 170, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 172, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 174, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 176, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 178, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 180, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 182, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 184, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 186, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 188, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 190, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 192, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 194, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 199, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 201, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 203, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 205, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 207, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 210, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 212, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 214, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 216, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 218, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 222, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 224, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 226, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 228, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 230, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 232, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 239, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 242, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 53, 54, 55, 56, 57, 58, 14, + 15, 16, 17, 18, 19, 20, 245, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 42, 3, 4, - 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, + 60, 36, 61, 38, 39, 40, 41, 42, 43, 62, + 45, 46, 246, 315, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 317, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 352, 53, 54, 55, 56, 57, 58, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 60, 36, 61, 38, 39, 40, 41, 42, 43, + 62, 45, 46, 53, 54, 55, 56, 57, 58, 14, + 15, 16, 17, 18, 19, 20, 124, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, - 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, - 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, - 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, - 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, - 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, - 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, - 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, - 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, - 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, - 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, + 60, 36, 61, 38, 39, 40, 41, 42, 43, 62, + 45, 46, 80, 255, 256, 257, 258, 81, 82, 259, + 260, 261, 262, 263, 264, 265, 83, 266, 267, 268, + 269, 270, 271, 272, 273, 84, 274, 275, 276, 277, + 278, 279, 280, 281, 282, 0, 283, 284, 285, 286, + 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, + 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, + 307, 308, 309, 310, 311, 312, 313, 314, 319, 320, + 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, + 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, + 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, + 351, 354, 357, 359, 360, 361, 362, 363, 364, 365, + 366, 5, 50 +}; + +static const yytype_int16 yycheck[] = +{ + 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, + 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, + 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, + 96, 97, 98, 3, 100, 101, 102, 103, 104, 0, + 106, 107, 108, 109, 110, 34, 35, 113, 114, 115, + 116, 117, 118, 0, 24, 3, 0, 5, 124, 7, + 126, 127, 1, 43, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, - 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, - 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, - 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, + 39, 40, 41, 42, 43, 3, 13, 14, 15, 14, + 15, 15, 43, 20, 18, 19, 64, 24, 1, 43, + 24, 25, 26, 1, 29, 3, 24, 43, 43, 36, + 37, 197, 198, 43, 43, 39, 1, 14, 15, 17, + 38, 18, 19, 20, 21, 22, 23, 24, 25, 26, + 27, 28, 10, 11, 12, 43, 33, 15, 16, 13, + 14, 15, 39, 43, 41, 42, 24, 43, 43, 235, + 24, 43, 43, 239, 43, 33, 242, 43, 32, 245, + 1, 129, 43, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, - 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, - 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, - 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, - 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, - 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, - 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, - 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, - 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, - 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, - 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, - 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, - 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, - 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, - 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, - 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, - 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, - 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, - 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, - 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, - 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, - 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, - 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, - 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, - 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, - 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, - 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, - 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, + 41, 42, 43, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, - 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, - 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, - 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, - 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, - 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, - 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, - 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, - 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, - 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, - 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, - 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, - 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, - 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, - 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, - 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, - 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, - 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, - 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, - 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, - 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, - 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, - 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, - 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, - 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, + 41, 42, 43, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, - 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, - 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, - 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, - 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, - 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, - 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, - 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, - 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, - 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, - 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, - 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, - 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, - 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, - 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, - 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, - 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, - 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, - 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, - 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, - 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, - 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, - 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, - 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, - 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, - 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, - 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, - 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, - 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, - 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, - 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, - 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, - 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, - 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, - 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, - 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, - 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, - 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, - 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, - 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, - 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, - 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, - 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, - 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, - 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, - 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, - 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, - 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, - 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, - 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, - 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, - 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, - 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, - 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, - 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, + 40, 41, 42, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, - 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, - 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, - 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, - 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, - 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, - 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, - 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, - 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, - 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, - 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, 41, 4, 5, - 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, - 36, 37, 38, 39, 40, 41, 42, 3, 4, 5, - 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, - 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, - 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, - 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, - 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, - 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, - 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, - 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, - 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, - 38, 39, 40, 41, 4, 5, 6, 7, 8, 9, + 41, 42, 43, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, 41, 14, 42, 42, 17, 18, 42, 42, 42, - 42, 23, 24, 25, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 38, 42, 42, 42, - -1, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 2, - 5 + 40, 41, 42, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, + 41, 42, 10, 43, 43, 43, 43, 15, 16, 43, + 43, 43, 43, 43, 43, 43, 24, 43, 43, 43, + 43, 43, 43, 43, 43, 33, 43, 43, 43, 43, + 43, 43, 43, 43, 43, -1, 43, 43, 43, 43, + 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, + 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, + 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, + 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, + 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, + 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, + 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, + 43, 2, 5 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ -static const unsigned char yystos[] = +static const yytype_uint8 yystos[] = { - 0, 44, 45, 46, 0, 46, 1, 3, 4, 5, + 0, 45, 46, 47, 0, 47, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, - 36, 37, 38, 39, 40, 41, 42, 47, 49, 47, - 42, 1, 4, 5, 6, 7, 8, 9, 16, 30, - 32, 39, 42, 49, 42, 12, 13, 14, 19, 23, - 35, 36, 10, 11, 14, 15, 23, 32, 10, 14, - 15, 23, 32, 13, 14, 17, 18, 19, 20, 21, - 22, 23, 24, 25, 26, 27, 32, 38, 40, 41, - 13, 14, 28, 1, 12, 13, 14, 23, 31, 33, - 34, 14, 17, 18, 23, 24, 25, 38, 1, 3, - 16, 42, 16, 48, 49, 16, 42, 49, 3, 48, - 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, - 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, - 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, - 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, - 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, - 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, - 3, 48, 3, 23, 37, 3, 48, 3, 48, 3, - 48, 3, 48, 3, 48, 42, 3, 48, 3, 48, - 3, 48, 3, 48, 3, 48, 42, 42, 3, 48, - 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, - 3, 23, 42, 42, 1, 3, 48, 42, 3, 48, - 48, 16, 42, 49, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 3, - 48, 3, 48, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 3, 48, 42, 48, - 48, 42, 48, 42, 42, 42, 42, 42, 42, 42, - 42 + 36, 37, 38, 39, 40, 41, 42, 43, 48, 50, + 48, 43, 1, 4, 5, 6, 7, 8, 9, 17, + 31, 33, 40, 43, 50, 43, 13, 14, 15, 20, + 24, 36, 37, 10, 11, 12, 15, 16, 24, 33, + 10, 15, 16, 24, 33, 14, 15, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 33, 39, + 41, 42, 14, 15, 29, 1, 13, 14, 15, 24, + 32, 34, 35, 15, 18, 19, 24, 25, 26, 39, + 1, 3, 17, 43, 17, 49, 50, 17, 43, 50, + 3, 49, 3, 49, 3, 49, 3, 49, 3, 49, + 3, 49, 3, 49, 3, 49, 3, 49, 3, 49, + 3, 49, 3, 49, 3, 49, 3, 49, 3, 49, + 3, 49, 3, 49, 3, 49, 3, 49, 3, 49, + 3, 49, 3, 49, 3, 49, 3, 49, 3, 49, + 3, 49, 3, 49, 3, 49, 3, 49, 3, 49, + 3, 49, 3, 49, 3, 49, 3, 24, 38, 3, + 49, 3, 49, 3, 49, 3, 49, 3, 49, 43, + 3, 49, 3, 49, 3, 49, 3, 49, 3, 49, + 43, 43, 3, 49, 3, 49, 3, 49, 3, 49, + 3, 49, 3, 49, 3, 24, 43, 43, 1, 3, + 49, 43, 3, 49, 49, 17, 43, 50, 43, 43, + 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, + 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, + 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, + 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, + 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, + 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, + 43, 43, 43, 43, 43, 3, 49, 3, 49, 43, + 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, + 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, + 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, + 43, 43, 3, 49, 43, 49, 49, 43, 49, 43, + 43, 43, 43, 43, 43, 43, 43 }; -#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) -# define YYSIZE_T __SIZE_TYPE__ -#endif -#if ! defined (YYSIZE_T) && defined (size_t) -# define YYSIZE_T size_t -#endif -#if ! defined (YYSIZE_T) -# if defined (__STDC__) || defined (__cplusplus) -# include <stddef.h> /* INFRINGES ON USER NAME SPACE */ -# define YYSIZE_T size_t -# endif -#endif -#if ! defined (YYSIZE_T) -# define YYSIZE_T unsigned int -#endif - #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) #define YYEMPTY (-2) @@ -1261,30 +1400,63 @@ do \ yychar = (Token); \ yylval = (Value); \ yytoken = YYTRANSLATE (yychar); \ - YYPOPSTACK; \ + YYPOPSTACK (1); \ goto yybackup; \ } \ else \ - { \ - yyerror ("syntax error: cannot back up");\ + { \ + yyerror (YY_("syntax error: cannot back up")); \ YYERROR; \ } \ -while (0) +while (YYID (0)) + #define YYTERROR 1 #define YYERRCODE 256 -/* YYLLOC_DEFAULT -- Compute the default location (before the actions - are run). */ +/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. + If N is 0, then set CURRENT to the empty location which ends + the previous symbol: RHS[0] (always defined). */ + +#define YYRHSLOC(Rhs, K) ((Rhs)[K]) #ifndef YYLLOC_DEFAULT -# define YYLLOC_DEFAULT(Current, Rhs, N) \ - ((Current).first_line = (Rhs)[1].first_line, \ - (Current).first_column = (Rhs)[1].first_column, \ - (Current).last_line = (Rhs)[N].last_line, \ - (Current).last_column = (Rhs)[N].last_column) +# define YYLLOC_DEFAULT(Current, Rhs, N) \ + do \ + if (YYID (N)) \ + { \ + (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ + (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ + (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ + (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ + } \ + else \ + { \ + (Current).first_line = (Current).last_line = \ + YYRHSLOC (Rhs, 0).last_line; \ + (Current).first_column = (Current).last_column = \ + YYRHSLOC (Rhs, 0).last_column; \ + } \ + while (YYID (0)) #endif + +/* YY_LOCATION_PRINT -- Print the location on the stream. + This macro was not mandated originally: define only if we know + we won't break user code: when these are the locations we know. */ + +#ifndef YY_LOCATION_PRINT +# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL +# define YY_LOCATION_PRINT(File, Loc) \ + fprintf (File, "%d.%d-%d.%d", \ + (Loc).first_line, (Loc).first_column, \ + (Loc).last_line, (Loc).last_column) +# else +# define YY_LOCATION_PRINT(File, Loc) ((void) 0) +# endif +#endif + + /* YYLEX -- calling `yylex' with the right arguments. */ #ifdef YYLEX_PARAM @@ -1305,42 +1477,96 @@ while (0) do { \ if (yydebug) \ YYFPRINTF Args; \ -} while (0) +} while (YYID (0)) -# define YYDSYMPRINT(Args) \ -do { \ - if (yydebug) \ - yysymprint Args; \ -} while (0) +# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ +do { \ + if (yydebug) \ + { \ + YYFPRINTF (stderr, "%s ", Title); \ + yy_symbol_print (stderr, \ + Type, Value); \ + YYFPRINTF (stderr, "\n"); \ + } \ +} while (YYID (0)) -# define YYDSYMPRINTF(Title, Token, Value, Location) \ -do { \ - if (yydebug) \ - { \ - YYFPRINTF (stderr, "%s ", Title); \ - yysymprint (stderr, \ - Token, Value); \ - YYFPRINTF (stderr, "\n"); \ - } \ -} while (0) + +/*--------------------------------. +| Print this symbol on YYOUTPUT. | +`--------------------------------*/ + +/*ARGSUSED*/ +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +static void +yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) +#else +static void +yy_symbol_value_print (yyoutput, yytype, yyvaluep) + FILE *yyoutput; + int yytype; + YYSTYPE const * const yyvaluep; +#endif +{ + if (!yyvaluep) + return; +# ifdef YYPRINT + if (yytype < YYNTOKENS) + YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); +# else + YYUSE (yyoutput); +# endif + switch (yytype) + { + default: + break; + } +} + + +/*--------------------------------. +| Print this symbol on YYOUTPUT. | +`--------------------------------*/ + +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +static void +yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) +#else +static void +yy_symbol_print (yyoutput, yytype, yyvaluep) + FILE *yyoutput; + int yytype; + YYSTYPE const * const yyvaluep; +#endif +{ + if (yytype < YYNTOKENS) + YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); + else + YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); + + yy_symbol_value_print (yyoutput, yytype, yyvaluep); + YYFPRINTF (yyoutput, ")"); +} /*------------------------------------------------------------------. | yy_stack_print -- Print the state stack from its BOTTOM up to its | | TOP (included). | `------------------------------------------------------------------*/ -#if defined (__STDC__) || defined (__cplusplus) +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) static void -yy_stack_print (short *bottom, short *top) +yy_stack_print (yytype_int16 *bottom, yytype_int16 *top) #else static void yy_stack_print (bottom, top) - short *bottom; - short *top; + yytype_int16 *bottom; + yytype_int16 *top; #endif { YYFPRINTF (stderr, "Stack now"); - for (/* Nothing. */; bottom <= top; ++bottom) + for (; bottom <= top; ++bottom) YYFPRINTF (stderr, " %d", *bottom); YYFPRINTF (stderr, "\n"); } @@ -1349,45 +1575,52 @@ yy_stack_print (bottom, top) do { \ if (yydebug) \ yy_stack_print ((Bottom), (Top)); \ -} while (0) +} while (YYID (0)) /*------------------------------------------------. | Report that the YYRULE is going to be reduced. | `------------------------------------------------*/ -#if defined (__STDC__) || defined (__cplusplus) +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) static void -yy_reduce_print (int yyrule) +yy_reduce_print (YYSTYPE *yyvsp, int yyrule) #else static void -yy_reduce_print (yyrule) +yy_reduce_print (yyvsp, yyrule) + YYSTYPE *yyvsp; int yyrule; #endif { + int yynrhs = yyr2[yyrule]; int yyi; - unsigned int yylno = yyrline[yyrule]; - YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ", - yyrule - 1, yylno); - /* Print the symbols being reduced, and their result. */ - for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++) - YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]); - YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]); + unsigned long int yylno = yyrline[yyrule]; + YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", + yyrule - 1, yylno); + /* The symbols being reduced. */ + for (yyi = 0; yyi < yynrhs; yyi++) + { + fprintf (stderr, " $%d = ", yyi + 1); + yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], + &(yyvsp[(yyi + 1) - (yynrhs)]) + ); + fprintf (stderr, "\n"); + } } # define YY_REDUCE_PRINT(Rule) \ do { \ if (yydebug) \ - yy_reduce_print (Rule); \ -} while (0) + yy_reduce_print (yyvsp, Rule); \ +} while (YYID (0)) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ # define YYDPRINTF(Args) -# define YYDSYMPRINT(Args) -# define YYDSYMPRINTF(Title, Token, Value, Location) +# define YY_SYMBOL_PRINT(Title, Type, Value, Location) # define YY_STACK_PRINT(Bottom, Top) # define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ @@ -1402,13 +1635,9 @@ int yydebug; if the built-in stack extension method is used). Do not make this value too large; the results are undefined if - SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH) + YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) evaluated with infinite-precision integer arithmetic. */ -#if defined (YYMAXDEPTH) && YYMAXDEPTH == 0 -# undef YYMAXDEPTH -#endif - #ifndef YYMAXDEPTH # define YYMAXDEPTH 10000 #endif @@ -1418,45 +1647,47 @@ int yydebug; #if YYERROR_VERBOSE # ifndef yystrlen -# if defined (__GLIBC__) && defined (_STRING_H) +# if defined __GLIBC__ && defined _STRING_H # define yystrlen strlen # else /* Return the length of YYSTR. */ +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) static YYSIZE_T -# if defined (__STDC__) || defined (__cplusplus) yystrlen (const char *yystr) -# else +#else +static YYSIZE_T yystrlen (yystr) - const char *yystr; -# endif + const char *yystr; +#endif { - register const char *yys = yystr; - - while (*yys++ != '\0') + YYSIZE_T yylen; + for (yylen = 0; yystr[yylen]; yylen++) continue; - - return yys - yystr - 1; + return yylen; } # endif # endif # ifndef yystpcpy -# if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE) +# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE # define yystpcpy stpcpy # else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) static char * -# if defined (__STDC__) || defined (__cplusplus) yystpcpy (char *yydest, const char *yysrc) -# else +#else +static char * yystpcpy (yydest, yysrc) - char *yydest; - const char *yysrc; -# endif + char *yydest; + const char *yysrc; +#endif { - register char *yyd = yydest; - register const char *yys = yysrc; + char *yyd = yydest; + const char *yys = yysrc; while ((*yyd++ = *yys++) != '\0') continue; @@ -1466,70 +1697,192 @@ yystpcpy (yydest, yysrc) # endif # endif -#endif /* !YYERROR_VERBOSE */ +# ifndef yytnamerr +/* Copy to YYRES the contents of YYSTR after stripping away unnecessary + quotes and backslashes, so that it's suitable for yyerror. The + heuristic is that double-quoting is unnecessary unless the string + contains an apostrophe, a comma, or backslash (other than + backslash-backslash). YYSTR is taken from yytname. If YYRES is + null, do not copy; instead, return the length of what the result + would have been. */ +static YYSIZE_T +yytnamerr (char *yyres, const char *yystr) +{ + if (*yystr == '"') + { + YYSIZE_T yyn = 0; + char const *yyp = yystr; + + for (;;) + switch (*++yyp) + { + case '\'': + case ',': + goto do_not_strip_quotes; + + case '\\': + if (*++yyp != '\\') + goto do_not_strip_quotes; + /* Fall through. */ + default: + if (yyres) + yyres[yyn] = *yyp; + yyn++; + break; + + case '"': + if (yyres) + yyres[yyn] = '\0'; + return yyn; + } + do_not_strip_quotes: ; + } - + if (! yyres) + return yystrlen (yystr); -#if YYDEBUG -/*--------------------------------. -| Print this symbol on YYOUTPUT. | -`--------------------------------*/ + return yystpcpy (yyres, yystr) - yyres; +} +# endif -#if defined (__STDC__) || defined (__cplusplus) -static void -yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep) -#else -static void -yysymprint (yyoutput, yytype, yyvaluep) - FILE *yyoutput; - int yytype; - YYSTYPE *yyvaluep; -#endif +/* Copy into YYRESULT an error message about the unexpected token + YYCHAR while in state YYSTATE. Return the number of bytes copied, + including the terminating null byte. If YYRESULT is null, do not + copy anything; just return the number of bytes that would be + copied. As a special case, return 0 if an ordinary "syntax error" + message will do. Return YYSIZE_MAXIMUM if overflow occurs during + size calculation. */ +static YYSIZE_T +yysyntax_error (char *yyresult, int yystate, int yychar) { - /* Pacify ``unused variable'' warnings. */ - (void) yyvaluep; + int yyn = yypact[yystate]; - if (yytype < YYNTOKENS) - { - YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); -# ifdef YYPRINT - YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); -# endif - } + if (! (YYPACT_NINF < yyn && yyn <= YYLAST)) + return 0; else - YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); - - switch (yytype) { - default: - break; + int yytype = YYTRANSLATE (yychar); + YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]); + YYSIZE_T yysize = yysize0; + YYSIZE_T yysize1; + int yysize_overflow = 0; + enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; + char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; + int yyx; + +# if 0 + /* This is so xgettext sees the translatable formats that are + constructed on the fly. */ + YY_("syntax error, unexpected %s"); + YY_("syntax error, unexpected %s, expecting %s"); + YY_("syntax error, unexpected %s, expecting %s or %s"); + YY_("syntax error, unexpected %s, expecting %s or %s or %s"); + YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"); +# endif + char *yyfmt; + char const *yyf; + static char const yyunexpected[] = "syntax error, unexpected %s"; + static char const yyexpecting[] = ", expecting %s"; + static char const yyor[] = " or %s"; + char yyformat[sizeof yyunexpected + + sizeof yyexpecting - 1 + + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2) + * (sizeof yyor - 1))]; + char const *yyprefix = yyexpecting; + + /* Start YYX at -YYN if negative to avoid negative indexes in + YYCHECK. */ + int yyxbegin = yyn < 0 ? -yyn : 0; + + /* Stay within bounds of both yycheck and yytname. */ + int yychecklim = YYLAST - yyn + 1; + int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; + int yycount = 1; + + yyarg[0] = yytname[yytype]; + yyfmt = yystpcpy (yyformat, yyunexpected); + + for (yyx = yyxbegin; yyx < yyxend; ++yyx) + if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) + { + if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) + { + yycount = 1; + yysize = yysize0; + yyformat[sizeof yyunexpected - 1] = '\0'; + break; + } + yyarg[yycount++] = yytname[yyx]; + yysize1 = yysize + yytnamerr (0, yytname[yyx]); + yysize_overflow |= (yysize1 < yysize); + yysize = yysize1; + yyfmt = yystpcpy (yyfmt, yyprefix); + yyprefix = yyor; + } + + yyf = YY_(yyformat); + yysize1 = yysize + yystrlen (yyf); + yysize_overflow |= (yysize1 < yysize); + yysize = yysize1; + + if (yysize_overflow) + return YYSIZE_MAXIMUM; + + if (yyresult) + { + /* Avoid sprintf, as that infringes on the user's name space. + Don't have undefined behavior even if the translation + produced a string with the wrong number of "%s"s. */ + char *yyp = yyresult; + int yyi = 0; + while ((*yyp = *yyf) != '\0') + { + if (*yyp == '%' && yyf[1] == 's' && yyi < yycount) + { + yyp += yytnamerr (yyp, yyarg[yyi++]); + yyf += 2; + } + else + { + yyp++; + yyf++; + } + } + } + return yysize; } - YYFPRINTF (yyoutput, ")"); } +#endif /* YYERROR_VERBOSE */ + -#endif /* ! YYDEBUG */ /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ -#if defined (__STDC__) || defined (__cplusplus) +/*ARGSUSED*/ +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) static void -yydestruct (int yytype, YYSTYPE *yyvaluep) +yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) #else static void -yydestruct (yytype, yyvaluep) +yydestruct (yymsg, yytype, yyvaluep) + const char *yymsg; int yytype; YYSTYPE *yyvaluep; #endif { - /* Pacify ``unused variable'' warnings. */ - (void) yyvaluep; + YYUSE (yyvaluep); + + if (!yymsg) + yymsg = "Deleting"; + YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); switch (yytype) { default: - break; + break; } } @@ -1537,13 +1890,13 @@ yydestruct (yytype, yyvaluep) /* Prevent warnings from -Wmissing-prototypes. */ #ifdef YYPARSE_PARAM -# if defined (__STDC__) || defined (__cplusplus) +#if defined __STDC__ || defined __cplusplus int yyparse (void *YYPARSE_PARAM); -# else +#else int yyparse (); -# endif +#endif #else /* ! YYPARSE_PARAM */ -#if defined (__STDC__) || defined (__cplusplus) +#if defined __STDC__ || defined __cplusplus int yyparse (void); #else int yyparse (); @@ -1560,14 +1913,18 @@ int yyparse (); `----------*/ #ifdef YYPARSE_PARAM -# if defined (__STDC__) || defined (__cplusplus) -int yyparse (void *YYPARSE_PARAM) -# else -int yyparse (YYPARSE_PARAM) - void *YYPARSE_PARAM; -# endif +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +int +yyparse (void *YYPARSE_PARAM) +#else +int +yyparse (YYPARSE_PARAM) + void *YYPARSE_PARAM; +#endif #else /* ! YYPARSE_PARAM */ -#if defined (__STDC__) || defined (__cplusplus) +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) int yyparse (void) #else @@ -1577,22 +1934,28 @@ yyparse () #endif #endif { - /* The lookahead symbol. */ + /* The look-ahead symbol. */ int yychar; -/* The semantic value of the lookahead symbol. */ +/* The semantic value of the look-ahead symbol. */ YYSTYPE yylval; /* Number of syntax errors so far. */ int yynerrs; - register int yystate; - register int yyn; + int yystate; + int yyn; int yyresult; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; - /* Lookahead token as an internal (translated) token number. */ + /* Look-ahead token as an internal (translated) token number. */ int yytoken = 0; +#if YYERROR_VERBOSE + /* Buffer for error messages, and its allocated size. */ + char yymsgbuf[128]; + char *yymsg = yymsgbuf; + YYSIZE_T yymsg_alloc = sizeof yymsgbuf; +#endif /* Three stacks and their tools: `yyss': related to states, @@ -1603,18 +1966,18 @@ int yynerrs; to reallocate them elsewhere. */ /* The state stack. */ - short yyssa[YYINITDEPTH]; - short *yyss = yyssa; - register short *yyssp; + yytype_int16 yyssa[YYINITDEPTH]; + yytype_int16 *yyss = yyssa; + yytype_int16 *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs = yyvsa; - register YYSTYPE *yyvsp; + YYSTYPE *yyvsp; -#define YYPOPSTACK (yyvsp--, yyssp--) +#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) YYSIZE_T yystacksize = YYINITDEPTH; @@ -1623,9 +1986,9 @@ int yynerrs; YYSTYPE yyval; - /* When reducing, the number of symbols on the RHS of the reduced - rule. */ - int yylen; + /* The number of symbols on the RHS of the reduced rule. + Keep to zero when no symbol should be popped. */ + int yylen = 0; YYDPRINTF ((stderr, "Starting parse\n")); @@ -1649,8 +2012,7 @@ int yynerrs; `------------------------------------------------------------*/ yynewstate: /* In all cases, when you get here, the value and location stacks - have just been pushed. so pushing a state here evens the stacks. - */ + have just been pushed. So pushing a state here evens the stacks. */ yyssp++; yysetstate: @@ -1663,18 +2025,18 @@ int yynerrs; #ifdef yyoverflow { - /* Give user a chance to reallocate the stack. Use copies of + /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ YYSTYPE *yyvs1 = yyvs; - short *yyss1 = yyss; + yytype_int16 *yyss1 = yyss; /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ - yyoverflow ("parser stack overflow", + yyoverflow (YY_("memory exhausted"), &yyss1, yysize * sizeof (*yyssp), &yyvs1, yysize * sizeof (*yyvsp), @@ -1685,21 +2047,21 @@ int yynerrs; } #else /* no yyoverflow */ # ifndef YYSTACK_RELOCATE - goto yyoverflowlab; + goto yyexhaustedlab; # else /* Extend the stack our own way. */ if (YYMAXDEPTH <= yystacksize) - goto yyoverflowlab; + goto yyexhaustedlab; yystacksize *= 2; if (YYMAXDEPTH < yystacksize) yystacksize = YYMAXDEPTH; { - short *yyss1 = yyss; + yytype_int16 *yyss1 = yyss; union yyalloc *yyptr = (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); if (! yyptr) - goto yyoverflowlab; + goto yyexhaustedlab; YYSTACK_RELOCATE (yyss); YYSTACK_RELOCATE (yyvs); @@ -1730,19 +2092,17 @@ int yynerrs; `-----------*/ yybackup: -/* Do appropriate processing given the current state. */ -/* Read a lookahead token if we need one and don't already have one. */ -/* yyresume: */ - - /* First try to decide what to do without reference to lookahead token. */ + /* Do appropriate processing given the current state. Read a + look-ahead token if we need one and don't already have one. */ + /* First try to decide what to do without reference to look-ahead token. */ yyn = yypact[yystate]; if (yyn == YYPACT_NINF) goto yydefault; - /* Not known => get a lookahead token if don't already have one. */ + /* Not known => get a look-ahead token if don't already have one. */ - /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ + /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol. */ if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: ")); @@ -1757,7 +2117,7 @@ yybackup: else { yytoken = YYTRANSLATE (yychar); - YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc); + YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); } /* If the proper action on seeing token YYTOKEN is to reduce or to @@ -1777,22 +2137,21 @@ yybackup: if (yyn == YYFINAL) YYACCEPT; - /* Shift the lookahead token. */ - YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken])); - - /* Discard the token being shifted unless it is eof. */ - if (yychar != YYEOF) - yychar = YYEMPTY; - - *++yyvsp = yylval; - - /* Count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; + /* Shift the look-ahead token. */ + YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); + + /* Discard the shifted token unless it is eof. */ + if (yychar != YYEOF) + yychar = YYEMPTY; + yystate = yyn; + *++yyvsp = yylval; + goto yynewstate; @@ -1828,1180 +2187,1199 @@ yyreduce: switch (yyn) { case 2: -#line 88 "Grammar.y" +#line 89 "../IceGrid/Grammar.y" { ;} break; case 3: -#line 91 "Grammar.y" +#line 92 "../IceGrid/Grammar.y" { ;} break; case 4: -#line 99 "Grammar.y" +#line 100 "../IceGrid/Grammar.y" { ;} break; case 5: -#line 102 "Grammar.y" +#line 103 "../IceGrid/Grammar.y" { ;} break; case 6: -#line 108 "Grammar.y" +#line 109 "../IceGrid/Grammar.y" { parser->checkInterrupted(); ;} break; case 7: -#line 117 "Grammar.y" +#line 118 "../IceGrid/Grammar.y" { parser->usage(); ;} break; case 8: -#line 121 "Grammar.y" +#line 122 "../IceGrid/Grammar.y" { return 0; ;} break; case 9: -#line 125 "Grammar.y" +#line 126 "../IceGrid/Grammar.y" { - parser->addApplication(yyvsp[-1]); + parser->addApplication((yyvsp[(3) - (4)])); ;} break; case 10: -#line 129 "Grammar.y" +#line 130 "../IceGrid/Grammar.y" { parser->usage("application", "add"); ;} break; case 11: -#line 133 "Grammar.y" +#line 134 "../IceGrid/Grammar.y" { - parser->removeApplication(yyvsp[-1]); + parser->removeApplication((yyvsp[(3) - (4)])); ;} break; case 12: -#line 137 "Grammar.y" +#line 138 "../IceGrid/Grammar.y" { parser->usage("application", "remove"); ;} break; case 13: -#line 141 "Grammar.y" +#line 142 "../IceGrid/Grammar.y" { - parser->diffApplication(yyvsp[-1]); + parser->diffApplication((yyvsp[(3) - (4)])); ;} break; case 14: -#line 145 "Grammar.y" +#line 146 "../IceGrid/Grammar.y" { parser->usage("application", "diff"); ;} break; case 15: -#line 149 "Grammar.y" +#line 150 "../IceGrid/Grammar.y" { - parser->updateApplication(yyvsp[-1]); + parser->updateApplication((yyvsp[(3) - (4)])); ;} break; case 16: -#line 153 "Grammar.y" +#line 154 "../IceGrid/Grammar.y" { parser->usage("application", "update"); ;} break; case 17: -#line 157 "Grammar.y" +#line 158 "../IceGrid/Grammar.y" { - parser->describeApplication(yyvsp[-1]); + parser->describeApplication((yyvsp[(3) - (4)])); ;} break; case 18: -#line 161 "Grammar.y" +#line 162 "../IceGrid/Grammar.y" { parser->usage("application", "describe"); ;} break; case 19: -#line 165 "Grammar.y" +#line 166 "../IceGrid/Grammar.y" { - parser->patchApplication(yyvsp[-1]); + parser->patchApplication((yyvsp[(3) - (4)])); ;} break; case 20: -#line 169 "Grammar.y" +#line 170 "../IceGrid/Grammar.y" { parser->usage("application", "patch"); ;} break; case 21: -#line 173 "Grammar.y" +#line 174 "../IceGrid/Grammar.y" { - parser->listAllApplications(yyvsp[-1]); + parser->listAllApplications((yyvsp[(3) - (4)])); ;} break; case 22: -#line 177 "Grammar.y" +#line 178 "../IceGrid/Grammar.y" { parser->usage("application", "list"); ;} break; case 23: -#line 181 "Grammar.y" +#line 182 "../IceGrid/Grammar.y" { - parser->describeServerTemplate(yyvsp[-1]); + parser->describeServerTemplate((yyvsp[(4) - (5)])); ;} break; case 24: -#line 185 "Grammar.y" +#line 186 "../IceGrid/Grammar.y" { parser->usage("server template", "describe"); ;} break; case 25: -#line 189 "Grammar.y" +#line 190 "../IceGrid/Grammar.y" { - parser->instantiateServerTemplate(yyvsp[-1]); + parser->instantiateServerTemplate((yyvsp[(4) - (5)])); ;} break; case 26: -#line 193 "Grammar.y" +#line 194 "../IceGrid/Grammar.y" { parser->usage("server template", "instantiate"); ;} break; case 27: -#line 197 "Grammar.y" +#line 198 "../IceGrid/Grammar.y" { parser->usage("server template"); ;} break; case 28: -#line 201 "Grammar.y" +#line 202 "../IceGrid/Grammar.y" { - parser->describeServiceTemplate(yyvsp[-1]); + parser->describeServiceTemplate((yyvsp[(4) - (5)])); ;} break; case 29: -#line 205 "Grammar.y" +#line 206 "../IceGrid/Grammar.y" { parser->usage("service template", "describe"); ;} break; case 30: -#line 209 "Grammar.y" +#line 210 "../IceGrid/Grammar.y" { parser->usage("service template"); ;} break; case 31: -#line 213 "Grammar.y" +#line 214 "../IceGrid/Grammar.y" { - parser->describeNode(yyvsp[-1]); + parser->describeNode((yyvsp[(3) - (4)])); ;} break; case 32: -#line 217 "Grammar.y" +#line 218 "../IceGrid/Grammar.y" { parser->usage("node", "describe"); ;} break; case 33: -#line 221 "Grammar.y" +#line 222 "../IceGrid/Grammar.y" { - parser->pingNode(yyvsp[-1]); + parser->pingNode((yyvsp[(3) - (4)])); ;} break; case 34: -#line 225 "Grammar.y" +#line 226 "../IceGrid/Grammar.y" { parser->usage("node", "ping"); ;} break; case 35: -#line 229 "Grammar.y" +#line 230 "../IceGrid/Grammar.y" { - parser->printLoadNode(yyvsp[-1]); + parser->printLoadNode((yyvsp[(3) - (4)])); ;} break; case 36: -#line 233 "Grammar.y" +#line 234 "../IceGrid/Grammar.y" { - parser->usage("node", "lost"); + parser->usage("node", "load"); ;} break; case 37: -#line 237 "Grammar.y" +#line 238 "../IceGrid/Grammar.y" { - parser->shutdownNode(yyvsp[-1]); + parser->printNodeProcessors((yyvsp[(3) - (4)])); ;} break; case 38: -#line 241 "Grammar.y" +#line 242 "../IceGrid/Grammar.y" { - parser->usage("node", "shutdown"); + parser->usage("node", "processors"); ;} break; case 39: -#line 245 "Grammar.y" +#line 246 "../IceGrid/Grammar.y" { - parser->listAllNodes(yyvsp[-1]); + parser->shutdownNode((yyvsp[(3) - (4)])); ;} break; case 40: -#line 249 "Grammar.y" +#line 250 "../IceGrid/Grammar.y" { - parser->usage("node", "list"); + parser->usage("node", "shutdown"); ;} break; case 41: -#line 253 "Grammar.y" +#line 254 "../IceGrid/Grammar.y" { - parser->showFile("node", yyvsp[-1]); + parser->listAllNodes((yyvsp[(3) - (4)])); ;} break; case 42: -#line 257 "Grammar.y" +#line 258 "../IceGrid/Grammar.y" { - parser->usage("node", "show"); + parser->usage("node", "list"); ;} break; case 43: -#line 261 "Grammar.y" +#line 262 "../IceGrid/Grammar.y" { - parser->describeRegistry(yyvsp[-1]); + parser->showFile("node", (yyvsp[(3) - (4)])); ;} break; case 44: -#line 265 "Grammar.y" +#line 266 "../IceGrid/Grammar.y" { - parser->usage("registry", "describe"); + parser->usage("node", "show"); ;} break; case 45: -#line 269 "Grammar.y" +#line 270 "../IceGrid/Grammar.y" { - parser->pingRegistry(yyvsp[-1]); + parser->describeRegistry((yyvsp[(3) - (4)])); ;} break; case 46: -#line 273 "Grammar.y" +#line 274 "../IceGrid/Grammar.y" { - parser->usage("registry", "ping"); + parser->usage("registry", "describe"); ;} break; case 47: -#line 277 "Grammar.y" +#line 278 "../IceGrid/Grammar.y" { - parser->shutdownRegistry(yyvsp[-1]); + parser->pingRegistry((yyvsp[(3) - (4)])); ;} break; case 48: -#line 281 "Grammar.y" +#line 282 "../IceGrid/Grammar.y" { - parser->usage("registry", "shutdown"); + parser->usage("registry", "ping"); ;} break; case 49: -#line 285 "Grammar.y" +#line 286 "../IceGrid/Grammar.y" { - parser->listAllRegistries(yyvsp[-1]); + parser->shutdownRegistry((yyvsp[(3) - (4)])); ;} break; case 50: -#line 289 "Grammar.y" +#line 290 "../IceGrid/Grammar.y" { - parser->usage("registry", "list"); + parser->usage("registry", "shutdown"); ;} break; case 51: -#line 293 "Grammar.y" +#line 294 "../IceGrid/Grammar.y" { - parser->showFile("registry", yyvsp[-1]); + parser->listAllRegistries((yyvsp[(3) - (4)])); ;} break; case 52: -#line 297 "Grammar.y" +#line 298 "../IceGrid/Grammar.y" { - parser->usage("registry", "show"); + parser->usage("registry", "list"); ;} break; case 53: -#line 301 "Grammar.y" +#line 302 "../IceGrid/Grammar.y" { - parser->removeServer(yyvsp[-1]); + parser->showFile("registry", (yyvsp[(3) - (4)])); ;} break; case 54: -#line 305 "Grammar.y" +#line 306 "../IceGrid/Grammar.y" { - parser->usage("server", "remove"); + parser->usage("registry", "show"); ;} break; case 55: -#line 309 "Grammar.y" +#line 310 "../IceGrid/Grammar.y" { - parser->describeServer(yyvsp[-1]); + parser->removeServer((yyvsp[(3) - (4)])); ;} break; case 56: -#line 313 "Grammar.y" +#line 314 "../IceGrid/Grammar.y" { - parser->usage("server", "describe"); + parser->usage("server", "remove"); ;} break; case 57: -#line 317 "Grammar.y" +#line 318 "../IceGrid/Grammar.y" { - parser->startServer(yyvsp[-1]); + parser->describeServer((yyvsp[(3) - (4)])); ;} break; case 58: -#line 321 "Grammar.y" +#line 322 "../IceGrid/Grammar.y" { - parser->usage("server", "start"); + parser->usage("server", "describe"); ;} break; case 59: -#line 325 "Grammar.y" +#line 326 "../IceGrid/Grammar.y" { - parser->stopServer(yyvsp[-1]); + parser->startServer((yyvsp[(3) - (4)])); ;} break; case 60: -#line 329 "Grammar.y" +#line 330 "../IceGrid/Grammar.y" { - parser->usage("server", "stop"); + parser->usage("server", "start"); ;} break; case 61: -#line 333 "Grammar.y" +#line 334 "../IceGrid/Grammar.y" { - parser->patchServer(yyvsp[-1]); + parser->stopServer((yyvsp[(3) - (4)])); ;} break; case 62: -#line 337 "Grammar.y" +#line 338 "../IceGrid/Grammar.y" { - parser->usage("server", "patch"); + parser->usage("server", "stop"); ;} break; case 63: -#line 341 "Grammar.y" +#line 342 "../IceGrid/Grammar.y" { - parser->signalServer(yyvsp[-1]); + parser->patchServer((yyvsp[(3) - (4)])); ;} break; case 64: -#line 345 "Grammar.y" +#line 346 "../IceGrid/Grammar.y" { - parser->usage("server", "signal"); + parser->usage("server", "patch"); ;} break; case 65: -#line 349 "Grammar.y" +#line 350 "../IceGrid/Grammar.y" { - parser->writeMessage(yyvsp[-1], 1); + parser->signalServer((yyvsp[(3) - (4)])); ;} break; case 66: -#line 353 "Grammar.y" +#line 354 "../IceGrid/Grammar.y" { - parser->usage("server", "stdout"); + parser->usage("server", "signal"); ;} break; case 67: -#line 357 "Grammar.y" +#line 358 "../IceGrid/Grammar.y" { - parser->writeMessage(yyvsp[-1], 2); + parser->writeMessage((yyvsp[(3) - (4)]), 1); ;} break; case 68: -#line 361 "Grammar.y" +#line 362 "../IceGrid/Grammar.y" { - parser->usage("server", "stderr"); + parser->usage("server", "stdout"); ;} break; case 69: -#line 365 "Grammar.y" +#line 366 "../IceGrid/Grammar.y" { - parser->stateServer(yyvsp[-1]); + parser->writeMessage((yyvsp[(3) - (4)]), 2); ;} break; case 70: -#line 369 "Grammar.y" +#line 370 "../IceGrid/Grammar.y" { - parser->usage("server", "start"); + parser->usage("server", "stderr"); ;} break; case 71: -#line 373 "Grammar.y" +#line 374 "../IceGrid/Grammar.y" { - parser->pidServer(yyvsp[-1]); + parser->stateServer((yyvsp[(3) - (4)])); ;} break; case 72: -#line 377 "Grammar.y" +#line 378 "../IceGrid/Grammar.y" { - parser->usage("server", "pid"); + parser->usage("server", "start"); ;} break; case 73: -#line 381 "Grammar.y" +#line 382 "../IceGrid/Grammar.y" { - parser->propertiesServer(yyvsp[-1], false); + parser->pidServer((yyvsp[(3) - (4)])); ;} break; case 74: -#line 385 "Grammar.y" +#line 386 "../IceGrid/Grammar.y" { - parser->usage("server", "properties"); + parser->usage("server", "pid"); ;} break; case 75: -#line 389 "Grammar.y" +#line 390 "../IceGrid/Grammar.y" { - parser->propertiesServer(yyvsp[-1], true); + parser->propertiesServer((yyvsp[(3) - (4)]), false); ;} break; case 76: -#line 393 "Grammar.y" +#line 394 "../IceGrid/Grammar.y" { - parser->usage("server", "property"); + parser->usage("server", "properties"); ;} break; case 77: -#line 397 "Grammar.y" +#line 398 "../IceGrid/Grammar.y" { - parser->enableServer(yyvsp[-1], true); + parser->propertiesServer((yyvsp[(3) - (4)]), true); ;} break; case 78: -#line 401 "Grammar.y" +#line 402 "../IceGrid/Grammar.y" { - parser->usage("server", "enable"); + parser->usage("server", "property"); ;} break; case 79: -#line 405 "Grammar.y" +#line 406 "../IceGrid/Grammar.y" { - parser->enableServer(yyvsp[-1], false); + parser->enableServer((yyvsp[(3) - (4)]), true); ;} break; case 80: -#line 409 "Grammar.y" +#line 410 "../IceGrid/Grammar.y" { - parser->usage("server", "disable"); + parser->usage("server", "enable"); ;} break; case 81: -#line 413 "Grammar.y" +#line 414 "../IceGrid/Grammar.y" { - parser->listAllServers(yyvsp[-1]); + parser->enableServer((yyvsp[(3) - (4)]), false); ;} break; case 82: -#line 417 "Grammar.y" +#line 418 "../IceGrid/Grammar.y" { - parser->usage("server", "list"); + parser->usage("server", "disable"); ;} break; case 83: -#line 421 "Grammar.y" +#line 422 "../IceGrid/Grammar.y" { - parser->showFile("server", yyvsp[-1]); + parser->listAllServers((yyvsp[(3) - (4)])); ;} break; case 84: -#line 425 "Grammar.y" +#line 426 "../IceGrid/Grammar.y" { - parser->usage("server", "show"); + parser->usage("server", "list"); ;} break; case 85: -#line 429 "Grammar.y" +#line 430 "../IceGrid/Grammar.y" { - parser->startService(yyvsp[-1]); + parser->showFile("server", (yyvsp[(3) - (4)])); ;} break; case 86: -#line 433 "Grammar.y" +#line 434 "../IceGrid/Grammar.y" { - parser->usage("service", "start"); + parser->usage("server", "show"); ;} break; case 87: -#line 437 "Grammar.y" +#line 438 "../IceGrid/Grammar.y" { - parser->stopService(yyvsp[-1]); + parser->startService((yyvsp[(3) - (4)])); ;} break; case 88: -#line 441 "Grammar.y" +#line 442 "../IceGrid/Grammar.y" { - parser->usage("service", "stop"); + parser->usage("service", "start"); ;} break; case 89: -#line 445 "Grammar.y" +#line 446 "../IceGrid/Grammar.y" { - parser->describeService(yyvsp[-1]); + parser->stopService((yyvsp[(3) - (4)])); ;} break; case 90: -#line 449 "Grammar.y" +#line 450 "../IceGrid/Grammar.y" { - parser->usage("service", "describe"); + parser->usage("service", "stop"); ;} break; case 91: -#line 453 "Grammar.y" +#line 454 "../IceGrid/Grammar.y" { - parser->propertiesService(yyvsp[-1], false); + parser->describeService((yyvsp[(3) - (4)])); ;} break; case 92: -#line 457 "Grammar.y" +#line 458 "../IceGrid/Grammar.y" { - parser->usage("service", "properties"); + parser->usage("service", "describe"); ;} break; case 93: -#line 461 "Grammar.y" +#line 462 "../IceGrid/Grammar.y" { - parser->propertiesService(yyvsp[-1], true); + parser->propertiesService((yyvsp[(3) - (4)]), false); ;} break; case 94: -#line 465 "Grammar.y" +#line 466 "../IceGrid/Grammar.y" { - parser->usage("service", "property"); + parser->usage("service", "properties"); ;} break; case 95: -#line 469 "Grammar.y" +#line 470 "../IceGrid/Grammar.y" { - parser->listServices(yyvsp[-1]); + parser->propertiesService((yyvsp[(3) - (4)]), true); ;} break; case 96: -#line 473 "Grammar.y" +#line 474 "../IceGrid/Grammar.y" { - parser->usage("service", "list"); + parser->usage("service", "property"); ;} break; case 97: -#line 477 "Grammar.y" +#line 478 "../IceGrid/Grammar.y" { - parser->endpointsAdapter(yyvsp[-1]); + parser->listServices((yyvsp[(3) - (4)])); ;} break; case 98: -#line 481 "Grammar.y" +#line 482 "../IceGrid/Grammar.y" { - parser->usage("adapter", "endpoints"); + parser->usage("service", "list"); ;} break; case 99: -#line 485 "Grammar.y" +#line 486 "../IceGrid/Grammar.y" { - parser->removeAdapter(yyvsp[-1]); + parser->endpointsAdapter((yyvsp[(3) - (4)])); ;} break; case 100: -#line 489 "Grammar.y" +#line 490 "../IceGrid/Grammar.y" { - parser->usage("adapter", "remove"); + parser->usage("adapter", "endpoints"); ;} break; case 101: -#line 493 "Grammar.y" +#line 494 "../IceGrid/Grammar.y" { - parser->listAllAdapters(yyvsp[-1]); + parser->removeAdapter((yyvsp[(3) - (4)])); ;} break; case 102: -#line 497 "Grammar.y" +#line 498 "../IceGrid/Grammar.y" { - parser->usage("adapter", "list"); + parser->usage("adapter", "remove"); ;} break; case 103: -#line 501 "Grammar.y" +#line 502 "../IceGrid/Grammar.y" { - parser->addObject(yyvsp[-1]); + parser->listAllAdapters((yyvsp[(3) - (4)])); ;} break; case 104: -#line 505 "Grammar.y" +#line 506 "../IceGrid/Grammar.y" { - parser->usage("object", "add"); + parser->usage("adapter", "list"); ;} break; case 105: -#line 509 "Grammar.y" +#line 510 "../IceGrid/Grammar.y" { - parser->removeObject(yyvsp[-1]); + parser->addObject((yyvsp[(3) - (4)])); ;} break; case 106: -#line 513 "Grammar.y" +#line 514 "../IceGrid/Grammar.y" { - parser->usage("object", "remove"); + parser->usage("object", "add"); ;} break; case 107: -#line 517 "Grammar.y" +#line 518 "../IceGrid/Grammar.y" { - parser->findObject(yyvsp[-1]); + parser->removeObject((yyvsp[(3) - (4)])); ;} break; case 108: -#line 521 "Grammar.y" +#line 522 "../IceGrid/Grammar.y" { - parser->usage("object", "find"); + parser->usage("object", "remove"); ;} break; case 109: -#line 525 "Grammar.y" +#line 526 "../IceGrid/Grammar.y" { - parser->listObject(yyvsp[-1]); + parser->findObject((yyvsp[(3) - (4)])); ;} break; case 110: -#line 529 "Grammar.y" +#line 530 "../IceGrid/Grammar.y" { - parser->usage("object", "list"); + parser->usage("object", "find"); ;} break; case 111: -#line 533 "Grammar.y" +#line 534 "../IceGrid/Grammar.y" { - parser->describeObject(yyvsp[-1]); + parser->listObject((yyvsp[(3) - (4)])); ;} break; case 112: -#line 537 "Grammar.y" +#line 538 "../IceGrid/Grammar.y" { - parser->usage("object", "describe"); + parser->usage("object", "list"); ;} break; case 113: -#line 541 "Grammar.y" +#line 542 "../IceGrid/Grammar.y" { - parser->showCopying(); + parser->describeObject((yyvsp[(3) - (4)])); ;} break; case 114: -#line 545 "Grammar.y" +#line 546 "../IceGrid/Grammar.y" { - parser->showWarranty(); + parser->usage("object", "describe"); ;} break; case 115: -#line 549 "Grammar.y" +#line 550 "../IceGrid/Grammar.y" { - parser->usage(yyvsp[-1].front()); + parser->showCopying(); ;} break; case 116: -#line 553 "Grammar.y" +#line 554 "../IceGrid/Grammar.y" { - if((yyvsp[-2].front() == "server" || yyvsp[-2].front() == "service") && yyvsp[-1].front() == "template") - { - parser->usage(yyvsp[-2].front() + " " + yyvsp[-1].front()); - } - else - { - parser->usage(yyvsp[-2].front(), yyvsp[-1].front()); - } + parser->showWarranty(); ;} break; case 117: -#line 564 "Grammar.y" +#line 558 "../IceGrid/Grammar.y" { - parser->usage(yyvsp[-3].front(), yyvsp[-2].front()); + parser->usage((yyvsp[(2) - (3)]).front()); ;} break; case 118: -#line 568 "Grammar.y" +#line 562 "../IceGrid/Grammar.y" { - if((yyvsp[-3].front() == "server" || yyvsp[-3].front() == "service") && yyvsp[-2].front() == "template") + if(((yyvsp[(2) - (4)]).front() == "server" || (yyvsp[(2) - (4)]).front() == "service") && (yyvsp[(3) - (4)]).front() == "template") { - parser->usage(yyvsp[-3].front() + " " + yyvsp[-2].front(), yyvsp[-1].front()); + parser->usage((yyvsp[(2) - (4)]).front() + " " + (yyvsp[(3) - (4)]).front()); } else { - parser->usage(yyvsp[-3].front(), yyvsp[-2].front()); + parser->usage((yyvsp[(2) - (4)]).front(), (yyvsp[(3) - (4)]).front()); } ;} break; case 119: -#line 579 "Grammar.y" - { - if((yyvsp[-4].front() == "server" || yyvsp[-4].front() == "service") && yyvsp[-3].front() == "template") - { - parser->usage(yyvsp[-4].front() + " " + yyvsp[-3].front(), yyvsp[-2].front()); - } - else +#line 573 "../IceGrid/Grammar.y" { - parser->usage(yyvsp[-4].front(), yyvsp[-3].front()); - } + parser->usage((yyvsp[(2) - (5)]).front(), (yyvsp[(3) - (5)]).front()); ;} break; case 120: -#line 590 "Grammar.y" +#line 577 "../IceGrid/Grammar.y" + { + if(((yyvsp[(2) - (5)]).front() == "server" || (yyvsp[(2) - (5)]).front() == "service") && (yyvsp[(3) - (5)]).front() == "template") + { + parser->usage((yyvsp[(2) - (5)]).front() + " " + (yyvsp[(3) - (5)]).front(), (yyvsp[(4) - (5)]).front()); + } + else { - parser->usage(yyvsp[-2].front()); + parser->usage((yyvsp[(2) - (5)]).front(), (yyvsp[(3) - (5)]).front()); + } ;} break; case 121: -#line 594 "Grammar.y" +#line 588 "../IceGrid/Grammar.y" { - parser->usage(); + if(((yyvsp[(2) - (6)]).front() == "server" || (yyvsp[(2) - (6)]).front() == "service") && (yyvsp[(3) - (6)]).front() == "template") + { + parser->usage((yyvsp[(2) - (6)]).front() + " " + (yyvsp[(3) - (6)]).front(), (yyvsp[(4) - (6)]).front()); + } + else + { + parser->usage((yyvsp[(2) - (6)]).front(), (yyvsp[(3) - (6)]).front()); + } ;} break; case 122: -#line 598 "Grammar.y" +#line 599 "../IceGrid/Grammar.y" { - parser->usage(yyvsp[-2].front()); + parser->usage((yyvsp[(2) - (4)]).front()); ;} break; case 123: -#line 602 "Grammar.y" +#line 603 "../IceGrid/Grammar.y" { - yyvsp[-3].push_back(yyvsp[-2].front()); - parser->invalidCommand(yyvsp[-3]); - yyerrok; + parser->usage(); ;} break; case 124: -#line 608 "Grammar.y" +#line 607 "../IceGrid/Grammar.y" { - parser->invalidCommand(yyvsp[-2]); - yyerrok; + parser->usage((yyvsp[(1) - (3)]).front()); ;} break; case 125: -#line 613 "Grammar.y" +#line 611 "../IceGrid/Grammar.y" { - parser->invalidCommand(yyvsp[-2]); + (yyvsp[(1) - (4)]).push_back((yyvsp[(2) - (4)]).front()); + parser->invalidCommand((yyvsp[(1) - (4)])); yyerrok; ;} break; case 126: -#line 618 "Grammar.y" +#line 617 "../IceGrid/Grammar.y" { + parser->invalidCommand((yyvsp[(1) - (3)])); yyerrok; ;} break; case 127: -#line 622 "Grammar.y" +#line 622 "../IceGrid/Grammar.y" { + parser->invalidCommand((yyvsp[(1) - (3)])); + yyerrok; ;} break; case 128: -#line 631 "Grammar.y" +#line 627 "../IceGrid/Grammar.y" { - yyval = yyvsp[0]; - yyval.push_front(yyvsp[-1].front()); + yyerrok; ;} break; case 129: -#line 636 "Grammar.y" +#line 631 "../IceGrid/Grammar.y" { - yyval = yyvsp[0]; - yyval.push_front(yyvsp[-1].front()); ;} break; case 130: -#line 641 "Grammar.y" +#line 640 "../IceGrid/Grammar.y" { - yyval = yyvsp[-1]; - yyval.push_front("help"); - yyval.push_front(yyvsp[-2].front()); + (yyval) = (yyvsp[(2) - (2)]); + (yyval).push_front((yyvsp[(1) - (2)]).front()); ;} break; case 131: -#line 647 "Grammar.y" +#line 645 "../IceGrid/Grammar.y" { - yyval = yyvsp[-1]; - yyval.push_front("help"); - yyval.push_front(yyvsp[-2].front()); + (yyval) = (yyvsp[(2) - (2)]); + (yyval).push_front((yyvsp[(1) - (2)]).front()); ;} break; case 132: -#line 653 "Grammar.y" +#line 650 "../IceGrid/Grammar.y" { - yyval = YYSTYPE(); + (yyval) = (yyvsp[(2) - (3)]); + (yyval).push_front("help"); + (yyval).push_front((yyvsp[(1) - (3)]).front()); ;} break; case 133: -#line 662 "Grammar.y" +#line 656 "../IceGrid/Grammar.y" { + (yyval) = (yyvsp[(2) - (3)]); + (yyval).push_front("help"); + (yyval).push_front((yyvsp[(1) - (3)]).front()); ;} break; case 134: -#line 665 "Grammar.y" +#line 662 "../IceGrid/Grammar.y" { + (yyval) = YYSTYPE(); ;} break; case 135: -#line 668 "Grammar.y" +#line 671 "../IceGrid/Grammar.y" { ;} break; case 136: -#line 671 "Grammar.y" +#line 674 "../IceGrid/Grammar.y" { ;} break; case 137: -#line 674 "Grammar.y" +#line 677 "../IceGrid/Grammar.y" { ;} break; case 138: -#line 677 "Grammar.y" +#line 680 "../IceGrid/Grammar.y" { ;} break; case 139: -#line 680 "Grammar.y" +#line 683 "../IceGrid/Grammar.y" { ;} break; case 140: -#line 683 "Grammar.y" +#line 686 "../IceGrid/Grammar.y" { ;} break; case 141: -#line 686 "Grammar.y" +#line 689 "../IceGrid/Grammar.y" { ;} break; case 142: -#line 689 "Grammar.y" +#line 692 "../IceGrid/Grammar.y" { ;} break; case 143: -#line 692 "Grammar.y" +#line 695 "../IceGrid/Grammar.y" { ;} break; case 144: -#line 695 "Grammar.y" +#line 698 "../IceGrid/Grammar.y" { ;} break; case 145: -#line 698 "Grammar.y" +#line 701 "../IceGrid/Grammar.y" { ;} break; case 146: -#line 701 "Grammar.y" +#line 704 "../IceGrid/Grammar.y" { ;} break; case 147: -#line 704 "Grammar.y" +#line 707 "../IceGrid/Grammar.y" { ;} break; case 148: -#line 707 "Grammar.y" +#line 710 "../IceGrid/Grammar.y" { ;} break; case 149: -#line 710 "Grammar.y" +#line 713 "../IceGrid/Grammar.y" { ;} break; case 150: -#line 713 "Grammar.y" +#line 716 "../IceGrid/Grammar.y" { ;} break; case 151: -#line 716 "Grammar.y" +#line 719 "../IceGrid/Grammar.y" { ;} break; case 152: -#line 719 "Grammar.y" +#line 722 "../IceGrid/Grammar.y" { ;} break; case 153: -#line 722 "Grammar.y" +#line 725 "../IceGrid/Grammar.y" { ;} break; case 154: -#line 725 "Grammar.y" +#line 728 "../IceGrid/Grammar.y" { ;} break; case 155: -#line 728 "Grammar.y" +#line 731 "../IceGrid/Grammar.y" { ;} break; case 156: -#line 731 "Grammar.y" +#line 734 "../IceGrid/Grammar.y" { ;} break; case 157: -#line 734 "Grammar.y" +#line 737 "../IceGrid/Grammar.y" { ;} break; case 158: -#line 737 "Grammar.y" +#line 740 "../IceGrid/Grammar.y" { ;} break; case 159: -#line 740 "Grammar.y" +#line 743 "../IceGrid/Grammar.y" { ;} break; case 160: -#line 743 "Grammar.y" +#line 746 "../IceGrid/Grammar.y" { ;} break; case 161: -#line 746 "Grammar.y" +#line 749 "../IceGrid/Grammar.y" { ;} break; case 162: -#line 749 "Grammar.y" +#line 752 "../IceGrid/Grammar.y" { ;} break; case 163: -#line 752 "Grammar.y" +#line 755 "../IceGrid/Grammar.y" { ;} break; case 164: -#line 755 "Grammar.y" +#line 758 "../IceGrid/Grammar.y" { ;} break; case 165: -#line 758 "Grammar.y" +#line 761 "../IceGrid/Grammar.y" { ;} break; case 166: -#line 761 "Grammar.y" +#line 764 "../IceGrid/Grammar.y" { ;} break; case 167: -#line 764 "Grammar.y" +#line 767 "../IceGrid/Grammar.y" { ;} break; case 168: -#line 767 "Grammar.y" +#line 770 "../IceGrid/Grammar.y" { ;} break; case 169: -#line 770 "Grammar.y" +#line 773 "../IceGrid/Grammar.y" + { +;} + break; + + case 170: +#line 776 "../IceGrid/Grammar.y" { ;} break; + case 171: +#line 779 "../IceGrid/Grammar.y" + { +;} + break; - } + case 172: +#line 782 "../IceGrid/Grammar.y" + { +;} + break; -/* Line 1000 of yacc.c. */ -#line 3000 "Grammar.tab.c" - - yyvsp -= yylen; - yyssp -= yylen; +/* Line 1267 of yacc.c. */ +#line 3377 "Grammar.tab.c" + default: break; + } + YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); + YYPOPSTACK (yylen); + yylen = 0; YY_STACK_PRINT (yyss, yyssp); *++yyvsp = yyval; @@ -3030,99 +3408,65 @@ yyerrlab: if (!yyerrstatus) { ++yynerrs; -#if YYERROR_VERBOSE - yyn = yypact[yystate]; - - if (YYPACT_NINF < yyn && yyn < YYLAST) - { - YYSIZE_T yysize = 0; - int yytype = YYTRANSLATE (yychar); - const char* yyprefix; - char *yymsg; - int yyx; - - /* Start YYX at -YYN if negative to avoid negative indexes in - YYCHECK. */ - int yyxbegin = yyn < 0 ? -yyn : 0; - - /* Stay within bounds of both yycheck and yytname. */ - int yychecklim = YYLAST - yyn; - int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; - int yycount = 0; - - yyprefix = ", expecting "; - for (yyx = yyxbegin; yyx < yyxend; ++yyx) - if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) +#if ! YYERROR_VERBOSE + yyerror (YY_("syntax error")); +#else + { + YYSIZE_T yysize = yysyntax_error (0, yystate, yychar); + if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM) + { + YYSIZE_T yyalloc = 2 * yysize; + if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM)) + yyalloc = YYSTACK_ALLOC_MAXIMUM; + if (yymsg != yymsgbuf) + YYSTACK_FREE (yymsg); + yymsg = (char *) YYSTACK_ALLOC (yyalloc); + if (yymsg) + yymsg_alloc = yyalloc; + else { - yysize += yystrlen (yyprefix) + yystrlen (yytname [yyx]); - yycount += 1; - if (yycount == 5) - { - yysize = 0; - break; - } + yymsg = yymsgbuf; + yymsg_alloc = sizeof yymsgbuf; } - yysize += (sizeof ("syntax error, unexpected ") - + yystrlen (yytname[yytype])); - yymsg = (char *) YYSTACK_ALLOC (yysize); - if (yymsg != 0) - { - char *yyp = yystpcpy (yymsg, "syntax error, unexpected "); - yyp = yystpcpy (yyp, yytname[yytype]); - - if (yycount < 5) - { - yyprefix = ", expecting "; - for (yyx = yyxbegin; yyx < yyxend; ++yyx) - if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) - { - yyp = yystpcpy (yyp, yyprefix); - yyp = yystpcpy (yyp, yytname[yyx]); - yyprefix = " or "; - } - } - yyerror (yymsg); - YYSTACK_FREE (yymsg); - } - else - yyerror ("syntax error; also virtual memory exhausted"); - } - else -#endif /* YYERROR_VERBOSE */ - yyerror ("syntax error"); + } + + if (0 < yysize && yysize <= yymsg_alloc) + { + (void) yysyntax_error (yymsg, yystate, yychar); + yyerror (yymsg); + } + else + { + yyerror (YY_("syntax error")); + if (yysize != 0) + goto yyexhaustedlab; + } + } +#endif } if (yyerrstatus == 3) { - /* If just tried and failed to reuse lookahead token after an + /* If just tried and failed to reuse look-ahead token after an error, discard it. */ if (yychar <= YYEOF) - { - /* If at end of input, pop the error token, - then the rest of the stack, then return failure. */ + { + /* Return failure if at end of input. */ if (yychar == YYEOF) - for (;;) - { - YYPOPSTACK; - if (yyssp == yyss) - YYABORT; - YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp); - yydestruct (yystos[*yyssp], yyvsp); - } - } + YYABORT; + } else { - YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc); - yydestruct (yytoken, &yylval); + yydestruct ("Error: discarding", + yytoken, &yylval); yychar = YYEMPTY; - } } - /* Else will try to reuse lookahead token after shifting the error + /* Else will try to reuse look-ahead token after shifting the error token. */ goto yyerrlab1; @@ -3132,15 +3476,17 @@ yyerrlab: `---------------------------------------------------*/ yyerrorlab: -#ifdef __GNUC__ - /* Pacify GCC when the user code never invokes YYERROR and the label - yyerrorlab therefore never appears in user code. */ - if (0) + /* Pacify compilers like GCC when the user code never invokes + YYERROR and the label yyerrorlab therefore never appears in user + code. */ + if (/*CONSTCOND*/ 0) goto yyerrorlab; -#endif - yyvsp -= yylen; - yyssp -= yylen; + /* Do not reclaim the symbols of the rule which action triggered + this YYERROR. */ + YYPOPSTACK (yylen); + yylen = 0; + YY_STACK_PRINT (yyss, yyssp); yystate = *yyssp; goto yyerrlab1; @@ -3169,9 +3515,10 @@ yyerrlab1: if (yyssp == yyss) YYABORT; - YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp); - yydestruct (yystos[yystate], yyvsp); - YYPOPSTACK; + + yydestruct ("Error: popping", + yystos[yystate], yyvsp); + YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); } @@ -3179,11 +3526,12 @@ yyerrlab1: if (yyn == YYFINAL) YYACCEPT; - YYDPRINTF ((stderr, "Shifting error token, ")); - *++yyvsp = yylval; + /* Shift the error token. */ + YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); + yystate = yyn; goto yynewstate; @@ -3203,21 +3551,39 @@ yyabortlab: goto yyreturn; #ifndef yyoverflow -/*----------------------------------------------. -| yyoverflowlab -- parser overflow comes here. | -`----------------------------------------------*/ -yyoverflowlab: - yyerror ("parser stack overflow"); +/*-------------------------------------------------. +| yyexhaustedlab -- memory exhaustion comes here. | +`-------------------------------------------------*/ +yyexhaustedlab: + yyerror (YY_("memory exhausted")); yyresult = 2; /* Fall through. */ #endif yyreturn: + if (yychar != YYEOF && yychar != YYEMPTY) + yydestruct ("Cleanup: discarding lookahead", + yytoken, &yylval); + /* Do not reclaim the symbols of the rule which action triggered + this YYABORT or YYACCEPT. */ + YYPOPSTACK (yylen); + YY_STACK_PRINT (yyss, yyssp); + while (yyssp != yyss) + { + yydestruct ("Cleanup: popping", + yystos[*yyssp], yyvsp); + YYPOPSTACK (1); + } #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); #endif - return yyresult; +#if YYERROR_VERBOSE + if (yymsg != yymsgbuf) + YYSTACK_FREE (yymsg); +#endif + /* Make sure YYID is used. */ + return YYID (yyresult); } diff --git a/cpp/src/IceGrid/Grammar.h b/cpp/src/IceGrid/Grammar.h index 2c459182ea0..a82b611c711 100644 --- a/cpp/src/IceGrid/Grammar.h +++ b/cpp/src/IceGrid/Grammar.h @@ -1,7 +1,9 @@ -/* A Bison parser, made by GNU Bison 1.875c. */ +/* A Bison parser, made by GNU Bison 2.3. */ -/* Skeleton parser for Yacc-like parsing with Bison, - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. +/* Skeleton interface for Bison's Yacc-like parsers in C + + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 + Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -15,13 +17,21 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. */ + +/* As a special exception, you may create a larger work that contains + part or all of the Bison parser skeleton and distribute that work + under terms of your choice, so long as that work isn't itself a + parser generator using the skeleton or a modified version thereof + as a parser skeleton. Alternatively, if you modify or redistribute + the parser skeleton itself, you may (at your option) remove this + special exception, which will cause the skeleton and the resulting + Bison output files to be licensed under the GNU General Public + License without this special exception. -/* As a special exception, when this file is copied by Bison into a - Bison output file, you may use that output file without restriction. - This special exception was added by the Free Software Foundation - in version 1.24 of Bison. */ + This special exception was added by the Free Software Foundation in + version 2.2 of Bison. */ /* Tokens. */ #ifndef YYTOKENTYPE @@ -38,38 +48,40 @@ ICE_GRID_ADAPTER = 264, ICE_GRID_PING = 265, ICE_GRID_LOAD = 266, - ICE_GRID_ADD = 267, - ICE_GRID_REMOVE = 268, - ICE_GRID_LIST = 269, - ICE_GRID_SHUTDOWN = 270, - ICE_GRID_STRING = 271, - ICE_GRID_START = 272, - ICE_GRID_STOP = 273, - ICE_GRID_PATCH = 274, - ICE_GRID_SIGNAL = 275, - ICE_GRID_STDOUT = 276, - ICE_GRID_STDERR = 277, - ICE_GRID_DESCRIBE = 278, - ICE_GRID_PROPERTIES = 279, - ICE_GRID_PROPERTY = 280, - ICE_GRID_STATE = 281, - ICE_GRID_PID = 282, - ICE_GRID_ENDPOINTS = 283, - ICE_GRID_ACTIVATION = 284, - ICE_GRID_OBJECT = 285, - ICE_GRID_FIND = 286, - ICE_GRID_SHOW = 287, - ICE_GRID_COPYING = 288, - ICE_GRID_WARRANTY = 289, - ICE_GRID_DIFF = 290, - ICE_GRID_UPDATE = 291, - ICE_GRID_INSTANTIATE = 292, - ICE_GRID_TEMPLATE = 293, - ICE_GRID_SERVICE = 294, - ICE_GRID_ENABLE = 295, - ICE_GRID_DISABLE = 296 + ICE_GRID_PROCESSORS = 267, + ICE_GRID_ADD = 268, + ICE_GRID_REMOVE = 269, + ICE_GRID_LIST = 270, + ICE_GRID_SHUTDOWN = 271, + ICE_GRID_STRING = 272, + ICE_GRID_START = 273, + ICE_GRID_STOP = 274, + ICE_GRID_PATCH = 275, + ICE_GRID_SIGNAL = 276, + ICE_GRID_STDOUT = 277, + ICE_GRID_STDERR = 278, + ICE_GRID_DESCRIBE = 279, + ICE_GRID_PROPERTIES = 280, + ICE_GRID_PROPERTY = 281, + ICE_GRID_STATE = 282, + ICE_GRID_PID = 283, + ICE_GRID_ENDPOINTS = 284, + ICE_GRID_ACTIVATION = 285, + ICE_GRID_OBJECT = 286, + ICE_GRID_FIND = 287, + ICE_GRID_SHOW = 288, + ICE_GRID_COPYING = 289, + ICE_GRID_WARRANTY = 290, + ICE_GRID_DIFF = 291, + ICE_GRID_UPDATE = 292, + ICE_GRID_INSTANTIATE = 293, + ICE_GRID_TEMPLATE = 294, + ICE_GRID_SERVICE = 295, + ICE_GRID_ENABLE = 296, + ICE_GRID_DISABLE = 297 }; #endif +/* Tokens. */ #define ICE_GRID_HELP 258 #define ICE_GRID_EXIT 259 #define ICE_GRID_APPLICATION 260 @@ -79,41 +91,42 @@ #define ICE_GRID_ADAPTER 264 #define ICE_GRID_PING 265 #define ICE_GRID_LOAD 266 -#define ICE_GRID_ADD 267 -#define ICE_GRID_REMOVE 268 -#define ICE_GRID_LIST 269 -#define ICE_GRID_SHUTDOWN 270 -#define ICE_GRID_STRING 271 -#define ICE_GRID_START 272 -#define ICE_GRID_STOP 273 -#define ICE_GRID_PATCH 274 -#define ICE_GRID_SIGNAL 275 -#define ICE_GRID_STDOUT 276 -#define ICE_GRID_STDERR 277 -#define ICE_GRID_DESCRIBE 278 -#define ICE_GRID_PROPERTIES 279 -#define ICE_GRID_PROPERTY 280 -#define ICE_GRID_STATE 281 -#define ICE_GRID_PID 282 -#define ICE_GRID_ENDPOINTS 283 -#define ICE_GRID_ACTIVATION 284 -#define ICE_GRID_OBJECT 285 -#define ICE_GRID_FIND 286 -#define ICE_GRID_SHOW 287 -#define ICE_GRID_COPYING 288 -#define ICE_GRID_WARRANTY 289 -#define ICE_GRID_DIFF 290 -#define ICE_GRID_UPDATE 291 -#define ICE_GRID_INSTANTIATE 292 -#define ICE_GRID_TEMPLATE 293 -#define ICE_GRID_SERVICE 294 -#define ICE_GRID_ENABLE 295 -#define ICE_GRID_DISABLE 296 +#define ICE_GRID_PROCESSORS 267 +#define ICE_GRID_ADD 268 +#define ICE_GRID_REMOVE 269 +#define ICE_GRID_LIST 270 +#define ICE_GRID_SHUTDOWN 271 +#define ICE_GRID_STRING 272 +#define ICE_GRID_START 273 +#define ICE_GRID_STOP 274 +#define ICE_GRID_PATCH 275 +#define ICE_GRID_SIGNAL 276 +#define ICE_GRID_STDOUT 277 +#define ICE_GRID_STDERR 278 +#define ICE_GRID_DESCRIBE 279 +#define ICE_GRID_PROPERTIES 280 +#define ICE_GRID_PROPERTY 281 +#define ICE_GRID_STATE 282 +#define ICE_GRID_PID 283 +#define ICE_GRID_ENDPOINTS 284 +#define ICE_GRID_ACTIVATION 285 +#define ICE_GRID_OBJECT 286 +#define ICE_GRID_FIND 287 +#define ICE_GRID_SHOW 288 +#define ICE_GRID_COPYING 289 +#define ICE_GRID_WARRANTY 290 +#define ICE_GRID_DIFF 291 +#define ICE_GRID_UPDATE 292 +#define ICE_GRID_INSTANTIATE 293 +#define ICE_GRID_TEMPLATE 294 +#define ICE_GRID_SERVICE 295 +#define ICE_GRID_ENABLE 296 +#define ICE_GRID_DISABLE 297 -#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) +#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef int YYSTYPE; # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 @@ -122,5 +135,3 @@ typedef int YYSTYPE; - - diff --git a/cpp/src/IceGrid/Grammar.y b/cpp/src/IceGrid/Grammar.y index 542f73ef5a0..6db5977e343 100644 --- a/cpp/src/IceGrid/Grammar.y +++ b/cpp/src/IceGrid/Grammar.y @@ -48,6 +48,7 @@ yyerror(const char* s) %token ICE_GRID_ADAPTER %token ICE_GRID_PING %token ICE_GRID_LOAD +%token ICE_GRID_PROCESSORS %token ICE_GRID_ADD %token ICE_GRID_REMOVE %token ICE_GRID_LIST @@ -231,7 +232,15 @@ command } | ICE_GRID_NODE ICE_GRID_LOAD ICE_GRID_HELP ';' { - parser->usage("node", "lost"); + parser->usage("node", "load"); +} +| ICE_GRID_NODE ICE_GRID_PROCESSORS strings ';' +{ + parser->printNodeProcessors($3); +} +| ICE_GRID_NODE ICE_GRID_PROCESSORS ICE_GRID_HELP ';' +{ + parser->usage("node", "processors"); } | ICE_GRID_NODE ICE_GRID_SHUTDOWN strings ';' { @@ -682,6 +691,9 @@ keyword | ICE_GRID_LOAD { } +| ICE_GRID_PROCESSORS +{ +} | ICE_GRID_ADD { } diff --git a/cpp/src/IceGrid/Internal.ice b/cpp/src/IceGrid/Internal.ice index 536bfba0a33..c3b25d0e52a 100644 --- a/cpp/src/IceGrid/Internal.ice +++ b/cpp/src/IceGrid/Internal.ice @@ -408,6 +408,14 @@ interface Node extends FileReader, ReplicaObserver /** * + * Get the number of processor sockets for the machine where this + * node is running. + * + **/ + ["nonmutating", "cpp:const"] idempotent int getProcessorSocketCount(); + + /** + * * Shutdown the node. * **/ diff --git a/cpp/src/IceGrid/NodeI.cpp b/cpp/src/IceGrid/NodeI.cpp index 432688aa925..7e5659771b1 100644 --- a/cpp/src/IceGrid/NodeI.cpp +++ b/cpp/src/IceGrid/NodeI.cpp @@ -813,6 +813,12 @@ NodeI::getLoad(const Ice::Current&) const return _platform.getLoadInfo(); } +int +NodeI::getProcessorSocketCount(const Ice::Current&) const +{ + return _platform.getProcessorSocketCount(); +} + void NodeI::shutdown(const Ice::Current&) const { diff --git a/cpp/src/IceGrid/NodeI.h b/cpp/src/IceGrid/NodeI.h index 46c6470bb83..6863d174fb1 100644 --- a/cpp/src/IceGrid/NodeI.h +++ b/cpp/src/IceGrid/NodeI.h @@ -87,6 +87,7 @@ public: virtual std::string getName(const Ice::Current& = Ice::Current()) const; virtual std::string getHostname(const Ice::Current& = Ice::Current()) const; virtual LoadInfo getLoad(const Ice::Current& = Ice::Current()) const; + virtual int getProcessorSocketCount(const Ice::Current&) const; virtual void shutdown(const Ice::Current&) const; virtual Ice::Long getOffsetFromEnd(const std::string&, int, const Ice::Current&) const; diff --git a/cpp/src/IceGrid/Parser.cpp b/cpp/src/IceGrid/Parser.cpp index 9d5c37df304..1fa2f0c8c51 100644 --- a/cpp/src/IceGrid/Parser.cpp +++ b/cpp/src/IceGrid/Parser.cpp @@ -89,6 +89,10 @@ static const char* _commandsHelp[][3] = { { "node", "load", "node load NAME Print the load of the node NAME.\n" }, +{ "node", "processors", +"node processors [NAME] Print the number of processor socket of the\n" +" node NAME or all the nodes if NAME is omitted.\n" +}, { "node", "show", "node show [OPTIONS] NAME [stderr | stdout]\n" " Show node NAME stderr or stdout.\n" @@ -820,6 +824,60 @@ Parser::printLoadNode(const list<string>& args) } void +Parser::printNodeProcessors(const list<string>& args) +{ + if(args.size() > 1) + { + invalidCommand("node processors", "requires no more than one argument"); + return; + } + + try + { + if(args.size() == 1) + { + cout << _admin->getNodeProcessorSocketCount(args.front()) << endl; + } + else + { + Ice::StringSeq names = _admin->getAllNodeNames(); + map<string, pair< vector<string>, int> > processorSocketCounts; + for(Ice::StringSeq::const_iterator p = names.begin(); p != names.end(); p++) + { + try + { + NodeInfo info = _admin->getNodeInfo(*p); + processorSocketCounts[info.hostname].first.push_back(*p); + processorSocketCounts[info.hostname].second = _admin->getNodeProcessorSocketCount(*p); + } + catch(const NodeNotExistException&) + { + } + catch(const NodeUnreachableException&) + { + } + } + + cout.flags(ios::left); + cout << setw(20) << "Hostname" << setw(20) << "| # of sockets" << setw(39) << "| Nodes" << endl; + cout << setw(79) << "=====================================================================" << endl; + for(map<string, pair< vector<string>, int> >::const_iterator q = processorSocketCounts.begin(); + q != processorSocketCounts.end(); ++q) + { + cout << setw(20) << setiosflags(ios::left) <<q->first; + cout << "| " << setw(18) << setiosflags(ios::left) << q->second.second; + cout << "| " << setw(37) << setiosflags(ios::left) << toString(q->second.first); + cout << endl; + } + } + } + catch(const Ice::Exception& ex) + { + exception(ex); + } +} + +void Parser::shutdownNode(const list<string>& args) { if(args.size() != 1) diff --git a/cpp/src/IceGrid/Parser.h b/cpp/src/IceGrid/Parser.h index a6c38ef8b23..6a599338e79 100644 --- a/cpp/src/IceGrid/Parser.h +++ b/cpp/src/IceGrid/Parser.h @@ -82,6 +82,7 @@ public: void describeNode(const std::list<std::string>&); void pingNode(const std::list<std::string>&); void printLoadNode(const std::list<std::string>&); + void printNodeProcessors(const std::list<std::string>&); void shutdownNode(const std::list<std::string>&); void listAllNodes(const std::list<std::string>&); diff --git a/cpp/src/IceGrid/PlatformInfo.cpp b/cpp/src/IceGrid/PlatformInfo.cpp index 4e14fa0355c..1251a278094 100644 --- a/cpp/src/IceGrid/PlatformInfo.cpp +++ b/cpp/src/IceGrid/PlatformInfo.cpp @@ -95,6 +95,56 @@ private: PlatformInfo& _platform; }; + +typedef BOOL (WINAPI *LPFN_GLPI)(PSYSTEM_LOGICAL_PROCESSOR_INFORMATION, PDWORD); + +int +getSocketCount(const Ice::LoggerPtr& logger) +{ + LPFN_GLPI glpi; + glpi = (LPFN_GLPI) GetProcAddress(GetModuleHandle(TEXT("kernel32")), "GetLogicalProcessorInformation"); + if(!glpi) + { + Ice::Warning out(logger); + out << "Unable to figure out the number of process sockets:\n"; + out << "GetLogicalProcessInformation not supported on this OS;"; + return 0; + } + + vector<SYSTEM_LOGICAL_PROCESSOR_INFORMATION> buffer(1); + DWORD returnLength = sizeof(SYSTEM_LOGICAL_PROCESSOR_INFORMATION) * buffer.size(); + while(true) + { + DWORD rc = glpi(&buffer[0], &returnLength); + if(!rc) + { + if(GetLastError() == ERROR_INSUFFICIENT_BUFFER) + { + buffer.resize(returnLength / sizeof(SYSTEM_LOGICAL_PROCESSOR_INFORMATION) + 1); + continue; + } + else + { + Ice::Warning out(logger); + out << "Unable to figure out the number of process sockets:\n"; + out << IceUtilInternal::lastErrorToString(); + return 0; + } + } + buffer.resize(returnLength / sizeof(SYSTEM_LOGICAL_PROCESSOR_INFORMATION)); + break; + } + + int socketCount = 0; + for(vector<SYSTEM_LOGICAL_PROCESSOR_INFORMATION>::const_iterator p = buffer.begin(); p != buffer.end(); ++p) + { + if(p->Relationship == RelationProcessorPackage) + { + socketCount++; + } + } + return socketCount; +} #endif } @@ -244,6 +294,20 @@ PlatformInfo::PlatformInfo(const string& prefix, #endif Ice::PropertiesPtr properties = communicator->getProperties(); + + // + // Try to obtain the number of processor sockets. + // + _nProcessorSockets = properties->getPropertyAsIntWithDefault("IceGrid.Node.ProcessorSocketCount", 0); + if(_nProcessorSockets == 0) + { +#ifdef _WIN32 + _nProcessorSockets = getSocketCount(_traceLevels->logger); +#else + // Not supported. +#endif + } + string endpointsPrefix; if(prefix == "IceGrid.Registry") { @@ -411,6 +475,12 @@ PlatformInfo::getLoadInfo() return info; } +int +PlatformInfo::getProcessorSocketCount() const +{ + return _nProcessorSockets; +} + std::string PlatformInfo::getHostname() const { diff --git a/cpp/src/IceGrid/PlatformInfo.h b/cpp/src/IceGrid/PlatformInfo.h index 904d63be8e9..598f8bde215 100644 --- a/cpp/src/IceGrid/PlatformInfo.h +++ b/cpp/src/IceGrid/PlatformInfo.h @@ -46,6 +46,7 @@ public: RegistryInfo getRegistryInfo() const; LoadInfo getLoadInfo(); + int getProcessorSocketCount() const; std::string getHostname() const; std::string getDataDir() const; std::string getCwd() const; @@ -67,6 +68,7 @@ private: std::string _dataDir; std::string _cwd; std::string _endpoints; + int _nProcessorSockets; #if defined(_WIN32) IceUtil::ThreadPtr _updateUtilizationThread; diff --git a/cpp/src/IceGrid/Scanner.cpp b/cpp/src/IceGrid/Scanner.cpp index 2da7dc919fe..78130e8bde8 100644 --- a/cpp/src/IceGrid/Scanner.cpp +++ b/cpp/src/IceGrid/Scanner.cpp @@ -1726,6 +1726,7 @@ initScanner() keywordMap["registry"] = ICE_GRID_REGISTRY; keywordMap["ping"] = ICE_GRID_PING; keywordMap["load"] = ICE_GRID_LOAD; + keywordMap["processors"] = ICE_GRID_PROCESSORS; keywordMap["activation"] = ICE_GRID_ACTIVATION; keywordMap["object"] = ICE_GRID_OBJECT; keywordMap["find"] = ICE_GRID_FIND; diff --git a/cpp/src/IceGrid/Scanner.l b/cpp/src/IceGrid/Scanner.l index ac04a5ea3c8..81b739f4767 100644 --- a/cpp/src/IceGrid/Scanner.l +++ b/cpp/src/IceGrid/Scanner.l @@ -207,6 +207,7 @@ initScanner() keywordMap["registry"] = ICE_GRID_REGISTRY; keywordMap["ping"] = ICE_GRID_PING; keywordMap["load"] = ICE_GRID_LOAD; + keywordMap["processors"] = ICE_GRID_PROCESSORS; keywordMap["activation"] = ICE_GRID_ACTIVATION; keywordMap["object"] = ICE_GRID_OBJECT; keywordMap["find"] = ICE_GRID_FIND; |