diff --git a/Common/DefaultOptions.h b/Common/DefaultOptions.h index f60d8ebb39c23893ca9e02b2ebd253ec69fff41a..35e50698ccf79eeadb7f980c4feeb72fa7b2d228 100644 --- a/Common/DefaultOptions.h +++ b/Common/DefaultOptions.h @@ -111,7 +111,11 @@ StringXString MeshOptions_String[] = { } ; StringXString SolverOptions_String[] = { +#if defined(WIN32) && !defined(__CYGWIN__) + { F|O, "SocketName" , opt_solver_socket_name , "127.0.0.1:33791" , +#else { F|O, "SocketName" , opt_solver_socket_name , ".gmshsock" , +#endif "Name of socket (TCP/IP if it contains the `:' character, UNIX otherwise)" }, { F|O, "Name0" , opt_solver_name0 , "GetDP" , diff --git a/Common/GmshMatrix.h b/Common/GmshMatrix.h index 1f5dc2e5478d9efd84f6bffaf65672bd6243d365..d813a57a4b59113db27116dde5d6a2a2918bb98b 100644 --- a/Common/GmshMatrix.h +++ b/Common/GmshMatrix.h @@ -45,9 +45,9 @@ public: for (int i=0;i<r;++i)data[i]=other.data[i]; } inline void lu_solve (const Gmsh_Vector<SCALAR>& rhs, Gmsh_Vector<SCALAR> & result) - { - throw; - } + { + throw; + } }; template <class SCALAR> @@ -113,6 +113,7 @@ public: #ifdef HAVE_GSL #include <gsl/gsl_linalg.h> #include <gsl/gsl_matrix.h> +#include <gsl/gsl_vector.h> #include <gsl/gsl_blas.h> class GSL_Vector { @@ -175,32 +176,28 @@ public: { gsl_blas_dgemm (CblasNoTrans,CblasNoTrans, 1.0, data, x.data, 1.0, b.data); } - inline void least_squares (const GSL_Vector & rhs, GSL_Vector & result) - { - assert (r > c); - assert (rhs.size() == r); - assert (result.size() == c); - GSL_Matrix *ls = new GSL_Matrix(c, c); - GSL_Vector *ls_rhs = new GSL_Vector(c); - //GSL_Vector *test = new GSL_Vector(c); - gsl_blas_dgemm (CblasTrans,CblasNoTrans, 1.0, data, data, 1.0, ls->data); - gsl_blas_dgemv (CblasTrans, 1.0, data, rhs.data, 1.0, ls_rhs->data); - ls->lu_solve (*ls_rhs,result); - - - delete ls; - delete ls_rhs; - } + { + assert (r > c); + assert (rhs.size() == r); + assert (result.size() == c); + GSL_Matrix *ls = new GSL_Matrix(c, c); + GSL_Vector *ls_rhs = new GSL_Vector(c); + //GSL_Vector *test = new GSL_Vector(c); + gsl_blas_dgemm (CblasTrans,CblasNoTrans, 1.0, data, data, 1.0, ls->data); + gsl_blas_dgemv (CblasTrans, 1.0, data, rhs.data, 1.0, ls_rhs->data); + ls->lu_solve (*ls_rhs,result); + delete ls; + delete ls_rhs; + } inline void lu_solve (const GSL_Vector & rhs, GSL_Vector & result) - { - int s; - gsl_permutation * p = gsl_permutation_alloc (size1()); - gsl_linalg_LU_decomp ( data, p, &s); - gsl_linalg_LU_solve ( data , p, rhs.data, result.data ) ; - gsl_permutation_free (p); - } - + { + int s; + gsl_permutation * p = gsl_permutation_alloc (size1()); + gsl_linalg_LU_decomp ( data, p, &s); + gsl_linalg_LU_solve ( data , p, rhs.data, result.data ) ; + gsl_permutation_free (p); + } inline void mult (const GSL_Vector & x, GSL_Vector & b ) { gsl_blas_dgemv (CblasNoTrans, 1.0, data, x.data, 1.0, b.data); diff --git a/Common/Timer.cpp b/Common/Timer.cpp index 9affa3423a54e3699fac787eee88751275bf802f..575053719e4af1487567d488e23ce36b3df08c2e 100644 --- a/Common/Timer.cpp +++ b/Common/Timer.cpp @@ -1,4 +1,4 @@ -// $Id: Timer.cpp,v 1.16 2006-01-06 00:34:21 geuzaine Exp $ +// $Id: Timer.cpp,v 1.17 2006-02-24 22:07:06 geuzaine Exp $ // // Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle // @@ -25,21 +25,33 @@ #include <sys/time.h> #include <unistd.h> -long GetTime() +long GetTimeMilliSeconds() { struct timeval tp; gettimeofday(&tp, (struct timezone *)0); return (long)tp.tv_sec * 1000000 + (long)tp.tv_usec; } +void SleepMilliSeconds(int usec) +{ + usleep(usec); +} + #else // pure windows #include "Gmsh.h" +#include <windows.h> + +long GetTimeMilliSeconds() +{ + FILETIME ft; + GetSystemTimeAsFileTime(&ft); + return (long)ft.dwHighDateTime * 100000 + (long)ft.dwLowDateTime / 10; +} -long GetTime() +void SleepMilliSeconds(int usec) { - Msg(GERROR, "GetTime not implemented on Windows without Cygwin"); - return 1; + Sleep(usec); } #endif diff --git a/Common/Timer.h b/Common/Timer.h index 4970006ebb57b9622cccb8934d4594e54920b0a0..777cc4abc7ae54a6f127fcb031ece4a74e889ef0 100644 --- a/Common/Timer.h +++ b/Common/Timer.h @@ -20,6 +20,7 @@ // // Please report all bugs and problems to <gmsh@geuz.org>. -long GetTime(); +long GetTimeMilliSeconds(); +void SleepMilliSeconds(int usec); #endif diff --git a/Fltk/Callbacks.cpp b/Fltk/Callbacks.cpp index 3de0c2bd4aea78e039dbe92d5258268f9a6e9acd..7bdea4143b9e53843db5b06577065b413e9997d5 100644 --- a/Fltk/Callbacks.cpp +++ b/Fltk/Callbacks.cpp @@ -1,4 +1,4 @@ -// $Id: Callbacks.cpp,v 1.408 2006-02-24 03:20:44 geuzaine Exp $ +// $Id: Callbacks.cpp,v 1.409 2006-02-24 22:07:06 geuzaine Exp $ // // Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle // @@ -523,12 +523,12 @@ void status_play_cb(CALLBACK_ARGS) static long anim_time; WID->set_anim_buttons(0); stop_anim = 0; - anim_time = GetTime(); + anim_time = GetTimeMilliSeconds(); while(1) { if(stop_anim) break; - if(GetTime() - anim_time > 1.e6 * CTX.post.anim_delay) { - anim_time = GetTime(); + if(GetTimeMilliSeconds() - anim_time > 1.e6 * CTX.post.anim_delay) { + anim_time = GetTimeMilliSeconds(); ManualPlay(!CTX.post.anim_cycle, 1); } WID->check(); @@ -3252,16 +3252,22 @@ void solver_command_cb(CALLBACK_ARGS) void solver_kill_cb(CALLBACK_ARGS) { -#if !defined(WIN32) || defined(__CYGWIN__) int num = (int)(long)data; if(SINFO[num].pid > 0) { +#if !defined(WIN32) || defined(__CYGWIN__) kill(SINFO[num].pid, 9); - Msg(INFO, "Killed %s pid %d", SINFO[num].name, SINFO[num].pid); - } - SINFO[num].pid = -1; #else - Msg(WARNING, "Killing processes not supported on Windows without Cygwin"); + HANDLE hProc = OpenProcess(PROCESS_TERMINATE, FALSE, SINFO[num].pid); + if(!TerminateProcess(hProc, 0)){ + CloseHandle(hProc); + Msg(WARNING, "Could not kill process %s pid %d", + SINFO[num].name, SINFO[num].pid); + return; + } #endif + } + Msg(INFO, "Killed %s pid %d", SINFO[num].name, SINFO[num].pid); + SINFO[num].pid = -1; } void solver_choose_executable_cb(CALLBACK_ARGS) diff --git a/Fltk/GmshServer.h b/Fltk/GmshServer.h index e60908ad4a077a6f7e322171f8e66efae75992c0..a8b2f0c3fdc0841dbd94c5a8bb05a5805ce777d8 100644 --- a/Fltk/GmshServer.h +++ b/Fltk/GmshServer.h @@ -52,7 +52,7 @@ int WaitForData(int socket, int num, double waitint); #else // pure windows -#include <winsock2.h> +#include <winsock.h> #endif @@ -83,7 +83,6 @@ class GmshServer { CLIENT_OPTION_3 = 102, CLIENT_OPTION_4 = 103, CLIENT_OPTION_5 = 104 } MessageType; - // FIXME: this should be removed static int init, s; private: @@ -111,9 +110,13 @@ class GmshServer { socklen_t len; #endif if(_portno < 0){ +#if !defined(WIN32) || defined(__CYGWIN__) struct sockaddr_un from_un; len = sizeof(from_un); return accept(s, (struct sockaddr *)&from_un, &len); +#else + return -7; // Unix sockets not available on Windows without Cygwin +#endif } else{ struct sockaddr_in from_in; @@ -155,8 +158,7 @@ class GmshServer { // delete the file if it already exists #if !defined(WIN32) || defined(__CYGWIN__) unlink(_sockname); -#endif - + // make the socket s = socket(PF_UNIX, SOCK_STREAM, 0); if(s < 0) @@ -164,23 +166,39 @@ class GmshServer { // bind the socket to its name struct sockaddr_un addr_un; + memset((char *) &addr_un, 0, sizeof(addr_un)); strcpy(addr_un.sun_path, _sockname); addr_un.sun_family = AF_UNIX; if(bind(s, (struct sockaddr *)&addr_un, sizeof(addr_un)) < 0) return -2; // Error: Couldn't bind socket to name - + // change permissions on the socket name in case it has to be rm'd later chmod(_sockname, 0666); +#else + return -7; // Unix sockets not available on Windows without Cygwin +#endif } else{ +#if defined(WIN32) && !defined(__CYGWIN__) + if(!init){ + WSADATA wsaData; + int iResult = WSAStartup(MAKEWORD(2,2), &wsaData); + if(iResult != NO_ERROR) + return -8; // Error: Couldn't initialize Windows sockets + } +#endif if(init != _portno){ - // FIXME: need a better solution to deal with addresses that - // have already been bound! + // We need a better solution to deal with addresses that have + // already been bound... init = _portno; // make the socket s = socket(AF_INET, SOCK_STREAM, 0); +#if !defined(WIN32) || defined(__CYGWIN__) if(s < 0) +#else + if(s == INVALID_SOCKET) +#endif return -1; // Error: Couldn't create socket // bind the socket to its name @@ -237,14 +255,16 @@ class GmshServer { } int StopClient() { +#if !defined(WIN32) || defined(__CYGWIN__) if(_portno < 0){ // UNIX socket -#if !defined(WIN32) || defined(__CYGWIN__) if(unlink(_sockname) == -1) return -1; // Impossible to unlink the socket -#endif } close(_sock); +#else + closesocket(_sock); +#endif return 0; } }; diff --git a/Fltk/Solvers.cpp b/Fltk/Solvers.cpp index ceb09b8036e82dd0d36ef69379c4e94ebc254700..5e41710b36112d7b4db0b6eb4f545eb5e597a508 100644 --- a/Fltk/Solvers.cpp +++ b/Fltk/Solvers.cpp @@ -1,4 +1,4 @@ -// $Id: Solvers.cpp,v 1.47 2006-02-24 14:24:46 geuzaine Exp $ +// $Id: Solvers.cpp,v 1.48 2006-02-24 22:07:06 geuzaine Exp $ // // Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle // @@ -34,8 +34,6 @@ extern GUI *WID; SolverInfo SINFO[MAXSOLVERS]; -// FIXME: this should be removed (and we should set the socket options -// so that the addresses can be reused) int GmshServer::init = 0; int GmshServer::s; @@ -151,6 +149,13 @@ int Solver(int num, char *args) Msg(INFO, "Stopped listening for solver connections"); server.StopClient(); break; + case -7: + Msg(GERROR, "Unix sockets not available on Windows without Cygwin"); + Msg(GERROR, "Use TCP/IP sockets instead"); + break; + case -8: + Msg(GERROR, "Could not initialize Windows sockets"); + break; } if(num >= 0){ for(int i = 0; i < SINFO[num].nboptions; i++) diff --git a/Graphics/gl2jpeg.cpp b/Graphics/gl2jpeg.cpp index fa2d1756412059deb1cd1ca05e83cb27faefdaf3..b3166e69c63b4b865b6c4a67d3fbc1eac948bf24 100644 --- a/Graphics/gl2jpeg.cpp +++ b/Graphics/gl2jpeg.cpp @@ -1,4 +1,4 @@ -/* $Id: gl2jpeg.cpp,v 1.25 2006-01-28 08:04:16 geuzaine Exp $ */ +/* $Id: gl2jpeg.cpp,v 1.26 2006-02-24 22:07:06 geuzaine Exp $ */ /* * GL2JPEG, an OpenGL to JPEG Printing Library * Copyright (C) 1999-2003 Christophe Geuzaine <geuz@geuz.org> @@ -42,15 +42,13 @@ void create_jpeg(FILE * outfile, int width, int height, #else -/* Some releases of the Cygwin JPEG libraries don't have a correctly - updated header file for the INT32 data type; the following define - from Shane Hill seems to be a usable workaround... */ +/* Some releases of the Cygwin JPEG libraries (as well as the JPEG + library bundled with FLTK) don't have a correctly updated header + file for the INT32 data type; the following define from Shane Hill + seems to be a usable workaround... */ #if defined(WIN32) #define XMD_H -#endif - -#if defined(__CYGWIN__) #define boolean char #endif diff --git a/Parser/Gmsh.tab.cpp b/Parser/Gmsh.tab.cpp index 94fdb5341339ed8c4b66802203841b6bbf0d2bc2..6fe04297a4702a7606a152283c2acf09bf2c0bf8 100644 --- a/Parser/Gmsh.tab.cpp +++ b/Parser/Gmsh.tab.cpp @@ -1,131 +1,308 @@ +/* A Bison parser, made by GNU Bison 2.1. */ -/* A Bison parser, made from Gmsh.y - by GNU Bison version 1.28 */ - -#define YYBISON 1 /* Identify Bison output. */ - -#define tDOUBLE 257 -#define tSTRING 258 -#define tBIGSTR 259 -#define tEND 260 -#define tAFFECT 261 -#define tDOTS 262 -#define tPi 263 -#define tMPI_Rank 264 -#define tMPI_Size 265 -#define tExp 266 -#define tLog 267 -#define tLog10 268 -#define tSqrt 269 -#define tSin 270 -#define tAsin 271 -#define tCos 272 -#define tAcos 273 -#define tTan 274 -#define tRand 275 -#define tAtan 276 -#define tAtan2 277 -#define tSinh 278 -#define tCosh 279 -#define tTanh 280 -#define tFabs 281 -#define tFloor 282 -#define tCeil 283 -#define tFmod 284 -#define tModulo 285 -#define tHypot 286 -#define tPrintf 287 -#define tSprintf 288 -#define tStrCat 289 -#define tStrPrefix 290 -#define tStrRelative 291 -#define tBoundingBox 292 -#define tDraw 293 -#define tToday 294 -#define tPoint 295 -#define tCircle 296 -#define tEllipse 297 -#define tLine 298 -#define tSurface 299 -#define tSpline 300 -#define tVolume 301 -#define tCharacteristic 302 -#define tLength 303 -#define tParametric 304 -#define tElliptic 305 -#define tPlane 306 -#define tRuled 307 -#define tTransfinite 308 -#define tComplex 309 -#define tPhysical 310 -#define tUsing 311 -#define tBump 312 -#define tProgression 313 -#define tPlugin 314 -#define tRotate 315 -#define tTranslate 316 -#define tSymmetry 317 -#define tDilate 318 -#define tExtrude 319 -#define tDuplicata 320 -#define tLoop 321 -#define tRecombine 322 -#define tDelete 323 -#define tCoherence 324 -#define tIntersect 325 -#define tAttractor 326 -#define tLayers 327 -#define tAlias 328 -#define tAliasWithOptions 329 -#define tText2D 330 -#define tText3D 331 -#define tInterpolationScheme 332 -#define tTime 333 -#define tCombine 334 -#define tBSpline 335 -#define tBezier 336 -#define tNurbs 337 -#define tOrder 338 -#define tWith 339 -#define tBounds 340 -#define tKnots 341 -#define tColor 342 -#define tColorTable 343 -#define tFor 344 -#define tIn 345 -#define tEndFor 346 -#define tIf 347 -#define tEndIf 348 -#define tExit 349 -#define tReturn 350 -#define tCall 351 -#define tFunction 352 -#define tTrimmed 353 -#define tShow 354 -#define tHide 355 -#define tGetValue 356 -#define tGMSH_MAJOR_VERSION 357 -#define tGMSH_MINOR_VERSION 358 -#define tGMSH_PATCH_VERSION 359 -#define tAFFECTPLUS 360 -#define tAFFECTMINUS 361 -#define tAFFECTTIMES 362 -#define tAFFECTDIVIDE 363 -#define tOR 364 -#define tAND 365 -#define tEQUAL 366 -#define tNOTEQUAL 367 -#define tAPPROXEQUAL 368 -#define tLESSOREQUAL 369 -#define tGREATEROREQUAL 370 -#define tCROSSPRODUCT 371 -#define tPLUSPLUS 372 -#define tMINUSMINUS 373 -#define UNARYPREC 374 +/* Skeleton parser for Yacc-like parsing with Bison, + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 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 + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + 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., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. */ + +/* 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. */ + +/* 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 + variables, as they might otherwise be expanded by user macros. + There are some unavoidable exceptions within include files to + define necessary library symbols; they are noted "INFRINGES ON + USER NAME SPACE" below. */ + +/* Identify Bison output. */ +#define YYBISON 1 + +/* Bison version. */ +#define YYBISON_VERSION "2.1" + +/* Skeleton name. */ +#define YYSKELETON_NAME "yacc.c" + +/* Pure parsers. */ +#define YYPURE 0 + +/* Using locations. */ +#define YYLSP_NEEDED 0 + + + +/* Tokens. */ +#ifndef YYTOKENTYPE +# define YYTOKENTYPE + /* Put the tokens into the symbol table, so that GDB and other debuggers + know about them. */ + enum yytokentype { + tDOUBLE = 258, + tSTRING = 259, + tBIGSTR = 260, + tEND = 261, + tAFFECT = 262, + tDOTS = 263, + tPi = 264, + tMPI_Rank = 265, + tMPI_Size = 266, + tExp = 267, + tLog = 268, + tLog10 = 269, + tSqrt = 270, + tSin = 271, + tAsin = 272, + tCos = 273, + tAcos = 274, + tTan = 275, + tRand = 276, + tAtan = 277, + tAtan2 = 278, + tSinh = 279, + tCosh = 280, + tTanh = 281, + tFabs = 282, + tFloor = 283, + tCeil = 284, + tFmod = 285, + tModulo = 286, + tHypot = 287, + tPrintf = 288, + tSprintf = 289, + tStrCat = 290, + tStrPrefix = 291, + tStrRelative = 292, + tBoundingBox = 293, + tDraw = 294, + tToday = 295, + tPoint = 296, + tCircle = 297, + tEllipse = 298, + tLine = 299, + tSurface = 300, + tSpline = 301, + tVolume = 302, + tCharacteristic = 303, + tLength = 304, + tParametric = 305, + tElliptic = 306, + tPlane = 307, + tRuled = 308, + tTransfinite = 309, + tComplex = 310, + tPhysical = 311, + tUsing = 312, + tBump = 313, + tProgression = 314, + tPlugin = 315, + tRotate = 316, + tTranslate = 317, + tSymmetry = 318, + tDilate = 319, + tExtrude = 320, + tDuplicata = 321, + tLoop = 322, + tRecombine = 323, + tDelete = 324, + tCoherence = 325, + tIntersect = 326, + tAttractor = 327, + tLayers = 328, + tAlias = 329, + tAliasWithOptions = 330, + tText2D = 331, + tText3D = 332, + tInterpolationScheme = 333, + tTime = 334, + tCombine = 335, + tBSpline = 336, + tBezier = 337, + tNurbs = 338, + tOrder = 339, + tWith = 340, + tBounds = 341, + tKnots = 342, + tColor = 343, + tColorTable = 344, + tFor = 345, + tIn = 346, + tEndFor = 347, + tIf = 348, + tEndIf = 349, + tExit = 350, + tReturn = 351, + tCall = 352, + tFunction = 353, + tTrimmed = 354, + tShow = 355, + tHide = 356, + tGetValue = 357, + tGMSH_MAJOR_VERSION = 358, + tGMSH_MINOR_VERSION = 359, + tGMSH_PATCH_VERSION = 360, + tAFFECTDIVIDE = 361, + tAFFECTTIMES = 362, + tAFFECTMINUS = 363, + tAFFECTPLUS = 364, + tOR = 365, + tAND = 366, + tAPPROXEQUAL = 367, + tNOTEQUAL = 368, + tEQUAL = 369, + tGREATEROREQUAL = 370, + tLESSOREQUAL = 371, + tCROSSPRODUCT = 372, + UNARYPREC = 373, + tMINUSMINUS = 374, + tPLUSPLUS = 375 + }; +#endif +/* Tokens. */ +#define tDOUBLE 258 +#define tSTRING 259 +#define tBIGSTR 260 +#define tEND 261 +#define tAFFECT 262 +#define tDOTS 263 +#define tPi 264 +#define tMPI_Rank 265 +#define tMPI_Size 266 +#define tExp 267 +#define tLog 268 +#define tLog10 269 +#define tSqrt 270 +#define tSin 271 +#define tAsin 272 +#define tCos 273 +#define tAcos 274 +#define tTan 275 +#define tRand 276 +#define tAtan 277 +#define tAtan2 278 +#define tSinh 279 +#define tCosh 280 +#define tTanh 281 +#define tFabs 282 +#define tFloor 283 +#define tCeil 284 +#define tFmod 285 +#define tModulo 286 +#define tHypot 287 +#define tPrintf 288 +#define tSprintf 289 +#define tStrCat 290 +#define tStrPrefix 291 +#define tStrRelative 292 +#define tBoundingBox 293 +#define tDraw 294 +#define tToday 295 +#define tPoint 296 +#define tCircle 297 +#define tEllipse 298 +#define tLine 299 +#define tSurface 300 +#define tSpline 301 +#define tVolume 302 +#define tCharacteristic 303 +#define tLength 304 +#define tParametric 305 +#define tElliptic 306 +#define tPlane 307 +#define tRuled 308 +#define tTransfinite 309 +#define tComplex 310 +#define tPhysical 311 +#define tUsing 312 +#define tBump 313 +#define tProgression 314 +#define tPlugin 315 +#define tRotate 316 +#define tTranslate 317 +#define tSymmetry 318 +#define tDilate 319 +#define tExtrude 320 +#define tDuplicata 321 +#define tLoop 322 +#define tRecombine 323 +#define tDelete 324 +#define tCoherence 325 +#define tIntersect 326 +#define tAttractor 327 +#define tLayers 328 +#define tAlias 329 +#define tAliasWithOptions 330 +#define tText2D 331 +#define tText3D 332 +#define tInterpolationScheme 333 +#define tTime 334 +#define tCombine 335 +#define tBSpline 336 +#define tBezier 337 +#define tNurbs 338 +#define tOrder 339 +#define tWith 340 +#define tBounds 341 +#define tKnots 342 +#define tColor 343 +#define tColorTable 344 +#define tFor 345 +#define tIn 346 +#define tEndFor 347 +#define tIf 348 +#define tEndIf 349 +#define tExit 350 +#define tReturn 351 +#define tCall 352 +#define tFunction 353 +#define tTrimmed 354 +#define tShow 355 +#define tHide 356 +#define tGetValue 357 +#define tGMSH_MAJOR_VERSION 358 +#define tGMSH_MINOR_VERSION 359 +#define tGMSH_PATCH_VERSION 360 +#define tAFFECTDIVIDE 361 +#define tAFFECTTIMES 362 +#define tAFFECTMINUS 363 +#define tAFFECTPLUS 364 +#define tOR 365 +#define tAND 366 +#define tAPPROXEQUAL 367 +#define tNOTEQUAL 368 +#define tEQUAL 369 +#define tGREATEROREQUAL 370 +#define tLESSOREQUAL 371 +#define tCROSSPRODUCT 372 +#define UNARYPREC 373 +#define tMINUSMINUS 374 +#define tPLUSPLUS 375 + + + + +/* Copy the first part of user declarations. */ #line 1 "Gmsh.y" -// $Id: Gmsh.tab.cpp,v 1.256 2006-02-17 14:35:05 geuzaine Exp $ +// $Id: Gmsh.tab.cpp,v 1.257 2006-02-24 22:07:06 geuzaine Exp $ // // Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle // @@ -200,8 +377,28 @@ void skip_until(char *skip, char *until); int PrintListOfDouble(char *format, List_T *list, char *buffer); int CheckViewErrorFlags(Post_View *v); + +/* Enabling traces. */ +#ifndef YYDEBUG +# define YYDEBUG 0 +#endif + +/* Enabling verbose error messages. */ +#ifdef YYERROR_VERBOSE +# undef YYERROR_VERBOSE +# define YYERROR_VERBOSE 1 +#else +# define YYERROR_VERBOSE 0 +#endif + +/* Enabling the token table. */ +#ifndef YYTOKEN_TABLE +# define YYTOKEN_TABLE 0 +#endif + +#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) #line 78 "Gmsh.y" -typedef union { +typedef union YYSTYPE { char *c; int i; unsigned int u; @@ -210,2216 +407,2730 @@ typedef union { Shape s; List_T *l; } YYSTYPE; -#include <stdio.h> - -#ifndef __cplusplus -#ifndef __STDC__ -#define const -#endif +/* Line 196 of yacc.c. */ +#line 412 "Gmsh.tab.cpp" +# define yystype YYSTYPE /* obsolescent; will be withdrawn */ +# define YYSTYPE_IS_DECLARED 1 +# define YYSTYPE_IS_TRIVIAL 1 #endif -#define YYFINAL 1178 -#define YYFLAG -32768 -#define YYNTBASE 140 - -#define YYTRANSLATE(x) ((unsigned)(x) <= 374 ? yytranslate[x] : 203) - -static const short 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, 126, 2, 136, 2, 124, 2, 2, 131, - 132, 122, 120, 137, 121, 135, 123, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 116, - 2, 118, 110, 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, - 133, 2, 134, 130, 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, 138, 2, 139, 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, 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, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 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, 43, 44, 45, 46, - 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, - 57, 58, 59, 60, 61, 62, 63, 64, 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, - 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, - 107, 108, 109, 111, 112, 113, 114, 115, 117, 119, - 125, 127, 128, 129 -}; +/* Copy the second part of user declarations. */ -#if YYDEBUG != 0 -static const short yyprhs[] = { 0, - 0, 2, 5, 6, 9, 11, 13, 15, 17, 19, - 21, 23, 25, 27, 29, 31, 33, 35, 37, 43, - 51, 58, 67, 68, 71, 74, 77, 80, 83, 85, - 89, 91, 95, 96, 97, 108, 110, 114, 115, 129, - 131, 135, 136, 152, 161, 162, 169, 171, 173, 175, - 177, 179, 181, 183, 188, 196, 206, 213, 220, 224, - 231, 238, 248, 255, 265, 271, 280, 289, 301, 308, - 318, 328, 338, 346, 355, 368, 375, 383, 391, 399, - 409, 417, 427, 445, 453, 461, 473, 482, 495, 504, - 513, 522, 535, 558, 579, 588, 597, 606, 614, 623, - 629, 641, 647, 657, 659, 661, 663, 664, 667, 674, - 681, 688, 695, 700, 707, 714, 721, 726, 733, 737, - 742, 748, 752, 756, 761, 766, 770, 778, 786, 790, - 798, 802, 805, 808, 824, 827, 834, 843, 852, 863, - 865, 868, 870, 874, 879, 881, 887, 899, 913, 914, - 922, 923, 937, 938, 954, 963, 972, 981, 994, 1007, - 1020, 1035, 1050, 1065, 1066, 1079, 1080, 1093, 1094, 1107, - 1108, 1125, 1126, 1143, 1144, 1161, 1162, 1181, 1182, 1201, - 1202, 1221, 1223, 1226, 1236, 1244, 1247, 1254, 1264, 1274, - 1283, 1293, 1302, 1311, 1318, 1323, 1326, 1329, 1331, 1335, - 1338, 1341, 1344, 1348, 1352, 1356, 1360, 1364, 1368, 1372, - 1376, 1380, 1384, 1388, 1392, 1396, 1400, 1406, 1411, 1416, - 1421, 1426, 1431, 1436, 1441, 1446, 1451, 1456, 1463, 1468, - 1473, 1478, 1483, 1488, 1493, 1500, 1507, 1514, 1519, 1524, - 1529, 1534, 1539, 1544, 1549, 1554, 1559, 1564, 1569, 1576, - 1581, 1586, 1591, 1596, 1601, 1606, 1613, 1620, 1627, 1632, - 1634, 1636, 1638, 1640, 1642, 1644, 1646, 1648, 1653, 1658, - 1661, 1667, 1671, 1678, 1683, 1691, 1698, 1700, 1703, 1706, - 1710, 1714, 1726, 1736, 1744, 1752, 1753, 1757, 1761, 1763, - 1767, 1769, 1771, 1774, 1778, 1783, 1787, 1793, 1798, 1800, - 1802, 1804, 1808, 1813, 1820, 1828, 1830, 1832, 1836, 1840, - 1850, 1858, 1860, 1866, 1870, 1877, 1879, 1883, 1885, 1887, - 1894, 1899, 1904, 1909, 1916, 1923 -}; -static const short yyrhs[] = { 141, - 0, 1, 6, 0, 0, 141, 142, 0, 144, 0, - 143, 0, 162, 0, 163, 0, 164, 0, 167, 0, - 168, 0, 169, 0, 170, 0, 173, 0, 188, 0, - 189, 0, 172, 0, 171, 0, 33, 131, 5, 132, - 6, 0, 33, 131, 5, 137, 198, 132, 6, 0, - 4, 5, 138, 145, 139, 6, 0, 4, 5, 4, - 192, 138, 145, 139, 6, 0, 0, 145, 148, 0, - 145, 152, 0, 145, 155, 0, 145, 157, 0, 145, - 158, 0, 190, 0, 146, 137, 190, 0, 190, 0, - 147, 137, 190, 0, 0, 0, 4, 149, 131, 146, - 132, 150, 138, 147, 139, 6, 0, 202, 0, 151, - 137, 202, 0, 0, 76, 131, 190, 137, 190, 137, - 190, 132, 153, 138, 151, 139, 6, 0, 202, 0, - 154, 137, 202, 0, 0, 77, 131, 190, 137, 190, - 137, 190, 137, 190, 132, 156, 138, 154, 139, 6, - 0, 78, 138, 195, 139, 138, 195, 139, 6, 0, - 0, 79, 159, 138, 147, 139, 6, 0, 7, 0, - 106, 0, 107, 0, 108, 0, 109, 0, 127, 0, - 128, 0, 4, 160, 190, 6, 0, 4, 133, 190, - 134, 160, 190, 6, 0, 4, 133, 138, 198, 139, - 134, 160, 196, 6, 0, 4, 133, 134, 7, 196, - 6, 0, 4, 133, 134, 106, 196, 6, 0, 4, - 161, 6, 0, 4, 133, 190, 134, 161, 6, 0, - 4, 135, 4, 7, 202, 6, 0, 4, 133, 190, - 134, 135, 4, 7, 202, 6, 0, 4, 135, 4, - 160, 190, 6, 0, 4, 133, 190, 134, 135, 4, - 160, 190, 6, 0, 4, 135, 4, 161, 6, 0, - 4, 133, 190, 134, 135, 4, 161, 6, 0, 4, - 135, 88, 135, 4, 7, 199, 6, 0, 4, 133, - 190, 134, 135, 88, 135, 4, 7, 199, 6, 0, - 4, 135, 89, 7, 200, 6, 0, 4, 133, 190, - 134, 135, 89, 7, 200, 6, 0, 60, 131, 4, - 132, 135, 4, 7, 190, 6, 0, 60, 131, 4, - 132, 135, 4, 7, 202, 6, 0, 41, 131, 190, - 132, 7, 192, 6, 0, 56, 41, 131, 190, 132, - 7, 196, 6, 0, 72, 41, 196, 7, 138, 190, - 137, 190, 137, 190, 139, 6, 0, 48, 49, 196, - 7, 190, 6, 0, 44, 131, 190, 132, 7, 196, - 6, 0, 46, 131, 190, 132, 7, 196, 6, 0, - 42, 131, 190, 132, 7, 196, 6, 0, 42, 131, - 190, 132, 7, 196, 52, 192, 6, 0, 43, 131, - 190, 132, 7, 196, 6, 0, 43, 131, 190, 132, - 7, 196, 52, 192, 6, 0, 50, 131, 190, 132, - 7, 138, 190, 137, 190, 137, 5, 137, 5, 137, - 5, 139, 6, 0, 81, 131, 190, 132, 7, 196, - 6, 0, 82, 131, 190, 132, 7, 196, 6, 0, - 83, 131, 190, 132, 7, 196, 87, 196, 84, 190, - 6, 0, 44, 67, 131, 190, 132, 7, 196, 6, - 0, 72, 44, 196, 7, 138, 190, 137, 190, 137, - 190, 139, 6, 0, 56, 44, 131, 190, 132, 7, - 196, 6, 0, 52, 45, 131, 190, 132, 7, 196, - 6, 0, 53, 45, 131, 190, 132, 7, 196, 6, - 0, 99, 45, 131, 190, 132, 7, 138, 190, 137, - 196, 139, 6, 0, 83, 45, 85, 86, 131, 190, - 132, 7, 194, 87, 138, 196, 137, 196, 139, 84, - 138, 190, 137, 190, 139, 6, 0, 83, 45, 131, - 190, 132, 7, 194, 87, 138, 196, 137, 196, 139, - 84, 138, 190, 137, 190, 139, 6, 0, 45, 67, - 131, 190, 132, 7, 196, 6, 0, 56, 45, 131, - 190, 132, 7, 196, 6, 0, 55, 47, 131, 190, - 132, 7, 196, 6, 0, 47, 131, 190, 132, 7, - 196, 6, 0, 56, 47, 131, 190, 132, 7, 196, - 6, 0, 62, 192, 138, 165, 139, 0, 61, 138, - 192, 137, 192, 137, 190, 139, 138, 165, 139, 0, - 63, 192, 138, 165, 139, 0, 64, 138, 192, 137, - 190, 139, 138, 165, 139, 0, 167, 0, 166, 0, - 164, 0, 0, 166, 163, 0, 166, 41, 138, 198, - 139, 6, 0, 166, 44, 138, 198, 139, 6, 0, - 166, 45, 138, 198, 139, 6, 0, 166, 47, 138, - 198, 139, 6, 0, 66, 138, 166, 139, 0, 66, - 4, 133, 190, 134, 6, 0, 74, 4, 133, 190, - 134, 6, 0, 75, 4, 133, 190, 134, 6, 0, - 69, 138, 166, 139, 0, 69, 4, 133, 190, 134, - 6, 0, 69, 4, 6, 0, 69, 4, 4, 6, - 0, 88, 199, 138, 166, 139, 0, 100, 202, 6, - 0, 101, 202, 6, 0, 100, 138, 166, 139, 0, - 101, 138, 166, 139, 0, 4, 202, 6, 0, 4, - 4, 133, 190, 134, 202, 6, 0, 4, 4, 4, - 133, 190, 134, 6, 0, 4, 190, 6, 0, 60, - 131, 4, 132, 135, 4, 6, 0, 80, 4, 6, - 0, 95, 6, 0, 38, 6, 0, 38, 138, 190, - 137, 190, 137, 190, 137, 190, 137, 190, 137, 190, - 139, 6, 0, 39, 6, 0, 90, 131, 190, 8, - 190, 132, 0, 90, 131, 190, 8, 190, 8, 190, - 132, 0, 90, 4, 91, 138, 190, 8, 190, 139, - 0, 90, 4, 91, 138, 190, 8, 190, 8, 190, - 139, 0, 92, 0, 98, 4, 0, 96, 0, 97, - 4, 6, 0, 93, 131, 190, 132, 0, 94, 0, - 65, 192, 138, 166, 139, 0, 65, 138, 192, 137, - 192, 137, 190, 139, 138, 166, 139, 0, 65, 138, - 192, 137, 192, 137, 192, 137, 190, 139, 138, 166, - 139, 0, 0, 65, 192, 138, 166, 174, 186, 139, - 0, 0, 65, 138, 192, 137, 192, 137, 190, 139, - 138, 166, 175, 186, 139, 0, 0, 65, 138, 192, - 137, 192, 137, 192, 137, 190, 139, 138, 166, 176, - 186, 139, 0, 65, 41, 138, 190, 137, 192, 139, - 6, 0, 65, 44, 138, 190, 137, 192, 139, 6, - 0, 65, 45, 138, 190, 137, 192, 139, 6, 0, - 65, 41, 138, 190, 137, 192, 137, 192, 137, 190, - 139, 6, 0, 65, 44, 138, 190, 137, 192, 137, - 192, 137, 190, 139, 6, 0, 65, 45, 138, 190, - 137, 192, 137, 192, 137, 190, 139, 6, 0, 65, - 41, 138, 190, 137, 192, 137, 192, 137, 192, 137, - 190, 139, 6, 0, 65, 44, 138, 190, 137, 192, - 137, 192, 137, 192, 137, 190, 139, 6, 0, 65, - 45, 138, 190, 137, 192, 137, 192, 137, 192, 137, - 190, 139, 6, 0, 0, 65, 41, 138, 190, 137, - 192, 139, 177, 138, 186, 139, 6, 0, 0, 65, - 44, 138, 190, 137, 192, 139, 178, 138, 186, 139, - 6, 0, 0, 65, 45, 138, 190, 137, 192, 139, - 179, 138, 186, 139, 6, 0, 0, 65, 41, 138, - 190, 137, 192, 137, 192, 137, 190, 139, 180, 138, - 186, 139, 6, 0, 0, 65, 44, 138, 190, 137, - 192, 137, 192, 137, 190, 139, 181, 138, 186, 139, - 6, 0, 0, 65, 45, 138, 190, 137, 192, 137, - 192, 137, 190, 139, 182, 138, 186, 139, 6, 0, - 0, 65, 41, 138, 190, 137, 192, 137, 192, 137, - 192, 137, 190, 139, 183, 138, 186, 139, 6, 0, - 0, 65, 44, 138, 190, 137, 192, 137, 192, 137, - 192, 137, 190, 139, 184, 138, 186, 139, 6, 0, - 0, 65, 45, 138, 190, 137, 192, 137, 192, 137, - 192, 137, 190, 139, 185, 138, 186, 139, 6, 0, - 187, 0, 186, 187, 0, 73, 138, 196, 137, 196, - 137, 196, 139, 6, 0, 73, 138, 196, 137, 196, - 139, 6, 0, 68, 6, 0, 54, 44, 196, 7, - 190, 6, 0, 54, 44, 196, 7, 190, 57, 59, - 190, 6, 0, 54, 44, 196, 7, 190, 57, 58, - 190, 6, 0, 54, 45, 138, 190, 139, 7, 196, - 6, 0, 54, 45, 138, 190, 139, 7, 196, 4, - 6, 0, 51, 45, 138, 190, 139, 7, 196, 6, - 0, 54, 47, 138, 190, 139, 7, 196, 6, 0, - 68, 45, 196, 7, 190, 6, 0, 68, 45, 196, - 6, 0, 70, 6, 0, 71, 6, 0, 191, 0, - 131, 190, 132, 0, 121, 190, 0, 120, 190, 0, - 126, 190, 0, 190, 121, 190, 0, 190, 120, 190, - 0, 190, 122, 190, 0, 190, 123, 190, 0, 190, - 124, 190, 0, 190, 130, 190, 0, 190, 116, 190, - 0, 190, 118, 190, 0, 190, 117, 190, 0, 190, - 119, 190, 0, 190, 113, 190, 0, 190, 114, 190, - 0, 190, 112, 190, 0, 190, 111, 190, 0, 190, - 110, 190, 8, 190, 0, 12, 131, 190, 132, 0, - 13, 131, 190, 132, 0, 14, 131, 190, 132, 0, - 15, 131, 190, 132, 0, 16, 131, 190, 132, 0, - 17, 131, 190, 132, 0, 18, 131, 190, 132, 0, - 19, 131, 190, 132, 0, 20, 131, 190, 132, 0, - 22, 131, 190, 132, 0, 23, 131, 190, 137, 190, - 132, 0, 24, 131, 190, 132, 0, 25, 131, 190, - 132, 0, 26, 131, 190, 132, 0, 27, 131, 190, - 132, 0, 28, 131, 190, 132, 0, 29, 131, 190, - 132, 0, 30, 131, 190, 137, 190, 132, 0, 31, - 131, 190, 137, 190, 132, 0, 32, 131, 190, 137, - 190, 132, 0, 21, 131, 190, 132, 0, 12, 133, - 190, 134, 0, 13, 133, 190, 134, 0, 14, 133, - 190, 134, 0, 15, 133, 190, 134, 0, 16, 133, - 190, 134, 0, 17, 133, 190, 134, 0, 18, 133, - 190, 134, 0, 19, 133, 190, 134, 0, 20, 133, - 190, 134, 0, 22, 133, 190, 134, 0, 23, 133, - 190, 137, 190, 134, 0, 24, 133, 190, 134, 0, - 25, 133, 190, 134, 0, 26, 133, 190, 134, 0, - 27, 133, 190, 134, 0, 28, 133, 190, 134, 0, - 29, 133, 190, 134, 0, 30, 133, 190, 137, 190, - 134, 0, 31, 133, 190, 137, 190, 134, 0, 32, - 133, 190, 137, 190, 134, 0, 21, 133, 190, 134, - 0, 3, 0, 9, 0, 10, 0, 11, 0, 103, - 0, 104, 0, 105, 0, 4, 0, 4, 133, 190, - 134, 0, 136, 4, 133, 134, 0, 4, 161, 0, - 4, 133, 190, 134, 161, 0, 4, 135, 4, 0, - 4, 133, 190, 134, 135, 4, 0, 4, 135, 4, - 161, 0, 4, 133, 190, 134, 135, 4, 161, 0, - 102, 131, 5, 137, 190, 132, 0, 193, 0, 121, - 192, 0, 120, 192, 0, 192, 121, 192, 0, 192, - 120, 192, 0, 138, 190, 137, 190, 137, 190, 137, - 190, 137, 190, 139, 0, 138, 190, 137, 190, 137, - 190, 137, 190, 139, 0, 138, 190, 137, 190, 137, - 190, 139, 0, 131, 190, 137, 190, 137, 190, 132, - 0, 0, 138, 195, 139, 0, 131, 195, 132, 0, - 196, 0, 195, 137, 196, 0, 190, 0, 197, 0, - 138, 139, 0, 138, 198, 139, 0, 121, 138, 198, - 139, 0, 190, 8, 190, 0, 190, 8, 190, 8, - 190, 0, 41, 138, 190, 139, 0, 164, 0, 167, - 0, 173, 0, 4, 133, 134, 0, 121, 4, 133, - 134, 0, 4, 133, 138, 198, 139, 134, 0, 121, - 4, 133, 138, 198, 139, 134, 0, 190, 0, 197, - 0, 198, 137, 190, 0, 198, 137, 197, 0, 138, - 190, 137, 190, 137, 190, 137, 190, 139, 0, 138, - 190, 137, 190, 137, 190, 139, 0, 4, 0, 4, - 135, 88, 135, 4, 0, 138, 201, 139, 0, 4, - 133, 190, 134, 135, 89, 0, 199, 0, 201, 137, - 199, 0, 5, 0, 40, 0, 35, 131, 202, 137, - 202, 132, 0, 36, 131, 202, 132, 0, 37, 131, - 202, 132, 0, 34, 131, 202, 132, 0, 34, 131, - 202, 137, 198, 132, 0, 34, 131, 4, 135, 4, - 132, 0, 34, 131, 4, 133, 190, 134, 135, 4, - 132, 0 -}; +/* Line 219 of yacc.c. */ +#line 424 "Gmsh.tab.cpp" +#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) && (defined (__STDC__) || defined (__cplusplus)) +# include <stddef.h> /* INFRINGES ON USER NAME SPACE */ +# define YYSIZE_T size_t +#endif +#if ! defined (YYSIZE_T) +# define YYSIZE_T unsigned int #endif -#if YYDEBUG != 0 -static const short yyrline[] = { 0, - 143, 145, 150, 152, 155, 157, 158, 159, 160, 161, - 162, 163, 164, 165, 166, 167, 168, 169, 172, 178, - 195, 203, 212, 220, 221, 222, 223, 224, 227, 230, - 234, 237, 241, 432, 450, 460, 466, 473, 481, 487, - 493, 500, 508, 514, 522, 527, 534, 536, 537, 538, - 539, 542, 544, 547, 582, 621, 675, 692, 710, 721, - 740, 754, 771, 797, 824, 838, 855, 869, 886, 906, - 929, 939, 954, 974, 990, 1009, 1028, 1046, 1064, 1082, - 1108, 1126, 1152, 1172, 1196, 1220, 1246, 1263, 1281, 1300, - 1319, 1358, 1383, 1402, 1421, 1437, 1457, 1474, 1491, 1511, - 1517, 1522, 1527, 1534, 1536, 1537, 1540, 1545, 1549, 1565, - 1581, 1597, 1617, 1632, 1638, 1644, 1655, 1665, 1675, 1689, - 1707, 1721, 1730, 1736, 1747, 1760, 1805, 1820, 1831, 1850, - 1860, 1882, 1886, 1891, 1896, 1907, 1924, 1940, 1966, 1993, - 2025, 2032, 2037, 2043, 2047, 2055, 2064, 2072, 2080, 2085, - 2093, 2098, 2106, 2111, 2121, 2128, 2135, 2142, 2149, 2156, - 2163, 2170, 2177, 2184, 2189, 2196, 2201, 2208, 2213, 2220, - 2225, 2232, 2237, 2244, 2249, 2256, 2261, 2268, 2273, 2280, - 2285, 2295, 2299, 2304, 2331, 2355, 2363, 2382, 2400, 2418, - 2447, 2482, 2509, 2536, 2550, 2568, 2573, 2582, 2584, 2585, - 2586, 2587, 2588, 2589, 2590, 2591, 2598, 2599, 2600, 2601, - 2602, 2603, 2604, 2605, 2606, 2607, 2608, 2609, 2610, 2611, - 2612, 2613, 2614, 2615, 2616, 2617, 2618, 2619, 2620, 2621, - 2622, 2623, 2624, 2625, 2626, 2627, 2628, 2629, 2631, 2632, - 2633, 2634, 2635, 2636, 2637, 2638, 2639, 2640, 2641, 2642, - 2643, 2644, 2645, 2646, 2647, 2648, 2649, 2650, 2651, 2656, - 2661, 2662, 2663, 2664, 2665, 2666, 2670, 2683, 2703, 2717, - 2730, 2753, 2771, 2789, 2807, 2825, 2832, 2837, 2841, 2845, - 2849, 2855, 2860, 2864, 2868, 2874, 2878, 2882, 2888, 2894, - 2901, 2907, 2911, 2916, 2920, 2931, 2938, 2949, 2969, 2979, - 2989, 2999, 3016, 3035, 3059, 3087, 3093, 3097, 3101, 3113, - 3118, 3130, 3137, 3158, 3163, 3177, 3183, 3189, 3194, 3202, - 3210, 3224, 3238, 3242, 3261, 3283 -}; +#ifndef YY_ +# if YYENABLE_NLS +# if ENABLE_NLS +# include <libintl.h> /* INFRINGES ON USER NAME SPACE */ +# define YY_(msgid) dgettext ("bison-runtime", msgid) +# endif +# endif +# ifndef YY_ +# define YY_(msgid) msgid +# endif #endif +#if ! defined (yyoverflow) || YYERROR_VERBOSE + +/* The parser invokes alloca or malloc; define the necessary symbols. */ + +# ifdef YYSTACK_USE_ALLOCA +# if YYSTACK_USE_ALLOCA +# ifdef __GNUC__ +# define YYSTACK_ALLOC __builtin_alloca +# else +# define YYSTACK_ALLOC alloca +# if defined (__STDC__) || defined (__cplusplus) +# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ +# define YYINCLUDED_STDLIB_H +# endif +# endif +# endif +# endif + +# ifdef YYSTACK_ALLOC + /* Pacify GCC's `empty if-body' warning. */ +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (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 2005 */ +# endif +# else +# define YYSTACK_ALLOC YYMALLOC +# define YYSTACK_FREE YYFREE +# ifndef YYSTACK_ALLOC_MAXIMUM +# define YYSTACK_ALLOC_MAXIMUM ((YYSIZE_T) -1) +# endif +# ifdef __cplusplus +extern "C" { +# endif +# ifndef YYMALLOC +# define YYMALLOC malloc +# if (! defined (malloc) && ! defined (YYINCLUDED_STDLIB_H) \ + && (defined (__STDC__) || defined (__cplusplus))) +void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ +# endif +# endif +# ifndef YYFREE +# define YYFREE free +# if (! defined (free) && ! defined (YYINCLUDED_STDLIB_H) \ + && (defined (__STDC__) || defined (__cplusplus))) +void free (void *); /* INFRINGES ON USER NAME SPACE */ +# endif +# endif +# ifdef __cplusplus +} +# endif +# endif +#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */ + + +#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 int yyss; + YYSTYPE yyvs; + }; + +/* The size of the maximum gap between one aligned stack and the next. */ +# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) + +/* The size of an array large to enough to hold all stacks, each with + N elements. */ +# define YYSTACK_BYTES(N) \ + ((N) * (sizeof (short int) + 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__ +# define YYCOPY(To, From, Count) \ + __builtin_memcpy (To, From, (Count) * sizeof (*(From))) +# else +# define YYCOPY(To, From, Count) \ + do \ + { \ + YYSIZE_T yyi; \ + for (yyi = 0; yyi < (Count); yyi++) \ + (To)[yyi] = (From)[yyi]; \ + } \ + while (0) +# endif +# endif + +/* Relocate STACK from its old location to the new one. The + local variables YYSIZE and YYSTACKSIZE give the old and new number of + elements in the stack, and YYPTR gives the new location of the + stack. Advance YYPTR to a properly aligned location for the next + stack. */ +# define YYSTACK_RELOCATE(Stack) \ + do \ + { \ + YYSIZE_T yynewbytes; \ + YYCOPY (&yyptr->Stack, Stack, yysize); \ + Stack = &yyptr->Stack; \ + yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ + yyptr += yynewbytes / sizeof (*yyptr); \ + } \ + while (0) -#if YYDEBUG != 0 || defined (YYERROR_VERBOSE) - -static const char * const yytname[] = { "$","error","$undefined.","tDOUBLE", -"tSTRING","tBIGSTR","tEND","tAFFECT","tDOTS","tPi","tMPI_Rank","tMPI_Size","tExp", -"tLog","tLog10","tSqrt","tSin","tAsin","tCos","tAcos","tTan","tRand","tAtan", -"tAtan2","tSinh","tCosh","tTanh","tFabs","tFloor","tCeil","tFmod","tModulo", -"tHypot","tPrintf","tSprintf","tStrCat","tStrPrefix","tStrRelative","tBoundingBox", -"tDraw","tToday","tPoint","tCircle","tEllipse","tLine","tSurface","tSpline", -"tVolume","tCharacteristic","tLength","tParametric","tElliptic","tPlane","tRuled", -"tTransfinite","tComplex","tPhysical","tUsing","tBump","tProgression","tPlugin", -"tRotate","tTranslate","tSymmetry","tDilate","tExtrude","tDuplicata","tLoop", -"tRecombine","tDelete","tCoherence","tIntersect","tAttractor","tLayers","tAlias", -"tAliasWithOptions","tText2D","tText3D","tInterpolationScheme","tTime","tCombine", -"tBSpline","tBezier","tNurbs","tOrder","tWith","tBounds","tKnots","tColor","tColorTable", -"tFor","tIn","tEndFor","tIf","tEndIf","tExit","tReturn","tCall","tFunction", -"tTrimmed","tShow","tHide","tGetValue","tGMSH_MAJOR_VERSION","tGMSH_MINOR_VERSION", -"tGMSH_PATCH_VERSION","tAFFECTPLUS","tAFFECTMINUS","tAFFECTTIMES","tAFFECTDIVIDE", -"'?'","tOR","tAND","tEQUAL","tNOTEQUAL","tAPPROXEQUAL","'<'","tLESSOREQUAL", -"'>'","tGREATEROREQUAL","'+'","'-'","'*'","'/'","'%'","tCROSSPRODUCT","'!'", -"tPLUSPLUS","tMINUSMINUS","UNARYPREC","'^'","'('","')'","'['","']'","'.'","'#'", -"','","'{'","'}'","All","GeoFormatItems","GeoFormatItem","Printf","View","Views", -"ElementCoords","ElementValues","Element","@1","@2","Text2DValues","Text2D", -"@3","Text3DValues","Text3D","@4","InterpolationMatrix","Time","@5","NumericAffectation", -"NumericIncrement","Affectation","Shape","Transform","MultipleShape","ListOfShapes", -"Duplicata","Delete","Colorify","Visibility","Command","Loop","Extrude","@6", -"@7","@8","@9","@10","@11","@12","@13","@14","@15","@16","@17","ExtrudeParameters", -"ExtrudeParameter","Transfinite","Coherence","FExpr","FExpr_Single","VExpr", -"VExpr_Single","ListOfListOfDouble","RecursiveListOfListOfDouble","ListOfDouble", -"FExpr_Multi","RecursiveListOfDouble","ColorExpr","ListOfColor","RecursiveListOfColor", -"StringExpr", NULL -}; #endif -static const short yyr1[] = { 0, - 140, 140, 141, 141, 142, 142, 142, 142, 142, 142, - 142, 142, 142, 142, 142, 142, 142, 142, 143, 143, - 144, 144, 145, 145, 145, 145, 145, 145, 146, 146, - 147, 147, 149, 150, 148, 151, 151, 153, 152, 154, - 154, 156, 155, 157, 159, 158, 160, 160, 160, 160, - 160, 161, 161, 162, 162, 162, 162, 162, 162, 162, - 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, - 162, 162, 163, 163, 163, 163, 163, 163, 163, 163, - 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, - 163, 163, 163, 163, 163, 163, 163, 163, 163, 164, - 164, 164, 164, 165, 165, 165, 166, 166, 166, 166, - 166, 166, 167, 167, 167, 167, 168, 168, 168, 168, - 169, 170, 170, 170, 170, 171, 171, 171, 171, 171, - 171, 171, 171, 171, 171, 172, 172, 172, 172, 172, - 172, 172, 172, 172, 172, 173, 173, 173, 174, 173, - 175, 173, 176, 173, 173, 173, 173, 173, 173, 173, - 173, 173, 173, 177, 173, 178, 173, 179, 173, 180, - 173, 181, 173, 182, 173, 183, 173, 184, 173, 185, - 173, 186, 186, 187, 187, 187, 188, 188, 188, 188, - 188, 188, 188, 188, 188, 189, 189, 190, 190, 190, - 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, - 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, - 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, - 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, - 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, - 190, 190, 190, 190, 190, 190, 190, 190, 190, 191, - 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, - 191, 191, 191, 191, 191, 191, 192, 192, 192, 192, - 192, 193, 193, 193, 193, 194, 194, 194, 195, 195, - 196, 196, 196, 196, 196, 197, 197, 197, 197, 197, - 197, 197, 197, 197, 197, 198, 198, 198, 198, 199, - 199, 199, 199, 200, 200, 201, 201, 202, 202, 202, - 202, 202, 202, 202, 202, 202 -}; +#if defined (__STDC__) || defined (__cplusplus) + typedef signed char yysigned_char; +#else + typedef short int yysigned_char; +#endif -static const short yyr2[] = { 0, - 1, 2, 0, 2, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 5, 7, - 6, 8, 0, 2, 2, 2, 2, 2, 1, 3, - 1, 3, 0, 0, 10, 1, 3, 0, 13, 1, - 3, 0, 15, 8, 0, 6, 1, 1, 1, 1, - 1, 1, 1, 4, 7, 9, 6, 6, 3, 6, - 6, 9, 6, 9, 5, 8, 8, 11, 6, 9, - 9, 9, 7, 8, 12, 6, 7, 7, 7, 9, - 7, 9, 17, 7, 7, 11, 8, 12, 8, 8, - 8, 12, 22, 20, 8, 8, 8, 7, 8, 5, - 11, 5, 9, 1, 1, 1, 0, 2, 6, 6, - 6, 6, 4, 6, 6, 6, 4, 6, 3, 4, - 5, 3, 3, 4, 4, 3, 7, 7, 3, 7, - 3, 2, 2, 15, 2, 6, 8, 8, 10, 1, - 2, 1, 3, 4, 1, 5, 11, 13, 0, 7, - 0, 13, 0, 15, 8, 8, 8, 12, 12, 12, - 14, 14, 14, 0, 12, 0, 12, 0, 12, 0, - 16, 0, 16, 0, 16, 0, 18, 0, 18, 0, - 18, 1, 2, 9, 7, 2, 6, 9, 9, 8, - 9, 8, 8, 6, 4, 2, 2, 1, 3, 2, - 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 5, 4, 4, 4, - 4, 4, 4, 4, 4, 4, 4, 6, 4, 4, - 4, 4, 4, 4, 6, 6, 6, 4, 4, 4, - 4, 4, 4, 4, 4, 4, 4, 4, 6, 4, - 4, 4, 4, 4, 4, 6, 6, 6, 4, 1, - 1, 1, 1, 1, 1, 1, 1, 4, 4, 2, - 5, 3, 6, 4, 7, 6, 1, 2, 2, 3, - 3, 11, 9, 7, 7, 0, 3, 3, 1, 3, - 1, 1, 2, 3, 4, 3, 5, 4, 1, 1, - 1, 3, 4, 6, 7, 1, 1, 3, 3, 9, - 7, 1, 5, 3, 6, 1, 3, 1, 1, 6, - 4, 4, 4, 6, 6, 9 +/* YYFINAL -- State number of the termination state. */ +#define YYFINAL 5 +/* YYLAST -- Last index in YYTABLE. */ +#define YYLAST 6005 + +/* YYNTOKENS -- Number of terminals. */ +#define YYNTOKENS 140 +/* YYNNTS -- Number of nonterminals. */ +#define YYNNTS 64 +/* YYNRULES -- Number of rules. */ +#define YYNRULES 327 +/* YYNRULES -- Number of states. */ +#define YYNSTATES 1178 + +/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ +#define YYUNDEFTOK 2 +#define YYMAXUTOK 375 + +#define YYTRANSLATE(YYX) \ + ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) + +/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ +static const unsigned char 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, 126, 2, 136, 2, 124, 2, 2, + 131, 132, 122, 120, 137, 121, 135, 123, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 116, 2, 117, 110, 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, 133, 2, 134, 130, 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, 138, 2, 139, 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, 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, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 1, 2, 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, 43, 44, + 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, + 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, + 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, 97, 98, 99, 100, 101, 102, 103, 104, + 105, 106, 107, 108, 109, 111, 112, 113, 114, 115, + 118, 119, 125, 127, 128, 129 }; -static const short yydefact[] = { 0, - 0, 1, 2, 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, 140, 0, 145, 0, 142, 0, 0, 0, - 0, 0, 4, 6, 5, 7, 8, 9, 10, 11, - 12, 13, 18, 17, 14, 15, 16, 260, 267, 318, - 47, 261, 262, 263, 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, 319, - 0, 264, 265, 266, 48, 49, 50, 51, 0, 0, - 0, 52, 53, 0, 0, 0, 0, 0, 0, 0, - 198, 0, 0, 133, 0, 135, 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, 277, 0, 0, 0, 0, 0, - 0, 0, 0, 107, 0, 0, 107, 196, 197, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 312, 0, - 0, 0, 0, 0, 132, 0, 141, 0, 318, 107, - 0, 107, 0, 0, 0, 0, 270, 0, 23, 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, 267, 201, 200, 202, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, - 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 126, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 267, 0, 0, - 0, 299, 300, 301, 291, 0, 292, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 279, 278, 0, 0, 0, 0, 107, 107, 0, - 0, 0, 0, 0, 0, 0, 0, 107, 0, 0, - 0, 0, 119, 0, 0, 0, 0, 0, 0, 131, - 0, 0, 0, 0, 0, 0, 0, 107, 0, 0, - 0, 143, 0, 0, 122, 0, 123, 0, 0, 272, - 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, 199, 0, 0, 0, 306, 307, 0, 0, 47, - 0, 0, 0, 0, 0, 54, 0, 216, 215, 213, - 214, 209, 211, 210, 212, 204, 203, 205, 206, 207, - 208, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 267, 0, 293, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 281, 280, 106, 0, - 105, 104, 0, 0, 0, 0, 0, 0, 0, 149, - 0, 0, 0, 0, 0, 113, 108, 195, 0, 120, - 0, 117, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 144, 0, 124, 125, - 0, 268, 274, 23, 33, 0, 0, 0, 45, 0, - 24, 25, 26, 27, 28, 218, 239, 219, 240, 220, - 241, 221, 242, 222, 243, 223, 244, 224, 245, 225, - 246, 226, 247, 238, 259, 227, 248, 0, 0, 229, - 250, 230, 251, 231, 252, 232, 253, 233, 254, 234, - 255, 0, 0, 0, 0, 0, 0, 0, 0, 323, - 0, 0, 321, 322, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 65, 0, 0, 0, 0, - 269, 0, 19, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 302, 0, 0, 0, 0, 294, 296, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 100, 102, 0, - 0, 0, 0, 0, 146, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 121, 0, 0, 0, 0, 0, - 271, 0, 0, 0, 0, 0, 0, 0, 21, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 268, 57, 58, 308, 309, 0, 0, 0, - 0, 0, 60, 61, 63, 0, 0, 316, 0, 69, - 217, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 298, 303, 0, 295, 0, 76, 0, 0, - 0, 0, 187, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 182, 114, 0, 0, 0, 0, 194, - 118, 0, 0, 115, 116, 0, 0, 0, 286, 0, - 313, 0, 0, 0, 136, 0, 128, 273, 127, 0, - 0, 0, 0, 0, 289, 0, 228, 249, 235, 256, - 236, 257, 237, 258, 0, 325, 324, 320, 276, 0, - 47, 0, 0, 0, 0, 55, 0, 0, 0, 314, - 20, 0, 73, 79, 0, 81, 0, 0, 77, 0, - 78, 98, 0, 0, 297, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 130, 0, - 0, 0, 0, 107, 0, 164, 0, 166, 0, 168, - 0, 0, 186, 0, 150, 183, 0, 0, 0, 0, - 0, 0, 84, 85, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 275, 22, 0, 29, 0, 0, 0, - 0, 0, 31, 0, 0, 0, 0, 66, 0, 0, - 67, 0, 317, 0, 0, 0, 87, 95, 304, 0, - 0, 192, 90, 91, 0, 0, 0, 190, 193, 97, - 74, 89, 96, 99, 0, 0, 0, 285, 0, 284, - 0, 0, 155, 0, 0, 156, 0, 0, 157, 0, - 0, 0, 0, 109, 110, 111, 112, 0, 0, 286, - 0, 0, 0, 0, 0, 311, 0, 138, 137, 0, - 34, 0, 0, 0, 290, 0, 0, 0, 0, 56, - 62, 64, 0, 70, 0, 0, 80, 82, 305, 0, - 189, 188, 191, 71, 72, 107, 0, 103, 0, 0, - 0, 0, 0, 0, 107, 0, 0, 0, 0, 0, - 288, 287, 0, 0, 0, 0, 0, 0, 30, 0, - 0, 0, 32, 46, 326, 0, 315, 0, 0, 0, - 0, 283, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 151, 0, 0, 0, 0, 0, 0, 0, 310, - 139, 0, 0, 0, 0, 0, 68, 0, 0, 101, - 0, 170, 0, 0, 172, 0, 0, 174, 0, 0, - 147, 0, 107, 0, 0, 0, 0, 0, 0, 86, - 0, 0, 38, 0, 44, 0, 0, 282, 158, 0, - 0, 165, 159, 0, 0, 167, 160, 0, 0, 169, - 0, 153, 0, 185, 75, 88, 0, 0, 92, 0, - 0, 0, 0, 0, 0, 176, 0, 178, 0, 180, - 152, 148, 0, 0, 0, 0, 35, 0, 42, 0, - 0, 0, 161, 0, 0, 162, 0, 0, 163, 0, - 0, 184, 0, 0, 0, 36, 0, 134, 0, 0, - 0, 0, 0, 0, 0, 154, 0, 0, 0, 0, - 0, 0, 171, 0, 173, 0, 175, 0, 0, 0, - 37, 39, 0, 40, 83, 0, 0, 0, 0, 0, - 0, 0, 177, 179, 181, 0, 0, 41, 43, 0, - 0, 0, 94, 0, 93, 0, 0, 0 +#if YYDEBUG +/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in + YYRHS. */ +static const unsigned short int yyprhs[] = +{ + 0, 0, 3, 5, 8, 9, 12, 14, 16, 18, + 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, + 40, 46, 54, 61, 70, 71, 74, 77, 80, 83, + 86, 88, 92, 94, 98, 99, 100, 111, 113, 117, + 118, 132, 134, 138, 139, 155, 164, 165, 172, 174, + 176, 178, 180, 182, 184, 186, 191, 199, 209, 216, + 223, 227, 234, 241, 251, 258, 268, 274, 283, 292, + 304, 311, 321, 331, 341, 349, 358, 371, 378, 386, + 394, 402, 412, 420, 430, 448, 456, 464, 476, 485, + 498, 507, 516, 525, 538, 561, 582, 591, 600, 609, + 617, 626, 632, 644, 650, 660, 662, 664, 666, 667, + 670, 677, 684, 691, 698, 703, 710, 717, 724, 729, + 736, 740, 745, 751, 755, 759, 764, 769, 773, 781, + 789, 793, 801, 805, 808, 811, 827, 830, 837, 846, + 855, 866, 868, 871, 873, 877, 882, 884, 890, 902, + 916, 917, 925, 926, 940, 941, 957, 966, 975, 984, + 997, 1010, 1023, 1038, 1053, 1068, 1069, 1082, 1083, 1096, + 1097, 1110, 1111, 1128, 1129, 1146, 1147, 1164, 1165, 1184, + 1185, 1204, 1205, 1224, 1226, 1229, 1239, 1247, 1250, 1257, + 1267, 1277, 1286, 1296, 1305, 1314, 1321, 1326, 1329, 1332, + 1334, 1338, 1341, 1344, 1347, 1351, 1355, 1359, 1363, 1367, + 1371, 1375, 1379, 1383, 1387, 1391, 1395, 1399, 1403, 1409, + 1414, 1419, 1424, 1429, 1434, 1439, 1444, 1449, 1454, 1459, + 1466, 1471, 1476, 1481, 1486, 1491, 1496, 1503, 1510, 1517, + 1522, 1527, 1532, 1537, 1542, 1547, 1552, 1557, 1562, 1567, + 1572, 1579, 1584, 1589, 1594, 1599, 1604, 1609, 1616, 1623, + 1630, 1635, 1637, 1639, 1641, 1643, 1645, 1647, 1649, 1651, + 1656, 1661, 1664, 1670, 1674, 1681, 1686, 1694, 1701, 1703, + 1706, 1709, 1713, 1717, 1729, 1739, 1747, 1755, 1756, 1760, + 1764, 1766, 1770, 1772, 1774, 1777, 1781, 1786, 1790, 1796, + 1801, 1803, 1805, 1807, 1811, 1816, 1823, 1831, 1833, 1835, + 1839, 1843, 1853, 1861, 1863, 1869, 1873, 1880, 1882, 1886, + 1888, 1890, 1897, 1902, 1907, 1912, 1919, 1926 }; -static const short yydefgoto[] = { 1176, - 2, 53, 54, 55, 362, 876, 882, 531, 674, 998, - 1125, 532, 1091, 1153, 533, 1127, 534, 535, 678, 118, - 197, 56, 497, 292, 480, 481, 293, 60, 61, 62, - 63, 64, 294, 646, 1052, 1103, 924, 927, 930, 1070, - 1074, 1078, 1114, 1117, 1120, 753, 754, 66, 67, 295, - 121, 312, 155, 868, 784, 785, 297, 418, 181, 600, - 709, 122 +/* YYRHS -- A `-1'-separated list of the rules' RHS. */ +static const short int yyrhs[] = +{ + 141, 0, -1, 142, -1, 1, 6, -1, -1, 142, + 143, -1, 145, -1, 144, -1, 163, -1, 164, -1, + 165, -1, 168, -1, 169, -1, 170, -1, 171, -1, + 174, -1, 189, -1, 190, -1, 173, -1, 172, -1, + 33, 131, 5, 132, 6, -1, 33, 131, 5, 137, + 199, 132, 6, -1, 4, 5, 138, 146, 139, 6, + -1, 4, 5, 4, 193, 138, 146, 139, 6, -1, + -1, 146, 149, -1, 146, 153, -1, 146, 156, -1, + 146, 158, -1, 146, 159, -1, 191, -1, 147, 137, + 191, -1, 191, -1, 148, 137, 191, -1, -1, -1, + 4, 150, 131, 147, 132, 151, 138, 148, 139, 6, + -1, 203, -1, 152, 137, 203, -1, -1, 76, 131, + 191, 137, 191, 137, 191, 132, 154, 138, 152, 139, + 6, -1, 203, -1, 155, 137, 203, -1, -1, 77, + 131, 191, 137, 191, 137, 191, 137, 191, 132, 157, + 138, 155, 139, 6, -1, 78, 138, 196, 139, 138, + 196, 139, 6, -1, -1, 79, 160, 138, 148, 139, + 6, -1, 7, -1, 109, -1, 108, -1, 107, -1, + 106, -1, 129, -1, 128, -1, 4, 161, 191, 6, + -1, 4, 133, 191, 134, 161, 191, 6, -1, 4, + 133, 138, 199, 139, 134, 161, 197, 6, -1, 4, + 133, 134, 7, 197, 6, -1, 4, 133, 134, 109, + 197, 6, -1, 4, 162, 6, -1, 4, 133, 191, + 134, 162, 6, -1, 4, 135, 4, 7, 203, 6, + -1, 4, 133, 191, 134, 135, 4, 7, 203, 6, + -1, 4, 135, 4, 161, 191, 6, -1, 4, 133, + 191, 134, 135, 4, 161, 191, 6, -1, 4, 135, + 4, 162, 6, -1, 4, 133, 191, 134, 135, 4, + 162, 6, -1, 4, 135, 88, 135, 4, 7, 200, + 6, -1, 4, 133, 191, 134, 135, 88, 135, 4, + 7, 200, 6, -1, 4, 135, 89, 7, 201, 6, + -1, 4, 133, 191, 134, 135, 89, 7, 201, 6, + -1, 60, 131, 4, 132, 135, 4, 7, 191, 6, + -1, 60, 131, 4, 132, 135, 4, 7, 203, 6, + -1, 41, 131, 191, 132, 7, 193, 6, -1, 56, + 41, 131, 191, 132, 7, 197, 6, -1, 72, 41, + 197, 7, 138, 191, 137, 191, 137, 191, 139, 6, + -1, 48, 49, 197, 7, 191, 6, -1, 44, 131, + 191, 132, 7, 197, 6, -1, 46, 131, 191, 132, + 7, 197, 6, -1, 42, 131, 191, 132, 7, 197, + 6, -1, 42, 131, 191, 132, 7, 197, 52, 193, + 6, -1, 43, 131, 191, 132, 7, 197, 6, -1, + 43, 131, 191, 132, 7, 197, 52, 193, 6, -1, + 50, 131, 191, 132, 7, 138, 191, 137, 191, 137, + 5, 137, 5, 137, 5, 139, 6, -1, 81, 131, + 191, 132, 7, 197, 6, -1, 82, 131, 191, 132, + 7, 197, 6, -1, 83, 131, 191, 132, 7, 197, + 87, 197, 84, 191, 6, -1, 44, 67, 131, 191, + 132, 7, 197, 6, -1, 72, 44, 197, 7, 138, + 191, 137, 191, 137, 191, 139, 6, -1, 56, 44, + 131, 191, 132, 7, 197, 6, -1, 52, 45, 131, + 191, 132, 7, 197, 6, -1, 53, 45, 131, 191, + 132, 7, 197, 6, -1, 99, 45, 131, 191, 132, + 7, 138, 191, 137, 197, 139, 6, -1, 83, 45, + 85, 86, 131, 191, 132, 7, 195, 87, 138, 197, + 137, 197, 139, 84, 138, 191, 137, 191, 139, 6, + -1, 83, 45, 131, 191, 132, 7, 195, 87, 138, + 197, 137, 197, 139, 84, 138, 191, 137, 191, 139, + 6, -1, 45, 67, 131, 191, 132, 7, 197, 6, + -1, 56, 45, 131, 191, 132, 7, 197, 6, -1, + 55, 47, 131, 191, 132, 7, 197, 6, -1, 47, + 131, 191, 132, 7, 197, 6, -1, 56, 47, 131, + 191, 132, 7, 197, 6, -1, 62, 193, 138, 166, + 139, -1, 61, 138, 193, 137, 193, 137, 191, 139, + 138, 166, 139, -1, 63, 193, 138, 166, 139, -1, + 64, 138, 193, 137, 191, 139, 138, 166, 139, -1, + 168, -1, 167, -1, 165, -1, -1, 167, 164, -1, + 167, 41, 138, 199, 139, 6, -1, 167, 44, 138, + 199, 139, 6, -1, 167, 45, 138, 199, 139, 6, + -1, 167, 47, 138, 199, 139, 6, -1, 66, 138, + 167, 139, -1, 66, 4, 133, 191, 134, 6, -1, + 74, 4, 133, 191, 134, 6, -1, 75, 4, 133, + 191, 134, 6, -1, 69, 138, 167, 139, -1, 69, + 4, 133, 191, 134, 6, -1, 69, 4, 6, -1, + 69, 4, 4, 6, -1, 88, 200, 138, 167, 139, + -1, 100, 203, 6, -1, 101, 203, 6, -1, 100, + 138, 167, 139, -1, 101, 138, 167, 139, -1, 4, + 203, 6, -1, 4, 4, 133, 191, 134, 203, 6, + -1, 4, 4, 4, 133, 191, 134, 6, -1, 4, + 191, 6, -1, 60, 131, 4, 132, 135, 4, 6, + -1, 80, 4, 6, -1, 95, 6, -1, 38, 6, + -1, 38, 138, 191, 137, 191, 137, 191, 137, 191, + 137, 191, 137, 191, 139, 6, -1, 39, 6, -1, + 90, 131, 191, 8, 191, 132, -1, 90, 131, 191, + 8, 191, 8, 191, 132, -1, 90, 4, 91, 138, + 191, 8, 191, 139, -1, 90, 4, 91, 138, 191, + 8, 191, 8, 191, 139, -1, 92, -1, 98, 4, + -1, 96, -1, 97, 4, 6, -1, 93, 131, 191, + 132, -1, 94, -1, 65, 193, 138, 167, 139, -1, + 65, 138, 193, 137, 193, 137, 191, 139, 138, 167, + 139, -1, 65, 138, 193, 137, 193, 137, 193, 137, + 191, 139, 138, 167, 139, -1, -1, 65, 193, 138, + 167, 175, 187, 139, -1, -1, 65, 138, 193, 137, + 193, 137, 191, 139, 138, 167, 176, 187, 139, -1, + -1, 65, 138, 193, 137, 193, 137, 193, 137, 191, + 139, 138, 167, 177, 187, 139, -1, 65, 41, 138, + 191, 137, 193, 139, 6, -1, 65, 44, 138, 191, + 137, 193, 139, 6, -1, 65, 45, 138, 191, 137, + 193, 139, 6, -1, 65, 41, 138, 191, 137, 193, + 137, 193, 137, 191, 139, 6, -1, 65, 44, 138, + 191, 137, 193, 137, 193, 137, 191, 139, 6, -1, + 65, 45, 138, 191, 137, 193, 137, 193, 137, 191, + 139, 6, -1, 65, 41, 138, 191, 137, 193, 137, + 193, 137, 193, 137, 191, 139, 6, -1, 65, 44, + 138, 191, 137, 193, 137, 193, 137, 193, 137, 191, + 139, 6, -1, 65, 45, 138, 191, 137, 193, 137, + 193, 137, 193, 137, 191, 139, 6, -1, -1, 65, + 41, 138, 191, 137, 193, 139, 178, 138, 187, 139, + 6, -1, -1, 65, 44, 138, 191, 137, 193, 139, + 179, 138, 187, 139, 6, -1, -1, 65, 45, 138, + 191, 137, 193, 139, 180, 138, 187, 139, 6, -1, + -1, 65, 41, 138, 191, 137, 193, 137, 193, 137, + 191, 139, 181, 138, 187, 139, 6, -1, -1, 65, + 44, 138, 191, 137, 193, 137, 193, 137, 191, 139, + 182, 138, 187, 139, 6, -1, -1, 65, 45, 138, + 191, 137, 193, 137, 193, 137, 191, 139, 183, 138, + 187, 139, 6, -1, -1, 65, 41, 138, 191, 137, + 193, 137, 193, 137, 193, 137, 191, 139, 184, 138, + 187, 139, 6, -1, -1, 65, 44, 138, 191, 137, + 193, 137, 193, 137, 193, 137, 191, 139, 185, 138, + 187, 139, 6, -1, -1, 65, 45, 138, 191, 137, + 193, 137, 193, 137, 193, 137, 191, 139, 186, 138, + 187, 139, 6, -1, 188, -1, 187, 188, -1, 73, + 138, 197, 137, 197, 137, 197, 139, 6, -1, 73, + 138, 197, 137, 197, 139, 6, -1, 68, 6, -1, + 54, 44, 197, 7, 191, 6, -1, 54, 44, 197, + 7, 191, 57, 59, 191, 6, -1, 54, 44, 197, + 7, 191, 57, 58, 191, 6, -1, 54, 45, 138, + 191, 139, 7, 197, 6, -1, 54, 45, 138, 191, + 139, 7, 197, 4, 6, -1, 51, 45, 138, 191, + 139, 7, 197, 6, -1, 54, 47, 138, 191, 139, + 7, 197, 6, -1, 68, 45, 197, 7, 191, 6, + -1, 68, 45, 197, 6, -1, 70, 6, -1, 71, + 6, -1, 192, -1, 131, 191, 132, -1, 121, 191, + -1, 120, 191, -1, 126, 191, -1, 191, 121, 191, + -1, 191, 120, 191, -1, 191, 122, 191, -1, 191, + 123, 191, -1, 191, 124, 191, -1, 191, 130, 191, + -1, 191, 116, 191, -1, 191, 117, 191, -1, 191, + 119, 191, -1, 191, 118, 191, -1, 191, 115, 191, + -1, 191, 114, 191, -1, 191, 112, 191, -1, 191, + 111, 191, -1, 191, 110, 191, 8, 191, -1, 12, + 131, 191, 132, -1, 13, 131, 191, 132, -1, 14, + 131, 191, 132, -1, 15, 131, 191, 132, -1, 16, + 131, 191, 132, -1, 17, 131, 191, 132, -1, 18, + 131, 191, 132, -1, 19, 131, 191, 132, -1, 20, + 131, 191, 132, -1, 22, 131, 191, 132, -1, 23, + 131, 191, 137, 191, 132, -1, 24, 131, 191, 132, + -1, 25, 131, 191, 132, -1, 26, 131, 191, 132, + -1, 27, 131, 191, 132, -1, 28, 131, 191, 132, + -1, 29, 131, 191, 132, -1, 30, 131, 191, 137, + 191, 132, -1, 31, 131, 191, 137, 191, 132, -1, + 32, 131, 191, 137, 191, 132, -1, 21, 131, 191, + 132, -1, 12, 133, 191, 134, -1, 13, 133, 191, + 134, -1, 14, 133, 191, 134, -1, 15, 133, 191, + 134, -1, 16, 133, 191, 134, -1, 17, 133, 191, + 134, -1, 18, 133, 191, 134, -1, 19, 133, 191, + 134, -1, 20, 133, 191, 134, -1, 22, 133, 191, + 134, -1, 23, 133, 191, 137, 191, 134, -1, 24, + 133, 191, 134, -1, 25, 133, 191, 134, -1, 26, + 133, 191, 134, -1, 27, 133, 191, 134, -1, 28, + 133, 191, 134, -1, 29, 133, 191, 134, -1, 30, + 133, 191, 137, 191, 134, -1, 31, 133, 191, 137, + 191, 134, -1, 32, 133, 191, 137, 191, 134, -1, + 21, 133, 191, 134, -1, 3, -1, 9, -1, 10, + -1, 11, -1, 103, -1, 104, -1, 105, -1, 4, + -1, 4, 133, 191, 134, -1, 136, 4, 133, 134, + -1, 4, 162, -1, 4, 133, 191, 134, 162, -1, + 4, 135, 4, -1, 4, 133, 191, 134, 135, 4, + -1, 4, 135, 4, 162, -1, 4, 133, 191, 134, + 135, 4, 162, -1, 102, 131, 5, 137, 191, 132, + -1, 194, -1, 121, 193, -1, 120, 193, -1, 193, + 121, 193, -1, 193, 120, 193, -1, 138, 191, 137, + 191, 137, 191, 137, 191, 137, 191, 139, -1, 138, + 191, 137, 191, 137, 191, 137, 191, 139, -1, 138, + 191, 137, 191, 137, 191, 139, -1, 131, 191, 137, + 191, 137, 191, 132, -1, -1, 138, 196, 139, -1, + 131, 196, 132, -1, 197, -1, 196, 137, 197, -1, + 191, -1, 198, -1, 138, 139, -1, 138, 199, 139, + -1, 121, 138, 199, 139, -1, 191, 8, 191, -1, + 191, 8, 191, 8, 191, -1, 41, 138, 191, 139, + -1, 165, -1, 168, -1, 174, -1, 4, 133, 134, + -1, 121, 4, 133, 134, -1, 4, 133, 138, 199, + 139, 134, -1, 121, 4, 133, 138, 199, 139, 134, + -1, 191, -1, 198, -1, 199, 137, 191, -1, 199, + 137, 198, -1, 138, 191, 137, 191, 137, 191, 137, + 191, 139, -1, 138, 191, 137, 191, 137, 191, 139, + -1, 4, -1, 4, 135, 88, 135, 4, -1, 138, + 202, 139, -1, 4, 133, 191, 134, 135, 89, -1, + 200, -1, 202, 137, 200, -1, 5, -1, 40, -1, + 35, 131, 203, 137, 203, 132, -1, 36, 131, 203, + 132, -1, 37, 131, 203, 132, -1, 34, 131, 203, + 132, -1, 34, 131, 203, 137, 199, 132, -1, 34, + 131, 4, 135, 4, 132, -1, 34, 131, 4, 133, + 191, 134, 135, 4, 132, -1 }; -static const short yypact[] = { 2247, - 15, 2632,-32768, 1762, -95, 8, 39, -67, -18, -9, - -16, 67, 25, 36, 79, 47, 142, 149, 193, 292, - 197, 573, 119, 116, 343, 343, 140, -22, 9, 237, - 12, 288, 310, 355, 302, 323, 344, 230, 239, -14, - 13, 7,-32768, 253,-32768, 384,-32768, 405, 447, 434, - 4, 21,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 42, 14, --32768,-32768,-32768,-32768, -57, 143, 181, 229, 312, 345, - 357, 385, 468, 521, 522, 589, 599, 600, 611, 612, - 629, 630, 633, 634, 640, 351, 358, 403, 417,-32768, - 436,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 1975, 1975, - 1975,-32768,-32768, 1975, 1366, 31, 571, 1975, 572, 850, --32768, 606, 610,-32768, 1975,-32768, 1975, 1975, 1975, 448, - 1975, 488, 1975, 1975, 1299, 1975, 485, 491, 511, 1299, - 505, 532, 542, 543, 547, 548, 566, 697, 343, 343, - 343, 1975, 1975, -48,-32768, 281, 343, 556, 581, 609, - 1602, 300, 605,-32768, 1299, 28,-32768,-32768,-32768, 1299, - 1299, 618, 619, 721, 1975, 1975, -42, 1975, 645, 1975, - 658, 706, 1975, 1975,-32768, 782,-32768, 694,-32768,-32768, - 810,-32768, 835, 710, 1975, 840,-32768, 343,-32768, 1975, - 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, - 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, - 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, - 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, - 1975, 464, 487, 487, 487, 842, 120, 715, 715, 715, - 4758, 20, 1811, 3983, 244, 713, 843, 718, 914,-32768, --32768, 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, - 1975, 1975, 1975, 1975, 1975, 1975,-32768, -72, 2321, 4781, - 4804, 4827, 1975, 4850, 1975, 4873, 4896, 429, 714, 1632, - 1165,-32768,-32768,-32768, 690, 846,-32768, 4919, 1975, 1975, - 1975, 848, 1975, 1975, 1975, 1975, 1975, 1975, 1975, 727, - -19,-32768,-32768, 2432, 3235, 343, 343, 574, 574, 171, - 1975, 1975, 1975, 1602, 1602, 1975, 226,-32768, 1975, 2308, - 80, 854,-32768, 1975, 2329, 855, 856, 1975, 1975,-32768, - 4942, 4965, 775, 1975, 4988, 776, 3257,-32768, 728, 1225, - 5011,-32768, 1975, 2374,-32768, 2419,-32768, 1975, 4008, 309, - 308, 2, 5034, 4033, 5057, 4058, 5080, 4083, 5103, 4108, - 5126, 4133, 5149, 4158, 5172, 4183, 5195, 4208, 5218, 4233, - 5241, 4258, 5264, 4283, 3279, 3301, 5287, 4308, 5310, 4333, - 5333, 4358, 5356, 4383, 5379, 4408, 5402, 4433, 3323, 3345, - 3367, 3389, 3411, 3433, 0, 58, 730, 733, 736, 734, - 1975,-32768, 1299, 1299, 2005, 690,-32768, 286, 306, 487, - 1975, 864, 869, 16, 742,-32768, 2092, 545, 473, 565, - 565, 486, 486, 486, 486, 569, 569, 715, 715, 715, - 715, 871, 1811, 1975, 872, 873, 874, 5425, 875, 5448, - 876, 877, 1429, 1975, 601, 1811,-32768, 563, 1975, 1975, - 878, 2707, 5471, 5494, 1975, 2731, 2755, 5517, 5540, 5563, - 5586, 5609, 743, 343, 1975, 1975,-32768,-32768,-32768, 747, - 2693,-32768, 749, 1975, 3455, 3477, 3499, 1030, 343, 2440, - 4458, -63, -43, -34, -61,-32768,-32768,-32768, 1975,-32768, - 4483,-32768, 751, 754, 4508, 4533, 886, 887, 764, 5632, - 889, 769, 1975, 2485, 1975, 1975,-32768, 5655,-32768,-32768, - 4558, 57,-32768,-32768,-32768, 783, 785, 779,-32768, 912, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768, 1975, 1975,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768, 1975, 1975, 1975, 1975, 1975, 1975, 1975, 917,-32768, - 1811, 487,-32768,-32768, 1975, 4583, 918, 919, 1811, 792, - 55, 1975, 921, 923, 970,-32768, 916, 797, 13, 925, --32768, 1975,-32768, 266, 3521, 343, 1299, 1299, 926, 1299, - 927, 1299, 1299,-32768, 1811, 2779, 1565, 635,-32768, 2107, - 997, 794, 928, 929, 930, 789, 931, 932, 933, 935, - 937, 938, 939, 943, 268, 3543, 3565,-32768,-32768, 2803, - 343, 343, 343, 373,-32768, 386, 944, 1811, 1811, 1811, - 1811, 1091, 945, 1975, 1975, 946, 948, 1299, 1299, 1975, - 942, 1299, 951, 3587,-32768, 2122, 594, 949, 959, 974, --32768, 976, 6, 852, 1975, 1975, 1299, 849,-32768, 5678, - 4608, 5701, 4633, 5724, 4658, 5747, 4683, 4708, 857, 338, - 859, 5770, 380,-32768,-32768, 690,-32768, 56, 378, 853, - 985, 1132,-32768,-32768,-32768, 13, 1975,-32768, 639,-32768, - 5908, 987, 1975, 19, 48, 60, 1299, 988, 1299, 989, - 992, 642,-32768,-32768, 1811,-32768, 1975,-32768, 1975, 1299, - 1299, 1299,-32768, 444, 1299, 1299, 1299, 1299, 1299, 1299, - 1299, 519, 1975, 1975, 1975, 861, -68, 136, 255, 1602, - 994, 863, -31,-32768,-32768, 646, 647, 650, 654,-32768, --32768, 3609, 3631,-32768,-32768, 996, 1000, 5793, -35, 922, --32768, 1975, 1975, 1975,-32768, 870,-32768, 309,-32768, 1004, - 1975, 3653, 3675, 655,-32768, 1975,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768, 879,-32768,-32768,-32768,-32768, 1299, - 487, 1975, 1006, 1009, 16,-32768, 1010, 4733, 13,-32768, --32768, 3697,-32768,-32768, 343,-32768, 343, 1011,-32768, 1012, --32768,-32768, 885, 678, 5908, 3719, 1014, 1015, 1016, 1975, - 1975, 815, 1017, 1034, 1035, 1037, 1040, 1041,-32768, 1940, - 2827, 5816, 2144, 574, 343, 1042, 343, 1043, 343, 1044, - 2851, 376,-32768, 1299,-32768,-32768, 1045, 1046, 1047, 1048, - 1975, 1975,-32768,-32768, 1049, 1299, 1299, 968, 1299, 2640, - 419, 5839, 1975,-32768,-32768, 492, 5908, 1975, 1975, 1299, - 920, 685, 5908, 1053, 1055, 1057, 1399,-32768, 1052, 1058, --32768, 934,-32768, 1975, 61, 125,-32768,-32768,-32768, 936, - 1975,-32768,-32768,-32768, 2032, 2047, 1059,-32768,-32768,-32768, --32768,-32768,-32768,-32768, 2062, 1061, 940,-32768, 1975,-32768, - 956, 424,-32768, 941, 426,-32768, 947, 439,-32768, 958, - 960, 1975, 962,-32768,-32768,-32768,-32768, 3741, 3763, -35, - 502, 691, 963, 984, 1975,-32768, 1975,-32768,-32768, 3785, --32768, 1975, 3807, 3829,-32768, 1299, 1975, 1065, 971,-32768, --32768,-32768, 13,-32768, 986, 3851,-32768,-32768,-32768, 3873, --32768,-32768,-32768,-32768,-32768, 574, 2677,-32768, 1602, 386, - 1602, 386, 1602, 386,-32768, 2875, 1299, 1975, 1975, 1018, --32768,-32768, 1299, 1975, 2899, 2923, 1299, 964, 5908, 1975, - 1975, 692, 5908,-32768,-32768, 1067,-32768, 1975, 1069, 965, - 1975,-32768, 2947, 445, 216, 2971, 463, 217, 2995, 484, - 220, 2530, 990, 695, 3019, 3043, 991, 975, 2077,-32768, --32768, 983, 1975, 5862, 3895, 1118,-32768, 3917, 993,-32768, - 3067, 1119, 1975, 1120, 1126, 1975, 1129, 1130, 1975, 1139, --32768, 386,-32768, 1299, 1151, 1152, 1158, 1299, 1299,-32768, - 1164, 696,-32768, 1975,-32768, 1975, 1166,-32768,-32768, 1060, - 3091,-32768,-32768, 1062, 3115,-32768,-32768, 1078, 3139,-32768, - 242, 2551, 1033,-32768,-32768,-32768, 1036, 1079,-32768, 1193, - 1081, 5885, 3163, 1080, 386, 1214, 386, 1216, 386, 1217, --32768,-32768, 386, 1218, 1299, 1141,-32768, 487,-32768, 1226, - 1229, 258,-32768, 1097, 265,-32768, 1098, 296,-32768, 1099, - 305,-32768, 1102, 1100, 700,-32768, 1109,-32768, 1121, 1251, - 386, 1252, 386, 1253, 386,-32768, 1177, 1975, 487, 1257, - 487, 1258,-32768, 314,-32768, 318,-32768, 327, 1127, 3939, --32768,-32768, 703,-32768,-32768, 1260, 1265, 1266, 1975, 1975, - 487, 1267,-32768,-32768,-32768, 3961, 3187,-32768,-32768, 1975, - 1268, 3211,-32768, 1269,-32768, 1276, 1277,-32768 +/* YYRLINE[YYN] -- source line where rule number YYN was defined. */ +static const unsigned short int yyrline[] = +{ + 0, 144, 144, 145, 150, 152, 156, 157, 158, 159, + 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, + 173, 178, 196, 203, 214, 220, 221, 222, 223, 224, + 228, 230, 235, 237, 243, 433, 242, 461, 466, 475, + 474, 488, 493, 502, 501, 515, 524, 523, 535, 536, + 537, 538, 539, 543, 544, 551, 582, 621, 675, 692, + 710, 721, 740, 754, 771, 797, 824, 838, 855, 869, + 886, 906, 929, 939, 958, 974, 990, 1009, 1028, 1046, + 1064, 1082, 1108, 1126, 1152, 1172, 1196, 1220, 1246, 1263, + 1281, 1300, 1319, 1358, 1383, 1402, 1421, 1437, 1457, 1474, + 1491, 1512, 1517, 1522, 1527, 1535, 1536, 1537, 1542, 1545, + 1549, 1565, 1581, 1597, 1618, 1632, 1638, 1644, 1656, 1665, + 1675, 1689, 1708, 1722, 1730, 1736, 1747, 1761, 1805, 1820, + 1831, 1847, 1857, 1879, 1883, 1888, 1893, 1906, 1921, 1937, + 1963, 1990, 2022, 2029, 2034, 2040, 2044, 2053, 2061, 2069, + 2078, 2077, 2091, 2090, 2104, 2103, 2118, 2125, 2132, 2139, + 2146, 2153, 2160, 2167, 2174, 2182, 2181, 2194, 2193, 2206, + 2205, 2218, 2217, 2230, 2229, 2242, 2241, 2254, 2253, 2266, + 2265, 2278, 2277, 2293, 2296, 2302, 2328, 2352, 2361, 2379, + 2397, 2415, 2444, 2479, 2506, 2533, 2547, 2566, 2570, 2580, + 2581, 2582, 2583, 2584, 2585, 2586, 2587, 2588, 2595, 2596, + 2597, 2598, 2599, 2600, 2601, 2602, 2603, 2604, 2605, 2606, + 2607, 2608, 2609, 2610, 2611, 2612, 2613, 2614, 2615, 2616, + 2617, 2618, 2619, 2620, 2621, 2622, 2623, 2624, 2625, 2626, + 2628, 2629, 2630, 2631, 2632, 2633, 2634, 2635, 2636, 2637, + 2638, 2639, 2640, 2641, 2642, 2643, 2644, 2645, 2646, 2647, + 2648, 2657, 2658, 2659, 2660, 2661, 2662, 2663, 2667, 2680, + 2700, 2714, 2727, 2750, 2768, 2786, 2804, 2822, 2830, 2834, + 2838, 2842, 2846, 2853, 2857, 2861, 2865, 2873, 2875, 2879, + 2886, 2891, 2899, 2904, 2908, 2913, 2917, 2929, 2935, 2946, + 2966, 2976, 2986, 2996, 3013, 3032, 3056, 3085, 3090, 3094, + 3098, 3111, 3115, 3127, 3134, 3156, 3160, 3175, 3180, 3187, + 3191, 3199, 3207, 3221, 3235, 3239, 3258, 3280 }; +#endif -static const short yypgoto[] = {-32768, --32768,-32768,-32768,-32768, 755,-32768, 245,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -251, - -3,-32768, 1278, 5, -316, -162, 10,-32768,-32768,-32768, --32768,-32768, 1279,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768, -673, -738,-32768,-32768, -4, --32768, 316,-32768, 342, -819, 18, -98, -283, -570, 478, --32768, -2 +#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", "tDOUBLE", "tSTRING", "tBIGSTR", "tEND", + "tAFFECT", "tDOTS", "tPi", "tMPI_Rank", "tMPI_Size", "tExp", "tLog", + "tLog10", "tSqrt", "tSin", "tAsin", "tCos", "tAcos", "tTan", "tRand", + "tAtan", "tAtan2", "tSinh", "tCosh", "tTanh", "tFabs", "tFloor", "tCeil", + "tFmod", "tModulo", "tHypot", "tPrintf", "tSprintf", "tStrCat", + "tStrPrefix", "tStrRelative", "tBoundingBox", "tDraw", "tToday", + "tPoint", "tCircle", "tEllipse", "tLine", "tSurface", "tSpline", + "tVolume", "tCharacteristic", "tLength", "tParametric", "tElliptic", + "tPlane", "tRuled", "tTransfinite", "tComplex", "tPhysical", "tUsing", + "tBump", "tProgression", "tPlugin", "tRotate", "tTranslate", "tSymmetry", + "tDilate", "tExtrude", "tDuplicata", "tLoop", "tRecombine", "tDelete", + "tCoherence", "tIntersect", "tAttractor", "tLayers", "tAlias", + "tAliasWithOptions", "tText2D", "tText3D", "tInterpolationScheme", + "tTime", "tCombine", "tBSpline", "tBezier", "tNurbs", "tOrder", "tWith", + "tBounds", "tKnots", "tColor", "tColorTable", "tFor", "tIn", "tEndFor", + "tIf", "tEndIf", "tExit", "tReturn", "tCall", "tFunction", "tTrimmed", + "tShow", "tHide", "tGetValue", "tGMSH_MAJOR_VERSION", + "tGMSH_MINOR_VERSION", "tGMSH_PATCH_VERSION", "tAFFECTDIVIDE", + "tAFFECTTIMES", "tAFFECTMINUS", "tAFFECTPLUS", "'?'", "tOR", "tAND", + "tAPPROXEQUAL", "tNOTEQUAL", "tEQUAL", "'<'", "'>'", "tGREATEROREQUAL", + "tLESSOREQUAL", "'+'", "'-'", "'*'", "'/'", "'%'", "tCROSSPRODUCT", + "'!'", "UNARYPREC", "tMINUSMINUS", "tPLUSPLUS", "'^'", "'('", "')'", + "'['", "']'", "'.'", "'#'", "','", "'{'", "'}'", "$accept", "All", + "GeoFormatItems", "GeoFormatItem", "Printf", "View", "Views", + "ElementCoords", "ElementValues", "Element", "@1", "@2", "Text2DValues", + "Text2D", "@3", "Text3DValues", "Text3D", "@4", "InterpolationMatrix", + "Time", "@5", "NumericAffectation", "NumericIncrement", "Affectation", + "Shape", "Transform", "MultipleShape", "ListOfShapes", "Duplicata", + "Delete", "Colorify", "Visibility", "Command", "Loop", "Extrude", "@6", + "@7", "@8", "@9", "@10", "@11", "@12", "@13", "@14", "@15", "@16", "@17", + "ExtrudeParameters", "ExtrudeParameter", "Transfinite", "Coherence", + "FExpr", "FExpr_Single", "VExpr", "VExpr_Single", "ListOfListOfDouble", + "RecursiveListOfListOfDouble", "ListOfDouble", "FExpr_Multi", + "RecursiveListOfDouble", "ColorExpr", "ListOfColor", + "RecursiveListOfColor", "StringExpr", 0 }; +#endif - -#define YYLAST 6038 - - -static const short yytable[] = { 120, - 119, 330, 483, 421, 335, 525, 58, 458, 189, 525, - 182, 59, 163, 124, 856, 166, 179, 198, 158, 598, - 3, 159, 160, 130, 813, 189, 413, 354, 708, 356, - 177, 332, 132, 333, 255, 123, 751, 96, 97, 98, - 99, 752, 343, 100, 126, 194, 941, 942, 191, 193, - 130, 316, 317, 814, 96, 97, 98, 99, 699, 442, - 100, 189, 71, 127, 443, 816, 967, 127, 845, 134, - 846, 316, 317, 200, 648, 201, 651, 526, 527, 528, - 529, 526, 527, 528, 529, 498, 499, 131, 344, 318, - 96, 97, 98, 99, 649, 866, 100, 150, 151, 815, - 316, 317, 867, 650, 248, 249, 250, 855, 152, 251, - 254, 817, 128, 259, 131, 161, 178, 474, 256, 257, - 279, 129, 280, 281, 282, 414, 284, 135, 286, 287, - 968, 298, 578, 132, 579, 807, 1002, 183, 316, 317, - 530, 190, 700, 701, 780, 125, 164, 314, 315, 167, - 180, 199, 296, 599, 417, 133, 315, 302, 192, 604, - 334, 105, 106, 107, 108, 490, 134, 592, 112, 113, - 341, 342, 618, 345, 195, 347, 196, 136, 350, 351, - 316, 317, 331, 112, 113, 514, 137, 336, 337, 580, - 359, 670, 417, 138, 581, 363, 364, 365, 366, 367, - 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, - 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, - 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, - 398, 399, 400, 401, 402, 403, 404, 139, 893, 406, - 407, 408, 409, 143, 316, 317, 112, 113, 416, 148, - 420, 422, 411, 149, 196, 316, 317, 427, 428, 429, - 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, - 440, 441, 847, 202, 848, 203, 856, 157, 448, 856, - 450, 165, 856, 751, 751, 249, 416, 751, 752, 752, - 316, 317, 752, 168, 462, 463, 464, 690, 466, 467, - 468, 469, 470, 471, 472, 172, 1015, 484, 1018, 751, - 1021, 204, 71, 205, 752, 169, 485, 486, 487, 248, - 249, 488, 479, 479, 491, 751, 173, 482, 482, 501, - 752, 722, 751, 505, 506, 140, 141, 752, 142, 510, - 154, 156, 856, 162, 417, 316, 317, 174, 518, 105, - 106, 107, 108, 521, 1044, 1047, 523, 417, 1050, 206, - 175, 207, 489, 751, 756, 757, 758, 759, 752, 176, - 112, 113, 751, 856, 316, 317, 856, 752, 1081, 856, - 1101, 751, 856, 184, 801, 751, 752, 316, 317, 185, - 752, 849, 1006, 850, 751, 170, 1130, 712, 171, 752, - 316, 317, 589, 1132, 743, 856, 586, 856, 186, 856, - 249, 105, 106, 107, 108, 593, 595, 594, 319, 316, - 317, 1112, 589, 1115, 590, 1118, 947, 316, 317, 1121, - 587, 588, 112, 113, 1134, 112, 113, 328, 416, 605, - 591, 824, 208, 1136, 209, 524, 800, 802, 586, 616, - 187, 416, 1156, 751, 620, 621, 1157, 1144, 752, 1146, - 626, 1148, 150, 151, 311, 1158, 313, 405, 189, 797, - 636, 637, 320, 152, 589, 210, 327, 211, 188, 640, - 153, 242, 417, 105, 106, 107, 108, 212, 243, 213, - 697, 189, 316, 317, 652, 316, 317, 96, 97, 98, - 99, 830, 831, 100, 112, 113, 112, 113, 664, 750, - 666, 667, 932, 361, 670, 214, 417, 215, 671, 672, - 96, 97, 98, 99, 839, 840, 100, 921, 262, 263, - 264, 265, 266, 244, 267, 268, 269, 270, 271, 272, - 273, 274, 275, 316, 317, 316, 317, 245, 276, 417, - 417, 417, 417, 680, 681, 112, 113, 948, 316, 317, - 979, 453, 981, 196, 316, 317, 246, 682, 683, 684, - 685, 686, 687, 688, 258, 983, 416, 260, 283, 691, - 692, 1043, 316, 317, 696, 265, 266, 702, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 711, 216, 1046, - 217, 774, 276, 316, 317, 271, 272, 273, 274, 275, - 416, 277, 586, 144, 278, 276, 145, 146, 285, 147, - 1049, 300, 299, 951, 715, 716, 417, 718, 952, 720, - 721, 477, 478, 991, 24, 25, 26, 27, 880, 29, - 313, 301, 303, 416, 416, 416, 416, 35, 36, 762, - 763, 218, 220, 219, 221, 768, 264, 265, 266, 1010, - 267, 268, 269, 270, 271, 272, 273, 274, 275, 304, - 782, 783, 305, 306, 276, 766, 767, 307, 308, 770, - 267, 268, 269, 270, 271, 272, 273, 274, 275, 671, - 273, 274, 275, 321, 276, 803, 309, 459, 276, 589, - 310, 619, 808, 262, 263, 264, 265, 266, 812, 267, - 268, 269, 270, 271, 272, 273, 274, 275, 322, 222, - 416, 223, 825, 276, 826, 775, 340, 112, 113, 224, - 226, 225, 227, 617, 818, 196, 820, 329, 841, 842, - 843, 228, 230, 229, 231, 851, 323, 827, 828, 829, - 338, 339, 832, 833, 834, 835, 836, 837, 838, 232, - 234, 233, 235, 236, 238, 237, 239, 870, 871, 872, - 240, 589, 241, 726, 874, 809, 877, 810, 589, 346, - 823, 883, 589, 589, 857, 858, 589, 352, 859, 635, - 589, 880, 860, 881, 733, 348, 349, 887, 886, 262, - 263, 264, 265, 266, 644, 267, 268, 269, 270, 271, - 272, 273, 274, 275, 589, 355, 900, 885, 907, 276, - 908, 957, 1022, 958, 353, 905, 906, 880, 880, 992, - 1036, 1054, 957, 1055, 1090, 915, 1139, 916, 1140, 1161, - 357, 1162, 358, 360, 276, 734, 410, 423, 479, 424, - 425, 454, 460, 482, 465, 261, 938, 939, 473, 500, - 509, 503, 504, 512, 583, 515, 582, 584, 950, 596, - 585, 933, 597, 953, 954, 601, 603, 634, 606, 607, - 608, 610, 612, 613, 622, 638, 944, 639, 654, 966, - 1082, 655, 658, 659, 660, 662, 970, 955, 262, 263, - 264, 265, 266, 663, 267, 268, 269, 270, 271, 272, - 273, 274, 275, 675, 977, 676, 677, 679, 276, 426, - 689, 714, 706, 694, 695, 698, 703, 986, 704, 707, - 710, 729, 717, 719, 730, 731, 732, 735, 736, 737, - 995, 738, 996, 739, 740, 741, 742, 999, 769, 755, - 761, 764, 1003, 765, 771, 776, 747, 748, 749, 262, - 263, 264, 265, 266, 777, 267, 268, 269, 270, 271, - 272, 273, 274, 275, 1013, 705, 1016, 778, 1019, 276, - 479, 779, 781, 1025, 1026, 482, 786, 804, 796, 1029, - 798, 805, 811, 819, 821, 1034, 1035, 822, 844, 853, - 854, 863, 728, 1038, 1024, 864, 1041, 873, 869, 875, - 1028, 888, 889, 884, 1032, 891, 897, 898, 899, 902, - 903, 904, 909, 262, 263, 264, 265, 266, 883, 267, - 268, 269, 270, 271, 272, 273, 274, 275, 1071, 910, - 911, 1075, 912, 276, 1079, 913, 914, 923, 926, 929, - 934, 935, 936, 937, 943, 940, 959, 956, 963, 1092, - 960, 1093, 961, 964, 973, 852, 975, 994, 965, 969, - 1004, 1083, 1037, 1039, 1007, 1087, 1088, 976, 980, 262, - 263, 264, 265, 266, 982, 267, 268, 269, 270, 271, - 272, 273, 274, 275, 978, 984, 760, 985, 987, 276, - 993, 1033, 1005, 1040, 1027, 1126, 262, 263, 264, 265, - 266, 1059, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 1061, 1123, 1065, 1069, 1072, 276, 1053, 1058, 1067, - 895, 1073, 896, 1150, 1076, 1077, 1151, 806, 1154, 262, - 263, 264, 265, 266, 1080, 267, 268, 269, 270, 271, - 272, 273, 274, 275, 1166, 1167, 1084, 1085, 1168, 276, - 922, 412, 925, 1086, 928, 1172, 475, 68, 288, 1089, - 1094, 1104, 1105, 72, 73, 74, 75, 76, 77, 78, - 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, - 89, 90, 91, 92, 93, 94, 95, 1095, 1107, 1097, - 262, 263, 264, 265, 266, 289, 267, 268, 269, 270, - 271, 272, 273, 274, 275, 1099, 1111, 1106, 1108, 1113, - 276, 1116, 1119, 1122, 1124, 24, 25, 26, 27, 28, - 29, 1128, 516, 1129, 1131, 1133, 1135, 1138, 35, 36, - 1137, 262, 263, 264, 265, 266, 1141, 267, 268, 269, - 270, 271, 272, 273, 274, 275, 1143, 1145, 1147, 1142, - 1149, 276, 1152, 1155, 1159, 1163, 101, 102, 103, 104, - 1164, 1165, 1169, 1173, 1175, 1177, 1178, 1062, 673, 57, - 65, 990, 890, 0, 109, 415, 0, 0, 0, 0, - 111, 0, 0, 0, 1014, 114, 1017, 0, 1020, 0, - 117, 68, 288, 457, 0, 0, 0, 72, 73, 74, - 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, - 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, - 95, 0, 0, 0, 262, 263, 264, 265, 266, 289, - 267, 268, 269, 270, 271, 272, 273, 274, 275, 0, - 0, 0, 0, 0, 276, 0, 0, 0, 0, 24, - 25, 26, 27, 28, 29, 0, 0, 0, 68, 247, - 0, 0, 35, 36, 72, 73, 74, 75, 76, 77, - 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, - 88, 89, 90, 91, 92, 93, 94, 95, 0, 0, - 101, 102, 103, 104, 962, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 109, 290, - 0, 0, 0, 0, 111, 0, 0, 0, 0, 114, - 0, 68, 247, 0, 117, 0, 291, 72, 73, 74, - 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, - 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, - 95, 0, 0, 0, 0, 0, 0, 101, 102, 103, - 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 109, 110, 0, 0, 0, - 0, 111, 0, 0, 0, 0, 114, 0, 0, 252, - 0, 117, 0, 253, 0, 0, 0, 0, 262, 263, - 264, 265, 266, 0, 267, 268, 269, 270, 271, 272, - 273, 274, 275, 0, 0, 0, 0, 0, 276, 0, - 101, 102, 103, 104, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 109, 110, - 0, 0, 0, 0, 111, 0, 0, 0, 0, 114, - 0, 0, 614, 0, 117, 0, 615, 68, 247, 0, - 0, 0, 0, 72, 73, 74, 75, 76, 77, 78, - 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, - 89, 90, 91, 92, 93, 94, 95, 0, 0, 0, - 0, 0, 0, 0, 68, 247, 0, 0, 0, 0, - 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, - 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, - 92, 93, 94, 95, 68, 455, 0, 0, 0, 0, - 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, - 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, - 92, 93, 94, 95, 0, 0, 101, 102, 103, 104, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 109, 110, 0, 0, 0, 0, - 111, 0, 0, 0, 0, 114, 0, 0, 724, 0, - 117, 0, 725, 101, 102, 103, 104, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 324, 325, 0, 0, 0, 0, 111, 0, 0, - 0, 0, 326, 101, 102, 103, 104, 117, 0, 153, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 109, 110, 0, 0, 0, 0, 111, 0, 0, - 0, 0, 114, 0, 68, 69, 70, 117, 71, 456, - 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, - 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, - 92, 93, 94, 95, 0, 96, 97, 98, 99, 0, - 0, 100, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 68, 288, 0, 0, 0, 0, 72, - 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, - 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, - 93, 94, 95, 0, 0, 0, 0, 0, 0, 0, - 0, 289, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 101, 102, 103, 104, 105, 106, 107, - 108, 24, 25, 26, 27, 28, 29, 0, 0, 0, - 0, 109, 110, 0, 35, 36, 0, 111, 112, 113, - 0, 0, 114, 0, 115, 0, 116, 117, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 101, 102, 103, 104, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 109, 415, 0, 0, 0, 0, 111, 0, 0, 0, - 0, 114, 68, 247, 189, 0, 117, 0, 72, 73, - 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, - 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, - 94, 95, 0, 96, 97, 98, 99, 68, 247, 100, - 0, 0, 0, 72, 73, 74, 75, 76, 77, 78, - 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, - 89, 90, 91, 92, 93, 94, 95, 68, 455, 0, - 0, 0, 0, 72, 73, 74, 75, 76, 77, 78, - 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, - 89, 90, 91, 92, 93, 94, 95, 971, 0, 0, - 0, 101, 102, 103, 104, 0, 0, 0, 0, 0, - 0, 0, 972, 0, 0, 0, 0, 0, 0, 109, - 110, 0, 0, 0, 0, 111, 0, 974, 0, 0, - 114, 0, 0, 0, 0, 117, 101, 102, 103, 104, - 0, 0, 1060, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 109, 110, 0, 0, 0, 602, - 111, 0, 0, 0, 0, 114, 101, 102, 103, 104, - 117, 0, 0, 0, 727, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 109, 110, 0, 0, 0, 773, - 111, 0, 0, 0, 0, 114, 0, 0, 0, 0, - 117, 262, 263, 264, 265, 266, 0, 267, 268, 269, - 270, 271, 272, 273, 274, 275, 262, 263, 264, 265, - 266, 276, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 262, 263, 264, 265, 266, 276, 267, 268, 269, - 270, 271, 272, 273, 274, 275, 262, 263, 264, 265, - 266, 276, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 262, 263, 264, 265, 266, 276, 267, 268, 269, - 270, 271, 272, 273, 274, 275, 262, 263, 264, 265, - 266, 276, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 262, 263, 264, 265, 266, 276, 267, 268, 269, - 270, 271, 272, 273, 274, 275, -3, 1, 0, 0, - -3, 276, 0, 262, 263, 264, 265, 266, 0, 267, - 268, 269, 270, 271, 272, 273, 274, 275, 0, 0, - 0, 0, 0, 276, 0, 0, 0, 0, 0, -3, - 919, 0, 920, 0, -3, -3, 0, -3, -3, -3, - -3, -3, -3, -3, -3, 0, -3, -3, -3, -3, - -3, -3, -3, 0, 0, 0, -3, -3, -3, -3, - -3, -3, -3, 0, -3, -3, -3, -3, -3, 0, - -3, -3, 0, 0, 0, 0, -3, -3, -3, -3, - 0, 0, 0, 0, -3, 0, -3, 0, -3, -3, - -3, -3, -3, -3, -3, -3, -3, -3, 492, 9, - 10, 493, 494, 13, 495, 15, 0, 16, 0, 18, - 19, 0, 21, 22, 0, 0, 0, 0, 0, 492, - 9, 10, 493, 494, 13, 495, 15, 0, 16, 34, - 18, 19, 0, 21, 22, 0, 0, 0, 38, 39, - 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 34, 0, 0, 0, 0, 0, 50, 0, 0, 38, - 39, 40, 0, 0, 492, 9, 10, 493, 494, 13, - 495, 15, 0, 16, 0, 18, 19, 50, 21, 22, - 262, 263, 264, 265, 266, 0, 267, 268, 269, 270, - 271, 272, 273, 274, 275, 34, 496, 0, 0, 0, - 276, 0, 0, 0, 38, 39, 40, 444, 0, 492, - 9, 10, 493, 494, 13, 495, 15, 502, 16, 0, - 18, 19, 50, 21, 22, 0, 0, 0, 0, 0, - 492, 9, 10, 493, 494, 13, 495, 15, 0, 16, - 34, 18, 19, 0, 21, 22, 0, 0, 0, 38, - 39, 40, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 34, 519, 0, 0, 0, 0, 50, 0, 0, - 38, 39, 40, 0, 0, 492, 9, 10, 493, 494, - 13, 495, 15, 0, 16, 0, 18, 19, 50, 21, - 22, 262, 263, 264, 265, 266, 0, 267, 268, 269, - 270, 271, 272, 273, 274, 275, 34, 520, 0, 0, - 0, 276, 0, 0, 0, 38, 39, 40, 475, 0, - 492, 9, 10, 493, 494, 13, 495, 15, 645, 16, - 0, 18, 19, 50, 21, 22, 0, 0, 0, 0, - 0, 492, 9, 10, 493, 494, 13, 495, 15, 0, - 16, 34, 18, 19, 0, 21, 22, 0, 0, 0, - 38, 39, 40, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 34, 665, 0, 0, 0, 0, 50, 0, - 0, 38, 39, 40, 0, 4, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 5, 0, 0, 0, 1051, 6, - 7, 0, 8, 9, 10, 11, 12, 13, 14, 15, - 0, 16, 17, 18, 19, 20, 21, 22, 0, 1102, - 0, 23, 24, 25, 26, 27, 28, 29, 0, 30, - 31, 32, 33, 34, 0, 35, 36, 0, 0, 0, - 0, 37, 38, 39, 40, 0, 0, 0, 0, 41, - 0, 42, 0, 43, 44, 45, 46, 47, 48, 49, - 50, 51, 52, 492, 9, 10, 493, 494, 13, 495, - 15, 0, 16, 0, 18, 19, 0, 21, 22, 262, - 263, 264, 265, 266, 0, 267, 268, 269, 270, 271, - 272, 273, 274, 275, 34, 0, 0, 0, 0, 276, - 0, 0, 0, 38, 39, 40, 945, 0, 946, 0, - 0, 0, 0, 0, 0, 0, 262, 263, 264, 265, - 266, 50, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 0, 0, 0, 0, 0, 276, 0, 0, 0, - 0, 0, 0, 1011, 0, 1012, 262, 263, 264, 265, - 266, 0, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 0, 0, 0, 0, 0, 276, 0, 0, 0, - 262, 263, 264, 265, 266, 623, 267, 268, 269, 270, - 271, 272, 273, 274, 275, 0, 0, 0, 0, 0, - 276, 0, 0, 0, 262, 263, 264, 265, 266, 627, - 267, 268, 269, 270, 271, 272, 273, 274, 275, 0, - 0, 0, 0, 0, 276, 0, 0, 0, 262, 263, - 264, 265, 266, 628, 267, 268, 269, 270, 271, 272, - 273, 274, 275, 0, 0, 0, 0, 0, 276, 0, - 0, 0, 262, 263, 264, 265, 266, 723, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 0, 0, 262, 263, 264, 265, - 266, 746, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 0, 0, 0, 0, 0, 276, 0, 0, 0, - 262, 263, 264, 265, 266, 917, 267, 268, 269, 270, - 271, 272, 273, 274, 275, 0, 0, 0, 0, 0, - 276, 0, 0, 0, 262, 263, 264, 265, 266, 931, - 267, 268, 269, 270, 271, 272, 273, 274, 275, 0, - 0, 0, 0, 0, 276, 0, 0, 0, 262, 263, - 264, 265, 266, 1023, 267, 268, 269, 270, 271, 272, - 273, 274, 275, 0, 0, 0, 0, 0, 276, 0, - 0, 0, 262, 263, 264, 265, 266, 1030, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 0, 0, 262, 263, 264, 265, - 266, 1031, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 0, 0, 0, 0, 0, 276, 0, 0, 0, - 262, 263, 264, 265, 266, 1042, 267, 268, 269, 270, - 271, 272, 273, 274, 275, 0, 0, 0, 0, 0, - 276, 0, 0, 0, 262, 263, 264, 265, 266, 1045, - 267, 268, 269, 270, 271, 272, 273, 274, 275, 0, - 0, 0, 0, 0, 276, 0, 0, 0, 262, 263, - 264, 265, 266, 1048, 267, 268, 269, 270, 271, 272, - 273, 274, 275, 0, 0, 0, 0, 0, 276, 0, - 0, 0, 262, 263, 264, 265, 266, 1056, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 0, 0, 262, 263, 264, 265, - 266, 1057, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 0, 0, 0, 0, 0, 276, 0, 0, 0, - 262, 263, 264, 265, 266, 1068, 267, 268, 269, 270, - 271, 272, 273, 274, 275, 0, 0, 0, 0, 0, - 276, 0, 0, 0, 262, 263, 264, 265, 266, 1096, - 267, 268, 269, 270, 271, 272, 273, 274, 275, 0, - 0, 0, 0, 0, 276, 0, 0, 0, 262, 263, - 264, 265, 266, 1098, 267, 268, 269, 270, 271, 272, - 273, 274, 275, 0, 0, 0, 0, 0, 276, 0, - 0, 0, 262, 263, 264, 265, 266, 1100, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 0, 0, 262, 263, 264, 265, - 266, 1110, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 0, 0, 0, 0, 0, 276, 0, 0, 0, - 262, 263, 264, 265, 266, 1171, 267, 268, 269, 270, - 271, 272, 273, 274, 275, 0, 0, 0, 0, 0, - 276, 0, 0, 0, 262, 263, 264, 265, 266, 1174, - 267, 268, 269, 270, 271, 272, 273, 274, 275, 0, - 0, 0, 0, 0, 276, 0, 262, 263, 264, 265, - 266, 476, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 0, 0, 0, 0, 0, 276, 0, 262, 263, - 264, 265, 266, 513, 267, 268, 269, 270, 271, 272, - 273, 274, 275, 0, 0, 0, 0, 0, 276, 0, - 262, 263, 264, 265, 266, 558, 267, 268, 269, 270, - 271, 272, 273, 274, 275, 0, 0, 0, 0, 0, - 276, 0, 262, 263, 264, 265, 266, 559, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 262, 263, 264, 265, 266, 572, - 267, 268, 269, 270, 271, 272, 273, 274, 275, 0, - 0, 0, 0, 0, 276, 0, 262, 263, 264, 265, - 266, 573, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 0, 0, 0, 0, 0, 276, 0, 262, 263, - 264, 265, 266, 574, 267, 268, 269, 270, 271, 272, - 273, 274, 275, 0, 0, 0, 0, 0, 276, 0, - 262, 263, 264, 265, 266, 575, 267, 268, 269, 270, - 271, 272, 273, 274, 275, 0, 0, 0, 0, 0, - 276, 0, 262, 263, 264, 265, 266, 576, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 262, 263, 264, 265, 266, 577, - 267, 268, 269, 270, 271, 272, 273, 274, 275, 0, - 0, 0, 0, 0, 276, 0, 262, 263, 264, 265, - 266, 641, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 0, 0, 0, 0, 0, 276, 0, 262, 263, - 264, 265, 266, 642, 267, 268, 269, 270, 271, 272, - 273, 274, 275, 0, 0, 0, 0, 0, 276, 0, - 262, 263, 264, 265, 266, 643, 267, 268, 269, 270, - 271, 272, 273, 274, 275, 0, 0, 0, 0, 0, - 276, 0, 262, 263, 264, 265, 266, 713, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 262, 263, 264, 265, 266, 744, - 267, 268, 269, 270, 271, 272, 273, 274, 275, 0, - 0, 0, 0, 0, 276, 0, 262, 263, 264, 265, - 266, 745, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 0, 0, 0, 0, 0, 276, 0, 262, 263, - 264, 265, 266, 772, 267, 268, 269, 270, 271, 272, - 273, 274, 275, 0, 0, 0, 0, 0, 276, 0, - 262, 263, 264, 265, 266, 861, 267, 268, 269, 270, - 271, 272, 273, 274, 275, 0, 0, 0, 0, 0, - 276, 0, 262, 263, 264, 265, 266, 862, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 262, 263, 264, 265, 266, 878, - 267, 268, 269, 270, 271, 272, 273, 274, 275, 0, - 0, 0, 0, 0, 276, 0, 262, 263, 264, 265, - 266, 879, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 0, 0, 0, 0, 0, 276, 0, 262, 263, - 264, 265, 266, 894, 267, 268, 269, 270, 271, 272, - 273, 274, 275, 0, 0, 0, 0, 0, 276, 0, - 262, 263, 264, 265, 266, 901, 267, 268, 269, 270, - 271, 272, 273, 274, 275, 0, 0, 0, 0, 0, - 276, 0, 262, 263, 264, 265, 266, 988, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 262, 263, 264, 265, 266, 989, - 267, 268, 269, 270, 271, 272, 273, 274, 275, 0, - 0, 0, 0, 0, 276, 0, 262, 263, 264, 265, - 266, 997, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 0, 0, 0, 0, 0, 276, 0, 262, 263, - 264, 265, 266, 1000, 267, 268, 269, 270, 271, 272, - 273, 274, 275, 0, 0, 0, 0, 0, 276, 0, - 262, 263, 264, 265, 266, 1001, 267, 268, 269, 270, - 271, 272, 273, 274, 275, 0, 0, 0, 0, 0, - 276, 0, 262, 263, 264, 265, 266, 1008, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 262, 263, 264, 265, 266, 1009, - 267, 268, 269, 270, 271, 272, 273, 274, 275, 0, - 0, 0, 0, 0, 276, 0, 262, 263, 264, 265, - 266, 1064, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 0, 0, 0, 0, 0, 276, 0, 262, 263, - 264, 265, 266, 1066, 267, 268, 269, 270, 271, 272, - 273, 274, 275, 0, 0, 0, 0, 0, 276, 0, - 262, 263, 264, 265, 266, 1160, 267, 268, 269, 270, - 271, 272, 273, 274, 275, 0, 0, 0, 0, 0, - 276, 0, 262, 263, 264, 265, 266, 1170, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 0, 0, 419, 262, 263, 264, - 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, - 274, 275, 0, 0, 0, 0, 0, 276, 0, 0, - 0, 522, 262, 263, 264, 265, 266, 0, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 0, 0, 537, 262, 263, 264, - 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, - 274, 275, 0, 0, 0, 0, 0, 276, 0, 0, - 0, 539, 262, 263, 264, 265, 266, 0, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 0, 0, 541, 262, 263, 264, - 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, - 274, 275, 0, 0, 0, 0, 0, 276, 0, 0, - 0, 543, 262, 263, 264, 265, 266, 0, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 0, 0, 545, 262, 263, 264, - 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, - 274, 275, 0, 0, 0, 0, 0, 276, 0, 0, - 0, 547, 262, 263, 264, 265, 266, 0, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 0, 0, 549, 262, 263, 264, - 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, - 274, 275, 0, 0, 0, 0, 0, 276, 0, 0, - 0, 551, 262, 263, 264, 265, 266, 0, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 0, 0, 553, 262, 263, 264, - 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, - 274, 275, 0, 0, 0, 0, 0, 276, 0, 0, - 0, 555, 262, 263, 264, 265, 266, 0, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 0, 0, 557, 262, 263, 264, - 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, - 274, 275, 0, 0, 0, 0, 0, 276, 0, 0, - 0, 561, 262, 263, 264, 265, 266, 0, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 0, 0, 563, 262, 263, 264, - 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, - 274, 275, 0, 0, 0, 0, 0, 276, 0, 0, - 0, 565, 262, 263, 264, 265, 266, 0, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 0, 0, 567, 262, 263, 264, - 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, - 274, 275, 0, 0, 0, 0, 0, 276, 0, 0, - 0, 569, 262, 263, 264, 265, 266, 0, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 0, 0, 571, 262, 263, 264, - 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, - 274, 275, 0, 0, 0, 0, 0, 276, 0, 0, - 0, 647, 262, 263, 264, 265, 266, 0, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 0, 0, 653, 262, 263, 264, - 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, - 274, 275, 0, 0, 0, 0, 0, 276, 0, 0, - 0, 656, 262, 263, 264, 265, 266, 0, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 0, 0, 657, 262, 263, 264, - 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, - 274, 275, 0, 0, 0, 0, 0, 276, 0, 0, - 0, 669, 262, 263, 264, 265, 266, 0, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 0, 0, 693, 262, 263, 264, - 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, - 274, 275, 0, 0, 0, 0, 0, 276, 0, 0, - 0, 788, 262, 263, 264, 265, 266, 0, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 0, 0, 790, 262, 263, 264, - 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, - 274, 275, 0, 0, 0, 0, 0, 276, 0, 0, - 0, 792, 262, 263, 264, 265, 266, 0, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 0, 0, 794, 262, 263, 264, - 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, - 274, 275, 0, 0, 0, 0, 0, 276, 0, 0, - 0, 795, 262, 263, 264, 265, 266, 0, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 0, 0, 892, 262, 263, 264, - 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, - 274, 275, 0, 0, 0, 0, 0, 276, 0, 412, - 262, 263, 264, 265, 266, 0, 267, 268, 269, 270, - 271, 272, 273, 274, 275, 0, 0, 0, 0, 0, - 276, 0, 445, 262, 263, 264, 265, 266, 0, 267, - 268, 269, 270, 271, 272, 273, 274, 275, 0, 0, - 0, 0, 0, 276, 0, 446, 262, 263, 264, 265, - 266, 0, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 0, 0, 0, 0, 0, 276, 0, 447, 262, - 263, 264, 265, 266, 0, 267, 268, 269, 270, 271, - 272, 273, 274, 275, 0, 0, 0, 0, 0, 276, - 0, 449, 262, 263, 264, 265, 266, 0, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 451, 262, 263, 264, 265, 266, - 0, 267, 268, 269, 270, 271, 272, 273, 274, 275, - 0, 0, 0, 0, 0, 276, 0, 452, 262, 263, - 264, 265, 266, 0, 267, 268, 269, 270, 271, 272, - 273, 274, 275, 0, 0, 0, 0, 0, 276, 0, - 461, 262, 263, 264, 265, 266, 0, 267, 268, 269, - 270, 271, 272, 273, 274, 275, 0, 0, 0, 0, - 0, 276, 0, 507, 262, 263, 264, 265, 266, 0, - 267, 268, 269, 270, 271, 272, 273, 274, 275, 0, - 0, 0, 0, 0, 276, 0, 508, 262, 263, 264, - 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, - 274, 275, 0, 0, 0, 0, 0, 276, 0, 511, - 262, 263, 264, 265, 266, 0, 267, 268, 269, 270, - 271, 272, 273, 274, 275, 0, 0, 0, 0, 0, - 276, 0, 517, 262, 263, 264, 265, 266, 0, 267, - 268, 269, 270, 271, 272, 273, 274, 275, 0, 0, - 0, 0, 0, 276, 0, 536, 262, 263, 264, 265, - 266, 0, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 0, 0, 0, 0, 0, 276, 0, 538, 262, - 263, 264, 265, 266, 0, 267, 268, 269, 270, 271, - 272, 273, 274, 275, 0, 0, 0, 0, 0, 276, - 0, 540, 262, 263, 264, 265, 266, 0, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 542, 262, 263, 264, 265, 266, - 0, 267, 268, 269, 270, 271, 272, 273, 274, 275, - 0, 0, 0, 0, 0, 276, 0, 544, 262, 263, - 264, 265, 266, 0, 267, 268, 269, 270, 271, 272, - 273, 274, 275, 0, 0, 0, 0, 0, 276, 0, - 546, 262, 263, 264, 265, 266, 0, 267, 268, 269, - 270, 271, 272, 273, 274, 275, 0, 0, 0, 0, - 0, 276, 0, 548, 262, 263, 264, 265, 266, 0, - 267, 268, 269, 270, 271, 272, 273, 274, 275, 0, - 0, 0, 0, 0, 276, 0, 550, 262, 263, 264, - 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, - 274, 275, 0, 0, 0, 0, 0, 276, 0, 552, - 262, 263, 264, 265, 266, 0, 267, 268, 269, 270, - 271, 272, 273, 274, 275, 0, 0, 0, 0, 0, - 276, 0, 554, 262, 263, 264, 265, 266, 0, 267, - 268, 269, 270, 271, 272, 273, 274, 275, 0, 0, - 0, 0, 0, 276, 0, 556, 262, 263, 264, 265, - 266, 0, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 0, 0, 0, 0, 0, 276, 0, 560, 262, - 263, 264, 265, 266, 0, 267, 268, 269, 270, 271, - 272, 273, 274, 275, 0, 0, 0, 0, 0, 276, - 0, 562, 262, 263, 264, 265, 266, 0, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 564, 262, 263, 264, 265, 266, - 0, 267, 268, 269, 270, 271, 272, 273, 274, 275, - 0, 0, 0, 0, 0, 276, 0, 566, 262, 263, - 264, 265, 266, 0, 267, 268, 269, 270, 271, 272, - 273, 274, 275, 0, 0, 0, 0, 0, 276, 0, - 568, 262, 263, 264, 265, 266, 0, 267, 268, 269, - 270, 271, 272, 273, 274, 275, 0, 0, 0, 0, - 0, 276, 0, 570, 262, 263, 264, 265, 266, 0, - 267, 268, 269, 270, 271, 272, 273, 274, 275, 0, - 0, 0, 0, 0, 276, 0, 609, 262, 263, 264, - 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, - 274, 275, 0, 0, 0, 0, 0, 276, 0, 611, - 262, 263, 264, 265, 266, 0, 267, 268, 269, 270, - 271, 272, 273, 274, 275, 0, 0, 0, 0, 0, - 276, 0, 624, 262, 263, 264, 265, 266, 0, 267, - 268, 269, 270, 271, 272, 273, 274, 275, 0, 0, - 0, 0, 0, 276, 0, 625, 262, 263, 264, 265, - 266, 0, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 0, 0, 0, 0, 0, 276, 0, 629, 262, - 263, 264, 265, 266, 0, 267, 268, 269, 270, 271, - 272, 273, 274, 275, 0, 0, 0, 0, 0, 276, - 0, 630, 262, 263, 264, 265, 266, 0, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 631, 262, 263, 264, 265, 266, - 0, 267, 268, 269, 270, 271, 272, 273, 274, 275, - 0, 0, 0, 0, 0, 276, 0, 632, 262, 263, - 264, 265, 266, 0, 267, 268, 269, 270, 271, 272, - 273, 274, 275, 0, 0, 0, 0, 0, 276, 0, - 633, 262, 263, 264, 265, 266, 0, 267, 268, 269, - 270, 271, 272, 273, 274, 275, 0, 0, 0, 0, - 0, 276, 0, 661, 262, 263, 264, 265, 266, 0, - 267, 268, 269, 270, 271, 272, 273, 274, 275, 0, - 0, 0, 0, 0, 276, 0, 668, 262, 263, 264, - 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, - 274, 275, 0, 0, 0, 0, 0, 276, 0, 787, - 262, 263, 264, 265, 266, 0, 267, 268, 269, 270, - 271, 272, 273, 274, 275, 0, 0, 0, 0, 0, - 276, 0, 789, 262, 263, 264, 265, 266, 0, 267, - 268, 269, 270, 271, 272, 273, 274, 275, 0, 0, - 0, 0, 0, 276, 0, 791, 262, 263, 264, 265, - 266, 0, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 0, 0, 0, 0, 0, 276, 0, 793, 262, - 263, 264, 265, 266, 0, 267, 268, 269, 270, 271, - 272, 273, 274, 275, 0, 0, 0, 0, 0, 276, - 0, 799, 262, 263, 264, 265, 266, 0, 267, 268, - 269, 270, 271, 272, 273, 274, 275, 0, 0, 0, - 0, 0, 276, 0, 865, 262, 263, 264, 265, 266, - 0, 267, 268, 269, 270, 271, 272, 273, 274, 275, - 0, 0, 0, 0, 0, 276, 0, 918, 262, 263, - 264, 265, 266, 0, 267, 268, 269, 270, 271, 272, - 273, 274, 275, 0, 0, 0, 0, 0, 276, 0, - 949, 262, 263, 264, 265, 266, 0, 267, 268, 269, - 270, 271, 272, 273, 274, 275, 0, 0, 0, 0, - 0, 276, 0, 1063, 262, 263, 264, 265, 266, 0, - 267, 268, 269, 270, 271, 272, 273, 274, 275, 0, - 0, 0, 0, 0, 276, 0, 1109, 262, 263, 264, - 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, - 274, 275, 0, 0, 0, 0, 0, 276 +# ifdef YYPRINT +/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to + token YYLEX-NUM. */ +static const unsigned short int 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, 297, 298, 299, 300, 301, 302, 303, 304, + 305, 306, 307, 308, 309, 310, 311, 312, 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, 346, 347, 348, 349, 350, 351, 352, 353, 354, + 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, + 63, 365, 366, 367, 368, 369, 60, 62, 370, 371, + 43, 45, 42, 47, 37, 372, 33, 373, 374, 375, + 94, 40, 41, 91, 93, 46, 35, 44, 123, 125 +}; +# endif + +/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ +static const unsigned char yyr1[] = +{ + 0, 140, 141, 141, 142, 142, 143, 143, 143, 143, + 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, + 144, 144, 145, 145, 146, 146, 146, 146, 146, 146, + 147, 147, 148, 148, 150, 151, 149, 152, 152, 154, + 153, 155, 155, 157, 156, 158, 160, 159, 161, 161, + 161, 161, 161, 162, 162, 163, 163, 163, 163, 163, + 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, + 163, 163, 163, 163, 164, 164, 164, 164, 164, 164, + 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, + 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, + 164, 165, 165, 165, 165, 166, 166, 166, 167, 167, + 167, 167, 167, 167, 168, 168, 168, 168, 169, 169, + 169, 169, 170, 171, 171, 171, 171, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 173, 173, 173, + 173, 173, 173, 173, 173, 173, 173, 174, 174, 174, + 175, 174, 176, 174, 177, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 178, 174, 179, 174, 180, + 174, 181, 174, 182, 174, 183, 174, 184, 174, 185, + 174, 186, 174, 187, 187, 188, 188, 188, 189, 189, + 189, 189, 189, 189, 189, 189, 189, 190, 190, 191, + 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, + 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, + 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, + 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, + 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, + 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, + 191, 192, 192, 192, 192, 192, 192, 192, 192, 192, + 192, 192, 192, 192, 192, 192, 192, 192, 193, 193, + 193, 193, 193, 194, 194, 194, 194, 195, 195, 195, + 196, 196, 197, 197, 197, 197, 197, 198, 198, 198, + 198, 198, 198, 198, 198, 198, 198, 199, 199, 199, + 199, 200, 200, 200, 200, 201, 201, 202, 202, 203, + 203, 203, 203, 203, 203, 203, 203, 203 }; -static const short yycheck[] = { 4, - 4, 164, 319, 255, 167, 4, 2, 291, 5, 4, - 4, 2, 4, 6, 753, 4, 4, 4, 41, 4, - 6, 44, 45, 67, 6, 5, 7, 190, 599, 192, - 45, 4, 67, 6, 4, 131, 68, 34, 35, 36, - 37, 73, 85, 40, 6, 4, 866, 867, 51, 52, - 67, 120, 121, 6, 34, 35, 36, 37, 4, 132, - 40, 5, 7, 131, 137, 6, 6, 131, 137, 131, - 139, 120, 121, 131, 138, 133, 138, 76, 77, 78, - 79, 76, 77, 78, 79, 6, 7, 131, 131, 138, - 34, 35, 36, 37, 138, 131, 40, 120, 121, 52, - 120, 121, 138, 138, 109, 110, 111, 139, 131, 114, - 115, 52, 131, 118, 131, 138, 131, 137, 88, 89, - 125, 131, 127, 128, 129, 106, 131, 49, 133, 134, - 6, 136, 133, 67, 135, 706, 956, 131, 120, 121, - 139, 138, 88, 89, 139, 138, 138, 152, 153, 138, - 138, 138, 135, 138, 253, 131, 161, 140, 138, 443, - 133, 106, 107, 108, 109, 328, 131, 419, 127, 128, - 175, 176, 456, 178, 133, 180, 135, 131, 183, 184, - 120, 121, 165, 127, 128, 348, 45, 170, 171, 132, - 195, 135, 291, 45, 137, 200, 201, 202, 203, 204, - 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, - 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, - 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, - 235, 236, 237, 238, 239, 240, 241, 45, 809, 242, - 243, 244, 245, 47, 120, 121, 127, 128, 253, 131, - 7, 255, 133, 138, 135, 120, 121, 262, 263, 264, - 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 276, 137, 131, 139, 133, 1015, 138, 283, 1018, - 285, 45, 1021, 68, 68, 290, 291, 68, 73, 73, - 120, 121, 73, 6, 299, 300, 301, 581, 303, 304, - 305, 306, 307, 308, 309, 4, 980, 137, 982, 68, - 984, 131, 7, 133, 73, 6, 321, 322, 323, 324, - 325, 326, 318, 319, 329, 68, 4, 318, 319, 334, - 73, 615, 68, 338, 339, 44, 45, 73, 47, 344, - 25, 26, 1081, 28, 443, 120, 121, 4, 353, 106, - 107, 108, 109, 358, 139, 139, 360, 456, 139, 131, - 131, 133, 137, 68, 648, 649, 650, 651, 73, 131, - 127, 128, 68, 1112, 120, 121, 1115, 73, 1052, 1118, - 139, 68, 1121, 131, 7, 68, 73, 120, 121, 6, - 73, 137, 963, 139, 68, 41, 139, 132, 44, 73, - 120, 121, 137, 139, 137, 1144, 411, 1146, 4, 1148, - 415, 106, 107, 108, 109, 419, 421, 420, 138, 120, - 121, 1095, 137, 1097, 139, 1099, 8, 120, 121, 1103, - 413, 414, 127, 128, 139, 127, 128, 138, 443, 444, - 135, 725, 131, 139, 133, 138, 698, 699, 453, 454, - 4, 456, 139, 68, 459, 460, 139, 1131, 73, 1133, - 465, 1135, 120, 121, 149, 139, 151, 4, 5, 132, - 475, 476, 157, 131, 137, 131, 161, 133, 45, 484, - 138, 131, 581, 106, 107, 108, 109, 131, 131, 133, - 589, 5, 120, 121, 499, 120, 121, 34, 35, 36, - 37, 58, 59, 40, 127, 128, 127, 128, 513, 137, - 515, 516, 137, 198, 135, 131, 615, 133, 522, 522, - 34, 35, 36, 37, 6, 7, 40, 844, 110, 111, - 112, 113, 114, 131, 116, 117, 118, 119, 120, 121, - 122, 123, 124, 120, 121, 120, 121, 131, 130, 648, - 649, 650, 651, 558, 559, 127, 128, 139, 120, 121, - 137, 133, 137, 135, 120, 121, 131, 572, 573, 574, - 575, 576, 577, 578, 4, 137, 581, 6, 131, 582, - 585, 137, 120, 121, 589, 113, 114, 592, 116, 117, - 118, 119, 120, 121, 122, 123, 124, 602, 131, 137, - 133, 8, 130, 120, 121, 120, 121, 122, 123, 124, - 615, 6, 617, 41, 5, 130, 44, 45, 131, 47, - 137, 131, 138, 132, 607, 608, 725, 610, 137, 612, - 613, 316, 317, 132, 61, 62, 63, 64, 137, 66, - 325, 131, 138, 648, 649, 650, 651, 74, 75, 654, - 655, 131, 131, 133, 133, 660, 112, 113, 114, 976, - 116, 117, 118, 119, 120, 121, 122, 123, 124, 138, - 675, 676, 131, 131, 130, 658, 659, 131, 131, 662, - 116, 117, 118, 119, 120, 121, 122, 123, 124, 693, - 122, 123, 124, 138, 130, 699, 131, 8, 130, 137, - 4, 139, 707, 110, 111, 112, 113, 114, 713, 116, - 117, 118, 119, 120, 121, 122, 123, 124, 138, 131, - 725, 133, 727, 130, 729, 132, 6, 127, 128, 131, - 131, 133, 133, 133, 717, 135, 719, 133, 743, 744, - 745, 131, 131, 133, 133, 750, 138, 730, 731, 732, - 133, 133, 735, 736, 737, 738, 739, 740, 741, 131, - 131, 133, 133, 131, 131, 133, 133, 772, 773, 774, - 131, 137, 133, 139, 778, 137, 781, 139, 137, 135, - 139, 786, 137, 137, 139, 139, 137, 6, 139, 474, - 137, 137, 139, 139, 6, 138, 91, 802, 801, 110, - 111, 112, 113, 114, 489, 116, 117, 118, 119, 120, - 121, 122, 123, 124, 137, 6, 139, 800, 4, 130, - 6, 137, 985, 139, 131, 830, 831, 137, 137, 139, - 139, 137, 137, 139, 139, 840, 137, 840, 139, 137, - 6, 139, 133, 4, 130, 57, 5, 135, 844, 7, - 133, 138, 7, 844, 7, 6, 861, 862, 132, 6, - 86, 7, 7, 88, 132, 138, 137, 132, 873, 6, - 137, 854, 4, 878, 879, 134, 6, 135, 7, 7, - 7, 7, 7, 7, 7, 139, 869, 139, 138, 894, - 1053, 138, 7, 7, 131, 7, 901, 880, 110, 111, - 112, 113, 114, 135, 116, 117, 118, 119, 120, 121, - 122, 123, 124, 131, 919, 131, 138, 6, 130, 6, - 4, 606, 7, 6, 6, 134, 6, 932, 6, 133, - 6, 138, 7, 7, 7, 7, 7, 7, 7, 7, - 945, 7, 947, 7, 7, 7, 4, 952, 7, 6, - 6, 6, 957, 6, 4, 7, 641, 642, 643, 110, - 111, 112, 113, 114, 6, 116, 117, 118, 119, 120, - 121, 122, 123, 124, 979, 6, 981, 4, 983, 130, - 976, 6, 131, 988, 989, 976, 138, 135, 132, 994, - 132, 7, 6, 6, 6, 1000, 1001, 6, 138, 6, - 138, 6, 6, 1008, 987, 6, 1011, 138, 87, 6, - 993, 6, 4, 135, 997, 6, 6, 6, 134, 6, - 6, 6, 6, 110, 111, 112, 113, 114, 1033, 116, - 117, 118, 119, 120, 121, 122, 123, 124, 1043, 6, - 6, 1046, 6, 130, 1049, 6, 6, 6, 6, 6, - 6, 6, 6, 6, 87, 7, 4, 138, 7, 1064, - 6, 1066, 6, 6, 6, 750, 6, 84, 135, 134, - 6, 1054, 6, 5, 89, 1058, 1059, 138, 138, 110, - 111, 112, 113, 114, 138, 116, 117, 118, 119, 120, - 121, 122, 123, 124, 139, 138, 6, 138, 137, 130, - 138, 138, 132, 139, 87, 1108, 110, 111, 112, 113, - 114, 137, 116, 117, 118, 119, 120, 121, 122, 123, - 124, 139, 1105, 6, 6, 6, 130, 138, 138, 137, - 815, 6, 817, 1138, 6, 6, 1139, 6, 1141, 110, - 111, 112, 113, 114, 6, 116, 117, 118, 119, 120, - 121, 122, 123, 124, 1159, 1160, 6, 6, 1161, 130, - 845, 132, 847, 6, 849, 1170, 137, 3, 4, 6, - 5, 139, 137, 9, 10, 11, 12, 13, 14, 15, - 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, 138, 6, 138, - 110, 111, 112, 113, 114, 41, 116, 117, 118, 119, - 120, 121, 122, 123, 124, 138, 137, 139, 138, 6, - 130, 6, 6, 6, 84, 61, 62, 63, 64, 65, - 66, 6, 8, 5, 138, 138, 138, 138, 74, 75, - 139, 110, 111, 112, 113, 114, 138, 116, 117, 118, - 119, 120, 121, 122, 123, 124, 6, 6, 6, 139, - 84, 130, 6, 6, 138, 6, 102, 103, 104, 105, - 6, 6, 6, 6, 6, 0, 0, 1033, 524, 2, - 2, 940, 805, -1, 120, 121, -1, -1, -1, -1, - 126, -1, -1, -1, 979, 131, 981, -1, 983, -1, - 136, 3, 4, 139, -1, -1, -1, 9, 10, 11, - 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, - 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, -1, -1, -1, 110, 111, 112, 113, 114, 41, - 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, - -1, -1, -1, -1, 130, -1, -1, -1, -1, 61, - 62, 63, 64, 65, 66, -1, -1, -1, 3, 4, - -1, -1, 74, 75, 9, 10, 11, 12, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, -1, -1, - 102, 103, 104, 105, 6, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 120, 121, - -1, -1, -1, -1, 126, -1, -1, -1, -1, 131, - -1, 3, 4, -1, 136, -1, 138, 9, 10, 11, - 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, - 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, -1, -1, -1, -1, -1, -1, 102, 103, 104, - 105, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 120, 121, -1, -1, -1, - -1, 126, -1, -1, -1, -1, 131, -1, -1, 134, - -1, 136, -1, 138, -1, -1, -1, -1, 110, 111, - 112, 113, 114, -1, 116, 117, 118, 119, 120, 121, - 122, 123, 124, -1, -1, -1, -1, -1, 130, -1, - 102, 103, 104, 105, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 120, 121, - -1, -1, -1, -1, 126, -1, -1, -1, -1, 131, - -1, -1, 134, -1, 136, -1, 138, 3, 4, -1, - -1, -1, -1, 9, 10, 11, 12, 13, 14, 15, - 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, -1, -1, -1, - -1, -1, -1, -1, 3, 4, -1, -1, -1, -1, - 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, - 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, - 29, 30, 31, 32, 3, 4, -1, -1, -1, -1, - 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, - 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, - 29, 30, 31, 32, -1, -1, 102, 103, 104, 105, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 120, 121, -1, -1, -1, -1, - 126, -1, -1, -1, -1, 131, -1, -1, 134, -1, - 136, -1, 138, 102, 103, 104, 105, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 120, 121, -1, -1, -1, -1, 126, -1, -1, - -1, -1, 131, 102, 103, 104, 105, 136, -1, 138, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 120, 121, -1, -1, -1, -1, 126, -1, -1, - -1, -1, 131, -1, 3, 4, 5, 136, 7, 138, - 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, - 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, - 29, 30, 31, 32, -1, 34, 35, 36, 37, -1, - -1, 40, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 3, 4, -1, -1, -1, -1, 9, - 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, - 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, - 30, 31, 32, -1, -1, -1, -1, -1, -1, -1, - -1, 41, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 102, 103, 104, 105, 106, 107, 108, - 109, 61, 62, 63, 64, 65, 66, -1, -1, -1, - -1, 120, 121, -1, 74, 75, -1, 126, 127, 128, - -1, -1, 131, -1, 133, -1, 135, 136, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 102, 103, 104, 105, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 120, 121, -1, -1, -1, -1, 126, -1, -1, -1, - -1, 131, 3, 4, 5, -1, 136, -1, 9, 10, - 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, - 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, - 31, 32, -1, 34, 35, 36, 37, 3, 4, 40, - -1, -1, -1, 9, 10, 11, 12, 13, 14, 15, - 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, 3, 4, -1, - -1, -1, -1, 9, 10, 11, 12, 13, 14, 15, - 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, 6, -1, -1, - -1, 102, 103, 104, 105, -1, -1, -1, -1, -1, - -1, -1, 6, -1, -1, -1, -1, -1, -1, 120, - 121, -1, -1, -1, -1, 126, -1, 6, -1, -1, - 131, -1, -1, -1, -1, 136, 102, 103, 104, 105, - -1, -1, 6, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 120, 121, -1, -1, -1, 8, - 126, -1, -1, -1, -1, 131, 102, 103, 104, 105, - 136, -1, -1, -1, 8, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 120, 121, -1, -1, -1, 8, - 126, -1, -1, -1, -1, 131, -1, -1, -1, -1, - 136, 110, 111, 112, 113, 114, -1, 116, 117, 118, - 119, 120, 121, 122, 123, 124, 110, 111, 112, 113, - 114, 130, 116, 117, 118, 119, 120, 121, 122, 123, - 124, 110, 111, 112, 113, 114, 130, 116, 117, 118, - 119, 120, 121, 122, 123, 124, 110, 111, 112, 113, - 114, 130, 116, 117, 118, 119, 120, 121, 122, 123, - 124, 110, 111, 112, 113, 114, 130, 116, 117, 118, - 119, 120, 121, 122, 123, 124, 110, 111, 112, 113, - 114, 130, 116, 117, 118, 119, 120, 121, 122, 123, - 124, 110, 111, 112, 113, 114, 130, 116, 117, 118, - 119, 120, 121, 122, 123, 124, 0, 1, -1, -1, - 4, 130, -1, 110, 111, 112, 113, 114, -1, 116, - 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, - -1, -1, -1, 130, -1, -1, -1, -1, -1, 33, - 137, -1, 139, -1, 38, 39, -1, 41, 42, 43, - 44, 45, 46, 47, 48, -1, 50, 51, 52, 53, - 54, 55, 56, -1, -1, -1, 60, 61, 62, 63, - 64, 65, 66, -1, 68, 69, 70, 71, 72, -1, - 74, 75, -1, -1, -1, -1, 80, 81, 82, 83, - -1, -1, -1, -1, 88, -1, 90, -1, 92, 93, - 94, 95, 96, 97, 98, 99, 100, 101, 41, 42, - 43, 44, 45, 46, 47, 48, -1, 50, -1, 52, - 53, -1, 55, 56, -1, -1, -1, -1, -1, 41, - 42, 43, 44, 45, 46, 47, 48, -1, 50, 72, - 52, 53, -1, 55, 56, -1, -1, -1, 81, 82, - 83, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 72, -1, -1, -1, -1, -1, 99, -1, -1, 81, - 82, 83, -1, -1, 41, 42, 43, 44, 45, 46, - 47, 48, -1, 50, -1, 52, 53, 99, 55, 56, - 110, 111, 112, 113, 114, -1, 116, 117, 118, 119, - 120, 121, 122, 123, 124, 72, 139, -1, -1, -1, - 130, -1, -1, -1, 81, 82, 83, 137, -1, 41, - 42, 43, 44, 45, 46, 47, 48, 139, 50, -1, - 52, 53, 99, 55, 56, -1, -1, -1, -1, -1, - 41, 42, 43, 44, 45, 46, 47, 48, -1, 50, - 72, 52, 53, -1, 55, 56, -1, -1, -1, 81, - 82, 83, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 72, 139, -1, -1, -1, -1, 99, -1, -1, - 81, 82, 83, -1, -1, 41, 42, 43, 44, 45, - 46, 47, 48, -1, 50, -1, 52, 53, 99, 55, - 56, 110, 111, 112, 113, 114, -1, 116, 117, 118, - 119, 120, 121, 122, 123, 124, 72, 139, -1, -1, - -1, 130, -1, -1, -1, 81, 82, 83, 137, -1, - 41, 42, 43, 44, 45, 46, 47, 48, 139, 50, - -1, 52, 53, 99, 55, 56, -1, -1, -1, -1, - -1, 41, 42, 43, 44, 45, 46, 47, 48, -1, - 50, 72, 52, 53, -1, 55, 56, -1, -1, -1, - 81, 82, 83, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 72, 139, -1, -1, -1, -1, 99, -1, - -1, 81, 82, 83, -1, 4, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 99, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 33, -1, -1, -1, 139, 38, - 39, -1, 41, 42, 43, 44, 45, 46, 47, 48, - -1, 50, 51, 52, 53, 54, 55, 56, -1, 139, - -1, 60, 61, 62, 63, 64, 65, 66, -1, 68, - 69, 70, 71, 72, -1, 74, 75, -1, -1, -1, - -1, 80, 81, 82, 83, -1, -1, -1, -1, 88, - -1, 90, -1, 92, 93, 94, 95, 96, 97, 98, - 99, 100, 101, 41, 42, 43, 44, 45, 46, 47, - 48, -1, 50, -1, 52, 53, -1, 55, 56, 110, - 111, 112, 113, 114, -1, 116, 117, 118, 119, 120, - 121, 122, 123, 124, 72, -1, -1, -1, -1, 130, - -1, -1, -1, 81, 82, 83, 137, -1, 139, -1, - -1, -1, -1, -1, -1, -1, 110, 111, 112, 113, - 114, 99, 116, 117, 118, 119, 120, 121, 122, 123, - 124, -1, -1, -1, -1, -1, 130, -1, -1, -1, - -1, -1, -1, 137, -1, 139, 110, 111, 112, 113, - 114, -1, 116, 117, 118, 119, 120, 121, 122, 123, - 124, -1, -1, -1, -1, -1, 130, -1, -1, -1, - 110, 111, 112, 113, 114, 139, 116, 117, 118, 119, - 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, - 130, -1, -1, -1, 110, 111, 112, 113, 114, 139, - 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, - -1, -1, -1, -1, 130, -1, -1, -1, 110, 111, - 112, 113, 114, 139, 116, 117, 118, 119, 120, 121, - 122, 123, 124, -1, -1, -1, -1, -1, 130, -1, - -1, -1, 110, 111, 112, 113, 114, 139, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, -1, -1, 110, 111, 112, 113, - 114, 139, 116, 117, 118, 119, 120, 121, 122, 123, - 124, -1, -1, -1, -1, -1, 130, -1, -1, -1, - 110, 111, 112, 113, 114, 139, 116, 117, 118, 119, - 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, - 130, -1, -1, -1, 110, 111, 112, 113, 114, 139, - 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, - -1, -1, -1, -1, 130, -1, -1, -1, 110, 111, - 112, 113, 114, 139, 116, 117, 118, 119, 120, 121, - 122, 123, 124, -1, -1, -1, -1, -1, 130, -1, - -1, -1, 110, 111, 112, 113, 114, 139, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, -1, -1, 110, 111, 112, 113, - 114, 139, 116, 117, 118, 119, 120, 121, 122, 123, - 124, -1, -1, -1, -1, -1, 130, -1, -1, -1, - 110, 111, 112, 113, 114, 139, 116, 117, 118, 119, - 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, - 130, -1, -1, -1, 110, 111, 112, 113, 114, 139, - 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, - -1, -1, -1, -1, 130, -1, -1, -1, 110, 111, - 112, 113, 114, 139, 116, 117, 118, 119, 120, 121, - 122, 123, 124, -1, -1, -1, -1, -1, 130, -1, - -1, -1, 110, 111, 112, 113, 114, 139, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, -1, -1, 110, 111, 112, 113, - 114, 139, 116, 117, 118, 119, 120, 121, 122, 123, - 124, -1, -1, -1, -1, -1, 130, -1, -1, -1, - 110, 111, 112, 113, 114, 139, 116, 117, 118, 119, - 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, - 130, -1, -1, -1, 110, 111, 112, 113, 114, 139, - 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, - -1, -1, -1, -1, 130, -1, -1, -1, 110, 111, - 112, 113, 114, 139, 116, 117, 118, 119, 120, 121, - 122, 123, 124, -1, -1, -1, -1, -1, 130, -1, - -1, -1, 110, 111, 112, 113, 114, 139, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, -1, -1, 110, 111, 112, 113, - 114, 139, 116, 117, 118, 119, 120, 121, 122, 123, - 124, -1, -1, -1, -1, -1, 130, -1, -1, -1, - 110, 111, 112, 113, 114, 139, 116, 117, 118, 119, - 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, - 130, -1, -1, -1, 110, 111, 112, 113, 114, 139, - 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, - -1, -1, -1, -1, 130, -1, 110, 111, 112, 113, - 114, 137, 116, 117, 118, 119, 120, 121, 122, 123, - 124, -1, -1, -1, -1, -1, 130, -1, 110, 111, - 112, 113, 114, 137, 116, 117, 118, 119, 120, 121, - 122, 123, 124, -1, -1, -1, -1, -1, 130, -1, - 110, 111, 112, 113, 114, 137, 116, 117, 118, 119, - 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, - 130, -1, 110, 111, 112, 113, 114, 137, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, 110, 111, 112, 113, 114, 137, - 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, - -1, -1, -1, -1, 130, -1, 110, 111, 112, 113, - 114, 137, 116, 117, 118, 119, 120, 121, 122, 123, - 124, -1, -1, -1, -1, -1, 130, -1, 110, 111, - 112, 113, 114, 137, 116, 117, 118, 119, 120, 121, - 122, 123, 124, -1, -1, -1, -1, -1, 130, -1, - 110, 111, 112, 113, 114, 137, 116, 117, 118, 119, - 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, - 130, -1, 110, 111, 112, 113, 114, 137, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, 110, 111, 112, 113, 114, 137, - 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, - -1, -1, -1, -1, 130, -1, 110, 111, 112, 113, - 114, 137, 116, 117, 118, 119, 120, 121, 122, 123, - 124, -1, -1, -1, -1, -1, 130, -1, 110, 111, - 112, 113, 114, 137, 116, 117, 118, 119, 120, 121, - 122, 123, 124, -1, -1, -1, -1, -1, 130, -1, - 110, 111, 112, 113, 114, 137, 116, 117, 118, 119, - 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, - 130, -1, 110, 111, 112, 113, 114, 137, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, 110, 111, 112, 113, 114, 137, - 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, - -1, -1, -1, -1, 130, -1, 110, 111, 112, 113, - 114, 137, 116, 117, 118, 119, 120, 121, 122, 123, - 124, -1, -1, -1, -1, -1, 130, -1, 110, 111, - 112, 113, 114, 137, 116, 117, 118, 119, 120, 121, - 122, 123, 124, -1, -1, -1, -1, -1, 130, -1, - 110, 111, 112, 113, 114, 137, 116, 117, 118, 119, - 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, - 130, -1, 110, 111, 112, 113, 114, 137, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, 110, 111, 112, 113, 114, 137, - 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, - -1, -1, -1, -1, 130, -1, 110, 111, 112, 113, - 114, 137, 116, 117, 118, 119, 120, 121, 122, 123, - 124, -1, -1, -1, -1, -1, 130, -1, 110, 111, - 112, 113, 114, 137, 116, 117, 118, 119, 120, 121, - 122, 123, 124, -1, -1, -1, -1, -1, 130, -1, - 110, 111, 112, 113, 114, 137, 116, 117, 118, 119, - 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, - 130, -1, 110, 111, 112, 113, 114, 137, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, 110, 111, 112, 113, 114, 137, - 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, - -1, -1, -1, -1, 130, -1, 110, 111, 112, 113, - 114, 137, 116, 117, 118, 119, 120, 121, 122, 123, - 124, -1, -1, -1, -1, -1, 130, -1, 110, 111, - 112, 113, 114, 137, 116, 117, 118, 119, 120, 121, - 122, 123, 124, -1, -1, -1, -1, -1, 130, -1, - 110, 111, 112, 113, 114, 137, 116, 117, 118, 119, - 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, - 130, -1, 110, 111, 112, 113, 114, 137, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, 110, 111, 112, 113, 114, 137, - 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, - -1, -1, -1, -1, 130, -1, 110, 111, 112, 113, - 114, 137, 116, 117, 118, 119, 120, 121, 122, 123, - 124, -1, -1, -1, -1, -1, 130, -1, 110, 111, - 112, 113, 114, 137, 116, 117, 118, 119, 120, 121, - 122, 123, 124, -1, -1, -1, -1, -1, 130, -1, - 110, 111, 112, 113, 114, 137, 116, 117, 118, 119, - 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, - 130, -1, 110, 111, 112, 113, 114, 137, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, -1, -1, 134, 110, 111, 112, - 113, 114, -1, 116, 117, 118, 119, 120, 121, 122, - 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, - -1, 134, 110, 111, 112, 113, 114, -1, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, -1, -1, 134, 110, 111, 112, - 113, 114, -1, 116, 117, 118, 119, 120, 121, 122, - 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, - -1, 134, 110, 111, 112, 113, 114, -1, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, -1, -1, 134, 110, 111, 112, - 113, 114, -1, 116, 117, 118, 119, 120, 121, 122, - 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, - -1, 134, 110, 111, 112, 113, 114, -1, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, -1, -1, 134, 110, 111, 112, - 113, 114, -1, 116, 117, 118, 119, 120, 121, 122, - 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, - -1, 134, 110, 111, 112, 113, 114, -1, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, -1, -1, 134, 110, 111, 112, - 113, 114, -1, 116, 117, 118, 119, 120, 121, 122, - 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, - -1, 134, 110, 111, 112, 113, 114, -1, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, -1, -1, 134, 110, 111, 112, - 113, 114, -1, 116, 117, 118, 119, 120, 121, 122, - 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, - -1, 134, 110, 111, 112, 113, 114, -1, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, -1, -1, 134, 110, 111, 112, - 113, 114, -1, 116, 117, 118, 119, 120, 121, 122, - 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, - -1, 134, 110, 111, 112, 113, 114, -1, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, -1, -1, 134, 110, 111, 112, - 113, 114, -1, 116, 117, 118, 119, 120, 121, 122, - 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, - -1, 134, 110, 111, 112, 113, 114, -1, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, -1, -1, 134, 110, 111, 112, - 113, 114, -1, 116, 117, 118, 119, 120, 121, 122, - 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, - -1, 134, 110, 111, 112, 113, 114, -1, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, -1, -1, 134, 110, 111, 112, - 113, 114, -1, 116, 117, 118, 119, 120, 121, 122, - 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, - -1, 134, 110, 111, 112, 113, 114, -1, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, -1, -1, 134, 110, 111, 112, - 113, 114, -1, 116, 117, 118, 119, 120, 121, 122, - 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, - -1, 134, 110, 111, 112, 113, 114, -1, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, -1, -1, 134, 110, 111, 112, - 113, 114, -1, 116, 117, 118, 119, 120, 121, 122, - 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, - -1, 134, 110, 111, 112, 113, 114, -1, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, -1, -1, 134, 110, 111, 112, - 113, 114, -1, 116, 117, 118, 119, 120, 121, 122, - 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, - -1, 134, 110, 111, 112, 113, 114, -1, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, -1, -1, 134, 110, 111, 112, - 113, 114, -1, 116, 117, 118, 119, 120, 121, 122, - 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, - -1, 134, 110, 111, 112, 113, 114, -1, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, -1, -1, 134, 110, 111, 112, - 113, 114, -1, 116, 117, 118, 119, 120, 121, 122, - 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, - -1, 134, 110, 111, 112, 113, 114, -1, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, -1, -1, 134, 110, 111, 112, - 113, 114, -1, 116, 117, 118, 119, 120, 121, 122, - 123, 124, -1, -1, -1, -1, -1, 130, -1, 132, - 110, 111, 112, 113, 114, -1, 116, 117, 118, 119, - 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, - 130, -1, 132, 110, 111, 112, 113, 114, -1, 116, - 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, - -1, -1, -1, 130, -1, 132, 110, 111, 112, 113, - 114, -1, 116, 117, 118, 119, 120, 121, 122, 123, - 124, -1, -1, -1, -1, -1, 130, -1, 132, 110, - 111, 112, 113, 114, -1, 116, 117, 118, 119, 120, - 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, - -1, 132, 110, 111, 112, 113, 114, -1, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, 132, 110, 111, 112, 113, 114, - -1, 116, 117, 118, 119, 120, 121, 122, 123, 124, - -1, -1, -1, -1, -1, 130, -1, 132, 110, 111, - 112, 113, 114, -1, 116, 117, 118, 119, 120, 121, - 122, 123, 124, -1, -1, -1, -1, -1, 130, -1, - 132, 110, 111, 112, 113, 114, -1, 116, 117, 118, - 119, 120, 121, 122, 123, 124, -1, -1, -1, -1, - -1, 130, -1, 132, 110, 111, 112, 113, 114, -1, - 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, - -1, -1, -1, -1, 130, -1, 132, 110, 111, 112, - 113, 114, -1, 116, 117, 118, 119, 120, 121, 122, - 123, 124, -1, -1, -1, -1, -1, 130, -1, 132, - 110, 111, 112, 113, 114, -1, 116, 117, 118, 119, - 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, - 130, -1, 132, 110, 111, 112, 113, 114, -1, 116, - 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, - -1, -1, -1, 130, -1, 132, 110, 111, 112, 113, - 114, -1, 116, 117, 118, 119, 120, 121, 122, 123, - 124, -1, -1, -1, -1, -1, 130, -1, 132, 110, - 111, 112, 113, 114, -1, 116, 117, 118, 119, 120, - 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, - -1, 132, 110, 111, 112, 113, 114, -1, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, 132, 110, 111, 112, 113, 114, - -1, 116, 117, 118, 119, 120, 121, 122, 123, 124, - -1, -1, -1, -1, -1, 130, -1, 132, 110, 111, - 112, 113, 114, -1, 116, 117, 118, 119, 120, 121, - 122, 123, 124, -1, -1, -1, -1, -1, 130, -1, - 132, 110, 111, 112, 113, 114, -1, 116, 117, 118, - 119, 120, 121, 122, 123, 124, -1, -1, -1, -1, - -1, 130, -1, 132, 110, 111, 112, 113, 114, -1, - 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, - -1, -1, -1, -1, 130, -1, 132, 110, 111, 112, - 113, 114, -1, 116, 117, 118, 119, 120, 121, 122, - 123, 124, -1, -1, -1, -1, -1, 130, -1, 132, - 110, 111, 112, 113, 114, -1, 116, 117, 118, 119, - 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, - 130, -1, 132, 110, 111, 112, 113, 114, -1, 116, - 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, - -1, -1, -1, 130, -1, 132, 110, 111, 112, 113, - 114, -1, 116, 117, 118, 119, 120, 121, 122, 123, - 124, -1, -1, -1, -1, -1, 130, -1, 132, 110, - 111, 112, 113, 114, -1, 116, 117, 118, 119, 120, - 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, - -1, 132, 110, 111, 112, 113, 114, -1, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, 132, 110, 111, 112, 113, 114, - -1, 116, 117, 118, 119, 120, 121, 122, 123, 124, - -1, -1, -1, -1, -1, 130, -1, 132, 110, 111, - 112, 113, 114, -1, 116, 117, 118, 119, 120, 121, - 122, 123, 124, -1, -1, -1, -1, -1, 130, -1, - 132, 110, 111, 112, 113, 114, -1, 116, 117, 118, - 119, 120, 121, 122, 123, 124, -1, -1, -1, -1, - -1, 130, -1, 132, 110, 111, 112, 113, 114, -1, - 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, - -1, -1, -1, -1, 130, -1, 132, 110, 111, 112, - 113, 114, -1, 116, 117, 118, 119, 120, 121, 122, - 123, 124, -1, -1, -1, -1, -1, 130, -1, 132, - 110, 111, 112, 113, 114, -1, 116, 117, 118, 119, - 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, - 130, -1, 132, 110, 111, 112, 113, 114, -1, 116, - 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, - -1, -1, -1, 130, -1, 132, 110, 111, 112, 113, - 114, -1, 116, 117, 118, 119, 120, 121, 122, 123, - 124, -1, -1, -1, -1, -1, 130, -1, 132, 110, - 111, 112, 113, 114, -1, 116, 117, 118, 119, 120, - 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, - -1, 132, 110, 111, 112, 113, 114, -1, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, 132, 110, 111, 112, 113, 114, - -1, 116, 117, 118, 119, 120, 121, 122, 123, 124, - -1, -1, -1, -1, -1, 130, -1, 132, 110, 111, - 112, 113, 114, -1, 116, 117, 118, 119, 120, 121, - 122, 123, 124, -1, -1, -1, -1, -1, 130, -1, - 132, 110, 111, 112, 113, 114, -1, 116, 117, 118, - 119, 120, 121, 122, 123, 124, -1, -1, -1, -1, - -1, 130, -1, 132, 110, 111, 112, 113, 114, -1, - 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, - -1, -1, -1, -1, 130, -1, 132, 110, 111, 112, - 113, 114, -1, 116, 117, 118, 119, 120, 121, 122, - 123, 124, -1, -1, -1, -1, -1, 130, -1, 132, - 110, 111, 112, 113, 114, -1, 116, 117, 118, 119, - 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, - 130, -1, 132, 110, 111, 112, 113, 114, -1, 116, - 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, - -1, -1, -1, 130, -1, 132, 110, 111, 112, 113, - 114, -1, 116, 117, 118, 119, 120, 121, 122, 123, - 124, -1, -1, -1, -1, -1, 130, -1, 132, 110, - 111, 112, 113, 114, -1, 116, 117, 118, 119, 120, - 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, - -1, 132, 110, 111, 112, 113, 114, -1, 116, 117, - 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, - -1, -1, 130, -1, 132, 110, 111, 112, 113, 114, - -1, 116, 117, 118, 119, 120, 121, 122, 123, 124, - -1, -1, -1, -1, -1, 130, -1, 132, 110, 111, - 112, 113, 114, -1, 116, 117, 118, 119, 120, 121, - 122, 123, 124, -1, -1, -1, -1, -1, 130, -1, - 132, 110, 111, 112, 113, 114, -1, 116, 117, 118, - 119, 120, 121, 122, 123, 124, -1, -1, -1, -1, - -1, 130, -1, 132, 110, 111, 112, 113, 114, -1, - 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, - -1, -1, -1, -1, 130, -1, 132, 110, 111, 112, - 113, 114, -1, 116, 117, 118, 119, 120, 121, 122, - 123, 124, -1, -1, -1, -1, -1, 130 +/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ +static const unsigned char yyr2[] = +{ + 0, 2, 1, 2, 0, 2, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 5, 7, 6, 8, 0, 2, 2, 2, 2, 2, + 1, 3, 1, 3, 0, 0, 10, 1, 3, 0, + 13, 1, 3, 0, 15, 8, 0, 6, 1, 1, + 1, 1, 1, 1, 1, 4, 7, 9, 6, 6, + 3, 6, 6, 9, 6, 9, 5, 8, 8, 11, + 6, 9, 9, 9, 7, 8, 12, 6, 7, 7, + 7, 9, 7, 9, 17, 7, 7, 11, 8, 12, + 8, 8, 8, 12, 22, 20, 8, 8, 8, 7, + 8, 5, 11, 5, 9, 1, 1, 1, 0, 2, + 6, 6, 6, 6, 4, 6, 6, 6, 4, 6, + 3, 4, 5, 3, 3, 4, 4, 3, 7, 7, + 3, 7, 3, 2, 2, 15, 2, 6, 8, 8, + 10, 1, 2, 1, 3, 4, 1, 5, 11, 13, + 0, 7, 0, 13, 0, 15, 8, 8, 8, 12, + 12, 12, 14, 14, 14, 0, 12, 0, 12, 0, + 12, 0, 16, 0, 16, 0, 16, 0, 18, 0, + 18, 0, 18, 1, 2, 9, 7, 2, 6, 9, + 9, 8, 9, 8, 8, 6, 4, 2, 2, 1, + 3, 2, 2, 2, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 5, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 6, + 4, 4, 4, 4, 4, 4, 6, 6, 6, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 6, 4, 4, 4, 4, 4, 4, 6, 6, 6, + 4, 1, 1, 1, 1, 1, 1, 1, 1, 4, + 4, 2, 5, 3, 6, 4, 7, 6, 1, 2, + 2, 3, 3, 11, 9, 7, 7, 0, 3, 3, + 1, 3, 1, 1, 2, 3, 4, 3, 5, 4, + 1, 1, 1, 3, 4, 6, 7, 1, 1, 3, + 3, 9, 7, 1, 5, 3, 6, 1, 3, 1, + 1, 6, 4, 4, 4, 6, 6, 9 }; -/* -*-C-*- Note some compilers choke on comments on `#line' lines. */ -#line 3 "/usr/share/bison.simple" -/* This file comes from bison-1.28. */ -/* Skeleton output parser for bison, - Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc. +/* 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 short int yydefact[] = +{ + 0, 0, 0, 2, 3, 1, 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, 141, 0, 146, 0, 143, + 0, 0, 0, 0, 0, 5, 7, 6, 8, 9, + 10, 11, 12, 13, 14, 19, 18, 15, 16, 17, + 261, 268, 319, 48, 262, 263, 264, 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, 320, 0, 265, 266, 267, 52, 51, 50, + 49, 0, 0, 0, 54, 53, 0, 0, 0, 0, + 0, 0, 0, 199, 0, 0, 134, 0, 136, 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, 278, 0, 0, + 0, 0, 0, 0, 0, 0, 108, 0, 0, 108, + 197, 198, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 313, 0, 0, 0, 0, 0, 133, 0, 142, + 0, 319, 108, 0, 108, 0, 0, 0, 0, 271, + 0, 24, 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, 268, + 202, 201, 203, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 60, 130, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 127, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 268, 0, 0, 0, 300, 301, 302, 292, 0, 293, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 280, 279, 0, 0, 0, 0, + 108, 108, 0, 0, 0, 0, 0, 0, 0, 0, + 108, 0, 0, 0, 0, 120, 0, 0, 0, 0, + 0, 0, 132, 0, 0, 0, 0, 0, 0, 0, + 108, 0, 0, 0, 144, 0, 0, 123, 0, 124, + 0, 0, 273, 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, 200, 0, 0, 0, 307, 308, + 0, 0, 48, 0, 0, 0, 0, 0, 55, 0, + 217, 216, 215, 214, 210, 211, 213, 212, 205, 204, + 206, 207, 208, 209, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 268, 0, 294, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 282, + 281, 107, 0, 106, 105, 0, 0, 0, 0, 0, + 0, 0, 150, 0, 0, 0, 0, 0, 114, 109, + 196, 0, 121, 0, 118, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 145, + 0, 125, 126, 0, 269, 275, 24, 34, 0, 0, + 0, 46, 0, 25, 26, 27, 28, 29, 219, 240, + 220, 241, 221, 242, 222, 243, 223, 244, 224, 245, + 225, 246, 226, 247, 227, 248, 239, 260, 228, 249, + 0, 0, 230, 251, 231, 252, 232, 253, 233, 254, + 234, 255, 235, 256, 0, 0, 0, 0, 0, 0, + 0, 0, 324, 0, 0, 322, 323, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 66, 0, + 0, 0, 0, 270, 0, 20, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 303, 0, 0, 0, + 0, 295, 297, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 101, 103, 0, 0, 0, 0, 0, 147, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 122, 0, 0, + 0, 0, 0, 272, 0, 0, 0, 0, 0, 0, + 0, 22, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 269, 58, 59, 309, 310, + 0, 0, 0, 0, 0, 61, 62, 64, 0, 0, + 317, 0, 70, 218, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 299, 304, 0, 296, 0, + 77, 0, 0, 0, 0, 188, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 183, 115, 0, 0, + 0, 0, 195, 119, 0, 0, 116, 117, 0, 0, + 0, 287, 0, 314, 0, 0, 0, 137, 0, 129, + 274, 128, 0, 0, 0, 0, 0, 290, 0, 229, + 250, 236, 257, 237, 258, 238, 259, 0, 326, 325, + 321, 277, 0, 48, 0, 0, 0, 0, 56, 0, + 0, 0, 315, 21, 0, 74, 80, 0, 82, 0, + 0, 78, 0, 79, 99, 0, 0, 298, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 131, 0, 0, 0, 0, 108, 0, 165, 0, + 167, 0, 169, 0, 0, 187, 0, 151, 184, 0, + 0, 0, 0, 0, 0, 85, 86, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 276, 23, 0, 30, + 0, 0, 0, 0, 0, 32, 0, 0, 0, 0, + 67, 0, 0, 68, 0, 318, 0, 0, 0, 88, + 96, 305, 0, 0, 193, 91, 92, 0, 0, 0, + 191, 194, 98, 75, 90, 97, 100, 0, 0, 0, + 286, 0, 285, 0, 0, 156, 0, 0, 157, 0, + 0, 158, 0, 0, 0, 0, 110, 111, 112, 113, + 0, 0, 287, 0, 0, 0, 0, 0, 312, 0, + 139, 138, 0, 35, 0, 0, 0, 291, 0, 0, + 0, 0, 57, 63, 65, 0, 71, 0, 0, 81, + 83, 306, 0, 190, 189, 192, 72, 73, 108, 0, + 104, 0, 0, 0, 0, 0, 0, 108, 0, 0, + 0, 0, 0, 289, 288, 0, 0, 0, 0, 0, + 0, 31, 0, 0, 0, 33, 47, 327, 0, 316, + 0, 0, 0, 0, 284, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 152, 0, 0, 0, 0, 0, + 0, 0, 311, 140, 0, 0, 0, 0, 0, 69, + 0, 0, 102, 0, 171, 0, 0, 173, 0, 0, + 175, 0, 0, 148, 0, 108, 0, 0, 0, 0, + 0, 0, 87, 0, 0, 39, 0, 45, 0, 0, + 283, 159, 0, 0, 166, 160, 0, 0, 168, 161, + 0, 0, 170, 0, 154, 0, 186, 76, 89, 0, + 0, 93, 0, 0, 0, 0, 0, 0, 177, 0, + 179, 0, 181, 153, 149, 0, 0, 0, 0, 36, + 0, 43, 0, 0, 0, 162, 0, 0, 163, 0, + 0, 164, 0, 0, 185, 0, 0, 0, 37, 0, + 135, 0, 0, 0, 0, 0, 0, 0, 155, 0, + 0, 0, 0, 0, 0, 172, 0, 174, 0, 176, + 0, 0, 0, 38, 40, 0, 41, 84, 0, 0, + 0, 0, 0, 0, 0, 178, 180, 182, 0, 0, + 42, 44, 0, 0, 0, 95, 0, 94 +}; - 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 - the Free Software Foundation; either version 2, or (at your option) - any later version. +/* YYDEFGOTO[NTERM-NUM]. */ +static const short int yydefgoto[] = +{ + -1, 2, 3, 55, 56, 57, 364, 878, 884, 533, + 676, 1000, 1127, 534, 1093, 1155, 535, 1129, 536, 537, + 680, 120, 199, 58, 499, 294, 482, 483, 295, 62, + 63, 64, 65, 66, 296, 648, 1054, 1105, 926, 929, + 932, 1072, 1076, 1080, 1116, 1119, 1122, 755, 756, 68, + 69, 297, 123, 314, 157, 870, 786, 787, 299, 420, + 183, 602, 711, 124 +}; - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. +/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing + STATE-NUM. */ +#define YYPACT_NINF -837 +static const short int yypact[] = +{ + 2246, 47, 20, 2631, -837, -837, 1762, -62, 4, 66, + -37, -28, -14, -32, 64, -11, 34, 88, 56, 139, + 193, 212, 399, 227, 203, 153, 189, 343, 343, 210, + 271, 9, 317, 14, 388, 415, 72, 421, 429, 441, + 320, 337, -33, 18, 19, -837, 345, -837, 476, -837, + 483, 504, 482, 2, 26, -837, -837, -837, -837, -837, + -837, -837, -837, -837, -837, -837, -837, -837, -837, -837, + -837, 10, 21, -837, -837, -837, -837, -86, 177, 206, + 230, 238, 326, 359, 431, 468, 474, 479, 532, 548, + 551, 552, 555, 556, 560, 561, 564, 568, 372, 385, + 390, 417, -837, 425, -837, -837, -837, -837, -837, -837, + -837, 1975, 1975, 1975, -837, -837, 1975, 1366, 30, 553, + 1975, 569, 789, -837, 587, 562, -837, 1975, -837, 1975, + 1975, 1975, 473, 1975, 478, 1975, 1975, 1299, 1975, 459, + 493, 503, 1299, 501, 505, 511, 521, 535, 536, 539, + 610, 343, 343, 343, 1975, 1975, -43, -837, 168, 343, + 567, 609, 613, 1602, 226, 541, -837, 1299, 13, -837, + -837, -837, 1299, 1299, 545, 619, 774, 1975, 1975, -45, + 1975, 563, 1975, 649, 697, 1975, 1975, -837, 783, -837, + 660, -837, -837, 786, -837, 787, 661, 1975, 792, -837, + 343, -837, 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, + 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, + 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, + 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, + 1975, 1975, 1975, 1975, 39, 470, 470, 470, 795, 526, + 667, 667, 667, 4746, 17, 1811, 4095, 185, 666, 810, + 686, 815, -837, -837, 1975, 1975, 1975, 1975, 1975, 1975, + 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, 1975, -837, + 53, 2431, 4769, 4792, 4815, 1975, 4838, 1975, 4861, 4884, + 529, 682, 1632, 1165, -837, -837, -837, 2049, 818, -837, + 4907, 1975, 1975, 1975, 821, 1975, 1975, 1975, 1975, 1975, + 1975, 1975, 698, 268, -837, -837, 3255, 3279, 343, 343, + 574, 574, 333, 1975, 1975, 1975, 1602, 1602, 1975, 381, + -837, 1975, 2307, 188, 823, -837, 1975, 2328, 824, 825, + 1975, 1975, -837, 4930, 4953, 747, 1975, 4976, 746, 3303, + -837, 699, 2066, 4999, -837, 1975, 2373, -837, 2418, -837, + 1975, 4116, 117, 261, 5, 5022, 4137, 5045, 4158, 5068, + 4179, 5091, 4200, 5114, 4221, 5137, 4242, 5160, 4263, 5183, + 4284, 5206, 4305, 5229, 4326, 5252, 4347, 3327, 3351, 5275, + 4368, 5298, 4389, 5321, 4410, 5344, 4431, 5367, 4452, 5390, + 4473, 3375, 3399, 3423, 3447, 3471, 3495, 461, 141, 702, + 703, 708, 704, 1975, -837, 1299, 1299, 2005, 2049, -837, + 565, 147, 470, 1975, 836, 839, 23, 710, -837, 2083, + 1159, 762, 499, 499, 402, 402, 402, 402, -65, -65, + 667, 667, 667, 667, 840, 1811, 1975, 838, 841, 843, + 5413, 844, 5436, 845, 846, 1429, 1975, 540, 1811, -837, + 585, 1975, 1975, 848, 2683, 5459, 5482, 1975, 2709, 2735, + 5505, 5528, 5551, 5574, 5597, 712, 343, 1975, 1975, -837, + -837, -837, 720, 975, -837, 721, 1975, 3519, 3543, 3567, + 2320, 343, 2439, 4494, -67, -46, -41, -51, -837, -837, + -837, 1975, -837, 4515, -837, 723, 724, 4536, 4557, 856, + 857, 734, 5620, 859, 732, 1975, 2484, 1975, 1975, -837, + 5643, -837, -837, 4578, 350, -837, -837, -837, 737, 739, + 733, -837, 867, -837, -837, -837, -837, -837, -837, -837, + -837, -837, -837, -837, -837, -837, -837, -837, -837, -837, + -837, -837, -837, -837, -837, -837, -837, -837, -837, -837, + 1975, 1975, -837, -837, -837, -837, -837, -837, -837, -837, + -837, -837, -837, -837, 1975, 1975, 1975, 1975, 1975, 1975, + 1975, 884, -837, 1811, 470, -837, -837, 1975, 4599, 883, + 887, 1811, 761, 89, 1975, 888, 890, 850, -837, 895, + 781, 18, 910, -837, 1975, -837, 264, 3591, 343, 1299, + 1299, 911, 1299, 913, 1299, 1299, -837, 1811, 2761, 1565, + 590, -837, 2104, 970, 779, 914, 916, 917, 596, 933, + 935, 937, 939, 940, 942, 943, 947, 424, 3615, 3639, + -837, -837, 2787, 343, 343, 343, 426, -837, 60, 946, + 1811, 1811, 1811, 1811, 997, 948, 1975, 1975, 949, 950, + 1299, 1299, 1975, 956, 1299, 974, 3663, -837, 2121, 692, + 976, 981, 978, -837, 982, 12, 858, 1975, 1975, 1299, + 853, -837, 5666, 4620, 5689, 4641, 5712, 4662, 5735, 4683, + 4704, 860, 282, 861, 5758, 6, -837, -837, 2049, -837, + 329, 244, 863, 987, 1030, -837, -837, -837, 18, 1975, + -837, 591, -837, 2536, 989, 1975, 42, 48, 50, 1299, + 993, 1299, 994, 995, 594, -837, -837, 1811, -837, 1975, + -837, 1975, 1299, 1299, 1299, -837, 354, 1299, 1299, 1299, + 1299, 1299, 1299, 1299, 492, 1975, 1975, 1975, 864, -69, + 239, 376, 1602, 1000, 870, -27, -837, -837, 595, 599, + 605, 606, -837, -837, 3687, 3711, -837, -837, 1003, 1004, + 5781, -23, 925, -837, 1975, 1975, 1975, -837, 875, -837, + 117, -837, 1008, 1975, 3735, 3759, 623, -837, 1975, -837, + -837, -837, -837, -837, -837, -837, -837, 889, -837, -837, + -837, -837, 1299, 470, 1975, 1020, 1028, 23, -837, 1027, + 4725, 18, -837, -837, 3783, -837, -837, 343, -837, 343, + 1029, -837, 1031, -837, -837, 900, 624, 2536, 3807, 1032, + 1034, 1035, 1975, 1975, 760, 1037, 1038, 1040, 1042, 1043, + 1044, -837, 1940, 2813, 5804, 2143, 574, 343, 1045, 343, + 1046, 343, 1047, 2839, 439, -837, 1299, -837, -837, 1048, + 1049, 1053, 1055, 1975, 1975, -837, -837, 1056, 1299, 1299, + 977, 1299, 2623, 419, 5827, 1975, -837, -837, 352, 2536, + 1975, 1975, 1299, 927, 628, 2536, 1063, 1062, 1064, 1093, + -837, 1066, 1065, -837, 934, -837, 1975, 49, 61, -837, + -837, -837, 941, 1975, -837, -837, -837, 1132, 1227, 1072, + -837, -837, -837, -837, -837, -837, -837, 1399, 1073, 945, + -837, 1975, -837, 957, 445, -837, 959, 458, -837, 960, + 463, -837, 963, 964, 1975, 958, -837, -837, -837, -837, + 3831, 3855, -23, 356, 634, 965, 1021, 1975, -837, 1975, + -837, -837, 3879, -837, 1975, 3903, 3927, -837, 1299, 1975, + 1098, 990, -837, -837, -837, 18, -837, 1036, 3951, -837, + -837, -837, 3975, -837, -837, -837, -837, -837, 574, 2653, + -837, 1602, 60, 1602, 60, 1602, 60, -837, 2865, 1299, + 1975, 1975, 1023, -837, -837, 1299, 1975, 2891, 2917, 1299, + 986, 2536, 1975, 1975, 635, 2536, -837, -837, 1120, -837, + 1975, 1123, 991, 1975, -837, 2943, 466, 28, 2969, 469, + 36, 2995, 471, 217, 2529, 998, 639, 3021, 3047, 1005, + 992, 2032, -837, -837, 996, 1975, 5850, 3999, 1126, -837, + 4023, 1025, -837, 3073, 1151, 1975, 1152, 1158, 1975, 1161, + 1164, 1975, 1166, -837, 60, -837, 1299, 1167, 1192, 1193, + 1299, 1299, -837, 1194, 642, -837, 1975, -837, 1975, 1196, + -837, -837, 1033, 3099, -837, -837, 1080, 3125, -837, -837, + 1081, 3151, -837, 258, 2550, 1082, -837, -837, -837, 1083, + 1085, -837, 1216, 1087, 5873, 3177, 1095, 60, 1228, 60, + 1229, 60, 1230, -837, -837, 60, 1231, 1299, 1118, -837, + 470, -837, 1232, 1236, 265, -837, 1107, 302, -837, 1119, + 327, -837, 1121, 330, -837, 1122, 1125, 646, -837, 1127, + -837, 1133, 1252, 60, 1254, 60, 1258, 60, -837, 1182, + 1975, 470, 1278, 470, 1281, -837, 347, -837, 355, -837, + 361, 1150, 4047, -837, -837, 647, -837, -837, 1284, 1286, + 1287, 1975, 1975, 470, 1288, -837, -837, -837, 4071, 3203, + -837, -837, 1975, 1292, 3229, -837, 1294, -837 +}; - 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. */ +/* YYPGOTO[NTERM-NUM]. */ +static const short int yypgoto[] = +{ + -837, -837, -837, -837, -837, -837, 780, -837, 270, -837, + -837, -837, -837, -837, -837, -837, -837, -837, -837, -837, + -837, -253, -5, -837, 1304, 3, -318, -164, 8, -837, + -837, -837, -837, -837, 1329, -837, -837, -837, -837, -837, + -837, -837, -837, -837, -837, -837, -837, -675, -740, -837, + -837, -6, -837, 314, -837, 391, -836, 16, -100, -285, + -572, 527, -837, -4 +}; -/* 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. */ +/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If + positive, shift that token. If negative, reduce the rule which + number is the opposite. If zero, do what YYDEFACT says. + If YYTABLE_NINF, syntax error. */ +#define YYTABLE_NINF -5 +static const short int yytable[] = +{ + 122, 121, 332, 485, 423, 337, 60, 191, 460, 527, + 126, 61, 179, 165, 196, 858, 527, 334, 168, 335, + 5, 132, 181, 184, 415, 200, 134, 600, 356, 710, + 358, 191, 943, 944, 257, 132, 98, 99, 100, 101, + 345, 753, 102, 407, 191, 202, 754, 203, 815, 193, + 195, 318, 319, 4, 816, 969, 818, 275, 276, 277, + 98, 99, 100, 101, 129, 278, 102, 970, 847, 125, + 848, 650, 128, 98, 99, 100, 101, 318, 319, 102, + 136, 528, 529, 530, 531, 133, 346, 653, 528, 529, + 530, 531, 651, 701, 129, 320, 753, 652, 180, 133, + 817, 754, 819, 130, 753, 250, 251, 252, 868, 754, + 253, 256, 857, 172, 261, 869, 173, 131, 258, 259, + 135, 281, 1004, 282, 283, 284, 416, 286, 753, 288, + 289, 134, 300, 754, 114, 115, 809, 137, 114, 115, + 192, 672, 127, 197, 532, 198, 336, 166, 316, 317, + 185, 782, 169, 298, 73, 419, 182, 317, 304, 201, + 606, 601, 318, 319, 194, 136, 492, 1046, 594, 318, + 319, 343, 344, 620, 347, 1049, 349, 702, 703, 352, + 353, 318, 319, 333, 139, 444, 516, 138, 338, 339, + 445, 361, 422, 419, 500, 501, 365, 366, 367, 368, + 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, + 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, + 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, + 399, 400, 401, 402, 403, 404, 405, 406, 140, 895, + 408, 409, 410, 411, 146, 114, 115, 147, 148, 418, + 149, 803, 424, 107, 108, 109, 110, 141, 429, 430, + 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, + 441, 442, 443, 582, 145, 114, 115, 858, 583, 450, + 858, 452, 593, 858, 150, 753, 251, 418, 318, 319, + 754, 107, 108, 109, 110, 464, 465, 466, 692, 468, + 469, 470, 471, 472, 473, 474, 321, 1017, 204, 1020, + 205, 1023, 160, 114, 115, 161, 162, 487, 488, 489, + 250, 251, 490, 481, 481, 493, 753, 151, 484, 484, + 503, 754, 724, 753, 507, 508, 73, 206, 754, 207, + 512, 156, 158, 858, 164, 419, 318, 319, 159, 520, + 107, 108, 109, 110, 523, 191, 1052, 525, 419, 318, + 319, 208, 167, 209, 330, 758, 759, 760, 761, 210, + 753, 211, 114, 115, 858, 754, 849, 858, 850, 1083, + 858, 318, 319, 858, 98, 99, 100, 101, 318, 319, + 102, 152, 153, 1008, 170, 753, 714, 1103, 753, 526, + 754, 591, 154, 754, 1132, 476, 858, 588, 858, 163, + 858, 251, 832, 833, 799, 753, 595, 597, 596, 591, + 754, 171, 1114, 753, 1117, 174, 1120, 949, 754, 753, + 1123, 589, 590, 175, 754, 107, 108, 109, 110, 418, + 607, 1134, 826, 142, 143, 176, 144, 802, 804, 588, + 618, 177, 418, 318, 319, 622, 623, 212, 1146, 213, + 1148, 628, 1150, 152, 153, 313, 1136, 315, 178, 1138, + 486, 638, 639, 322, 154, 191, 186, 329, 114, 115, + 642, 155, 187, 419, 953, 672, 1158, 188, 993, 954, + 214, 699, 215, 882, 1159, 654, 318, 319, 841, 842, + 1160, 318, 319, 244, 98, 99, 100, 101, 189, 666, + 102, 668, 669, 851, 363, 852, 245, 419, 491, 673, + 674, 246, 273, 274, 275, 276, 277, 190, 923, 264, + 265, 266, 278, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 318, 319, 318, 319, 247, 278, + 419, 419, 419, 419, 682, 683, 248, 260, 950, 318, + 319, 745, 216, 752, 217, 318, 319, 280, 684, 685, + 686, 687, 688, 689, 690, 262, 934, 418, 318, 319, + 693, 694, 981, 318, 319, 698, 318, 319, 704, 318, + 319, 318, 319, 279, 580, 983, 581, 301, 713, 218, + 985, 219, 735, 1045, 285, 220, 1048, 221, 1051, 287, + 222, 418, 223, 588, 312, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 302, 717, 718, 419, 720, 278, + 722, 723, 479, 480, 303, 26, 27, 28, 29, 305, + 31, 315, 307, 306, 418, 418, 418, 418, 37, 38, + 764, 765, 308, 736, 114, 115, 770, 114, 115, 413, + 1012, 198, 455, 224, 198, 225, 309, 310, 114, 115, + 311, 784, 785, 619, 331, 198, 768, 769, 340, 226, + 772, 227, 228, 230, 229, 231, 232, 234, 233, 235, + 673, 236, 238, 237, 239, 240, 805, 241, 348, 242, + 776, 243, 591, 810, 592, 323, 264, 265, 266, 814, + 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, + 277, 418, 591, 827, 621, 828, 278, 591, 811, 728, + 812, 591, 591, 825, 859, 820, 591, 822, 860, 843, + 844, 845, 591, 591, 861, 862, 853, 324, 829, 830, + 831, 325, 341, 834, 835, 836, 837, 838, 839, 840, + 882, 591, 883, 902, 909, 959, 910, 960, 872, 873, + 874, 882, 882, 994, 1038, 876, 1056, 879, 1057, 959, + 342, 1092, 885, 1141, 1163, 1142, 1164, 350, 351, 354, + 637, 355, 357, 359, 360, 263, 362, 278, 889, 888, + 412, 425, 264, 265, 266, 646, 267, 268, 269, 270, + 271, 272, 273, 274, 275, 276, 277, 426, 887, 427, + 456, 428, 278, 1024, 777, 462, 907, 908, 467, 502, + 475, 505, 506, 511, 514, 585, 917, 517, 918, 584, + 586, 587, 598, 599, 603, 608, 605, 636, 609, 481, + 610, 612, 614, 615, 484, 624, 707, 940, 941, 640, + 641, 656, 657, 660, 661, 662, 664, 665, 677, 952, + 678, 679, 935, 681, 955, 956, 267, 268, 269, 270, + 271, 272, 273, 274, 275, 276, 277, 946, 691, 696, + 968, 1084, 278, 697, 705, 700, 706, 972, 957, 264, + 265, 266, 708, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 709, 979, 712, 731, 719, 278, + 721, 732, 716, 733, 734, 264, 265, 266, 988, 267, + 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, + 737, 997, 738, 998, 739, 278, 740, 741, 1001, 742, + 743, 744, 757, 1005, 763, 766, 767, 749, 750, 751, + 264, 265, 266, 771, 267, 268, 269, 270, 271, 272, + 273, 274, 275, 276, 277, 1015, 730, 1018, 773, 1021, + 278, 481, 780, 778, 1027, 1028, 484, 779, 781, 783, + 1031, 788, 798, 800, 807, 813, 1036, 1037, 806, 821, + 823, 824, 846, 762, 1040, 1026, 855, 1043, 856, 865, + 866, 1030, 871, 875, 877, 1034, 494, 11, 12, 495, + 496, 15, 497, 17, 886, 18, 890, 20, 21, 885, + 23, 24, 891, 893, 901, 899, 808, 900, 904, 1073, + 905, 906, 1077, 911, 912, 1081, 913, 36, 914, 915, + 916, 925, 928, 931, 936, 937, 40, 41, 42, 938, + 1094, 939, 1095, 942, 945, 958, 854, 961, 962, 967, + 963, 966, 1085, 965, 52, 971, 1089, 1090, 975, 977, + 264, 265, 266, 978, 267, 268, 269, 270, 271, 272, + 273, 274, 275, 276, 277, 989, 980, 982, 984, 964, + 278, 986, 987, 995, 1006, 996, 1128, 264, 265, 266, + 1029, 267, 268, 269, 270, 271, 272, 273, 274, 275, + 276, 277, 1007, 1125, 1035, 1009, 1039, 278, 1041, 1061, + 1042, 897, 1067, 898, 1152, 1063, 1055, 1153, 973, 1156, + 264, 265, 266, 1060, 267, 268, 269, 270, 271, 272, + 273, 274, 275, 276, 277, 1168, 1169, 1071, 1074, 1170, + 278, 924, 1069, 927, 1075, 930, 1174, 1078, 70, 290, + 1079, 1097, 1082, 1086, 74, 75, 76, 77, 78, 79, + 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, + 90, 91, 92, 93, 94, 95, 96, 97, 1087, 1088, + 1091, 1096, 1126, 264, 265, 266, 291, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 1099, 1101, + 1107, 1106, 1109, 278, 1108, 1110, 26, 27, 28, 29, + 30, 31, 1113, 974, 1115, 1118, 1121, 1124, 1130, 37, + 38, 1131, 264, 265, 266, 1133, 267, 268, 269, 270, + 271, 272, 273, 274, 275, 276, 277, 1135, 1145, 1137, + 1147, 1139, 278, 1140, 1149, 1143, 1151, 103, 104, 105, + 106, 266, 1144, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 1154, 111, 417, 1157, 1161, 278, + 1165, 113, 1166, 1167, 1171, 1016, 116, 1019, 1175, 1022, + 1177, 119, 70, 290, 459, 1064, 675, 59, 74, 75, + 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, + 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, + 96, 97, 67, 992, 892, 0, 0, 264, 265, 266, + 291, 267, 268, 269, 270, 271, 272, 273, 274, 275, + 276, 277, 0, 0, 0, 0, 0, 278, 0, 0, + 26, 27, 28, 29, 30, 31, 0, 0, 0, 70, + 249, 0, 0, 37, 38, 74, 75, 76, 77, 78, + 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, + 89, 90, 91, 92, 93, 94, 95, 96, 97, 0, + 0, 103, 104, 105, 106, 976, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, + 292, 0, 0, 0, 0, 113, 0, 0, 0, 0, + 116, 0, 70, 249, 0, 119, 0, 293, 74, 75, + 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, + 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, + 96, 97, 0, 0, 0, 0, 0, 0, 103, 104, + 105, 106, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 111, 112, 0, 0, + 0, 0, 113, 0, 0, 0, 0, 116, 0, 0, + 254, 0, 119, 0, 255, 0, 0, 0, 0, 264, + 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 0, 0, 0, 0, 0, 278, + 0, 103, 104, 105, 106, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, + 112, 0, 0, 0, 0, 113, 0, 0, 0, 0, + 116, 0, 0, 616, 0, 119, 0, 617, 70, 249, + 0, 0, 0, 0, 74, 75, 76, 77, 78, 79, + 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, + 90, 91, 92, 93, 94, 95, 96, 97, 0, 0, + 0, 0, 0, 0, 0, 70, 249, 0, 0, 0, + 0, 74, 75, 76, 77, 78, 79, 80, 81, 82, + 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, + 93, 94, 95, 96, 97, 70, 457, 0, 0, 0, + 0, 74, 75, 76, 77, 78, 79, 80, 81, 82, + 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, + 93, 94, 95, 96, 97, 0, 0, 103, 104, 105, + 106, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 111, 112, 0, 0, 0, + 0, 113, 0, 0, 0, 0, 116, 0, 0, 726, + 0, 119, 0, 727, 103, 104, 105, 106, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 326, 327, 0, 0, 0, 0, 113, 0, + 0, 0, 0, 328, 103, 104, 105, 106, 119, 0, + 155, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 111, 112, 0, 0, 0, 0, 113, 0, + 0, 0, 0, 116, 0, 70, 71, 72, 119, 73, + 458, 74, 75, 76, 77, 78, 79, 80, 81, 82, + 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, + 93, 94, 95, 96, 97, 0, 98, 99, 100, 101, + 0, 0, 102, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 70, 290, 0, 0, 0, 0, + 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, + 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, + 94, 95, 96, 97, 0, 0, 0, 0, 0, 0, + 0, 0, 291, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 103, 104, 105, 106, 107, 108, + 109, 110, 26, 27, 28, 29, 30, 31, 0, 0, + 0, 0, 111, 112, 0, 37, 38, 0, 113, 0, + 114, 115, 0, 116, 0, 117, 0, 118, 119, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 103, 104, 105, 106, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 111, 417, 0, 0, 0, 0, 113, 0, 0, + 0, 0, 116, 70, 249, 191, 0, 119, 0, 74, + 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, + 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, + 95, 96, 97, 0, 98, 99, 100, 101, 70, 249, + 102, 0, 0, 0, 74, 75, 76, 77, 78, 79, + 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, + 90, 91, 92, 93, 94, 95, 96, 97, 70, 457, + 0, 0, 0, 0, 74, 75, 76, 77, 78, 79, + 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, + 90, 91, 92, 93, 94, 95, 96, 97, 1062, 0, + 0, 0, 103, 104, 105, 106, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 461, 0, 0, + 111, 112, 0, 0, 0, 0, 113, 0, 0, 0, + 0, 116, 0, 0, 518, 0, 119, 103, 104, 105, + 106, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 604, 0, 0, 0, 111, 112, 0, 0, 0, + 0, 113, 0, 0, 0, 0, 116, 103, 104, 105, + 106, 119, 729, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 111, 112, 0, 0, 775, + 0, 113, 0, 0, 0, 0, 116, 0, 0, 0, + 0, 119, 264, 265, 266, 0, 267, 268, 269, 270, + 271, 272, 273, 274, 275, 276, 277, 0, 0, 264, + 265, 266, 278, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 0, 0, 264, 265, 266, 278, + 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, + 277, 0, 0, 264, 265, 266, 278, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 0, 0, + 0, 0, 0, 278, 264, 265, 266, 0, 267, 268, + 269, 270, 271, 272, 273, 274, 275, 276, 277, 0, + 0, 264, 265, 266, 278, 267, 268, 269, 270, 271, + 272, 273, 274, 275, 276, 277, -4, 1, 0, 0, + -4, 278, 0, 264, 265, 266, 0, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 0, 0, + 0, 0, 0, 278, 0, 0, 0, 0, 0, -4, + 921, 0, 922, 0, -4, -4, 0, -4, -4, -4, + -4, -4, -4, -4, -4, 0, -4, -4, -4, -4, + -4, -4, -4, 0, 0, 0, -4, -4, -4, -4, + -4, -4, -4, 0, -4, -4, -4, -4, -4, 0, + -4, -4, 0, 0, 0, 0, -4, -4, -4, -4, + 0, 0, 0, 0, -4, 0, -4, 0, -4, -4, + -4, -4, -4, -4, -4, -4, -4, -4, 494, 11, + 12, 495, 496, 15, 497, 17, 0, 18, 0, 20, + 21, 0, 23, 24, 0, 0, 0, 0, 0, 494, + 11, 12, 495, 496, 15, 497, 17, 0, 18, 36, + 20, 21, 0, 23, 24, 0, 0, 0, 40, 41, + 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 36, 0, 0, 0, 0, 0, 52, 0, 0, 40, + 41, 42, 0, 0, 494, 11, 12, 495, 496, 15, + 497, 17, 0, 18, 0, 20, 21, 52, 23, 24, + 264, 265, 266, 0, 267, 268, 269, 270, 271, 272, + 273, 274, 275, 276, 277, 36, 498, 0, 0, 0, + 278, 0, 414, 0, 40, 41, 42, 477, 0, 494, + 11, 12, 495, 496, 15, 497, 17, 504, 18, 0, + 20, 21, 52, 23, 24, 0, 0, 0, 0, 0, + 494, 11, 12, 495, 496, 15, 497, 17, 0, 18, + 36, 20, 21, 0, 23, 24, 0, 0, 0, 40, + 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 36, 521, 0, 0, 0, 0, 52, 0, 0, + 40, 41, 42, 0, 0, 494, 11, 12, 495, 496, + 15, 497, 17, 0, 18, 0, 20, 21, 52, 23, + 24, 264, 265, 266, 0, 267, 268, 269, 270, 271, + 272, 273, 274, 275, 276, 277, 36, 522, 0, 0, + 0, 278, 0, 0, 0, 40, 41, 42, 446, 0, + 494, 11, 12, 495, 496, 15, 497, 17, 647, 18, + 0, 20, 21, 52, 23, 24, 0, 0, 0, 0, + 0, 494, 11, 12, 495, 496, 15, 497, 17, 0, + 18, 36, 20, 21, 0, 23, 24, 0, 0, 0, + 40, 41, 42, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 36, 667, 0, 0, 0, 0, 52, 0, + 0, 40, 41, 42, 0, 6, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 264, 265, 266, 52, + 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, + 277, 0, 0, 0, 7, 0, 278, 0, 1053, 8, + 9, 0, 10, 11, 12, 13, 14, 15, 16, 17, + 0, 18, 19, 20, 21, 22, 23, 24, 0, 1104, + 0, 25, 26, 27, 28, 29, 30, 31, 0, 32, + 33, 34, 35, 36, 0, 37, 38, 0, 0, 0, + 0, 39, 40, 41, 42, 0, 0, 0, 0, 43, + 0, 44, 0, 45, 46, 47, 48, 49, 50, 51, + 52, 53, 54, 264, 265, 266, 0, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 0, 0, + 0, 0, 0, 278, 0, 0, 0, 0, 0, 0, + 947, 0, 948, 264, 265, 266, 0, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 0, 0, + 0, 0, 0, 278, 0, 0, 0, 0, 0, 0, + 1013, 0, 1014, 264, 265, 266, 0, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 0, 0, + 0, 0, 0, 278, 0, 0, 0, 0, 0, 264, + 265, 266, 625, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 0, 0, 0, 0, 0, 278, + 0, 0, 0, 0, 0, 264, 265, 266, 629, 267, + 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, + 0, 0, 0, 0, 0, 278, 0, 0, 0, 0, + 0, 264, 265, 266, 630, 267, 268, 269, 270, 271, + 272, 273, 274, 275, 276, 277, 0, 0, 0, 0, + 0, 278, 0, 0, 0, 0, 0, 264, 265, 266, + 725, 267, 268, 269, 270, 271, 272, 273, 274, 275, + 276, 277, 0, 0, 0, 0, 0, 278, 0, 0, + 0, 0, 0, 264, 265, 266, 748, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 0, 0, + 0, 0, 0, 278, 0, 0, 0, 0, 0, 264, + 265, 266, 919, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 0, 0, 0, 0, 0, 278, + 0, 0, 0, 0, 0, 264, 265, 266, 933, 267, + 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, + 0, 0, 0, 0, 0, 278, 0, 0, 0, 0, + 0, 264, 265, 266, 1025, 267, 268, 269, 270, 271, + 272, 273, 274, 275, 276, 277, 0, 0, 0, 0, + 0, 278, 0, 0, 0, 0, 0, 264, 265, 266, + 1032, 267, 268, 269, 270, 271, 272, 273, 274, 275, + 276, 277, 0, 0, 0, 0, 0, 278, 0, 0, + 0, 0, 0, 264, 265, 266, 1033, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 0, 0, + 0, 0, 0, 278, 0, 0, 0, 0, 0, 264, + 265, 266, 1044, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 0, 0, 0, 0, 0, 278, + 0, 0, 0, 0, 0, 264, 265, 266, 1047, 267, + 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, + 0, 0, 0, 0, 0, 278, 0, 0, 0, 0, + 0, 264, 265, 266, 1050, 267, 268, 269, 270, 271, + 272, 273, 274, 275, 276, 277, 0, 0, 0, 0, + 0, 278, 0, 0, 0, 0, 0, 264, 265, 266, + 1058, 267, 268, 269, 270, 271, 272, 273, 274, 275, + 276, 277, 0, 0, 0, 0, 0, 278, 0, 0, + 0, 0, 0, 264, 265, 266, 1059, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 0, 0, + 0, 0, 0, 278, 0, 0, 0, 0, 0, 264, + 265, 266, 1070, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 0, 0, 0, 0, 0, 278, + 0, 0, 0, 0, 0, 264, 265, 266, 1098, 267, + 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, + 0, 0, 0, 0, 0, 278, 0, 0, 0, 0, + 0, 264, 265, 266, 1100, 267, 268, 269, 270, 271, + 272, 273, 274, 275, 276, 277, 0, 0, 0, 0, + 0, 278, 0, 0, 0, 0, 0, 264, 265, 266, + 1102, 267, 268, 269, 270, 271, 272, 273, 274, 275, + 276, 277, 0, 0, 0, 0, 0, 278, 0, 0, + 0, 0, 0, 264, 265, 266, 1112, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 0, 0, + 0, 0, 0, 278, 0, 0, 0, 0, 0, 264, + 265, 266, 1173, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 0, 0, 0, 0, 0, 278, + 0, 0, 0, 0, 0, 264, 265, 266, 1176, 267, + 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, + 0, 0, 0, 0, 0, 278, 0, 0, 0, 264, + 265, 266, 477, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 0, 0, 0, 0, 0, 278, + 0, 0, 0, 264, 265, 266, 478, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 0, 0, + 0, 0, 0, 278, 0, 0, 0, 264, 265, 266, + 515, 267, 268, 269, 270, 271, 272, 273, 274, 275, + 276, 277, 0, 0, 0, 0, 0, 278, 0, 0, + 0, 264, 265, 266, 560, 267, 268, 269, 270, 271, + 272, 273, 274, 275, 276, 277, 0, 0, 0, 0, + 0, 278, 0, 0, 0, 264, 265, 266, 561, 267, + 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, + 0, 0, 0, 0, 0, 278, 0, 0, 0, 264, + 265, 266, 574, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 0, 0, 0, 0, 0, 278, + 0, 0, 0, 264, 265, 266, 575, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 0, 0, + 0, 0, 0, 278, 0, 0, 0, 264, 265, 266, + 576, 267, 268, 269, 270, 271, 272, 273, 274, 275, + 276, 277, 0, 0, 0, 0, 0, 278, 0, 0, + 0, 264, 265, 266, 577, 267, 268, 269, 270, 271, + 272, 273, 274, 275, 276, 277, 0, 0, 0, 0, + 0, 278, 0, 0, 0, 264, 265, 266, 578, 267, + 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, + 0, 0, 0, 0, 0, 278, 0, 0, 0, 264, + 265, 266, 579, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 0, 0, 0, 0, 0, 278, + 0, 0, 0, 264, 265, 266, 643, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 0, 0, + 0, 0, 0, 278, 0, 0, 0, 264, 265, 266, + 644, 267, 268, 269, 270, 271, 272, 273, 274, 275, + 276, 277, 0, 0, 0, 0, 0, 278, 0, 0, + 0, 264, 265, 266, 645, 267, 268, 269, 270, 271, + 272, 273, 274, 275, 276, 277, 0, 0, 0, 0, + 0, 278, 0, 0, 0, 264, 265, 266, 715, 267, + 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, + 0, 0, 0, 0, 0, 278, 0, 0, 0, 264, + 265, 266, 746, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 0, 0, 0, 0, 0, 278, + 0, 0, 0, 264, 265, 266, 747, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 0, 0, + 0, 0, 0, 278, 0, 0, 0, 264, 265, 266, + 774, 267, 268, 269, 270, 271, 272, 273, 274, 275, + 276, 277, 0, 0, 0, 0, 0, 278, 0, 0, + 0, 264, 265, 266, 863, 267, 268, 269, 270, 271, + 272, 273, 274, 275, 276, 277, 0, 0, 0, 0, + 0, 278, 0, 0, 0, 264, 265, 266, 864, 267, + 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, + 0, 0, 0, 0, 0, 278, 0, 0, 0, 264, + 265, 266, 880, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 0, 0, 0, 0, 0, 278, + 0, 0, 0, 264, 265, 266, 881, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 0, 0, + 0, 0, 0, 278, 0, 0, 0, 264, 265, 266, + 896, 267, 268, 269, 270, 271, 272, 273, 274, 275, + 276, 277, 0, 0, 0, 0, 0, 278, 0, 0, + 0, 264, 265, 266, 903, 267, 268, 269, 270, 271, + 272, 273, 274, 275, 276, 277, 0, 0, 0, 0, + 0, 278, 0, 0, 0, 264, 265, 266, 990, 267, + 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, + 0, 0, 0, 0, 0, 278, 0, 0, 0, 264, + 265, 266, 991, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 0, 0, 0, 0, 0, 278, + 0, 0, 0, 264, 265, 266, 999, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 0, 0, + 0, 0, 0, 278, 0, 0, 0, 264, 265, 266, + 1002, 267, 268, 269, 270, 271, 272, 273, 274, 275, + 276, 277, 0, 0, 0, 0, 0, 278, 0, 0, + 0, 264, 265, 266, 1003, 267, 268, 269, 270, 271, + 272, 273, 274, 275, 276, 277, 0, 0, 0, 0, + 0, 278, 0, 0, 0, 264, 265, 266, 1010, 267, + 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, + 0, 0, 0, 0, 0, 278, 0, 0, 0, 264, + 265, 266, 1011, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 0, 0, 0, 0, 0, 278, + 0, 0, 0, 264, 265, 266, 1066, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 0, 0, + 0, 0, 0, 278, 0, 0, 0, 264, 265, 266, + 1068, 267, 268, 269, 270, 271, 272, 273, 274, 275, + 276, 277, 0, 0, 0, 0, 0, 278, 0, 0, + 0, 264, 265, 266, 1162, 267, 268, 269, 270, 271, + 272, 273, 274, 275, 276, 277, 0, 0, 0, 0, + 0, 278, 0, 0, 0, 264, 265, 266, 1172, 267, + 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, + 0, 0, 0, 0, 0, 278, 264, 265, 266, 421, + 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, + 277, 0, 0, 0, 0, 0, 278, 264, 265, 266, + 524, 267, 268, 269, 270, 271, 272, 273, 274, 275, + 276, 277, 0, 0, 0, 0, 0, 278, 264, 265, + 266, 539, 267, 268, 269, 270, 271, 272, 273, 274, + 275, 276, 277, 0, 0, 0, 0, 0, 278, 264, + 265, 266, 541, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 0, 0, 0, 0, 0, 278, + 264, 265, 266, 543, 267, 268, 269, 270, 271, 272, + 273, 274, 275, 276, 277, 0, 0, 0, 0, 0, + 278, 264, 265, 266, 545, 267, 268, 269, 270, 271, + 272, 273, 274, 275, 276, 277, 0, 0, 0, 0, + 0, 278, 264, 265, 266, 547, 267, 268, 269, 270, + 271, 272, 273, 274, 275, 276, 277, 0, 0, 0, + 0, 0, 278, 264, 265, 266, 549, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 0, 0, + 0, 0, 0, 278, 264, 265, 266, 551, 267, 268, + 269, 270, 271, 272, 273, 274, 275, 276, 277, 0, + 0, 0, 0, 0, 278, 264, 265, 266, 553, 267, + 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, + 0, 0, 0, 0, 0, 278, 264, 265, 266, 555, + 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, + 277, 0, 0, 0, 0, 0, 278, 264, 265, 266, + 557, 267, 268, 269, 270, 271, 272, 273, 274, 275, + 276, 277, 0, 0, 0, 0, 0, 278, 264, 265, + 266, 559, 267, 268, 269, 270, 271, 272, 273, 274, + 275, 276, 277, 0, 0, 0, 0, 0, 278, 264, + 265, 266, 563, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 0, 0, 0, 0, 0, 278, + 264, 265, 266, 565, 267, 268, 269, 270, 271, 272, + 273, 274, 275, 276, 277, 0, 0, 0, 0, 0, + 278, 264, 265, 266, 567, 267, 268, 269, 270, 271, + 272, 273, 274, 275, 276, 277, 0, 0, 0, 0, + 0, 278, 264, 265, 266, 569, 267, 268, 269, 270, + 271, 272, 273, 274, 275, 276, 277, 0, 0, 0, + 0, 0, 278, 264, 265, 266, 571, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 0, 0, + 0, 0, 0, 278, 264, 265, 266, 573, 267, 268, + 269, 270, 271, 272, 273, 274, 275, 276, 277, 0, + 0, 0, 0, 0, 278, 264, 265, 266, 649, 267, + 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, + 0, 0, 0, 0, 0, 278, 264, 265, 266, 655, + 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, + 277, 0, 0, 0, 0, 0, 278, 264, 265, 266, + 658, 267, 268, 269, 270, 271, 272, 273, 274, 275, + 276, 277, 0, 0, 0, 0, 0, 278, 264, 265, + 266, 659, 267, 268, 269, 270, 271, 272, 273, 274, + 275, 276, 277, 0, 0, 0, 0, 0, 278, 264, + 265, 266, 671, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 0, 0, 0, 0, 0, 278, + 264, 265, 266, 695, 267, 268, 269, 270, 271, 272, + 273, 274, 275, 276, 277, 0, 0, 0, 0, 0, + 278, 264, 265, 266, 790, 267, 268, 269, 270, 271, + 272, 273, 274, 275, 276, 277, 0, 0, 0, 0, + 0, 278, 264, 265, 266, 792, 267, 268, 269, 270, + 271, 272, 273, 274, 275, 276, 277, 0, 0, 0, + 0, 0, 278, 264, 265, 266, 794, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 0, 0, + 0, 0, 0, 278, 264, 265, 266, 796, 267, 268, + 269, 270, 271, 272, 273, 274, 275, 276, 277, 0, + 0, 0, 0, 0, 278, 264, 265, 266, 797, 267, + 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, + 0, 0, 0, 0, 0, 278, 264, 265, 266, 894, + 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, + 277, 0, 0, 0, 0, 0, 278, 0, 414, 264, + 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 0, 0, 0, 0, 0, 278, + 0, 447, 264, 265, 266, 0, 267, 268, 269, 270, + 271, 272, 273, 274, 275, 276, 277, 0, 0, 0, + 0, 0, 278, 0, 448, 264, 265, 266, 0, 267, + 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, + 0, 0, 0, 0, 0, 278, 0, 449, 264, 265, + 266, 0, 267, 268, 269, 270, 271, 272, 273, 274, + 275, 276, 277, 0, 0, 0, 0, 0, 278, 0, + 451, 264, 265, 266, 0, 267, 268, 269, 270, 271, + 272, 273, 274, 275, 276, 277, 0, 0, 0, 0, + 0, 278, 0, 453, 264, 265, 266, 0, 267, 268, + 269, 270, 271, 272, 273, 274, 275, 276, 277, 0, + 0, 0, 0, 0, 278, 0, 454, 264, 265, 266, + 0, 267, 268, 269, 270, 271, 272, 273, 274, 275, + 276, 277, 0, 0, 0, 0, 0, 278, 0, 463, + 264, 265, 266, 0, 267, 268, 269, 270, 271, 272, + 273, 274, 275, 276, 277, 0, 0, 0, 0, 0, + 278, 0, 509, 264, 265, 266, 0, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 0, 0, + 0, 0, 0, 278, 0, 510, 264, 265, 266, 0, + 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, + 277, 0, 0, 0, 0, 0, 278, 0, 513, 264, + 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 0, 0, 0, 0, 0, 278, + 0, 519, 264, 265, 266, 0, 267, 268, 269, 270, + 271, 272, 273, 274, 275, 276, 277, 0, 0, 0, + 0, 0, 278, 0, 538, 264, 265, 266, 0, 267, + 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, + 0, 0, 0, 0, 0, 278, 0, 540, 264, 265, + 266, 0, 267, 268, 269, 270, 271, 272, 273, 274, + 275, 276, 277, 0, 0, 0, 0, 0, 278, 0, + 542, 264, 265, 266, 0, 267, 268, 269, 270, 271, + 272, 273, 274, 275, 276, 277, 0, 0, 0, 0, + 0, 278, 0, 544, 264, 265, 266, 0, 267, 268, + 269, 270, 271, 272, 273, 274, 275, 276, 277, 0, + 0, 0, 0, 0, 278, 0, 546, 264, 265, 266, + 0, 267, 268, 269, 270, 271, 272, 273, 274, 275, + 276, 277, 0, 0, 0, 0, 0, 278, 0, 548, + 264, 265, 266, 0, 267, 268, 269, 270, 271, 272, + 273, 274, 275, 276, 277, 0, 0, 0, 0, 0, + 278, 0, 550, 264, 265, 266, 0, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 0, 0, + 0, 0, 0, 278, 0, 552, 264, 265, 266, 0, + 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, + 277, 0, 0, 0, 0, 0, 278, 0, 554, 264, + 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 0, 0, 0, 0, 0, 278, + 0, 556, 264, 265, 266, 0, 267, 268, 269, 270, + 271, 272, 273, 274, 275, 276, 277, 0, 0, 0, + 0, 0, 278, 0, 558, 264, 265, 266, 0, 267, + 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, + 0, 0, 0, 0, 0, 278, 0, 562, 264, 265, + 266, 0, 267, 268, 269, 270, 271, 272, 273, 274, + 275, 276, 277, 0, 0, 0, 0, 0, 278, 0, + 564, 264, 265, 266, 0, 267, 268, 269, 270, 271, + 272, 273, 274, 275, 276, 277, 0, 0, 0, 0, + 0, 278, 0, 566, 264, 265, 266, 0, 267, 268, + 269, 270, 271, 272, 273, 274, 275, 276, 277, 0, + 0, 0, 0, 0, 278, 0, 568, 264, 265, 266, + 0, 267, 268, 269, 270, 271, 272, 273, 274, 275, + 276, 277, 0, 0, 0, 0, 0, 278, 0, 570, + 264, 265, 266, 0, 267, 268, 269, 270, 271, 272, + 273, 274, 275, 276, 277, 0, 0, 0, 0, 0, + 278, 0, 572, 264, 265, 266, 0, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 0, 0, + 0, 0, 0, 278, 0, 611, 264, 265, 266, 0, + 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, + 277, 0, 0, 0, 0, 0, 278, 0, 613, 264, + 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 0, 0, 0, 0, 0, 278, + 0, 626, 264, 265, 266, 0, 267, 268, 269, 270, + 271, 272, 273, 274, 275, 276, 277, 0, 0, 0, + 0, 0, 278, 0, 627, 264, 265, 266, 0, 267, + 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, + 0, 0, 0, 0, 0, 278, 0, 631, 264, 265, + 266, 0, 267, 268, 269, 270, 271, 272, 273, 274, + 275, 276, 277, 0, 0, 0, 0, 0, 278, 0, + 632, 264, 265, 266, 0, 267, 268, 269, 270, 271, + 272, 273, 274, 275, 276, 277, 0, 0, 0, 0, + 0, 278, 0, 633, 264, 265, 266, 0, 267, 268, + 269, 270, 271, 272, 273, 274, 275, 276, 277, 0, + 0, 0, 0, 0, 278, 0, 634, 264, 265, 266, + 0, 267, 268, 269, 270, 271, 272, 273, 274, 275, + 276, 277, 0, 0, 0, 0, 0, 278, 0, 635, + 264, 265, 266, 0, 267, 268, 269, 270, 271, 272, + 273, 274, 275, 276, 277, 0, 0, 0, 0, 0, + 278, 0, 663, 264, 265, 266, 0, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 0, 0, + 0, 0, 0, 278, 0, 670, 264, 265, 266, 0, + 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, + 277, 0, 0, 0, 0, 0, 278, 0, 789, 264, + 265, 266, 0, 267, 268, 269, 270, 271, 272, 273, + 274, 275, 276, 277, 0, 0, 0, 0, 0, 278, + 0, 791, 264, 265, 266, 0, 267, 268, 269, 270, + 271, 272, 273, 274, 275, 276, 277, 0, 0, 0, + 0, 0, 278, 0, 793, 264, 265, 266, 0, 267, + 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, + 0, 0, 0, 0, 0, 278, 0, 795, 264, 265, + 266, 0, 267, 268, 269, 270, 271, 272, 273, 274, + 275, 276, 277, 0, 0, 0, 0, 0, 278, 0, + 801, 264, 265, 266, 0, 267, 268, 269, 270, 271, + 272, 273, 274, 275, 276, 277, 0, 0, 0, 0, + 0, 278, 0, 867, 264, 265, 266, 0, 267, 268, + 269, 270, 271, 272, 273, 274, 275, 276, 277, 0, + 0, 0, 0, 0, 278, 0, 920, 264, 265, 266, + 0, 267, 268, 269, 270, 271, 272, 273, 274, 275, + 276, 277, 0, 0, 0, 0, 0, 278, 0, 951, + 264, 265, 266, 0, 267, 268, 269, 270, 271, 272, + 273, 274, 275, 276, 277, 0, 0, 0, 0, 0, + 278, 0, 1065, 264, 265, 266, 0, 267, 268, 269, + 270, 271, 272, 273, 274, 275, 276, 277, 0, 0, + 0, 0, 0, 278, 0, 1111 +}; -/* This is the parser code that is written into each bison parser - when the %semantic_parser declaration is not specified in the grammar. - It was written by Richard Stallman by simplifying the hairy parser - used when %semantic_parser is specified. */ - -#ifndef YYSTACK_USE_ALLOCA -#ifdef alloca -#define YYSTACK_USE_ALLOCA -#else /* alloca not defined */ -#ifdef __GNUC__ -#define YYSTACK_USE_ALLOCA -#define alloca __builtin_alloca -#else /* not GNU C. */ -#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386)) -#define YYSTACK_USE_ALLOCA -#include <alloca.h> -#else /* not sparc */ -/* We think this test detects Watcom and Microsoft C. */ -/* This used to test MSDOS, but that is a bad idea - since that symbol is in the user namespace. */ -#if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__) -#if 0 /* No need for malloc.h, which pollutes the namespace; - instead, just don't use alloca. */ -#include <malloc.h> -#endif -#else /* not MSDOS, or __TURBOC__ */ -#if defined(_AIX) -/* I don't know what this was needed for, but it pollutes the namespace. - So I turned it off. rms, 2 May 1997. */ -/* #include <malloc.h> */ - #pragma alloca -#define YYSTACK_USE_ALLOCA -#else /* not MSDOS, or __TURBOC__, or _AIX */ -#if 0 -#ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up, - and on HPUX 10. Eventually we can turn this on. */ -#define YYSTACK_USE_ALLOCA -#define alloca __builtin_alloca -#endif /* __hpux */ -#endif -#endif /* not _AIX */ -#endif /* not MSDOS, or __TURBOC__ */ -#endif /* not sparc */ -#endif /* not GNU C */ -#endif /* alloca not defined */ -#endif /* YYSTACK_USE_ALLOCA not defined */ - -#ifdef YYSTACK_USE_ALLOCA -#define YYSTACK_ALLOC alloca -#else -#define YYSTACK_ALLOC malloc -#endif +static const short int yycheck[] = +{ + 6, 6, 166, 321, 257, 169, 3, 5, 293, 4, + 6, 3, 45, 4, 4, 755, 4, 4, 4, 6, + 0, 67, 4, 4, 7, 4, 67, 4, 192, 601, + 194, 5, 868, 869, 4, 67, 34, 35, 36, 37, + 85, 68, 40, 4, 5, 131, 73, 133, 6, 53, + 54, 120, 121, 6, 6, 6, 6, 122, 123, 124, + 34, 35, 36, 37, 131, 130, 40, 6, 137, 131, + 139, 138, 6, 34, 35, 36, 37, 120, 121, 40, + 131, 76, 77, 78, 79, 131, 131, 138, 76, 77, + 78, 79, 138, 4, 131, 138, 68, 138, 131, 131, + 52, 73, 52, 131, 68, 111, 112, 113, 131, 73, + 116, 117, 139, 41, 120, 138, 44, 131, 88, 89, + 131, 127, 958, 129, 130, 131, 109, 133, 68, 135, + 136, 67, 138, 73, 128, 129, 708, 49, 128, 129, + 138, 135, 138, 133, 139, 135, 133, 138, 154, 155, + 131, 139, 138, 137, 7, 255, 138, 163, 142, 138, + 445, 138, 120, 121, 138, 131, 330, 139, 421, 120, + 121, 177, 178, 458, 180, 139, 182, 88, 89, 185, + 186, 120, 121, 167, 45, 132, 350, 131, 172, 173, + 137, 197, 7, 293, 6, 7, 202, 203, 204, 205, + 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, + 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, + 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, + 236, 237, 238, 239, 240, 241, 242, 243, 45, 811, + 244, 245, 246, 247, 41, 128, 129, 44, 45, 255, + 47, 7, 257, 106, 107, 108, 109, 45, 264, 265, + 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, + 276, 277, 278, 132, 47, 128, 129, 1017, 137, 285, + 1020, 287, 135, 1023, 131, 68, 292, 293, 120, 121, + 73, 106, 107, 108, 109, 301, 302, 303, 583, 305, + 306, 307, 308, 309, 310, 311, 138, 982, 131, 984, + 133, 986, 41, 128, 129, 44, 45, 323, 324, 325, + 326, 327, 328, 320, 321, 331, 68, 138, 320, 321, + 336, 73, 617, 68, 340, 341, 7, 131, 73, 133, + 346, 27, 28, 1083, 30, 445, 120, 121, 138, 355, + 106, 107, 108, 109, 360, 5, 139, 362, 458, 120, + 121, 131, 45, 133, 138, 650, 651, 652, 653, 131, + 68, 133, 128, 129, 1114, 73, 137, 1117, 139, 1054, + 1120, 120, 121, 1123, 34, 35, 36, 37, 120, 121, + 40, 120, 121, 965, 6, 68, 132, 139, 68, 138, + 73, 137, 131, 73, 139, 137, 1146, 413, 1148, 138, + 1150, 417, 58, 59, 132, 68, 421, 423, 422, 137, + 73, 6, 1097, 68, 1099, 4, 1101, 8, 73, 68, + 1105, 415, 416, 4, 73, 106, 107, 108, 109, 445, + 446, 139, 727, 44, 45, 4, 47, 700, 701, 455, + 456, 131, 458, 120, 121, 461, 462, 131, 1133, 133, + 1135, 467, 1137, 120, 121, 151, 139, 153, 131, 139, + 137, 477, 478, 159, 131, 5, 131, 163, 128, 129, + 486, 138, 6, 583, 132, 135, 139, 4, 132, 137, + 131, 591, 133, 137, 139, 501, 120, 121, 6, 7, + 139, 120, 121, 131, 34, 35, 36, 37, 4, 515, + 40, 517, 518, 137, 200, 139, 131, 617, 137, 524, + 524, 131, 120, 121, 122, 123, 124, 45, 846, 110, + 111, 112, 130, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, 120, 121, 120, 121, 131, 130, + 650, 651, 652, 653, 560, 561, 131, 4, 139, 120, + 121, 137, 131, 137, 133, 120, 121, 5, 574, 575, + 576, 577, 578, 579, 580, 6, 137, 583, 120, 121, + 584, 587, 137, 120, 121, 591, 120, 121, 594, 120, + 121, 120, 121, 6, 133, 137, 135, 138, 604, 131, + 137, 133, 6, 137, 131, 131, 137, 133, 137, 131, + 131, 617, 133, 619, 4, 116, 117, 118, 119, 120, + 121, 122, 123, 124, 131, 609, 610, 727, 612, 130, + 614, 615, 318, 319, 131, 61, 62, 63, 64, 138, + 66, 327, 131, 138, 650, 651, 652, 653, 74, 75, + 656, 657, 131, 57, 128, 129, 662, 128, 129, 133, + 978, 135, 133, 131, 135, 133, 131, 131, 128, 129, + 131, 677, 678, 133, 133, 135, 660, 661, 133, 131, + 664, 133, 131, 131, 133, 133, 131, 131, 133, 133, + 695, 131, 131, 133, 133, 131, 701, 133, 135, 131, + 8, 133, 137, 709, 139, 138, 110, 111, 112, 715, + 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, + 124, 727, 137, 729, 139, 731, 130, 137, 137, 139, + 139, 137, 137, 139, 139, 719, 137, 721, 139, 745, + 746, 747, 137, 137, 139, 139, 752, 138, 732, 733, + 734, 138, 133, 737, 738, 739, 740, 741, 742, 743, + 137, 137, 139, 139, 4, 137, 6, 139, 774, 775, + 776, 137, 137, 139, 139, 780, 137, 783, 139, 137, + 6, 139, 788, 137, 137, 139, 139, 138, 91, 6, + 476, 131, 6, 6, 133, 6, 4, 130, 804, 803, + 5, 135, 110, 111, 112, 491, 114, 115, 116, 117, + 118, 119, 120, 121, 122, 123, 124, 7, 802, 133, + 138, 6, 130, 987, 132, 7, 832, 833, 7, 6, + 132, 7, 7, 86, 88, 132, 842, 138, 842, 137, + 132, 137, 6, 4, 134, 7, 6, 135, 7, 846, + 7, 7, 7, 7, 846, 7, 6, 863, 864, 139, + 139, 138, 138, 7, 7, 131, 7, 135, 131, 875, + 131, 138, 856, 6, 880, 881, 114, 115, 116, 117, + 118, 119, 120, 121, 122, 123, 124, 871, 4, 6, + 896, 1055, 130, 6, 6, 134, 6, 903, 882, 110, + 111, 112, 7, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, 133, 921, 6, 138, 7, 130, + 7, 7, 608, 7, 7, 110, 111, 112, 934, 114, + 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, + 7, 947, 7, 949, 7, 130, 7, 7, 954, 7, + 7, 4, 6, 959, 6, 6, 6, 643, 644, 645, + 110, 111, 112, 7, 114, 115, 116, 117, 118, 119, + 120, 121, 122, 123, 124, 981, 6, 983, 4, 985, + 130, 978, 4, 7, 990, 991, 978, 6, 6, 131, + 996, 138, 132, 132, 7, 6, 1002, 1003, 135, 6, + 6, 6, 138, 6, 1010, 989, 6, 1013, 138, 6, + 6, 995, 87, 138, 6, 999, 41, 42, 43, 44, + 45, 46, 47, 48, 135, 50, 6, 52, 53, 1035, + 55, 56, 4, 6, 134, 6, 6, 6, 6, 1045, + 6, 6, 1048, 6, 6, 1051, 6, 72, 6, 6, + 6, 6, 6, 6, 6, 6, 81, 82, 83, 6, + 1066, 6, 1068, 7, 87, 138, 752, 4, 6, 135, + 6, 6, 1056, 7, 99, 134, 1060, 1061, 6, 6, + 110, 111, 112, 138, 114, 115, 116, 117, 118, 119, + 120, 121, 122, 123, 124, 137, 139, 138, 138, 6, + 130, 138, 138, 138, 6, 84, 1110, 110, 111, 112, + 87, 114, 115, 116, 117, 118, 119, 120, 121, 122, + 123, 124, 132, 1107, 138, 89, 6, 130, 5, 137, + 139, 817, 6, 819, 1140, 139, 138, 1141, 6, 1143, + 110, 111, 112, 138, 114, 115, 116, 117, 118, 119, + 120, 121, 122, 123, 124, 1161, 1162, 6, 6, 1163, + 130, 847, 137, 849, 6, 851, 1172, 6, 3, 4, + 6, 138, 6, 6, 9, 10, 11, 12, 13, 14, + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, 6, 6, + 6, 5, 84, 110, 111, 112, 41, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, 138, 138, + 137, 139, 6, 130, 139, 138, 61, 62, 63, 64, + 65, 66, 137, 6, 6, 6, 6, 6, 6, 74, + 75, 5, 110, 111, 112, 138, 114, 115, 116, 117, + 118, 119, 120, 121, 122, 123, 124, 138, 6, 138, + 6, 139, 130, 138, 6, 138, 84, 102, 103, 104, + 105, 112, 139, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, 6, 120, 121, 6, 138, 130, + 6, 126, 6, 6, 6, 981, 131, 983, 6, 985, + 6, 136, 3, 4, 139, 1035, 526, 3, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 3, 942, 807, -1, -1, 110, 111, 112, + 41, 114, 115, 116, 117, 118, 119, 120, 121, 122, + 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, + 61, 62, 63, 64, 65, 66, -1, -1, -1, 3, + 4, -1, -1, 74, 75, 9, 10, 11, 12, 13, + 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, -1, + -1, 102, 103, 104, 105, 6, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 120, + 121, -1, -1, -1, -1, 126, -1, -1, -1, -1, + 131, -1, 3, 4, -1, 136, -1, 138, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, -1, -1, -1, -1, -1, -1, 102, 103, + 104, 105, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, 120, 121, -1, -1, + -1, -1, 126, -1, -1, -1, -1, 131, -1, -1, + 134, -1, 136, -1, 138, -1, -1, -1, -1, 110, + 111, 112, -1, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, + -1, 102, 103, 104, 105, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 120, + 121, -1, -1, -1, -1, 126, -1, -1, -1, -1, + 131, -1, -1, 134, -1, 136, -1, 138, 3, 4, + -1, -1, -1, -1, 9, 10, 11, 12, 13, 14, + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, -1, -1, + -1, -1, -1, -1, -1, 3, 4, -1, -1, -1, + -1, 9, 10, 11, 12, 13, 14, 15, 16, 17, + 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, + 28, 29, 30, 31, 32, 3, 4, -1, -1, -1, + -1, 9, 10, 11, 12, 13, 14, 15, 16, 17, + 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, + 28, 29, 30, 31, 32, -1, -1, 102, 103, 104, + 105, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, 120, 121, -1, -1, -1, + -1, 126, -1, -1, -1, -1, 131, -1, -1, 134, + -1, 136, -1, 138, 102, 103, 104, 105, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 120, 121, -1, -1, -1, -1, 126, -1, + -1, -1, -1, 131, 102, 103, 104, 105, 136, -1, + 138, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 120, 121, -1, -1, -1, -1, 126, -1, + -1, -1, -1, 131, -1, 3, 4, 5, 136, 7, + 138, 9, 10, 11, 12, 13, 14, 15, 16, 17, + 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, + 28, 29, 30, 31, 32, -1, 34, 35, 36, 37, + -1, -1, 40, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 3, 4, -1, -1, -1, -1, + 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, + 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, + 29, 30, 31, 32, -1, -1, -1, -1, -1, -1, + -1, -1, 41, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 102, 103, 104, 105, 106, 107, + 108, 109, 61, 62, 63, 64, 65, 66, -1, -1, + -1, -1, 120, 121, -1, 74, 75, -1, 126, -1, + 128, 129, -1, 131, -1, 133, -1, 135, 136, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 102, 103, 104, 105, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, 120, 121, -1, -1, -1, -1, 126, -1, -1, + -1, -1, 131, 3, 4, 5, -1, 136, -1, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, -1, 34, 35, 36, 37, 3, 4, + 40, -1, -1, -1, 9, 10, 11, 12, 13, 14, + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, 3, 4, + -1, -1, -1, -1, 9, 10, 11, 12, 13, 14, + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, 6, -1, + -1, -1, 102, 103, 104, 105, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, 8, -1, -1, + 120, 121, -1, -1, -1, -1, 126, -1, -1, -1, + -1, 131, -1, -1, 8, -1, 136, 102, 103, 104, + 105, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, 8, -1, -1, -1, 120, 121, -1, -1, -1, + -1, 126, -1, -1, -1, -1, 131, 102, 103, 104, + 105, 136, 8, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, 120, 121, -1, -1, 8, + -1, 126, -1, -1, -1, -1, 131, -1, -1, -1, + -1, 136, 110, 111, 112, -1, 114, 115, 116, 117, + 118, 119, 120, 121, 122, 123, 124, -1, -1, 110, + 111, 112, 130, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, -1, -1, 110, 111, 112, 130, + 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, + 124, -1, -1, 110, 111, 112, 130, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, + -1, -1, -1, 130, 110, 111, 112, -1, 114, 115, + 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, + -1, 110, 111, 112, 130, 114, 115, 116, 117, 118, + 119, 120, 121, 122, 123, 124, 0, 1, -1, -1, + 4, 130, -1, 110, 111, 112, -1, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, + -1, -1, -1, 130, -1, -1, -1, -1, -1, 33, + 137, -1, 139, -1, 38, 39, -1, 41, 42, 43, + 44, 45, 46, 47, 48, -1, 50, 51, 52, 53, + 54, 55, 56, -1, -1, -1, 60, 61, 62, 63, + 64, 65, 66, -1, 68, 69, 70, 71, 72, -1, + 74, 75, -1, -1, -1, -1, 80, 81, 82, 83, + -1, -1, -1, -1, 88, -1, 90, -1, 92, 93, + 94, 95, 96, 97, 98, 99, 100, 101, 41, 42, + 43, 44, 45, 46, 47, 48, -1, 50, -1, 52, + 53, -1, 55, 56, -1, -1, -1, -1, -1, 41, + 42, 43, 44, 45, 46, 47, 48, -1, 50, 72, + 52, 53, -1, 55, 56, -1, -1, -1, 81, 82, + 83, -1, -1, -1, -1, -1, -1, -1, -1, -1, + 72, -1, -1, -1, -1, -1, 99, -1, -1, 81, + 82, 83, -1, -1, 41, 42, 43, 44, 45, 46, + 47, 48, -1, 50, -1, 52, 53, 99, 55, 56, + 110, 111, 112, -1, 114, 115, 116, 117, 118, 119, + 120, 121, 122, 123, 124, 72, 139, -1, -1, -1, + 130, -1, 132, -1, 81, 82, 83, 137, -1, 41, + 42, 43, 44, 45, 46, 47, 48, 139, 50, -1, + 52, 53, 99, 55, 56, -1, -1, -1, -1, -1, + 41, 42, 43, 44, 45, 46, 47, 48, -1, 50, + 72, 52, 53, -1, 55, 56, -1, -1, -1, 81, + 82, 83, -1, -1, -1, -1, -1, -1, -1, -1, + -1, 72, 139, -1, -1, -1, -1, 99, -1, -1, + 81, 82, 83, -1, -1, 41, 42, 43, 44, 45, + 46, 47, 48, -1, 50, -1, 52, 53, 99, 55, + 56, 110, 111, 112, -1, 114, 115, 116, 117, 118, + 119, 120, 121, 122, 123, 124, 72, 139, -1, -1, + -1, 130, -1, -1, -1, 81, 82, 83, 137, -1, + 41, 42, 43, 44, 45, 46, 47, 48, 139, 50, + -1, 52, 53, 99, 55, 56, -1, -1, -1, -1, + -1, 41, 42, 43, 44, 45, 46, 47, 48, -1, + 50, 72, 52, 53, -1, 55, 56, -1, -1, -1, + 81, 82, 83, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 72, 139, -1, -1, -1, -1, 99, -1, + -1, 81, 82, 83, -1, 4, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, 110, 111, 112, 99, + 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, + 124, -1, -1, -1, 33, -1, 130, -1, 139, 38, + 39, -1, 41, 42, 43, 44, 45, 46, 47, 48, + -1, 50, 51, 52, 53, 54, 55, 56, -1, 139, + -1, 60, 61, 62, 63, 64, 65, 66, -1, 68, + 69, 70, 71, 72, -1, 74, 75, -1, -1, -1, + -1, 80, 81, 82, 83, -1, -1, -1, -1, 88, + -1, 90, -1, 92, 93, 94, 95, 96, 97, 98, + 99, 100, 101, 110, 111, 112, -1, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, + -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, + 137, -1, 139, 110, 111, 112, -1, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, + -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, + 137, -1, 139, 110, 111, 112, -1, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, + -1, -1, -1, 130, -1, -1, -1, -1, -1, 110, + 111, 112, 139, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, + -1, -1, -1, -1, -1, 110, 111, 112, 139, 114, + 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, + -1, -1, -1, -1, -1, 130, -1, -1, -1, -1, + -1, 110, 111, 112, 139, 114, 115, 116, 117, 118, + 119, 120, 121, 122, 123, 124, -1, -1, -1, -1, + -1, 130, -1, -1, -1, -1, -1, 110, 111, 112, + 139, 114, 115, 116, 117, 118, 119, 120, 121, 122, + 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, + -1, -1, -1, 110, 111, 112, 139, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, + -1, -1, -1, 130, -1, -1, -1, -1, -1, 110, + 111, 112, 139, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, + -1, -1, -1, -1, -1, 110, 111, 112, 139, 114, + 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, + -1, -1, -1, -1, -1, 130, -1, -1, -1, -1, + -1, 110, 111, 112, 139, 114, 115, 116, 117, 118, + 119, 120, 121, 122, 123, 124, -1, -1, -1, -1, + -1, 130, -1, -1, -1, -1, -1, 110, 111, 112, + 139, 114, 115, 116, 117, 118, 119, 120, 121, 122, + 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, + -1, -1, -1, 110, 111, 112, 139, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, + -1, -1, -1, 130, -1, -1, -1, -1, -1, 110, + 111, 112, 139, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, + -1, -1, -1, -1, -1, 110, 111, 112, 139, 114, + 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, + -1, -1, -1, -1, -1, 130, -1, -1, -1, -1, + -1, 110, 111, 112, 139, 114, 115, 116, 117, 118, + 119, 120, 121, 122, 123, 124, -1, -1, -1, -1, + -1, 130, -1, -1, -1, -1, -1, 110, 111, 112, + 139, 114, 115, 116, 117, 118, 119, 120, 121, 122, + 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, + -1, -1, -1, 110, 111, 112, 139, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, + -1, -1, -1, 130, -1, -1, -1, -1, -1, 110, + 111, 112, 139, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, + -1, -1, -1, -1, -1, 110, 111, 112, 139, 114, + 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, + -1, -1, -1, -1, -1, 130, -1, -1, -1, -1, + -1, 110, 111, 112, 139, 114, 115, 116, 117, 118, + 119, 120, 121, 122, 123, 124, -1, -1, -1, -1, + -1, 130, -1, -1, -1, -1, -1, 110, 111, 112, + 139, 114, 115, 116, 117, 118, 119, 120, 121, 122, + 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, + -1, -1, -1, 110, 111, 112, 139, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, + -1, -1, -1, 130, -1, -1, -1, -1, -1, 110, + 111, 112, 139, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, + -1, -1, -1, -1, -1, 110, 111, 112, 139, 114, + 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, + -1, -1, -1, -1, -1, 130, -1, -1, -1, 110, + 111, 112, 137, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, + -1, -1, -1, 110, 111, 112, 137, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, + -1, -1, -1, 130, -1, -1, -1, 110, 111, 112, + 137, 114, 115, 116, 117, 118, 119, 120, 121, 122, + 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, + -1, 110, 111, 112, 137, 114, 115, 116, 117, 118, + 119, 120, 121, 122, 123, 124, -1, -1, -1, -1, + -1, 130, -1, -1, -1, 110, 111, 112, 137, 114, + 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, + -1, -1, -1, -1, -1, 130, -1, -1, -1, 110, + 111, 112, 137, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, + -1, -1, -1, 110, 111, 112, 137, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, + -1, -1, -1, 130, -1, -1, -1, 110, 111, 112, + 137, 114, 115, 116, 117, 118, 119, 120, 121, 122, + 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, + -1, 110, 111, 112, 137, 114, 115, 116, 117, 118, + 119, 120, 121, 122, 123, 124, -1, -1, -1, -1, + -1, 130, -1, -1, -1, 110, 111, 112, 137, 114, + 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, + -1, -1, -1, -1, -1, 130, -1, -1, -1, 110, + 111, 112, 137, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, + -1, -1, -1, 110, 111, 112, 137, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, + -1, -1, -1, 130, -1, -1, -1, 110, 111, 112, + 137, 114, 115, 116, 117, 118, 119, 120, 121, 122, + 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, + -1, 110, 111, 112, 137, 114, 115, 116, 117, 118, + 119, 120, 121, 122, 123, 124, -1, -1, -1, -1, + -1, 130, -1, -1, -1, 110, 111, 112, 137, 114, + 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, + -1, -1, -1, -1, -1, 130, -1, -1, -1, 110, + 111, 112, 137, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, + -1, -1, -1, 110, 111, 112, 137, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, + -1, -1, -1, 130, -1, -1, -1, 110, 111, 112, + 137, 114, 115, 116, 117, 118, 119, 120, 121, 122, + 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, + -1, 110, 111, 112, 137, 114, 115, 116, 117, 118, + 119, 120, 121, 122, 123, 124, -1, -1, -1, -1, + -1, 130, -1, -1, -1, 110, 111, 112, 137, 114, + 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, + -1, -1, -1, -1, -1, 130, -1, -1, -1, 110, + 111, 112, 137, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, + -1, -1, -1, 110, 111, 112, 137, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, + -1, -1, -1, 130, -1, -1, -1, 110, 111, 112, + 137, 114, 115, 116, 117, 118, 119, 120, 121, 122, + 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, + -1, 110, 111, 112, 137, 114, 115, 116, 117, 118, + 119, 120, 121, 122, 123, 124, -1, -1, -1, -1, + -1, 130, -1, -1, -1, 110, 111, 112, 137, 114, + 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, + -1, -1, -1, -1, -1, 130, -1, -1, -1, 110, + 111, 112, 137, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, + -1, -1, -1, 110, 111, 112, 137, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, + -1, -1, -1, 130, -1, -1, -1, 110, 111, 112, + 137, 114, 115, 116, 117, 118, 119, 120, 121, 122, + 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, + -1, 110, 111, 112, 137, 114, 115, 116, 117, 118, + 119, 120, 121, 122, 123, 124, -1, -1, -1, -1, + -1, 130, -1, -1, -1, 110, 111, 112, 137, 114, + 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, + -1, -1, -1, -1, -1, 130, -1, -1, -1, 110, + 111, 112, 137, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, + -1, -1, -1, 110, 111, 112, 137, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, + -1, -1, -1, 130, -1, -1, -1, 110, 111, 112, + 137, 114, 115, 116, 117, 118, 119, 120, 121, 122, + 123, 124, -1, -1, -1, -1, -1, 130, -1, -1, + -1, 110, 111, 112, 137, 114, 115, 116, 117, 118, + 119, 120, 121, 122, 123, 124, -1, -1, -1, -1, + -1, 130, -1, -1, -1, 110, 111, 112, 137, 114, + 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, + -1, -1, -1, -1, -1, 130, 110, 111, 112, 134, + 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, + 124, -1, -1, -1, -1, -1, 130, 110, 111, 112, + 134, 114, 115, 116, 117, 118, 119, 120, 121, 122, + 123, 124, -1, -1, -1, -1, -1, 130, 110, 111, + 112, 134, 114, 115, 116, 117, 118, 119, 120, 121, + 122, 123, 124, -1, -1, -1, -1, -1, 130, 110, + 111, 112, 134, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, + 110, 111, 112, 134, 114, 115, 116, 117, 118, 119, + 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, + 130, 110, 111, 112, 134, 114, 115, 116, 117, 118, + 119, 120, 121, 122, 123, 124, -1, -1, -1, -1, + -1, 130, 110, 111, 112, 134, 114, 115, 116, 117, + 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, + -1, -1, 130, 110, 111, 112, 134, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, + -1, -1, -1, 130, 110, 111, 112, 134, 114, 115, + 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, + -1, -1, -1, -1, 130, 110, 111, 112, 134, 114, + 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, + -1, -1, -1, -1, -1, 130, 110, 111, 112, 134, + 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, + 124, -1, -1, -1, -1, -1, 130, 110, 111, 112, + 134, 114, 115, 116, 117, 118, 119, 120, 121, 122, + 123, 124, -1, -1, -1, -1, -1, 130, 110, 111, + 112, 134, 114, 115, 116, 117, 118, 119, 120, 121, + 122, 123, 124, -1, -1, -1, -1, -1, 130, 110, + 111, 112, 134, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, + 110, 111, 112, 134, 114, 115, 116, 117, 118, 119, + 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, + 130, 110, 111, 112, 134, 114, 115, 116, 117, 118, + 119, 120, 121, 122, 123, 124, -1, -1, -1, -1, + -1, 130, 110, 111, 112, 134, 114, 115, 116, 117, + 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, + -1, -1, 130, 110, 111, 112, 134, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, + -1, -1, -1, 130, 110, 111, 112, 134, 114, 115, + 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, + -1, -1, -1, -1, 130, 110, 111, 112, 134, 114, + 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, + -1, -1, -1, -1, -1, 130, 110, 111, 112, 134, + 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, + 124, -1, -1, -1, -1, -1, 130, 110, 111, 112, + 134, 114, 115, 116, 117, 118, 119, 120, 121, 122, + 123, 124, -1, -1, -1, -1, -1, 130, 110, 111, + 112, 134, 114, 115, 116, 117, 118, 119, 120, 121, + 122, 123, 124, -1, -1, -1, -1, -1, 130, 110, + 111, 112, 134, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, + 110, 111, 112, 134, 114, 115, 116, 117, 118, 119, + 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, + 130, 110, 111, 112, 134, 114, 115, 116, 117, 118, + 119, 120, 121, 122, 123, 124, -1, -1, -1, -1, + -1, 130, 110, 111, 112, 134, 114, 115, 116, 117, + 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, + -1, -1, 130, 110, 111, 112, 134, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, + -1, -1, -1, 130, 110, 111, 112, 134, 114, 115, + 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, + -1, -1, -1, -1, 130, 110, 111, 112, 134, 114, + 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, + -1, -1, -1, -1, -1, 130, 110, 111, 112, 134, + 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, + 124, -1, -1, -1, -1, -1, 130, -1, 132, 110, + 111, 112, -1, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, + -1, 132, 110, 111, 112, -1, 114, 115, 116, 117, + 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, + -1, -1, 130, -1, 132, 110, 111, 112, -1, 114, + 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, + -1, -1, -1, -1, -1, 130, -1, 132, 110, 111, + 112, -1, 114, 115, 116, 117, 118, 119, 120, 121, + 122, 123, 124, -1, -1, -1, -1, -1, 130, -1, + 132, 110, 111, 112, -1, 114, 115, 116, 117, 118, + 119, 120, 121, 122, 123, 124, -1, -1, -1, -1, + -1, 130, -1, 132, 110, 111, 112, -1, 114, 115, + 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, + -1, -1, -1, -1, 130, -1, 132, 110, 111, 112, + -1, 114, 115, 116, 117, 118, 119, 120, 121, 122, + 123, 124, -1, -1, -1, -1, -1, 130, -1, 132, + 110, 111, 112, -1, 114, 115, 116, 117, 118, 119, + 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, + 130, -1, 132, 110, 111, 112, -1, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, + -1, -1, -1, 130, -1, 132, 110, 111, 112, -1, + 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, + 124, -1, -1, -1, -1, -1, 130, -1, 132, 110, + 111, 112, -1, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, + -1, 132, 110, 111, 112, -1, 114, 115, 116, 117, + 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, + -1, -1, 130, -1, 132, 110, 111, 112, -1, 114, + 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, + -1, -1, -1, -1, -1, 130, -1, 132, 110, 111, + 112, -1, 114, 115, 116, 117, 118, 119, 120, 121, + 122, 123, 124, -1, -1, -1, -1, -1, 130, -1, + 132, 110, 111, 112, -1, 114, 115, 116, 117, 118, + 119, 120, 121, 122, 123, 124, -1, -1, -1, -1, + -1, 130, -1, 132, 110, 111, 112, -1, 114, 115, + 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, + -1, -1, -1, -1, 130, -1, 132, 110, 111, 112, + -1, 114, 115, 116, 117, 118, 119, 120, 121, 122, + 123, 124, -1, -1, -1, -1, -1, 130, -1, 132, + 110, 111, 112, -1, 114, 115, 116, 117, 118, 119, + 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, + 130, -1, 132, 110, 111, 112, -1, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, + -1, -1, -1, 130, -1, 132, 110, 111, 112, -1, + 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, + 124, -1, -1, -1, -1, -1, 130, -1, 132, 110, + 111, 112, -1, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, + -1, 132, 110, 111, 112, -1, 114, 115, 116, 117, + 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, + -1, -1, 130, -1, 132, 110, 111, 112, -1, 114, + 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, + -1, -1, -1, -1, -1, 130, -1, 132, 110, 111, + 112, -1, 114, 115, 116, 117, 118, 119, 120, 121, + 122, 123, 124, -1, -1, -1, -1, -1, 130, -1, + 132, 110, 111, 112, -1, 114, 115, 116, 117, 118, + 119, 120, 121, 122, 123, 124, -1, -1, -1, -1, + -1, 130, -1, 132, 110, 111, 112, -1, 114, 115, + 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, + -1, -1, -1, -1, 130, -1, 132, 110, 111, 112, + -1, 114, 115, 116, 117, 118, 119, 120, 121, 122, + 123, 124, -1, -1, -1, -1, -1, 130, -1, 132, + 110, 111, 112, -1, 114, 115, 116, 117, 118, 119, + 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, + 130, -1, 132, 110, 111, 112, -1, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, + -1, -1, -1, 130, -1, 132, 110, 111, 112, -1, + 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, + 124, -1, -1, -1, -1, -1, 130, -1, 132, 110, + 111, 112, -1, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, + -1, 132, 110, 111, 112, -1, 114, 115, 116, 117, + 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, + -1, -1, 130, -1, 132, 110, 111, 112, -1, 114, + 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, + -1, -1, -1, -1, -1, 130, -1, 132, 110, 111, + 112, -1, 114, 115, 116, 117, 118, 119, 120, 121, + 122, 123, 124, -1, -1, -1, -1, -1, 130, -1, + 132, 110, 111, 112, -1, 114, 115, 116, 117, 118, + 119, 120, 121, 122, 123, 124, -1, -1, -1, -1, + -1, 130, -1, 132, 110, 111, 112, -1, 114, 115, + 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, + -1, -1, -1, -1, 130, -1, 132, 110, 111, 112, + -1, 114, 115, 116, 117, 118, 119, 120, 121, 122, + 123, 124, -1, -1, -1, -1, -1, 130, -1, 132, + 110, 111, 112, -1, 114, 115, 116, 117, 118, 119, + 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, + 130, -1, 132, 110, 111, 112, -1, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, + -1, -1, -1, 130, -1, 132, 110, 111, 112, -1, + 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, + 124, -1, -1, -1, -1, -1, 130, -1, 132, 110, + 111, 112, -1, 114, 115, 116, 117, 118, 119, 120, + 121, 122, 123, 124, -1, -1, -1, -1, -1, 130, + -1, 132, 110, 111, 112, -1, 114, 115, 116, 117, + 118, 119, 120, 121, 122, 123, 124, -1, -1, -1, + -1, -1, 130, -1, 132, 110, 111, 112, -1, 114, + 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, + -1, -1, -1, -1, -1, 130, -1, 132, 110, 111, + 112, -1, 114, 115, 116, 117, 118, 119, 120, 121, + 122, 123, 124, -1, -1, -1, -1, -1, 130, -1, + 132, 110, 111, 112, -1, 114, 115, 116, 117, 118, + 119, 120, 121, 122, 123, 124, -1, -1, -1, -1, + -1, 130, -1, 132, 110, 111, 112, -1, 114, 115, + 116, 117, 118, 119, 120, 121, 122, 123, 124, -1, + -1, -1, -1, -1, 130, -1, 132, 110, 111, 112, + -1, 114, 115, 116, 117, 118, 119, 120, 121, 122, + 123, 124, -1, -1, -1, -1, -1, 130, -1, 132, + 110, 111, 112, -1, 114, 115, 116, 117, 118, 119, + 120, 121, 122, 123, 124, -1, -1, -1, -1, -1, + 130, -1, 132, 110, 111, 112, -1, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, -1, -1, + -1, -1, -1, 130, -1, 132 +}; -/* Note: there must be only one dollar sign in this file. - It is replaced by the list of actions, each action - as one case of the switch. */ +/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing + symbol of state STATE-NUM. */ +static const unsigned char yystos[] = +{ + 0, 1, 141, 142, 6, 0, 4, 33, 38, 39, + 41, 42, 43, 44, 45, 46, 47, 48, 50, 51, + 52, 53, 54, 55, 56, 60, 61, 62, 63, 64, + 65, 66, 68, 69, 70, 71, 72, 74, 75, 80, + 81, 82, 83, 88, 90, 92, 93, 94, 95, 96, + 97, 98, 99, 100, 101, 143, 144, 145, 163, 164, + 165, 168, 169, 170, 171, 172, 173, 174, 189, 190, + 3, 4, 5, 7, 9, 10, 11, 12, 13, 14, + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, 34, 35, + 36, 37, 40, 102, 103, 104, 105, 106, 107, 108, + 109, 120, 121, 126, 128, 129, 131, 133, 135, 136, + 161, 162, 191, 192, 203, 131, 6, 138, 6, 131, + 131, 131, 67, 131, 67, 131, 131, 49, 131, 45, + 45, 45, 44, 45, 47, 47, 41, 44, 45, 47, + 131, 138, 120, 121, 131, 138, 193, 194, 193, 138, + 41, 44, 45, 138, 193, 4, 138, 45, 4, 138, + 6, 6, 41, 44, 4, 4, 4, 131, 131, 45, + 131, 4, 138, 200, 4, 131, 131, 6, 4, 4, + 45, 5, 138, 203, 138, 203, 4, 133, 135, 162, + 4, 138, 131, 133, 131, 133, 131, 133, 131, 133, + 131, 133, 131, 133, 131, 133, 131, 133, 131, 133, + 131, 133, 131, 133, 131, 133, 131, 133, 131, 133, + 131, 133, 131, 133, 131, 133, 131, 133, 131, 133, + 131, 133, 131, 133, 131, 131, 131, 131, 131, 4, + 191, 191, 191, 191, 134, 138, 191, 4, 88, 89, + 4, 191, 6, 6, 110, 111, 112, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, 130, 6, + 5, 191, 191, 191, 191, 131, 191, 131, 191, 191, + 4, 41, 121, 138, 165, 168, 174, 191, 197, 198, + 191, 138, 131, 131, 197, 138, 138, 131, 131, 131, + 131, 131, 4, 193, 193, 193, 191, 191, 120, 121, + 138, 138, 193, 138, 138, 138, 120, 121, 131, 193, + 138, 133, 167, 197, 4, 6, 133, 167, 197, 197, + 133, 133, 6, 191, 191, 85, 131, 191, 135, 191, + 138, 91, 191, 191, 6, 131, 167, 6, 167, 6, + 133, 191, 4, 193, 146, 191, 191, 191, 191, 191, + 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, + 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, + 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, + 191, 191, 191, 191, 191, 191, 191, 4, 203, 203, + 203, 203, 5, 133, 132, 7, 109, 121, 191, 198, + 199, 134, 7, 161, 162, 135, 7, 133, 6, 191, + 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, + 191, 191, 191, 191, 132, 137, 137, 132, 132, 132, + 191, 132, 191, 132, 132, 133, 138, 4, 138, 139, + 199, 8, 7, 132, 191, 191, 191, 7, 191, 191, + 191, 191, 191, 191, 191, 132, 137, 137, 137, 193, + 193, 165, 166, 167, 168, 166, 137, 191, 191, 191, + 191, 137, 167, 191, 41, 44, 45, 47, 139, 164, + 6, 7, 6, 191, 139, 7, 7, 191, 191, 132, + 132, 86, 191, 132, 88, 137, 167, 138, 8, 132, + 191, 139, 139, 191, 134, 162, 138, 4, 76, 77, + 78, 79, 139, 149, 153, 156, 158, 159, 132, 134, + 132, 134, 132, 134, 132, 134, 132, 134, 132, 134, + 132, 134, 132, 134, 132, 134, 132, 134, 132, 134, + 137, 137, 132, 134, 132, 134, 132, 134, 132, 134, + 132, 134, 132, 134, 137, 137, 137, 137, 137, 137, + 133, 135, 132, 137, 137, 132, 132, 137, 191, 197, + 197, 137, 139, 135, 161, 162, 203, 191, 6, 4, + 4, 138, 201, 134, 8, 6, 199, 191, 7, 7, + 7, 132, 7, 132, 7, 7, 134, 138, 191, 133, + 199, 139, 191, 191, 7, 139, 132, 132, 191, 139, + 139, 132, 132, 132, 132, 132, 135, 193, 191, 191, + 139, 139, 191, 137, 137, 137, 193, 139, 175, 134, + 138, 138, 138, 138, 191, 134, 138, 138, 134, 134, + 7, 7, 131, 132, 7, 135, 191, 139, 191, 191, + 132, 134, 135, 162, 203, 146, 150, 131, 131, 138, + 160, 6, 191, 191, 191, 191, 191, 191, 191, 191, + 191, 4, 199, 203, 191, 134, 6, 6, 191, 198, + 134, 4, 88, 89, 191, 6, 6, 6, 7, 133, + 200, 202, 6, 191, 132, 137, 193, 197, 197, 7, + 197, 7, 197, 197, 199, 139, 134, 138, 139, 8, + 6, 138, 7, 7, 7, 6, 57, 7, 7, 7, + 7, 7, 7, 7, 4, 137, 137, 137, 139, 193, + 193, 193, 137, 68, 73, 187, 188, 6, 199, 199, + 199, 199, 6, 6, 191, 191, 6, 6, 197, 197, + 191, 7, 197, 4, 137, 8, 8, 132, 7, 6, + 4, 6, 139, 131, 191, 191, 196, 197, 138, 132, + 134, 132, 134, 132, 134, 132, 134, 134, 132, 132, + 132, 132, 161, 7, 161, 162, 135, 7, 6, 200, + 191, 137, 139, 6, 191, 6, 6, 52, 6, 52, + 197, 6, 197, 6, 6, 139, 199, 191, 191, 197, + 197, 197, 58, 59, 197, 197, 197, 197, 197, 197, + 197, 6, 7, 191, 191, 191, 138, 137, 139, 137, + 139, 137, 139, 191, 193, 6, 138, 139, 188, 139, + 139, 139, 139, 137, 137, 6, 6, 132, 131, 138, + 195, 87, 191, 191, 191, 138, 162, 6, 147, 191, + 137, 137, 137, 139, 148, 191, 135, 197, 203, 191, + 6, 4, 201, 6, 134, 200, 137, 193, 193, 6, + 6, 134, 139, 137, 6, 6, 6, 191, 191, 4, + 6, 6, 6, 6, 6, 6, 6, 191, 203, 139, + 132, 137, 139, 166, 193, 6, 178, 193, 6, 179, + 193, 6, 180, 139, 137, 197, 6, 6, 6, 6, + 191, 191, 7, 196, 196, 87, 197, 137, 139, 8, + 139, 132, 191, 132, 137, 191, 191, 197, 138, 137, + 139, 4, 6, 6, 6, 7, 6, 135, 191, 6, + 6, 134, 191, 6, 6, 6, 6, 6, 138, 191, + 139, 137, 138, 137, 138, 137, 138, 138, 191, 137, + 137, 137, 195, 132, 139, 138, 84, 191, 191, 137, + 151, 191, 137, 137, 196, 191, 6, 132, 200, 89, + 137, 137, 166, 137, 139, 191, 193, 187, 191, 193, + 187, 191, 193, 187, 167, 139, 197, 191, 191, 87, + 197, 191, 139, 139, 197, 138, 191, 191, 139, 6, + 191, 5, 139, 191, 139, 137, 139, 139, 137, 139, + 139, 137, 139, 139, 176, 138, 137, 139, 139, 139, + 138, 137, 6, 139, 148, 132, 137, 6, 137, 137, + 139, 6, 181, 191, 6, 6, 182, 191, 6, 6, + 183, 191, 6, 187, 167, 197, 6, 6, 6, 197, + 197, 6, 139, 154, 191, 191, 5, 138, 139, 138, + 139, 138, 139, 139, 139, 177, 139, 137, 139, 6, + 138, 132, 139, 137, 187, 6, 184, 187, 6, 185, + 187, 6, 186, 187, 6, 197, 84, 152, 203, 157, + 6, 5, 139, 138, 139, 138, 139, 138, 139, 139, + 138, 137, 139, 138, 139, 6, 187, 6, 187, 6, + 187, 84, 191, 203, 6, 155, 203, 6, 139, 139, + 139, 138, 137, 137, 139, 6, 6, 6, 191, 191, + 203, 6, 137, 139, 191, 6, 139, 6 +}; #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) -#define YYEMPTY -2 +#define YYEMPTY (-2) #define YYEOF 0 + #define YYACCEPT goto yyacceptlab -#define YYABORT goto yyabortlab -#define YYERROR goto yyerrlab1 -/* Like YYERROR except do call yyerror. - This remains here temporarily to ease the - transition to the new meaning of YYERROR, for GCC. +#define YYABORT goto yyabortlab +#define YYERROR goto yyerrorlab + + +/* Like YYERROR except do call yyerror. This remains here temporarily + to ease the transition to the new meaning of YYERROR, for GCC. Once GCC version 2 has supplanted version 1, this can go. */ + #define YYFAIL goto yyerrlab + #define YYRECOVERING() (!!yyerrstatus) -#define YYBACKUP(token, value) \ + +#define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY && yylen == 1) \ - { yychar = (token), yylval = (value); \ - yychar1 = YYTRANSLATE (yychar); \ + { \ + yychar = (Token); \ + yylval = (Value); \ + yytoken = YYTRANSLATE (yychar); \ YYPOPSTACK; \ goto yybackup; \ } \ else \ - { yyerror ("syntax error: cannot back up"); YYERROR; } \ + { \ + yyerror (YY_("syntax error: cannot back up")); \ + YYERROR; \ + } \ while (0) + #define YYTERROR 1 #define YYERRCODE 256 -#ifndef YYPURE -#define YYLEX yylex() + +/* 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) \ + do \ + if (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 (0) #endif -#ifdef YYPURE -#ifdef YYLSP_NEEDED -#ifdef YYLEX_PARAM -#define YYLEX yylex(&yylval, &yylloc, YYLEX_PARAM) -#else -#define YYLEX yylex(&yylval, &yylloc) + +/* 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 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 -#else /* not YYLSP_NEEDED */ + + +/* YYLEX -- calling `yylex' with the right arguments. */ + #ifdef YYLEX_PARAM -#define YYLEX yylex(&yylval, YYLEX_PARAM) +# define YYLEX yylex (YYLEX_PARAM) #else -#define YYLEX yylex(&yylval) +# define YYLEX yylex () #endif -#endif /* not YYLSP_NEEDED */ + +/* Enable debugging if requested. */ +#if YYDEBUG + +# ifndef YYFPRINTF +# include <stdio.h> /* INFRINGES ON USER NAME SPACE */ +# define YYFPRINTF fprintf +# endif + +# define YYDPRINTF(Args) \ +do { \ + if (yydebug) \ + YYFPRINTF Args; \ +} while (0) + +# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ +do { \ + if (yydebug) \ + { \ + YYFPRINTF (stderr, "%s ", Title); \ + yysymprint (stderr, \ + Type, Value); \ + YYFPRINTF (stderr, "\n"); \ + } \ +} while (0) + +/*------------------------------------------------------------------. +| yy_stack_print -- Print the state stack from its BOTTOM up to its | +| TOP (included). | +`------------------------------------------------------------------*/ + +#if defined (__STDC__) || defined (__cplusplus) +static void +yy_stack_print (short int *bottom, short int *top) +#else +static void +yy_stack_print (bottom, top) + short int *bottom; + short int *top; #endif +{ + YYFPRINTF (stderr, "Stack now"); + for (/* Nothing. */; bottom <= top; ++bottom) + YYFPRINTF (stderr, " %d", *bottom); + YYFPRINTF (stderr, "\n"); +} -/* If nonreentrant, generate the variables here */ +# define YY_STACK_PRINT(Bottom, Top) \ +do { \ + if (yydebug) \ + yy_stack_print ((Bottom), (Top)); \ +} while (0) -#ifndef YYPURE -int yychar; /* the lookahead symbol */ -YYSTYPE yylval; /* the semantic value of the */ - /* lookahead symbol */ +/*------------------------------------------------. +| Report that the YYRULE is going to be reduced. | +`------------------------------------------------*/ -#ifdef YYLSP_NEEDED -YYLTYPE yylloc; /* location data for the lookahead */ - /* symbol */ +#if defined (__STDC__) || defined (__cplusplus) +static void +yy_reduce_print (int yyrule) +#else +static void +yy_reduce_print (yyrule) + int yyrule; #endif +{ + int yyi; + unsigned long int yylno = yyrline[yyrule]; + YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu), ", + 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]]); +} -int yynerrs; /* number of parse errors so far */ -#endif /* not YYPURE */ +# define YY_REDUCE_PRINT(Rule) \ +do { \ + if (yydebug) \ + yy_reduce_print (Rule); \ +} while (0) -#if YYDEBUG != 0 -int yydebug; /* nonzero means print parse trace */ -/* Since this is uninitialized, it does not stop multiple parsers - from coexisting. */ -#endif +/* Nonzero means print parse trace. It is left uninitialized so that + multiple parsers can coexist. */ +int yydebug; +#else /* !YYDEBUG */ +# define YYDPRINTF(Args) +# define YY_SYMBOL_PRINT(Title, Type, Value, Location) +# define YY_STACK_PRINT(Bottom, Top) +# define YY_REDUCE_PRINT(Rule) +#endif /* !YYDEBUG */ -/* YYINITDEPTH indicates the initial size of the parser's stacks */ +/* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH -#define YYINITDEPTH 200 +# define YYINITDEPTH 200 #endif -/* YYMAXDEPTH is the maximum size the stacks can grow to - (effective only if the built-in stack extension method is used). */ +/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only + if the built-in stack extension method is used). -#if YYMAXDEPTH == 0 -#undef YYMAXDEPTH -#endif + Do not make this value too large; the results are undefined if + YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) + evaluated with infinite-precision integer arithmetic. */ #ifndef YYMAXDEPTH -#define YYMAXDEPTH 10000 +# define YYMAXDEPTH 10000 #endif + -/* Define __yy_memcpy. Note that the size argument - should be passed with type unsigned int, because that is what the non-GCC - definitions require. With GCC, __builtin_memcpy takes an arg - of type size_t, but it can handle unsigned int. */ - -#if __GNUC__ > 1 /* GNU C and GNU C++ define this. */ -#define __yy_memcpy(TO,FROM,COUNT) __builtin_memcpy(TO,FROM,COUNT) -#else /* not GNU C or C++ */ -#ifndef __cplusplus - -/* This is the most reliable way to avoid incompatibilities - in available built-in functions on various systems. */ -static void -__yy_memcpy (to, from, count) - char *to; - char *from; - unsigned int count; + +#if YYERROR_VERBOSE + +# ifndef yystrlen +# if defined (__GLIBC__) && defined (_STRING_H) +# define yystrlen strlen +# else +/* Return the length of YYSTR. */ +static YYSIZE_T +# if defined (__STDC__) || defined (__cplusplus) +yystrlen (const char *yystr) +# else +yystrlen (yystr) + const char *yystr; +# endif { - register char *f = from; - register char *t = to; - register int i = count; + const char *yys = yystr; + + while (*yys++ != '\0') + continue; + + return yys - yystr - 1; +} +# endif +# endif + +# ifndef yystpcpy +# 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. */ +static char * +# if defined (__STDC__) || defined (__cplusplus) +yystpcpy (char *yydest, const char *yysrc) +# else +yystpcpy (yydest, yysrc) + char *yydest; + const char *yysrc; +# endif +{ + char *yyd = yydest; + const char *yys = yysrc; + + while ((*yyd++ = *yys++) != '\0') + continue; + + return yyd - 1; +} +# endif +# endif + +# 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 == '"') + { + size_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); - while (i-- > 0) - *t++ = *f++; + return yystpcpy (yyres, yystr) - yyres; } +# endif -#else /* __cplusplus */ +#endif /* YYERROR_VERBOSE */ + + + +#if YYDEBUG +/*--------------------------------. +| Print this symbol on YYOUTPUT. | +`--------------------------------*/ -/* This is the most reliable way to avoid incompatibilities - in available built-in functions on various systems. */ +#if defined (__STDC__) || defined (__cplusplus) static void -__yy_memcpy (char *to, char *from, unsigned int count) +yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep) +#else +static void +yysymprint (yyoutput, yytype, yyvaluep) + FILE *yyoutput; + int yytype; + YYSTYPE *yyvaluep; +#endif { - register char *t = to; - register char *f = from; - register int i = count; + /* Pacify ``unused variable'' warnings. */ + (void) yyvaluep; + + if (yytype < YYNTOKENS) + YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); + else + YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); + - while (i-- > 0) - *t++ = *f++; +# ifdef YYPRINT + if (yytype < YYNTOKENS) + YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); +# endif + switch (yytype) + { + default: + break; + } + YYFPRINTF (yyoutput, ")"); } +#endif /* ! YYDEBUG */ +/*-----------------------------------------------. +| Release the memory associated to this symbol. | +`-----------------------------------------------*/ + +#if defined (__STDC__) || defined (__cplusplus) +static void +yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) +#else +static void +yydestruct (yymsg, yytype, yyvaluep) + const char *yymsg; + int yytype; + YYSTYPE *yyvaluep; #endif -#endif +{ + /* Pacify ``unused variable'' warnings. */ + (void) yyvaluep; + + if (!yymsg) + yymsg = "Deleting"; + YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); + + switch (yytype) + { + + default: + break; + } +} -#line 217 "/usr/share/bison.simple" -/* The user can define YYPARSE_PARAM as the name of an argument to be passed - into yyparse. The argument should have type void *. - It should actually point to an object. - Grammar actions can access the variable by casting it - to the proper pointer type. */ +/* Prevent warnings from -Wmissing-prototypes. */ #ifdef YYPARSE_PARAM -#ifdef __cplusplus -#define YYPARSE_PARAM_ARG void *YYPARSE_PARAM -#define YYPARSE_PARAM_DECL -#else /* not __cplusplus */ -#define YYPARSE_PARAM_ARG YYPARSE_PARAM -#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; -#endif /* not __cplusplus */ -#else /* not YYPARSE_PARAM */ -#define YYPARSE_PARAM_ARG -#define YYPARSE_PARAM_DECL -#endif /* not YYPARSE_PARAM */ - -/* Prevent warning if -Wstrict-prototypes. */ -#ifdef __GNUC__ -#ifdef YYPARSE_PARAM -int yyparse (void *); -#else +# if defined (__STDC__) || defined (__cplusplus) +int yyparse (void *YYPARSE_PARAM); +# else +int yyparse (); +# endif +#else /* ! YYPARSE_PARAM */ +#if defined (__STDC__) || defined (__cplusplus) int yyparse (void); +#else +int yyparse (); #endif -#endif +#endif /* ! YYPARSE_PARAM */ + + + +/* The look-ahead symbol. */ +int yychar; + +/* The semantic value of the look-ahead symbol. */ +YYSTYPE yylval; +/* Number of syntax errors so far. */ +int yynerrs; + + + +/*----------. +| yyparse. | +`----------*/ + +#ifdef YYPARSE_PARAM +# if defined (__STDC__) || defined (__cplusplus) +int yyparse (void *YYPARSE_PARAM) +# else +int yyparse (YYPARSE_PARAM) + void *YYPARSE_PARAM; +# endif +#else /* ! YYPARSE_PARAM */ +#if defined (__STDC__) || defined (__cplusplus) +int +yyparse (void) +#else int -yyparse(YYPARSE_PARAM_ARG) - YYPARSE_PARAM_DECL +yyparse () + ; +#endif +#endif { - register int yystate; - register int yyn; - register short *yyssp; - register YYSTYPE *yyvsp; - int yyerrstatus; /* number of tokens to shift before error messages enabled */ - int yychar1 = 0; /* lookahead token as an internal (translated) token number */ + + int yystate; + int yyn; + int yyresult; + /* Number of tokens to shift before error messages enabled. */ + int yyerrstatus; + /* Look-ahead token as an internal (translated) token number. */ + int yytoken = 0; - short yyssa[YYINITDEPTH]; /* the state stack */ - YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */ + /* Three stacks and their tools: + `yyss': related to states, + `yyvs': related to semantic values, + `yyls': related to locations. + + Refer to the stacks thru separate pointers, to allow yyoverflow + to reallocate them elsewhere. */ + + /* The state stack. */ + short int yyssa[YYINITDEPTH]; + short int *yyss = yyssa; + short int *yyssp; + + /* The semantic value stack. */ + YYSTYPE yyvsa[YYINITDEPTH]; + YYSTYPE *yyvs = yyvsa; + YYSTYPE *yyvsp; - short *yyss = yyssa; /* refer to the stacks thru separate pointers */ - YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */ -#ifdef YYLSP_NEEDED - YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */ - YYLTYPE *yyls = yylsa; - YYLTYPE *yylsp; -#define YYPOPSTACK (yyvsp--, yyssp--, yylsp--) -#else #define YYPOPSTACK (yyvsp--, yyssp--) -#endif - int yystacksize = YYINITDEPTH; - int yyfree_stacks = 0; + YYSIZE_T yystacksize = YYINITDEPTH; -#ifdef YYPURE - int yychar; - YYSTYPE yylval; - int yynerrs; -#ifdef YYLSP_NEEDED - YYLTYPE yylloc; -#endif -#endif + /* The variables used to return semantic value and location from the + action routines. */ + YYSTYPE yyval; - YYSTYPE yyval; /* the variable used to return */ - /* semantic values from the action */ - /* routines */ + /* When reducing, the number of symbols on the RHS of the reduced + rule. */ int yylen; -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Starting parse\n"); -#endif + YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; @@ -2431,564 +3142,539 @@ yyparse(YYPARSE_PARAM_ARG) so that they stay on the same level as the state stack. The wasted elements are never initialized. */ - yyssp = yyss - 1; + yyssp = yyss; yyvsp = yyvs; -#ifdef YYLSP_NEEDED - yylsp = yyls; -#endif -/* Push a new state, which is found in yystate . */ -/* In all cases, when you get here, the value and location stacks - have just been pushed. so pushing a state here evens the stacks. */ -yynewstate: + goto yysetstate; - *++yyssp = yystate; +/*------------------------------------------------------------. +| yynewstate -- Push a new state, which is found in yystate. | +`------------------------------------------------------------*/ + 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. + */ + yyssp++; - if (yyssp >= yyss + yystacksize - 1) - { - /* 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; -#ifdef YYLSP_NEEDED - YYLTYPE *yyls1 = yyls; -#endif + yysetstate: + *yyssp = yystate; + if (yyss + yystacksize - 1 <= yyssp) + { /* Get the current used size of the three stacks, in elements. */ - int size = yyssp - yyss + 1; + YYSIZE_T yysize = yyssp - yyss + 1; #ifdef yyoverflow - /* Each stack pointer address is followed by the size of - the data in use in that stack, in bytes. */ -#ifdef YYLSP_NEEDED - /* 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", - &yyss1, size * sizeof (*yyssp), - &yyvs1, size * sizeof (*yyvsp), - &yyls1, size * sizeof (*yylsp), - &yystacksize); -#else - yyoverflow("parser stack overflow", - &yyss1, size * sizeof (*yyssp), - &yyvs1, size * sizeof (*yyvsp), - &yystacksize); -#endif + { + /* 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 int *yyss1 = yyss; - yyss = yyss1; yyvs = yyvs1; -#ifdef YYLSP_NEEDED - yyls = yyls1; -#endif + + /* 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 (YY_("memory exhausted"), + &yyss1, yysize * sizeof (*yyssp), + &yyvs1, yysize * sizeof (*yyvsp), + + &yystacksize); + + yyss = yyss1; + yyvs = yyvs1; + } #else /* no yyoverflow */ +# ifndef YYSTACK_RELOCATE + goto yyexhaustedlab; +# else /* Extend the stack our own way. */ - if (yystacksize >= YYMAXDEPTH) - { - yyerror("parser stack overflow"); - if (yyfree_stacks) - { - free (yyss); - free (yyvs); -#ifdef YYLSP_NEEDED - free (yyls); -#endif - } - return 2; - } + if (YYMAXDEPTH <= yystacksize) + goto yyexhaustedlab; yystacksize *= 2; - if (yystacksize > YYMAXDEPTH) + if (YYMAXDEPTH < yystacksize) yystacksize = YYMAXDEPTH; -#ifndef YYSTACK_USE_ALLOCA - yyfree_stacks = 1; -#endif - yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp)); - __yy_memcpy ((char *)yyss, (char *)yyss1, - size * (unsigned int) sizeof (*yyssp)); - yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp)); - __yy_memcpy ((char *)yyvs, (char *)yyvs1, - size * (unsigned int) sizeof (*yyvsp)); -#ifdef YYLSP_NEEDED - yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp)); - __yy_memcpy ((char *)yyls, (char *)yyls1, - size * (unsigned int) sizeof (*yylsp)); -#endif + + { + short int *yyss1 = yyss; + union yyalloc *yyptr = + (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); + if (! yyptr) + goto yyexhaustedlab; + YYSTACK_RELOCATE (yyss); + YYSTACK_RELOCATE (yyvs); + +# undef YYSTACK_RELOCATE + if (yyss1 != yyssa) + YYSTACK_FREE (yyss1); + } +# endif #endif /* no yyoverflow */ - yyssp = yyss + size - 1; - yyvsp = yyvs + size - 1; -#ifdef YYLSP_NEEDED - yylsp = yyls + size - 1; -#endif + yyssp = yyss + yysize - 1; + yyvsp = yyvs + yysize - 1; -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Stack size increased to %d\n", yystacksize); -#endif - if (yyssp >= yyss + yystacksize - 1) + YYDPRINTF ((stderr, "Stack size increased to %lu\n", + (unsigned long int) yystacksize)); + + if (yyss + yystacksize - 1 <= yyssp) YYABORT; } -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Entering state %d\n", yystate); -#endif + YYDPRINTF ((stderr, "Entering state %d\n", yystate)); goto yybackup; - yybackup: + +/*-----------. +| yybackup. | +`-----------*/ +yybackup: /* Do appropriate processing given the current state. */ -/* Read a lookahead token if we need one and don't already have one. */ +/* Read a look-ahead token if we need one and don't already have one. */ /* yyresume: */ - /* First try to decide what to do without reference to lookahead token. */ + /* First try to decide what to do without reference to look-ahead token. */ yyn = yypact[yystate]; - if (yyn == YYFLAG) + if (yyn == YYPACT_NINF) goto yydefault; - /* Not known => get a lookahead token if don't already have one. */ - - /* yychar is either YYEMPTY or YYEOF - or a valid token in external form. */ + /* Not known => get a look-ahead token if don't already have one. */ + /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol. */ if (yychar == YYEMPTY) { -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Reading a token: "); -#endif + YYDPRINTF ((stderr, "Reading a token: ")); yychar = YYLEX; } - /* Convert token to internal form (in yychar1) for indexing tables with */ - - if (yychar <= 0) /* This means end of input. */ + if (yychar <= YYEOF) { - yychar1 = 0; - yychar = YYEOF; /* Don't call YYLEX any more */ - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Now at end of input.\n"); -#endif + yychar = yytoken = YYEOF; + YYDPRINTF ((stderr, "Now at end of input.\n")); } else { - yychar1 = YYTRANSLATE(yychar); - -#if YYDEBUG != 0 - if (yydebug) - { - fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]); - /* Give the individual parser a way to print the precise meaning - of a token, for further debugging info. */ -#ifdef YYPRINT - YYPRINT (stderr, yychar, yylval); -#endif - fprintf (stderr, ")\n"); - } -#endif + yytoken = YYTRANSLATE (yychar); + YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); } - yyn += yychar1; - if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1) + /* If the proper action on seeing token YYTOKEN is to reduce or to + detect an error, take that action. */ + yyn += yytoken; + if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) goto yydefault; - yyn = yytable[yyn]; - - /* yyn is what to do for this token type in this state. - Negative => reduce, -yyn is rule number. - Positive => shift, yyn is new state. - New state is final state => don't bother to shift, - just return success. - 0, or most negative number => error. */ - - if (yyn < 0) + if (yyn <= 0) { - if (yyn == YYFLAG) + if (yyn == 0 || yyn == YYTABLE_NINF) goto yyerrlab; yyn = -yyn; goto yyreduce; } - else if (yyn == 0) - goto yyerrlab; if (yyn == YYFINAL) YYACCEPT; - /* Shift the lookahead token. */ - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]); -#endif + /* Shift the look-ahead token. */ + YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); /* Discard the token being shifted unless it is eof. */ if (yychar != YYEOF) yychar = YYEMPTY; *++yyvsp = yylval; -#ifdef YYLSP_NEEDED - *++yylsp = yylloc; -#endif - /* count tokens shifted since error; after three, turn off error status. */ - if (yyerrstatus) yyerrstatus--; + + /* Count tokens shifted since error; after three, turn off error + status. */ + if (yyerrstatus) + yyerrstatus--; yystate = yyn; goto yynewstate; -/* Do the default action for the current state. */ -yydefault: +/*-----------------------------------------------------------. +| yydefault -- do the default action for the current state. | +`-----------------------------------------------------------*/ +yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; + goto yyreduce; + -/* Do a reduction. yyn is the number of a rule to reduce with. */ +/*-----------------------------. +| yyreduce -- Do a reduction. | +`-----------------------------*/ yyreduce: + /* yyn is the number of a rule to reduce with. */ yylen = yyr2[yyn]; - if (yylen > 0) - yyval = yyvsp[1-yylen]; /* implement default value of the action */ - -#if YYDEBUG != 0 - if (yydebug) - { - int i; - - fprintf (stderr, "Reducing via rule %d (line %d), ", - yyn, yyrline[yyn]); - /* Print the symbols being reduced, and their result. */ - for (i = yyprhs[yyn]; yyrhs[i] > 0; i++) - fprintf (stderr, "%s ", yytname[yyrhs[i]]); - fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]); - } -#endif + /* If YYLEN is nonzero, implement the default value of the action: + `$$ = $1'. + Otherwise, the following line sets YYVAL to garbage. + This behavior is undocumented and Bison + users should not rely upon it. Assigning to YYVAL + unconditionally makes the parser a bit smaller, and it avoids a + GCC warning that YYVAL may be used uninitialized. */ + yyval = yyvsp[1-yylen]; - switch (yyn) { -case 2: + YY_REDUCE_PRINT (yyn); + switch (yyn) + { + case 3: #line 145 "Gmsh.y" -{ yyerrok; return 1; ; - break;} -case 5: + { yyerrok; return 1; ;} + break; + + case 6: #line 156 "Gmsh.y" -{ return 1; ; - break;} -case 6: + { return 1; ;} + break; + + case 7: #line 157 "Gmsh.y" -{ return 1; ; - break;} -case 7: + { return 1; ;} + break; + + case 8: #line 158 "Gmsh.y" -{ return 1; ; - break;} -case 8: + { return 1; ;} + break; + + case 9: #line 159 "Gmsh.y" -{ return 1; ; - break;} -case 9: + { return 1; ;} + break; + + case 10: #line 160 "Gmsh.y" -{ List_Delete(yyvsp[0].l); return 1; ; - break;} -case 10: + { List_Delete((yyvsp[0].l)); return 1; ;} + break; + + case 11: #line 161 "Gmsh.y" -{ List_Delete(yyvsp[0].l); return 1; ; - break;} -case 11: + { List_Delete((yyvsp[0].l)); return 1; ;} + break; + + case 12: #line 162 "Gmsh.y" -{ return 1; ; - break;} -case 12: + { return 1; ;} + break; + + case 13: #line 163 "Gmsh.y" -{ return 1; ; - break;} -case 13: + { return 1; ;} + break; + + case 14: #line 164 "Gmsh.y" -{ return 1; ; - break;} -case 14: + { return 1; ;} + break; + + case 15: #line 165 "Gmsh.y" -{ List_Delete(yyvsp[0].l); return 1; ; - break;} -case 15: + { List_Delete((yyvsp[0].l)); return 1; ;} + break; + + case 16: #line 166 "Gmsh.y" -{ return 1; ; - break;} -case 16: + { return 1; ;} + break; + + case 17: #line 167 "Gmsh.y" -{ return 1; ; - break;} -case 17: + { return 1; ;} + break; + + case 18: #line 168 "Gmsh.y" -{ return 1; ; - break;} -case 18: + { return 1; ;} + break; + + case 19: #line 169 "Gmsh.y" -{ return 1; ; - break;} -case 19: + { return 1; ;} + break; + + case 20: #line 174 "Gmsh.y" -{ - Msg(DIRECT, yyvsp[-2].c); - Free(yyvsp[-2].c); - ; - break;} -case 20: + { + Msg(DIRECT, (yyvsp[-2].c)); + Free((yyvsp[-2].c)); + ;} + break; + + case 21: #line 179 "Gmsh.y" -{ + { char tmpstring[1024]; - int i = PrintListOfDouble(yyvsp[-4].c, yyvsp[-2].l, tmpstring); + int i = PrintListOfDouble((yyvsp[-4].c), (yyvsp[-2].l), tmpstring); if(i < 0) yymsg(GERROR, "Too few arguments in Printf"); else if(i > 0) yymsg(GERROR, "%d extra argument%s in Printf", i, (i>1)?"s":""); else Msg(DIRECT, tmpstring); - Free(yyvsp[-4].c); - List_Delete(yyvsp[-2].l); - ; - break;} -case 21: + Free((yyvsp[-4].c)); + List_Delete((yyvsp[-2].l)); + ;} + break; + + case 22: #line 197 "Gmsh.y" -{ - if(!strcmp(yyvsp[-5].c, "View") && !CheckViewErrorFlags(View)){ - EndView(View, 0, yyname, yyvsp[-4].c); + { + if(!strcmp((yyvsp[-5].c), "View") && !CheckViewErrorFlags(View)){ + EndView(View, 0, yyname, (yyvsp[-4].c)); } - Free(yyvsp[-5].c); Free(yyvsp[-4].c); - ; - break;} -case 22: + Free((yyvsp[-5].c)); Free((yyvsp[-4].c)); + ;} + break; + + case 23: #line 204 "Gmsh.y" -{ - if(!strcmp(yyvsp[-7].c, "View") && !CheckViewErrorFlags(View)){ - EndView(View, 0, yyname, yyvsp[-6].c); + { + if(!strcmp((yyvsp[-7].c), "View") && !CheckViewErrorFlags(View)){ + EndView(View, 0, yyname, (yyvsp[-6].c)); } - Free(yyvsp[-7].c); Free(yyvsp[-6].c); Free(yyvsp[-5].c); - ; - break;} -case 23: + Free((yyvsp[-7].c)); Free((yyvsp[-6].c)); Free((yyvsp[-5].c)); + ;} + break; + + case 24: #line 214 "Gmsh.y" -{ + { View = BeginView(1); for(int i = 0; i < VIEW_NB_ELEMENT_TYPES; i++){ ViewErrorFlags[i] = 0; } - ; - break;} -case 29: + ;} + break; + + case 30: #line 229 "Gmsh.y" -{ ViewCoord[ViewCoordIdx] = yyvsp[0].d; ViewCoordIdx++; ; - break;} -case 30: + { ViewCoord[ViewCoordIdx] = (yyvsp[0].d); ViewCoordIdx++; ;} + break; + + case 31: #line 231 "Gmsh.y" -{ ViewCoord[ViewCoordIdx] = yyvsp[0].d; ViewCoordIdx++; ; - break;} -case 31: + { ViewCoord[ViewCoordIdx] = (yyvsp[0].d); ViewCoordIdx++; ;} + break; + + case 32: #line 236 "Gmsh.y" -{ if(ViewValueList) List_Add(ViewValueList, &yyvsp[0].d); ; - break;} -case 32: + { if(ViewValueList) List_Add(ViewValueList, &(yyvsp[0].d)); ;} + break; + + case 33: #line 238 "Gmsh.y" -{ if(ViewValueList) List_Add(ViewValueList, &yyvsp[0].d); ; - break;} -case 33: + { if(ViewValueList) List_Add(ViewValueList, &(yyvsp[0].d)); ;} + break; + + case 34: #line 243 "Gmsh.y" -{ - if(!strcmp(yyvsp[0].c, "SP")){ + { + if(!strcmp((yyvsp[0].c), "SP")){ ViewElementIdx = 0; ViewNumNodes = 1; ViewNumComp = 1; ViewValueList = View->SP; ViewNumList = &View->NbSP; } - else if(!strcmp(yyvsp[0].c, "VP")){ + else if(!strcmp((yyvsp[0].c), "VP")){ ViewElementIdx = 1; ViewNumNodes = 1; ViewNumComp = 3; ViewValueList = View->VP; ViewNumList = &View->NbVP; } - else if(!strcmp(yyvsp[0].c, "TP")){ + else if(!strcmp((yyvsp[0].c), "TP")){ ViewElementIdx = 2; ViewNumNodes = 1; ViewNumComp = 9; ViewValueList = View->TP; ViewNumList = &View->NbTP; } - else if(!strcmp(yyvsp[0].c, "SL")){ + else if(!strcmp((yyvsp[0].c), "SL")){ ViewElementIdx = 3; ViewNumNodes = 2; ViewNumComp = 1; ViewValueList = View->SL; ViewNumList = &View->NbSL; } - else if(!strcmp(yyvsp[0].c, "VL")){ + else if(!strcmp((yyvsp[0].c), "VL")){ ViewElementIdx = 4; ViewNumNodes = 2; ViewNumComp = 3; ViewValueList = View->VL; ViewNumList = &View->NbVL; } - else if(!strcmp(yyvsp[0].c, "TL")){ + else if(!strcmp((yyvsp[0].c), "TL")){ ViewElementIdx = 5; ViewNumNodes = 2; ViewNumComp = 9; ViewValueList = View->TL; ViewNumList = &View->NbTL; } - else if(!strcmp(yyvsp[0].c, "ST")){ + else if(!strcmp((yyvsp[0].c), "ST")){ ViewElementIdx = 6; ViewNumNodes = 3; ViewNumComp = 1; ViewValueList = View->ST; ViewNumList = &View->NbST; } - else if(!strcmp(yyvsp[0].c, "VT")){ + else if(!strcmp((yyvsp[0].c), "VT")){ ViewElementIdx = 7; ViewNumNodes = 3; ViewNumComp = 3; ViewValueList = View->VT; ViewNumList = &View->NbVT; } - else if(!strcmp(yyvsp[0].c, "TT")){ + else if(!strcmp((yyvsp[0].c), "TT")){ ViewElementIdx = 8; ViewNumNodes = 3; ViewNumComp = 9; ViewValueList = View->TT; ViewNumList = &View->NbTT; } - else if(!strcmp(yyvsp[0].c, "SQ")){ + else if(!strcmp((yyvsp[0].c), "SQ")){ ViewElementIdx = 9; ViewNumNodes = 4; ViewNumComp = 1; ViewValueList = View->SQ; ViewNumList = &View->NbSQ; } - else if(!strcmp(yyvsp[0].c, "VQ")){ + else if(!strcmp((yyvsp[0].c), "VQ")){ ViewElementIdx = 10; ViewNumNodes = 4; ViewNumComp = 3; ViewValueList = View->VQ; ViewNumList = &View->NbVQ; } - else if(!strcmp(yyvsp[0].c, "TQ")){ + else if(!strcmp((yyvsp[0].c), "TQ")){ ViewElementIdx = 11; ViewNumNodes = 4; ViewNumComp = 9; ViewValueList = View->TQ; ViewNumList = &View->NbTQ; } - else if(!strcmp(yyvsp[0].c, "SS")){ + else if(!strcmp((yyvsp[0].c), "SS")){ ViewElementIdx = 12; ViewNumNodes = 4; ViewNumComp = 1; ViewValueList = View->SS; ViewNumList = &View->NbSS; } - else if(!strcmp(yyvsp[0].c, "VS")){ + else if(!strcmp((yyvsp[0].c), "VS")){ ViewElementIdx = 13; ViewNumNodes = 4; ViewNumComp = 3; ViewValueList = View->VS; ViewNumList = &View->NbVS; } - else if(!strcmp(yyvsp[0].c, "TS")){ + else if(!strcmp((yyvsp[0].c), "TS")){ ViewElementIdx = 14; ViewNumNodes = 4; ViewNumComp = 9; ViewValueList = View->TS; ViewNumList = &View->NbTS; } - else if(!strcmp(yyvsp[0].c, "SH")){ + else if(!strcmp((yyvsp[0].c), "SH")){ ViewElementIdx = 15; ViewNumNodes = 8; ViewNumComp = 1; ViewValueList = View->SH; ViewNumList = &View->NbSH; } - else if(!strcmp(yyvsp[0].c, "VH")){ + else if(!strcmp((yyvsp[0].c), "VH")){ ViewElementIdx = 16; ViewNumNodes = 8; ViewNumComp = 3; ViewValueList = View->VH; ViewNumList = &View->NbVH; } - else if(!strcmp(yyvsp[0].c, "TH")){ + else if(!strcmp((yyvsp[0].c), "TH")){ ViewElementIdx = 17; ViewNumNodes = 8; ViewNumComp = 9; ViewValueList = View->TH; ViewNumList = &View->NbTH; } - else if(!strcmp(yyvsp[0].c, "SI")){ + else if(!strcmp((yyvsp[0].c), "SI")){ ViewElementIdx = 18; ViewNumNodes = 6; ViewNumComp = 1; ViewValueList = View->SI; ViewNumList = &View->NbSI; } - else if(!strcmp(yyvsp[0].c, "VI")){ + else if(!strcmp((yyvsp[0].c), "VI")){ ViewElementIdx = 19; ViewNumNodes = 6; ViewNumComp = 3; ViewValueList = View->VI; ViewNumList = &View->NbVI; } - else if(!strcmp(yyvsp[0].c, "TI")){ + else if(!strcmp((yyvsp[0].c), "TI")){ ViewElementIdx = 20; ViewNumNodes = 6; ViewNumComp = 9; ViewValueList = View->TI; ViewNumList = &View->NbTI; } - else if(!strcmp(yyvsp[0].c, "SY")){ + else if(!strcmp((yyvsp[0].c), "SY")){ ViewElementIdx = 21; ViewNumNodes = 5; ViewNumComp = 1; ViewValueList = View->SY; ViewNumList = &View->NbSY; } - else if(!strcmp(yyvsp[0].c, "VY")){ + else if(!strcmp((yyvsp[0].c), "VY")){ ViewElementIdx = 22; ViewNumNodes = 5; ViewNumComp = 3; ViewValueList = View->VY; ViewNumList = &View->NbVY; } - else if(!strcmp(yyvsp[0].c, "TY")){ + else if(!strcmp((yyvsp[0].c), "TY")){ ViewElementIdx = 23; ViewNumNodes = 5; ViewNumComp = 9; ViewValueList = View->TY; ViewNumList = &View->NbTY; } - else if(!strcmp(yyvsp[0].c, "SL2")){ + else if(!strcmp((yyvsp[0].c), "SL2")){ ViewElementIdx = 3; ViewNumNodes = 3; ViewNumComp = 1; ViewValueList = View->SL2; ViewNumList = &View->NbSL2; } - else if(!strcmp(yyvsp[0].c, "VL2")){ + else if(!strcmp((yyvsp[0].c), "VL2")){ ViewElementIdx = 4; ViewNumNodes = 3; ViewNumComp = 3; ViewValueList = View->VL2; ViewNumList = &View->NbVL2; } - else if(!strcmp(yyvsp[0].c, "TL2")){ + else if(!strcmp((yyvsp[0].c), "TL2")){ ViewElementIdx = 5; ViewNumNodes = 3; ViewNumComp = 9; ViewValueList = View->TL2; ViewNumList = &View->NbTL2; } - else if(!strcmp(yyvsp[0].c, "ST2")){ + else if(!strcmp((yyvsp[0].c), "ST2")){ ViewElementIdx = 6; ViewNumNodes = 6; ViewNumComp = 1; ViewValueList = View->ST2; ViewNumList = &View->NbST2; } - else if(!strcmp(yyvsp[0].c, "VT2")){ + else if(!strcmp((yyvsp[0].c), "VT2")){ ViewElementIdx = 7; ViewNumNodes = 6; ViewNumComp = 3; ViewValueList = View->VT2; ViewNumList = &View->NbVT2; } - else if(!strcmp(yyvsp[0].c, "TT2")){ + else if(!strcmp((yyvsp[0].c), "TT2")){ ViewElementIdx = 8; ViewNumNodes = 6; ViewNumComp = 9; ViewValueList = View->TT2; ViewNumList = &View->NbTT2; } - else if(!strcmp(yyvsp[0].c, "SQ2")){ + else if(!strcmp((yyvsp[0].c), "SQ2")){ ViewElementIdx = 9; ViewNumNodes = 9; ViewNumComp = 1; ViewValueList = View->SQ2; ViewNumList = &View->NbSQ2; } - else if(!strcmp(yyvsp[0].c, "VQ2")){ + else if(!strcmp((yyvsp[0].c), "VQ2")){ ViewElementIdx = 10; ViewNumNodes = 9; ViewNumComp = 3; ViewValueList = View->VQ2; ViewNumList = &View->NbVQ2; } - else if(!strcmp(yyvsp[0].c, "TQ2")){ + else if(!strcmp((yyvsp[0].c), "TQ2")){ ViewElementIdx = 11; ViewNumNodes = 9; ViewNumComp = 9; ViewValueList = View->TQ2; ViewNumList = &View->NbTQ2; } - else if(!strcmp(yyvsp[0].c, "SS2")){ + else if(!strcmp((yyvsp[0].c), "SS2")){ ViewElementIdx = 12; ViewNumNodes = 10; ViewNumComp = 1; ViewValueList = View->SS2; ViewNumList = &View->NbSS2; } - else if(!strcmp(yyvsp[0].c, "VS2")){ + else if(!strcmp((yyvsp[0].c), "VS2")){ ViewElementIdx = 13; ViewNumNodes = 10; ViewNumComp = 3; ViewValueList = View->VS2; ViewNumList = &View->NbVS2; } - else if(!strcmp(yyvsp[0].c, "TS2")){ + else if(!strcmp((yyvsp[0].c), "TS2")){ ViewElementIdx = 14; ViewNumNodes = 10; ViewNumComp = 9; ViewValueList = View->TS2; ViewNumList = &View->NbTS2; } - else if(!strcmp(yyvsp[0].c, "SH2")){ + else if(!strcmp((yyvsp[0].c), "SH2")){ ViewElementIdx = 15; ViewNumNodes = 27; ViewNumComp = 1; ViewValueList = View->SH2; ViewNumList = &View->NbSH2; } - else if(!strcmp(yyvsp[0].c, "VH2")){ + else if(!strcmp((yyvsp[0].c), "VH2")){ ViewElementIdx = 16; ViewNumNodes = 27; ViewNumComp = 3; ViewValueList = View->VH2; ViewNumList = &View->NbVH2; } - else if(!strcmp(yyvsp[0].c, "TH2")){ + else if(!strcmp((yyvsp[0].c), "TH2")){ ViewElementIdx = 17; ViewNumNodes = 27; ViewNumComp = 9; ViewValueList = View->TH2; ViewNumList = &View->NbTH2; } - else if(!strcmp(yyvsp[0].c, "SI2")){ + else if(!strcmp((yyvsp[0].c), "SI2")){ ViewElementIdx = 18; ViewNumNodes = 18; ViewNumComp = 1; ViewValueList = View->SI2; ViewNumList = &View->NbSI2; } - else if(!strcmp(yyvsp[0].c, "VI2")){ + else if(!strcmp((yyvsp[0].c), "VI2")){ ViewElementIdx = 19; ViewNumNodes = 18; ViewNumComp = 3; ViewValueList = View->VI2; ViewNumList = &View->NbVI2; } - else if(!strcmp(yyvsp[0].c, "TI2")){ + else if(!strcmp((yyvsp[0].c), "TI2")){ ViewElementIdx = 20; ViewNumNodes = 18; ViewNumComp = 9; ViewValueList = View->TI2; ViewNumList = &View->NbTI2; } - else if(!strcmp(yyvsp[0].c, "SY2")){ + else if(!strcmp((yyvsp[0].c), "SY2")){ ViewElementIdx = 21; ViewNumNodes = 14; ViewNumComp = 1; ViewValueList = View->SY2; ViewNumList = &View->NbSY2; } - else if(!strcmp(yyvsp[0].c, "VY2")){ + else if(!strcmp((yyvsp[0].c), "VY2")){ ViewElementIdx = 22; ViewNumNodes = 14; ViewNumComp = 3; ViewValueList = View->VY2; ViewNumList = &View->NbVY2; } - else if(!strcmp(yyvsp[0].c, "TY2")){ + else if(!strcmp((yyvsp[0].c), "TY2")){ ViewElementIdx = 23; ViewNumNodes = 14; ViewNumComp = 9; ViewValueList = View->TY2; ViewNumList = &View->NbTY2; } else{ - yymsg(GERROR, "Unknown element type '%s'", yyvsp[0].c); + yymsg(GERROR, "Unknown element type '%s'", (yyvsp[0].c)); ViewElementIdx = -1; ViewNumNodes = 0; ViewNumComp = 0; ViewValueList = NULL; ViewNumList = NULL; } - Free(yyvsp[0].c); + Free((yyvsp[0].c)); ViewCoordIdx = 0; - ; - break;} -case 34: + ;} + break; + + case 35: #line 433 "Gmsh.y" -{ + { if(ViewValueList){ if(ViewCoordIdx != 3 * ViewNumNodes){ yymsg(GERROR, "Wrong number of node coordinates (%d != %d)", @@ -3004,788 +3690,838 @@ case 34: } ViewNumListTmp = List_Nbr(ViewValueList); } - ; - break;} -case 35: + ;} + break; + + case 36: #line 451 "Gmsh.y" -{ + { if(ViewValueList){ if((List_Nbr(ViewValueList) - ViewNumListTmp) % (ViewNumComp * ViewNumNodes)) ViewErrorFlags[ViewElementIdx]++; (*ViewNumList)++; } - ; - break;} -case 36: + ;} + break; + + case 37: #line 462 "Gmsh.y" -{ - for(int i = 0; i < (int)strlen(yyvsp[0].c)+1; i++) List_Add(View->T2C, &yyvsp[0].c[i]); - Free(yyvsp[0].c); - ; - break;} -case 37: + { + for(int i = 0; i < (int)strlen((yyvsp[0].c))+1; i++) List_Add(View->T2C, &(yyvsp[0].c)[i]); + Free((yyvsp[0].c)); + ;} + break; + + case 38: #line 467 "Gmsh.y" -{ - for(int i = 0; i < (int)strlen(yyvsp[0].c)+1; i++) List_Add(View->T2C, &yyvsp[0].c[i]); - Free(yyvsp[0].c); - ; - break;} -case 38: + { + for(int i = 0; i < (int)strlen((yyvsp[0].c))+1; i++) List_Add(View->T2C, &(yyvsp[0].c)[i]); + Free((yyvsp[0].c)); + ;} + break; + + case 39: #line 475 "Gmsh.y" -{ - List_Add(View->T2D, &yyvsp[-5].d); List_Add(View->T2D, &yyvsp[-3].d); - List_Add(View->T2D, &yyvsp[-1].d); + { + List_Add(View->T2D, &(yyvsp[-5].d)); List_Add(View->T2D, &(yyvsp[-3].d)); + List_Add(View->T2D, &(yyvsp[-1].d)); double d = List_Nbr(View->T2C); List_Add(View->T2D, &d); - ; - break;} -case 39: + ;} + break; + + case 40: #line 482 "Gmsh.y" -{ + { View->NbT2++; - ; - break;} -case 40: + ;} + break; + + case 41: #line 489 "Gmsh.y" -{ - for(int i = 0; i < (int)strlen(yyvsp[0].c)+1; i++) List_Add(View->T3C, &yyvsp[0].c[i]); - Free(yyvsp[0].c); - ; - break;} -case 41: + { + for(int i = 0; i < (int)strlen((yyvsp[0].c))+1; i++) List_Add(View->T3C, &(yyvsp[0].c)[i]); + Free((yyvsp[0].c)); + ;} + break; + + case 42: #line 494 "Gmsh.y" -{ - for(int i = 0; i < (int)strlen(yyvsp[0].c)+1; i++) List_Add(View->T3C, &yyvsp[0].c[i]); - Free(yyvsp[0].c); - ; - break;} -case 42: + { + for(int i = 0; i < (int)strlen((yyvsp[0].c))+1; i++) List_Add(View->T3C, &(yyvsp[0].c)[i]); + Free((yyvsp[0].c)); + ;} + break; + + case 43: #line 502 "Gmsh.y" -{ - List_Add(View->T3D, &yyvsp[-7].d); List_Add(View->T3D, &yyvsp[-5].d); - List_Add(View->T3D, &yyvsp[-3].d); List_Add(View->T3D, &yyvsp[-1].d); + { + List_Add(View->T3D, &(yyvsp[-7].d)); List_Add(View->T3D, &(yyvsp[-5].d)); + List_Add(View->T3D, &(yyvsp[-3].d)); List_Add(View->T3D, &(yyvsp[-1].d)); double d = List_Nbr(View->T3C); List_Add(View->T3D, &d); - ; - break;} -case 43: + ;} + break; + + case 44: #line 509 "Gmsh.y" -{ + { View->NbT3++; - ; - break;} -case 44: + ;} + break; + + case 45: #line 517 "Gmsh.y" -{ - View->adaptive = new Adaptive_Post_View(View, yyvsp[-5].l, yyvsp[-2].l); - ; - break;} -case 45: + { + View->adaptive = new Adaptive_Post_View(View, (yyvsp[-5].l), (yyvsp[-2].l)); + ;} + break; + + case 46: #line 524 "Gmsh.y" -{ + { ViewValueList = View->Time; - ; - break;} -case 46: + ;} + break; + + case 47: #line 528 "Gmsh.y" -{ - ; - break;} -case 47: + { + ;} + break; + + case 48: #line 535 "Gmsh.y" -{ yyval.i = 0; ; - break;} -case 48: + { (yyval.i) = 0; ;} + break; + + case 49: #line 536 "Gmsh.y" -{ yyval.i = 1; ; - break;} -case 49: + { (yyval.i) = 1; ;} + break; + + case 50: #line 537 "Gmsh.y" -{ yyval.i = 2; ; - break;} -case 50: + { (yyval.i) = 2; ;} + break; + + case 51: #line 538 "Gmsh.y" -{ yyval.i = 3; ; - break;} -case 51: + { (yyval.i) = 3; ;} + break; + + case 52: #line 539 "Gmsh.y" -{ yyval.i = 4; ; - break;} -case 52: + { (yyval.i) = 4; ;} + break; + + case 53: #line 543 "Gmsh.y" -{ yyval.i = 1; ; - break;} -case 53: + { (yyval.i) = 1; ;} + break; + + case 54: #line 544 "Gmsh.y" -{ yyval.i = -1; ; - break;} -case 54: + { (yyval.i) = -1; ;} + break; + + case 55: #line 552 "Gmsh.y" -{ + { Symbol TheSymbol; - TheSymbol.Name = yyvsp[-3].c; + TheSymbol.Name = (yyvsp[-3].c); Symbol *pSymbol; if(!(pSymbol = (Symbol*)Tree_PQuery(Symbol_T, &TheSymbol))){ - if(!yyvsp[-2].i){ + if(!(yyvsp[-2].i)){ TheSymbol.val = List_Create(1, 1, sizeof(double)); - List_Put(TheSymbol.val, 0, &yyvsp[-1].d); + List_Put(TheSymbol.val, 0, &(yyvsp[-1].d)); Tree_Add(Symbol_T, &TheSymbol); } else{ - yymsg(GERROR, "Unknown variable '%s'", yyvsp[-3].c); - Free(yyvsp[-3].c); + yymsg(GERROR, "Unknown variable '%s'", (yyvsp[-3].c)); + Free((yyvsp[-3].c)); } } else{ double *pd = (double*)List_Pointer_Fast(pSymbol->val, 0); - switch(yyvsp[-2].i){ - case 0 : *pd = yyvsp[-1].d; break; - case 1 : *pd += yyvsp[-1].d; break; - case 2 : *pd -= yyvsp[-1].d; break; - case 3 : *pd *= yyvsp[-1].d; break; + switch((yyvsp[-2].i)){ + case 0 : *pd = (yyvsp[-1].d); break; + case 1 : *pd += (yyvsp[-1].d); break; + case 2 : *pd -= (yyvsp[-1].d); break; + case 3 : *pd *= (yyvsp[-1].d); break; case 4 : - if(yyvsp[-1].d) *pd /= yyvsp[-1].d; - else yymsg(GERROR, "Division by zero in '%s /= %g'", yyvsp[-3].c, yyvsp[-1].d); + if((yyvsp[-1].d)) *pd /= (yyvsp[-1].d); + else yymsg(GERROR, "Division by zero in '%s /= %g'", (yyvsp[-3].c), (yyvsp[-1].d)); break; } - Free(yyvsp[-3].c); + Free((yyvsp[-3].c)); } - ; - break;} -case 55: + ;} + break; + + case 56: #line 583 "Gmsh.y" -{ + { Symbol TheSymbol; - TheSymbol.Name = yyvsp[-6].c; + TheSymbol.Name = (yyvsp[-6].c); Symbol *pSymbol; if(!(pSymbol = (Symbol*)Tree_PQuery(Symbol_T, &TheSymbol))){ - if(!yyvsp[-2].i){ + if(!(yyvsp[-2].i)){ TheSymbol.val = List_Create(5, 5, sizeof(double)); - List_Put(TheSymbol.val, (int)yyvsp[-4].d, &yyvsp[-1].d); + List_Put(TheSymbol.val, (int)(yyvsp[-4].d), &(yyvsp[-1].d)); Tree_Add(Symbol_T, &TheSymbol); } else{ - yymsg(GERROR, "Unknown variable '%s'", yyvsp[-6].c); - Free(yyvsp[-6].c); + yymsg(GERROR, "Unknown variable '%s'", (yyvsp[-6].c)); + Free((yyvsp[-6].c)); } } else{ double *pd; - if((pd = (double*)List_Pointer_Test(pSymbol->val, (int)yyvsp[-4].d))){ - switch(yyvsp[-2].i){ - case 0 : *pd = yyvsp[-1].d; break; - case 1 : *pd += yyvsp[-1].d; break; - case 2 : *pd -= yyvsp[-1].d; break; - case 3 : *pd *= yyvsp[-1].d; break; + if((pd = (double*)List_Pointer_Test(pSymbol->val, (int)(yyvsp[-4].d)))){ + switch((yyvsp[-2].i)){ + case 0 : *pd = (yyvsp[-1].d); break; + case 1 : *pd += (yyvsp[-1].d); break; + case 2 : *pd -= (yyvsp[-1].d); break; + case 3 : *pd *= (yyvsp[-1].d); break; case 4 : - if(yyvsp[-1].d) *pd /= yyvsp[-1].d; - else yymsg(GERROR, "Division by zero in '%s[%d] /= %g'", yyvsp[-6].c, (int)yyvsp[-4].d, yyvsp[-1].d); + if((yyvsp[-1].d)) *pd /= (yyvsp[-1].d); + else yymsg(GERROR, "Division by zero in '%s[%d] /= %g'", (yyvsp[-6].c), (int)(yyvsp[-4].d), (yyvsp[-1].d)); break; } } else{ - if(!yyvsp[-2].i) - List_Put(pSymbol->val, (int)yyvsp[-4].d, &yyvsp[-1].d); + if(!(yyvsp[-2].i)) + List_Put(pSymbol->val, (int)(yyvsp[-4].d), &(yyvsp[-1].d)); else - yymsg(GERROR, "Uninitialized variable '%s[%d]'", yyvsp[-6].c, (int)yyvsp[-4].d); + yymsg(GERROR, "Uninitialized variable '%s[%d]'", (yyvsp[-6].c), (int)(yyvsp[-4].d)); } - Free(yyvsp[-6].c); + Free((yyvsp[-6].c)); } - ; - break;} -case 56: + ;} + break; + + case 57: #line 622 "Gmsh.y" -{ - if(List_Nbr(yyvsp[-5].l) != List_Nbr(yyvsp[-1].l)){ + { + if(List_Nbr((yyvsp[-5].l)) != List_Nbr((yyvsp[-1].l))){ yymsg(GERROR, "Incompatible array dimensions in affectation"); - Free(yyvsp[-8].c); + Free((yyvsp[-8].c)); } else{ Symbol TheSymbol; - TheSymbol.Name = yyvsp[-8].c; + TheSymbol.Name = (yyvsp[-8].c); Symbol *pSymbol; if(!(pSymbol = (Symbol*)Tree_PQuery(Symbol_T, &TheSymbol))){ - if(!yyvsp[-2].i){ + if(!(yyvsp[-2].i)){ TheSymbol.val = List_Create(5, 5, sizeof(double)); - for(int i = 0; i < List_Nbr(yyvsp[-5].l); i++){ - List_Put(TheSymbol.val, (int)(*(double*)List_Pointer(yyvsp[-5].l, i)), - (double*)List_Pointer(yyvsp[-1].l, i)); + for(int i = 0; i < List_Nbr((yyvsp[-5].l)); i++){ + List_Put(TheSymbol.val, (int)(*(double*)List_Pointer((yyvsp[-5].l), i)), + (double*)List_Pointer((yyvsp[-1].l), i)); } Tree_Add(Symbol_T, &TheSymbol); } else{ - yymsg(GERROR, "Unknown variable '%s'", yyvsp[-8].c); - Free(yyvsp[-8].c); + yymsg(GERROR, "Unknown variable '%s'", (yyvsp[-8].c)); + Free((yyvsp[-8].c)); } } else{ - for(int i = 0; i < List_Nbr(yyvsp[-5].l); i++){ - int j = (int)(*(double*)List_Pointer(yyvsp[-5].l, i)); - double d = *(double*)List_Pointer(yyvsp[-1].l, i); + for(int i = 0; i < List_Nbr((yyvsp[-5].l)); i++){ + int j = (int)(*(double*)List_Pointer((yyvsp[-5].l), i)); + double d = *(double*)List_Pointer((yyvsp[-1].l), i); double *pd; if((pd = (double*)List_Pointer_Test(pSymbol->val, j))){ - switch(yyvsp[-2].i){ + switch((yyvsp[-2].i)){ case 0 : *pd = d; break; case 1 : *pd += d; break; case 2 : *pd -= d; break; case 3 : *pd *= d; break; case 4 : - if(yyvsp[-1].l) *pd /= d; - else yymsg(GERROR, "Division by zero in '%s[%d] /= %g'", yyvsp[-8].c, j, d); + if((yyvsp[-1].l)) *pd /= d; + else yymsg(GERROR, "Division by zero in '%s[%d] /= %g'", (yyvsp[-8].c), j, d); break; } } else{ - if(!yyvsp[-2].i) + if(!(yyvsp[-2].i)) List_Put(pSymbol->val, j, &d); else - yymsg(GERROR, "Uninitialized variable '%s[%d]'", yyvsp[-8].c, j); + yymsg(GERROR, "Uninitialized variable '%s[%d]'", (yyvsp[-8].c), j); } } - Free(yyvsp[-8].c); + Free((yyvsp[-8].c)); } } - List_Delete(yyvsp[-5].l); - List_Delete(yyvsp[-1].l); - ; - break;} -case 57: + List_Delete((yyvsp[-5].l)); + List_Delete((yyvsp[-1].l)); + ;} + break; + + case 58: #line 676 "Gmsh.y" -{ + { Symbol TheSymbol; - TheSymbol.Name = yyvsp[-5].c; + TheSymbol.Name = (yyvsp[-5].c); Symbol *pSymbol; if(!(pSymbol = (Symbol*)Tree_PQuery(Symbol_T, &TheSymbol))){ TheSymbol.val = List_Create(5, 5, sizeof(double)); - List_Copy(yyvsp[-1].l, TheSymbol.val); + List_Copy((yyvsp[-1].l), TheSymbol.val); Tree_Add(Symbol_T, &TheSymbol); } else{ List_Reset(pSymbol->val); - List_Copy(yyvsp[-1].l, pSymbol->val); - Free(yyvsp[-5].c); + List_Copy((yyvsp[-1].l), pSymbol->val); + Free((yyvsp[-5].c)); } - List_Delete(yyvsp[-1].l); - ; - break;} -case 58: + List_Delete((yyvsp[-1].l)); + ;} + break; + + case 59: #line 693 "Gmsh.y" -{ + { // appends to the list Symbol TheSymbol; - TheSymbol.Name = yyvsp[-5].c; + TheSymbol.Name = (yyvsp[-5].c); Symbol *pSymbol; if(!(pSymbol = (Symbol*)Tree_PQuery(Symbol_T, &TheSymbol))){ TheSymbol.val = List_Create(5, 5, sizeof(double)); - List_Copy(yyvsp[-1].l, TheSymbol.val); + List_Copy((yyvsp[-1].l), TheSymbol.val); Tree_Add(Symbol_T, &TheSymbol); } else{ - for(int i = 0; i < List_Nbr(yyvsp[-1].l); i++) - List_Add(pSymbol->val, List_Pointer(yyvsp[-1].l, i)); - Free(yyvsp[-5].c); + for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++) + List_Add(pSymbol->val, List_Pointer((yyvsp[-1].l), i)); + Free((yyvsp[-5].c)); } - List_Delete(yyvsp[-1].l); - ; - break;} -case 59: + List_Delete((yyvsp[-1].l)); + ;} + break; + + case 60: #line 711 "Gmsh.y" -{ + { Symbol TheSymbol; - TheSymbol.Name = yyvsp[-2].c; + TheSymbol.Name = (yyvsp[-2].c); Symbol *pSymbol; if(!(pSymbol = (Symbol*)Tree_PQuery(Symbol_T, &TheSymbol))) - yymsg(GERROR, "Unknown variable '%s'", yyvsp[-2].c); + yymsg(GERROR, "Unknown variable '%s'", (yyvsp[-2].c)); else - *(double*)List_Pointer_Fast(pSymbol->val, 0) += yyvsp[-1].i; - Free(yyvsp[-2].c); - ; - break;} -case 60: + *(double*)List_Pointer_Fast(pSymbol->val, 0) += (yyvsp[-1].i); + Free((yyvsp[-2].c)); + ;} + break; + + case 61: #line 722 "Gmsh.y" -{ + { Symbol TheSymbol; - TheSymbol.Name = yyvsp[-5].c; + TheSymbol.Name = (yyvsp[-5].c); Symbol *pSymbol; if(!(pSymbol = (Symbol*)Tree_PQuery(Symbol_T, &TheSymbol))) - yymsg(GERROR, "Unknown variable '%s'", yyvsp[-5].c); + yymsg(GERROR, "Unknown variable '%s'", (yyvsp[-5].c)); else{ double *pd; - if((pd = (double*)List_Pointer_Test(pSymbol->val, (int)yyvsp[-3].d))) - *pd += yyvsp[-1].i; + if((pd = (double*)List_Pointer_Test(pSymbol->val, (int)(yyvsp[-3].d)))) + *pd += (yyvsp[-1].i); else - yymsg(GERROR, "Uninitialized variable '%s[%d]'", yyvsp[-5].c, (int)yyvsp[-3].d); + yymsg(GERROR, "Uninitialized variable '%s[%d]'", (yyvsp[-5].c), (int)(yyvsp[-3].d)); } - Free(yyvsp[-5].c); - ; - break;} -case 61: + Free((yyvsp[-5].c)); + ;} + break; + + case 62: #line 741 "Gmsh.y" -{ + { char* (*pStrOpt)(int num, int action, char *value); StringXString *pStrCat; - if(!(pStrCat = Get_StringOptionCategory(yyvsp[-5].c))) - yymsg(GERROR, "Unknown string option class '%s'", yyvsp[-5].c); + if(!(pStrCat = Get_StringOptionCategory((yyvsp[-5].c)))) + yymsg(GERROR, "Unknown string option class '%s'", (yyvsp[-5].c)); else{ - if(!(pStrOpt = (char *(*) (int, int, char *))Get_StringOption(yyvsp[-3].c, pStrCat))) - yymsg(GERROR, "Unknown string option '%s.%s'", yyvsp[-5].c, yyvsp[-3].c); + if(!(pStrOpt = (char *(*) (int, int, char *))Get_StringOption((yyvsp[-3].c), pStrCat))) + yymsg(GERROR, "Unknown string option '%s.%s'", (yyvsp[-5].c), (yyvsp[-3].c)); else - pStrOpt(0, GMSH_SET|GMSH_GUI, yyvsp[-1].c); + pStrOpt(0, GMSH_SET|GMSH_GUI, (yyvsp[-1].c)); } - Free(yyvsp[-5].c); Free(yyvsp[-3].c); //FIXME: somtimes leak $5 - ; - break;} -case 62: + Free((yyvsp[-5].c)); Free((yyvsp[-3].c)); //FIXME: somtimes leak $5 + ;} + break; + + case 63: #line 755 "Gmsh.y" -{ + { char* (*pStrOpt)(int num, int action, char *value); StringXString *pStrCat; - if(!(pStrCat = Get_StringOptionCategory(yyvsp[-8].c))) - yymsg(GERROR, "Unknown string option class '%s'", yyvsp[-8].c); + if(!(pStrCat = Get_StringOptionCategory((yyvsp[-8].c)))) + yymsg(GERROR, "Unknown string option class '%s'", (yyvsp[-8].c)); else{ - if(!(pStrOpt = (char *(*) (int, int, char *))Get_StringOption(yyvsp[-3].c, pStrCat))) - yymsg(GERROR, "Unknown string option '%s[%d].%s'", yyvsp[-8].c, (int)yyvsp[-6].d, yyvsp[-3].c); + if(!(pStrOpt = (char *(*) (int, int, char *))Get_StringOption((yyvsp[-3].c), pStrCat))) + yymsg(GERROR, "Unknown string option '%s[%d].%s'", (yyvsp[-8].c), (int)(yyvsp[-6].d), (yyvsp[-3].c)); else - pStrOpt((int)yyvsp[-6].d, GMSH_SET|GMSH_GUI, yyvsp[-1].c); + pStrOpt((int)(yyvsp[-6].d), GMSH_SET|GMSH_GUI, (yyvsp[-1].c)); } - Free(yyvsp[-8].c); Free(yyvsp[-3].c); //FIXME: somtimes leak $8 - ; - break;} -case 63: + Free((yyvsp[-8].c)); Free((yyvsp[-3].c)); //FIXME: somtimes leak $8 + ;} + break; + + case 64: #line 772 "Gmsh.y" -{ + { double (*pNumOpt)(int num, int action, double value); StringXNumber *pNumCat; - if(!(pNumCat = Get_NumberOptionCategory(yyvsp[-5].c))) - yymsg(GERROR, "Unknown numeric option class '%s'", yyvsp[-5].c); + if(!(pNumCat = Get_NumberOptionCategory((yyvsp[-5].c)))) + yymsg(GERROR, "Unknown numeric option class '%s'", (yyvsp[-5].c)); else{ - if(!(pNumOpt = (double (*) (int, int, double))Get_NumberOption(yyvsp[-3].c, pNumCat))) - yymsg(GERROR, "Unknown numeric option '%s.%s'", yyvsp[-5].c, yyvsp[-3].c); + if(!(pNumOpt = (double (*) (int, int, double))Get_NumberOption((yyvsp[-3].c), pNumCat))) + yymsg(GERROR, "Unknown numeric option '%s.%s'", (yyvsp[-5].c), (yyvsp[-3].c)); else{ double d = 0; - switch(yyvsp[-2].i){ - case 0 : d = yyvsp[-1].d; break; - case 1 : d = pNumOpt(0, GMSH_GET, 0) + yyvsp[-1].d; break; - case 2 : d = pNumOpt(0, GMSH_GET, 0) - yyvsp[-1].d; break; - case 3 : d = pNumOpt(0, GMSH_GET, 0) * yyvsp[-1].d; break; + switch((yyvsp[-2].i)){ + case 0 : d = (yyvsp[-1].d); break; + case 1 : d = pNumOpt(0, GMSH_GET, 0) + (yyvsp[-1].d); break; + case 2 : d = pNumOpt(0, GMSH_GET, 0) - (yyvsp[-1].d); break; + case 3 : d = pNumOpt(0, GMSH_GET, 0) * (yyvsp[-1].d); break; case 4 : - if(yyvsp[-1].d) d = pNumOpt(0, GMSH_GET, 0) / yyvsp[-1].d; - else yymsg(GERROR, "Division by zero in '%s.%s /= %g'", yyvsp[-5].c, yyvsp[-3].c, yyvsp[-1].d); + if((yyvsp[-1].d)) d = pNumOpt(0, GMSH_GET, 0) / (yyvsp[-1].d); + else yymsg(GERROR, "Division by zero in '%s.%s /= %g'", (yyvsp[-5].c), (yyvsp[-3].c), (yyvsp[-1].d)); break; } pNumOpt(0, GMSH_SET|GMSH_GUI, d); } } - Free(yyvsp[-5].c); Free(yyvsp[-3].c); - ; - break;} -case 64: + Free((yyvsp[-5].c)); Free((yyvsp[-3].c)); + ;} + break; + + case 65: #line 798 "Gmsh.y" -{ + { double (*pNumOpt)(int num, int action, double value); StringXNumber *pNumCat; - if(!(pNumCat = Get_NumberOptionCategory(yyvsp[-8].c))) - yymsg(GERROR, "Unknown numeric option class '%s'", yyvsp[-8].c); + if(!(pNumCat = Get_NumberOptionCategory((yyvsp[-8].c)))) + yymsg(GERROR, "Unknown numeric option class '%s'", (yyvsp[-8].c)); else{ - if(!(pNumOpt = (double (*) (int, int, double))Get_NumberOption(yyvsp[-3].c, pNumCat))) - yymsg(GERROR, "Unknown numeric option '%s[%d].%s'", yyvsp[-8].c, (int)yyvsp[-6].d, yyvsp[-3].c); + if(!(pNumOpt = (double (*) (int, int, double))Get_NumberOption((yyvsp[-3].c), pNumCat))) + yymsg(GERROR, "Unknown numeric option '%s[%d].%s'", (yyvsp[-8].c), (int)(yyvsp[-6].d), (yyvsp[-3].c)); else{ double d = 0; - switch(yyvsp[-2].i){ - case 0 : d = yyvsp[-1].d; break; - case 1 : d = pNumOpt((int)yyvsp[-6].d, GMSH_GET, 0) + yyvsp[-1].d; break; - case 2 : d = pNumOpt((int)yyvsp[-6].d, GMSH_GET, 0) - yyvsp[-1].d; break; - case 3 : d = pNumOpt((int)yyvsp[-6].d, GMSH_GET, 0) * yyvsp[-1].d; break; + switch((yyvsp[-2].i)){ + case 0 : d = (yyvsp[-1].d); break; + case 1 : d = pNumOpt((int)(yyvsp[-6].d), GMSH_GET, 0) + (yyvsp[-1].d); break; + case 2 : d = pNumOpt((int)(yyvsp[-6].d), GMSH_GET, 0) - (yyvsp[-1].d); break; + case 3 : d = pNumOpt((int)(yyvsp[-6].d), GMSH_GET, 0) * (yyvsp[-1].d); break; case 4 : - if(yyvsp[-1].d) d = pNumOpt((int)yyvsp[-6].d, GMSH_GET, 0) / yyvsp[-1].d; + if((yyvsp[-1].d)) d = pNumOpt((int)(yyvsp[-6].d), GMSH_GET, 0) / (yyvsp[-1].d); else yymsg(GERROR, "Division by zero in '%s[%d].%s /= %g'", - yyvsp[-8].c, (int)yyvsp[-6].d, yyvsp[-3].c, yyvsp[-1].d); + (yyvsp[-8].c), (int)(yyvsp[-6].d), (yyvsp[-3].c), (yyvsp[-1].d)); break; } - pNumOpt((int)yyvsp[-6].d, GMSH_SET|GMSH_GUI, d); + pNumOpt((int)(yyvsp[-6].d), GMSH_SET|GMSH_GUI, d); } } - Free(yyvsp[-8].c); Free(yyvsp[-3].c); - ; - break;} -case 65: + Free((yyvsp[-8].c)); Free((yyvsp[-3].c)); + ;} + break; + + case 66: #line 825 "Gmsh.y" -{ + { double (*pNumOpt)(int num, int action, double value); StringXNumber *pNumCat; - if(!(pNumCat = Get_NumberOptionCategory(yyvsp[-4].c))) - yymsg(GERROR, "Unknown numeric option class '%s'", yyvsp[-4].c); + if(!(pNumCat = Get_NumberOptionCategory((yyvsp[-4].c)))) + yymsg(GERROR, "Unknown numeric option class '%s'", (yyvsp[-4].c)); else{ - if(!(pNumOpt = (double (*) (int, int, double))Get_NumberOption(yyvsp[-2].c, pNumCat))) - yymsg(GERROR, "Unknown numeric option '%s.%s'", yyvsp[-4].c, yyvsp[-2].c); + if(!(pNumOpt = (double (*) (int, int, double))Get_NumberOption((yyvsp[-2].c), pNumCat))) + yymsg(GERROR, "Unknown numeric option '%s.%s'", (yyvsp[-4].c), (yyvsp[-2].c)); else - pNumOpt(0, GMSH_SET|GMSH_GUI, pNumOpt(0, GMSH_GET, 0)+yyvsp[-1].i); + pNumOpt(0, GMSH_SET|GMSH_GUI, pNumOpt(0, GMSH_GET, 0)+(yyvsp[-1].i)); } - Free(yyvsp[-4].c); Free(yyvsp[-2].c); - ; - break;} -case 66: + Free((yyvsp[-4].c)); Free((yyvsp[-2].c)); + ;} + break; + + case 67: #line 839 "Gmsh.y" -{ + { double (*pNumOpt)(int num, int action, double value); StringXNumber *pNumCat; - if(!(pNumCat = Get_NumberOptionCategory(yyvsp[-7].c))) - yymsg(GERROR, "Unknown numeric option class '%s'", yyvsp[-7].c); + if(!(pNumCat = Get_NumberOptionCategory((yyvsp[-7].c)))) + yymsg(GERROR, "Unknown numeric option class '%s'", (yyvsp[-7].c)); else{ - if(!(pNumOpt = (double (*) (int, int, double))Get_NumberOption(yyvsp[-2].c, pNumCat))) - yymsg(GERROR, "Unknown numeric option '%s[%d].%s'", yyvsp[-7].c, (int)yyvsp[-5].d, yyvsp[-2].c); + if(!(pNumOpt = (double (*) (int, int, double))Get_NumberOption((yyvsp[-2].c), pNumCat))) + yymsg(GERROR, "Unknown numeric option '%s[%d].%s'", (yyvsp[-7].c), (int)(yyvsp[-5].d), (yyvsp[-2].c)); else - pNumOpt((int)yyvsp[-5].d, GMSH_SET|GMSH_GUI, pNumOpt((int)yyvsp[-5].d, GMSH_GET, 0)+yyvsp[-1].i); + pNumOpt((int)(yyvsp[-5].d), GMSH_SET|GMSH_GUI, pNumOpt((int)(yyvsp[-5].d), GMSH_GET, 0)+(yyvsp[-1].i)); } - Free(yyvsp[-7].c); Free(yyvsp[-2].c); - ; - break;} -case 67: + Free((yyvsp[-7].c)); Free((yyvsp[-2].c)); + ;} + break; + + case 68: #line 856 "Gmsh.y" -{ + { unsigned int (*pColOpt)(int num, int action, unsigned int value); StringXColor *pColCat; - if(!(pColCat = Get_ColorOptionCategory(yyvsp[-7].c))) - yymsg(GERROR, "Unknown color option class '%s'", yyvsp[-7].c); + if(!(pColCat = Get_ColorOptionCategory((yyvsp[-7].c)))) + yymsg(GERROR, "Unknown color option class '%s'", (yyvsp[-7].c)); else{ - if(!(pColOpt = (unsigned int (*) (int, int, unsigned int))Get_ColorOption(yyvsp[-3].c, pColCat))) - yymsg(GERROR, "Unknown color option '%s.Color.%s'", yyvsp[-7].c, yyvsp[-3].c); + if(!(pColOpt = (unsigned int (*) (int, int, unsigned int))Get_ColorOption((yyvsp[-3].c), pColCat))) + yymsg(GERROR, "Unknown color option '%s.Color.%s'", (yyvsp[-7].c), (yyvsp[-3].c)); else - pColOpt(0, GMSH_SET|GMSH_GUI, yyvsp[-1].u); + pColOpt(0, GMSH_SET|GMSH_GUI, (yyvsp[-1].u)); } - Free(yyvsp[-7].c); Free(yyvsp[-3].c); - ; - break;} -case 68: + Free((yyvsp[-7].c)); Free((yyvsp[-3].c)); + ;} + break; + + case 69: #line 870 "Gmsh.y" -{ + { unsigned int (*pColOpt)(int num, int action, unsigned int value); StringXColor *pColCat; - if(!(pColCat = Get_ColorOptionCategory(yyvsp[-10].c))) - yymsg(GERROR, "Unknown color option class '%s'", yyvsp[-10].c); + if(!(pColCat = Get_ColorOptionCategory((yyvsp[-10].c)))) + yymsg(GERROR, "Unknown color option class '%s'", (yyvsp[-10].c)); else{ - if(!(pColOpt = (unsigned int (*) (int, int, unsigned int))Get_ColorOption(yyvsp[-3].c, pColCat))) - yymsg(GERROR, "Unknown color option '%s[%d].Color.%s'", yyvsp[-10].c, (int)yyvsp[-8].d, yyvsp[-3].c); + if(!(pColOpt = (unsigned int (*) (int, int, unsigned int))Get_ColorOption((yyvsp[-3].c), pColCat))) + yymsg(GERROR, "Unknown color option '%s[%d].Color.%s'", (yyvsp[-10].c), (int)(yyvsp[-8].d), (yyvsp[-3].c)); else - pColOpt((int)yyvsp[-8].d, GMSH_SET|GMSH_GUI, yyvsp[-1].u); + pColOpt((int)(yyvsp[-8].d), GMSH_SET|GMSH_GUI, (yyvsp[-1].u)); } - Free(yyvsp[-10].c); Free(yyvsp[-3].c); - ; - break;} -case 69: + Free((yyvsp[-10].c)); Free((yyvsp[-3].c)); + ;} + break; + + case 70: #line 887 "Gmsh.y" -{ + { GmshColorTable *ct = Get_ColorTable(0); if(!ct) yymsg(GERROR, "View[%d] does not exist", 0); else{ - ct->size = List_Nbr(yyvsp[-1].l); + ct->size = List_Nbr((yyvsp[-1].l)); if(ct->size > COLORTABLE_NBMAX_COLOR) yymsg(GERROR, "Too many (%d>%d) colors in View[%d].ColorTable", ct->size, COLORTABLE_NBMAX_COLOR, 0); else - for(int i = 0; i < ct->size; i++) List_Read(yyvsp[-1].l, i, &ct->table[i]); + for(int i = 0; i < ct->size; i++) List_Read((yyvsp[-1].l), i, &ct->table[i]); if(ct->size == 1){ ct->size = 2; ct->table[1] = ct->table[0]; } } - Free(yyvsp[-5].c); - List_Delete(yyvsp[-1].l); - ; - break;} -case 70: + Free((yyvsp[-5].c)); + List_Delete((yyvsp[-1].l)); + ;} + break; + + case 71: #line 907 "Gmsh.y" -{ - GmshColorTable *ct = Get_ColorTable((int)yyvsp[-6].d); + { + GmshColorTable *ct = Get_ColorTable((int)(yyvsp[-6].d)); if(!ct) - yymsg(GERROR, "View[%d] does not exist", (int)yyvsp[-6].d); + yymsg(GERROR, "View[%d] does not exist", (int)(yyvsp[-6].d)); else{ - ct->size = List_Nbr(yyvsp[-1].l); + ct->size = List_Nbr((yyvsp[-1].l)); if(ct->size > COLORTABLE_NBMAX_COLOR) yymsg(GERROR, "Too many (%d>%d) colors in View[%d].ColorTable", - ct->size, COLORTABLE_NBMAX_COLOR, (int)yyvsp[-6].d); + ct->size, COLORTABLE_NBMAX_COLOR, (int)(yyvsp[-6].d)); else - for(int i = 0; i < ct->size; i++) List_Read(yyvsp[-1].l, i, &ct->table[i]); + for(int i = 0; i < ct->size; i++) List_Read((yyvsp[-1].l), i, &ct->table[i]); if(ct->size == 1){ ct->size = 2; ct->table[1] = ct->table[0]; } } - Free(yyvsp[-8].c); - List_Delete(yyvsp[-1].l); - ; - break;} -case 71: + Free((yyvsp[-8].c)); + List_Delete((yyvsp[-1].l)); + ;} + break; + + case 72: #line 930 "Gmsh.y" -{ + { try { - GMSH_PluginManager::instance()->setPluginOption(yyvsp[-6].c, yyvsp[-3].c, yyvsp[-1].d); + GMSH_PluginManager::instance()->setPluginOption((yyvsp[-6].c), (yyvsp[-3].c), (yyvsp[-1].d)); } catch (...) { - yymsg(GERROR, "Unknown option '%s' or plugin '%s'", yyvsp[-3].c, yyvsp[-6].c); + yymsg(GERROR, "Unknown option '%s' or plugin '%s'", (yyvsp[-3].c), (yyvsp[-6].c)); } - Free(yyvsp[-6].c); Free(yyvsp[-3].c); - ; - break;} -case 72: + Free((yyvsp[-6].c)); Free((yyvsp[-3].c)); + ;} + break; + + case 73: #line 940 "Gmsh.y" -{ + { try { - GMSH_PluginManager::instance()->setPluginOption(yyvsp[-6].c, yyvsp[-3].c, yyvsp[-1].c); + GMSH_PluginManager::instance()->setPluginOption((yyvsp[-6].c), (yyvsp[-3].c), (yyvsp[-1].c)); } catch (...) { - yymsg(GERROR, "Unknown option '%s' or plugin '%s'", yyvsp[-3].c, yyvsp[-6].c); + yymsg(GERROR, "Unknown option '%s' or plugin '%s'", (yyvsp[-3].c), (yyvsp[-6].c)); } - Free(yyvsp[-6].c); Free(yyvsp[-3].c); // FIXME: sometimes leak $8 - ; - break;} -case 73: + Free((yyvsp[-6].c)); Free((yyvsp[-3].c)); // FIXME: sometimes leak $8 + ;} + break; + + case 74: #line 959 "Gmsh.y" -{ - int num = (int)yyvsp[-4].d; + { + int num = (int)(yyvsp[-4].d); if(FindPoint(num, THEM)){ yymsg(GERROR, "Point %d already exists", num); } else{ - Vertex *v = Create_Vertex(num, CTX.geom.scaling_factor * yyvsp[-1].v[0], - CTX.geom.scaling_factor * yyvsp[-1].v[1], - CTX.geom.scaling_factor * yyvsp[-1].v[2], - CTX.geom.scaling_factor * yyvsp[-1].v[3], 1.0); + Vertex *v = Create_Vertex(num, CTX.geom.scaling_factor * (yyvsp[-1].v)[0], + CTX.geom.scaling_factor * (yyvsp[-1].v)[1], + CTX.geom.scaling_factor * (yyvsp[-1].v)[2], + CTX.geom.scaling_factor * (yyvsp[-1].v)[3], 1.0); Tree_Add(THEM->Points, &v); } - yyval.s.Type = MSH_POINT; - yyval.s.Num = num; - ; - break;} -case 74: + (yyval.s).Type = MSH_POINT; + (yyval.s).Num = num; + ;} + break; + + case 75: #line 975 "Gmsh.y" -{ - int num = (int)yyvsp[-4].d; + { + int num = (int)(yyvsp[-4].d); if(FindPhysicalGroup(num, MSH_PHYSICAL_POINT, THEM)){ yymsg(GERROR, "Physical point %d already exists", num); } else{ - List_T *temp = ListOfDouble2ListOfInt(yyvsp[-1].l); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); PhysicalGroup *p = Create_PhysicalGroup(num, MSH_PHYSICAL_POINT, temp); List_Delete(temp); List_Add(THEM->PhysicalGroups, &p); } - List_Delete(yyvsp[-1].l); - yyval.s.Type = MSH_PHYSICAL_POINT; - yyval.s.Num = num; - ; - break;} -case 75: + List_Delete((yyvsp[-1].l)); + (yyval.s).Type = MSH_PHYSICAL_POINT; + (yyval.s).Num = num; + ;} + break; + + case 76: #line 991 "Gmsh.y" -{ - for(int i = 0; i < List_Nbr(yyvsp[-9].l); i++){ + { + for(int i = 0; i < List_Nbr((yyvsp[-9].l)); i++){ double p; - List_Read(yyvsp[-9].l, i, &p); + List_Read((yyvsp[-9].l), i, &p); Vertex *v = FindPoint((int)p, THEM); if(!v) yymsg(WARNING, "Unknown point %d", (int)p); else{ Attractor *a = Create_Attractor(List_Nbr(THEM->Metric->Attractors)+1, - yyvsp[-6].d, yyvsp[-4].d, yyvsp[-2].d, v, NULL, NULL); + (yyvsp[-6].d), (yyvsp[-4].d), (yyvsp[-2].d), v, NULL, NULL); List_Add(THEM->Metric->Attractors, &a); } } - List_Delete(yyvsp[-9].l); + List_Delete((yyvsp[-9].l)); // dummy values - yyval.s.Type = 0; - yyval.s.Num = 0; - ; - break;} -case 76: + (yyval.s).Type = 0; + (yyval.s).Num = 0; + ;} + break; + + case 77: #line 1010 "Gmsh.y" -{ - for(int i = 0; i < List_Nbr(yyvsp[-3].l); i++){ + { + for(int i = 0; i < List_Nbr((yyvsp[-3].l)); i++){ double d; - List_Read(yyvsp[-3].l, i, &d); + List_Read((yyvsp[-3].l), i, &d); Vertex *v = FindPoint((int)d, THEM); if(!v) yymsg(WARNING, "Unknown point %d", (int)d); else - v->lc = yyvsp[-1].d; + v->lc = (yyvsp[-1].d); } - List_Delete(yyvsp[-3].l); + List_Delete((yyvsp[-3].l)); // dummy values - yyval.s.Type = 0; - yyval.s.Num = 0; - ; - break;} -case 77: + (yyval.s).Type = 0; + (yyval.s).Num = 0; + ;} + break; + + case 78: #line 1029 "Gmsh.y" -{ - int num = (int)yyvsp[-4].d; + { + int num = (int)(yyvsp[-4].d); if(FindCurve(num, THEM)){ yymsg(GERROR, "Curve %d already exists", num); } else{ - List_T *temp = ListOfDouble2ListOfInt(yyvsp[-1].l); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); Curve *c = Create_Curve(num, MSH_SEGM_LINE, 1, temp, NULL, -1, -1, 0., 1.); Tree_Add(THEM->Curves, &c); CreateReversedCurve(THEM, c); List_Delete(temp); } - List_Delete(yyvsp[-1].l); - yyval.s.Type = MSH_SEGM_LINE; - yyval.s.Num = num; - ; - break;} -case 78: + List_Delete((yyvsp[-1].l)); + (yyval.s).Type = MSH_SEGM_LINE; + (yyval.s).Num = num; + ;} + break; + + case 79: #line 1047 "Gmsh.y" -{ - int num = (int)yyvsp[-4].d; + { + int num = (int)(yyvsp[-4].d); if(FindCurve(num, THEM)){ yymsg(GERROR, "Curve %d already exists", num); } else{ - List_T *temp = ListOfDouble2ListOfInt(yyvsp[-1].l); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); Curve *c = Create_Curve(num, MSH_SEGM_SPLN, 3, temp, NULL, -1, -1, 0., 1.); Tree_Add(THEM->Curves, &c); CreateReversedCurve(THEM, c); List_Delete(temp); } - List_Delete(yyvsp[-1].l); - yyval.s.Type = MSH_SEGM_SPLN; - yyval.s.Num = num; - ; - break;} -case 79: + List_Delete((yyvsp[-1].l)); + (yyval.s).Type = MSH_SEGM_SPLN; + (yyval.s).Num = num; + ;} + break; + + case 80: #line 1065 "Gmsh.y" -{ - int num = (int)yyvsp[-4].d; + { + int num = (int)(yyvsp[-4].d); if(FindCurve(num, THEM)){ yymsg(GERROR, "Curve %d already exists", num); } else{ - List_T *temp = ListOfDouble2ListOfInt(yyvsp[-1].l); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); Curve *c = Create_Curve(num, MSH_SEGM_CIRC, 2, temp, NULL, -1, -1, 0., 1.); Tree_Add(THEM->Curves, &c); CreateReversedCurve(THEM, c); List_Delete(temp); } - List_Delete(yyvsp[-1].l); - yyval.s.Type = MSH_SEGM_CIRC; - yyval.s.Num = num; - ; - break;} -case 80: + List_Delete((yyvsp[-1].l)); + (yyval.s).Type = MSH_SEGM_CIRC; + (yyval.s).Num = num; + ;} + break; + + case 81: #line 1083 "Gmsh.y" -{ - int num = (int)yyvsp[-6].d; + { + int num = (int)(yyvsp[-6].d); if(FindCurve(num, THEM)){ yymsg(GERROR, "Curve %d already exists", num); } else{ - List_T *temp = ListOfDouble2ListOfInt(yyvsp[-3].l); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[-3].l)); Curve *c = Create_Curve(num, MSH_SEGM_CIRC, 2, temp, NULL, -1, -1, 0., 1.); - c->Circle.n[0] = yyvsp[-1].v[0]; - c->Circle.n[1] = yyvsp[-1].v[1]; - c->Circle.n[2] = yyvsp[-1].v[2]; + c->Circle.n[0] = (yyvsp[-1].v)[0]; + c->Circle.n[1] = (yyvsp[-1].v)[1]; + c->Circle.n[2] = (yyvsp[-1].v)[2]; End_Curve(c); Tree_Add(THEM->Curves, &c); Curve *rc = CreateReversedCurve(THEM, c); - rc->Circle.n[0] = yyvsp[-1].v[0]; - rc->Circle.n[1] = yyvsp[-1].v[1]; - rc->Circle.n[2] = yyvsp[-1].v[2]; + rc->Circle.n[0] = (yyvsp[-1].v)[0]; + rc->Circle.n[1] = (yyvsp[-1].v)[1]; + rc->Circle.n[2] = (yyvsp[-1].v)[2]; End_Curve(rc); List_Delete(temp); } - List_Delete(yyvsp[-3].l); - yyval.s.Type = MSH_SEGM_CIRC; - yyval.s.Num = num; - ; - break;} -case 81: + List_Delete((yyvsp[-3].l)); + (yyval.s).Type = MSH_SEGM_CIRC; + (yyval.s).Num = num; + ;} + break; + + case 82: #line 1109 "Gmsh.y" -{ - int num = (int)yyvsp[-4].d; + { + int num = (int)(yyvsp[-4].d); if(FindCurve(num, THEM)){ yymsg(GERROR, "Curve %d already exists", num); } else{ - List_T *temp = ListOfDouble2ListOfInt(yyvsp[-1].l); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); Curve *c = Create_Curve(num, MSH_SEGM_ELLI, 2, temp, NULL, -1, -1, 0., 1.); Tree_Add(THEM->Curves, &c); CreateReversedCurve(THEM, c); List_Delete(temp); } - List_Delete(yyvsp[-1].l); - yyval.s.Type = MSH_SEGM_ELLI; - yyval.s.Num = num; - ; - break;} -case 82: + List_Delete((yyvsp[-1].l)); + (yyval.s).Type = MSH_SEGM_ELLI; + (yyval.s).Num = num; + ;} + break; + + case 83: #line 1127 "Gmsh.y" -{ - int num = (int)yyvsp[-6].d; + { + int num = (int)(yyvsp[-6].d); if(FindCurve(num, THEM)){ yymsg(GERROR, "Curve %d already exists", num); } else{ - List_T *temp = ListOfDouble2ListOfInt(yyvsp[-3].l); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[-3].l)); Curve *c = Create_Curve(num, MSH_SEGM_ELLI, 2, temp, NULL, -1, -1, 0., 1.); - c->Circle.n[0] = yyvsp[-1].v[0]; - c->Circle.n[1] = yyvsp[-1].v[1]; - c->Circle.n[2] = yyvsp[-1].v[2]; + c->Circle.n[0] = (yyvsp[-1].v)[0]; + c->Circle.n[1] = (yyvsp[-1].v)[1]; + c->Circle.n[2] = (yyvsp[-1].v)[2]; End_Curve(c); Tree_Add(THEM->Curves, &c); Curve *rc = CreateReversedCurve(THEM, c); - rc->Circle.n[0] = yyvsp[-1].v[0]; - rc->Circle.n[1] = yyvsp[-1].v[1]; - rc->Circle.n[2] = yyvsp[-1].v[2]; + rc->Circle.n[0] = (yyvsp[-1].v)[0]; + rc->Circle.n[1] = (yyvsp[-1].v)[1]; + rc->Circle.n[2] = (yyvsp[-1].v)[2]; End_Curve(c); List_Delete(temp); } - List_Delete(yyvsp[-3].l); - yyval.s.Type = MSH_SEGM_ELLI; - yyval.s.Num = num; - ; - break;} -case 83: + List_Delete((yyvsp[-3].l)); + (yyval.s).Type = MSH_SEGM_ELLI; + (yyval.s).Num = num; + ;} + break; + + case 84: #line 1154 "Gmsh.y" -{ - int num = (int)yyvsp[-14].d; + { + int num = (int)(yyvsp[-14].d); if(FindCurve(num, THEM)){ yymsg(GERROR, "Curve %d already exists", num); } else{ Curve *c = Create_Curve(num, MSH_SEGM_PARAMETRIC, 2, NULL, NULL, - -1, -1, yyvsp[-10].d, yyvsp[-8].d); - strcpy(c->functu, yyvsp[-6].c); - strcpy(c->functv, yyvsp[-4].c); - strcpy(c->functw, yyvsp[-2].c); + -1, -1, (yyvsp[-10].d), (yyvsp[-8].d)); + strcpy(c->functu, (yyvsp[-6].c)); + strcpy(c->functv, (yyvsp[-4].c)); + strcpy(c->functw, (yyvsp[-2].c)); Tree_Add(THEM->Curves, &c); CreateReversedCurve(THEM, c); } - Free(yyvsp[-6].c); Free(yyvsp[-4].c); Free(yyvsp[-2].c); - yyval.s.Type = MSH_SEGM_PARAMETRIC; - yyval.s.Num = num; - ; - break;} -case 84: + Free((yyvsp[-6].c)); Free((yyvsp[-4].c)); Free((yyvsp[-2].c)); + (yyval.s).Type = MSH_SEGM_PARAMETRIC; + (yyval.s).Num = num; + ;} + break; + + case 85: #line 1173 "Gmsh.y" -{ - int num = (int)yyvsp[-4].d; - if(List_Nbr(yyvsp[-1].l) < 4){ + { + int num = (int)(yyvsp[-4].d); + if(List_Nbr((yyvsp[-1].l)) < 4){ yymsg(GERROR, "Too few control points for BSpline %d (%d < 4)", num, - List_Nbr(yyvsp[-1].l)); + List_Nbr((yyvsp[-1].l))); } else{ if(FindCurve(num, THEM)){ yymsg(GERROR, "Curve %d already exists", num); } else{ - List_T *temp = ListOfDouble2ListOfInt(yyvsp[-1].l); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); Curve *c = Create_Curve(num, MSH_SEGM_BSPLN, 2, temp, NULL, -1, -1, 0., 1.); Tree_Add(THEM->Curves, &c); @@ -3793,25 +4529,26 @@ case 84: List_Delete(temp); } } - List_Delete(yyvsp[-1].l); - yyval.s.Type = MSH_SEGM_BSPLN; - yyval.s.Num = num; - ; - break;} -case 85: + List_Delete((yyvsp[-1].l)); + (yyval.s).Type = MSH_SEGM_BSPLN; + (yyval.s).Num = num; + ;} + break; + + case 86: #line 1197 "Gmsh.y" -{ - int num = (int)yyvsp[-4].d; - if(List_Nbr(yyvsp[-1].l) < 4){ + { + int num = (int)(yyvsp[-4].d); + if(List_Nbr((yyvsp[-1].l)) < 4){ yymsg(GERROR, "Too few control points for Bezier curve %d (%d < 4)", num, - List_Nbr(yyvsp[-1].l)); + List_Nbr((yyvsp[-1].l))); } else{ if(FindCurve(num, THEM)){ yymsg(GERROR, "Curve %d already exists", num); } else{ - List_T *temp = ListOfDouble2ListOfInt(yyvsp[-1].l); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); Curve *c = Create_Curve(num, MSH_SEGM_BEZIER, 2, temp, NULL, -1, -1, 0., 1.); Tree_Add(THEM->Curves, &c); @@ -3819,127 +4556,133 @@ case 85: List_Delete(temp); } } - List_Delete(yyvsp[-1].l); - yyval.s.Type = MSH_SEGM_BEZIER; - yyval.s.Num = num; - ; - break;} -case 86: + List_Delete((yyvsp[-1].l)); + (yyval.s).Type = MSH_SEGM_BEZIER; + (yyval.s).Num = num; + ;} + break; + + case 87: #line 1221 "Gmsh.y" -{ - int num = (int)yyvsp[-8].d; - if(List_Nbr(yyvsp[-5].l) + (int)yyvsp[-1].d + 1 != List_Nbr(yyvsp[-3].l)){ + { + int num = (int)(yyvsp[-8].d); + if(List_Nbr((yyvsp[-5].l)) + (int)(yyvsp[-1].d) + 1 != List_Nbr((yyvsp[-3].l))){ yymsg(GERROR, "Wrong definition of Nurbs Curve %d: " "got %d knots, need N + D + 1 = %d + %d + 1 = %d", - (int)yyvsp[-8].d, List_Nbr(yyvsp[-3].l), List_Nbr(yyvsp[-5].l), (int)yyvsp[-1].d, List_Nbr(yyvsp[-5].l) + (int)yyvsp[-1].d + 1); + (int)(yyvsp[-8].d), List_Nbr((yyvsp[-3].l)), List_Nbr((yyvsp[-5].l)), (int)(yyvsp[-1].d), List_Nbr((yyvsp[-5].l)) + (int)(yyvsp[-1].d) + 1); } else{ if(FindCurve(num, THEM)){ yymsg(GERROR, "Curve %d already exists", num); } else{ - List_T *temp = ListOfDouble2ListOfInt(yyvsp[-5].l); - Curve *c = Create_Curve(num, MSH_SEGM_NURBS, (int)yyvsp[-1].d, temp, yyvsp[-3].l, + List_T *temp = ListOfDouble2ListOfInt((yyvsp[-5].l)); + Curve *c = Create_Curve(num, MSH_SEGM_NURBS, (int)(yyvsp[-1].d), temp, (yyvsp[-3].l), -1, -1, 0., 1.); Tree_Add(THEM->Curves, &c); CreateReversedCurve(THEM, c); List_Delete(temp); } } - List_Delete(yyvsp[-5].l); - List_Delete(yyvsp[-3].l); - yyval.s.Type = MSH_SEGM_NURBS; - yyval.s.Num = num; - ; - break;} -case 87: + List_Delete((yyvsp[-5].l)); + List_Delete((yyvsp[-3].l)); + (yyval.s).Type = MSH_SEGM_NURBS; + (yyval.s).Num = num; + ;} + break; + + case 88: #line 1247 "Gmsh.y" -{ - int num = (int)yyvsp[-4].d; + { + int num = (int)(yyvsp[-4].d); if(FindEdgeLoop(num, THEM)){ yymsg(GERROR, "Line loop %d already exists", num); } else{ - List_T *temp = ListOfDouble2ListOfInt(yyvsp[-1].l); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); sortEdgesInLoop(num, temp); EdgeLoop *l = Create_EdgeLoop(num, temp); Tree_Add(THEM->EdgeLoops, &l); List_Delete(temp); } - List_Delete(yyvsp[-1].l); - yyval.s.Type = MSH_SEGM_LOOP; - yyval.s.Num = num; - ; - break;} -case 88: + List_Delete((yyvsp[-1].l)); + (yyval.s).Type = MSH_SEGM_LOOP; + (yyval.s).Num = num; + ;} + break; + + case 89: #line 1264 "Gmsh.y" -{ - for(int i = 0; i < List_Nbr(yyvsp[-9].l); i++){ + { + for(int i = 0; i < List_Nbr((yyvsp[-9].l)); i++){ double p; - List_Read(yyvsp[-9].l, i, &p); + List_Read((yyvsp[-9].l), i, &p); Curve *c = FindCurve((int)p, THEM); if(!c) yymsg(WARNING, "Unknown curve %d", (int)p); else{ Attractor *a = Create_Attractor(List_Nbr(THEM->Metric->Attractors)+1, - yyvsp[-6].d, yyvsp[-4].d, yyvsp[-2].d, NULL, c, NULL); + (yyvsp[-6].d), (yyvsp[-4].d), (yyvsp[-2].d), NULL, c, NULL); List_Add(THEM->Metric->Attractors, &a); } } // dummy values - yyval.s.Type = 0; - yyval.s.Num = 0; - ; - break;} -case 89: + (yyval.s).Type = 0; + (yyval.s).Num = 0; + ;} + break; + + case 90: #line 1282 "Gmsh.y" -{ - int num = (int)yyvsp[-4].d; + { + int num = (int)(yyvsp[-4].d); if(FindPhysicalGroup(num, MSH_PHYSICAL_LINE, THEM)){ yymsg(GERROR, "Physical line %d already exists", num); } else{ - List_T *temp = ListOfDouble2ListOfInt(yyvsp[-1].l); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); PhysicalGroup *p = Create_PhysicalGroup(num, MSH_PHYSICAL_LINE, temp); List_Delete(temp); List_Add(THEM->PhysicalGroups, &p); } - List_Delete(yyvsp[-1].l); - yyval.s.Type = MSH_PHYSICAL_LINE; - yyval.s.Num = num; - ; - break;} -case 90: + List_Delete((yyvsp[-1].l)); + (yyval.s).Type = MSH_PHYSICAL_LINE; + (yyval.s).Num = num; + ;} + break; + + case 91: #line 1301 "Gmsh.y" -{ - int num = (int)yyvsp[-4].d; + { + int num = (int)(yyvsp[-4].d); if(FindSurface(num, THEM)){ yymsg(GERROR, "Surface %d already exists", num); } else{ Surface *s = Create_Surface(num, MSH_SURF_PLAN); - List_T *temp = ListOfDouble2ListOfInt(yyvsp[-1].l); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); setSurfaceGeneratrices(s, temp); List_Delete(temp); s->Support = s; End_Surface(s); Tree_Add(THEM->Surfaces, &s); } - List_Delete(yyvsp[-1].l); - yyval.s.Type = MSH_SURF_PLAN; - yyval.s.Num = num; - ; - break;} -case 91: + List_Delete((yyvsp[-1].l)); + (yyval.s).Type = MSH_SURF_PLAN; + (yyval.s).Num = num; + ;} + break; + + case 92: #line 1320 "Gmsh.y" -{ - int num = (int)yyvsp[-4].d, type = 0; + { + int num = (int)(yyvsp[-4].d), type = 0; if(FindSurface(num, THEM)){ yymsg(GERROR, "Surface %d already exists", num); } else{ double d; - List_Read(yyvsp[-1].l, 0, &d); + List_Read((yyvsp[-1].l), 0, &d); EdgeLoop *el = FindEdgeLoop((int)fabs(d), THEM); if(!el){ yymsg(GERROR, "Unknown line loop %d", (int)d); @@ -3958,7 +4701,7 @@ case 91: type = MSH_SURF_PLAN; } Surface *s = Create_Surface(num, type); - List_T *temp = ListOfDouble2ListOfInt(yyvsp[-1].l); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); setSurfaceGeneratrices(s, temp); List_Delete(temp); s->Support = s; @@ -3966,18 +4709,19 @@ case 91: Tree_Add(THEM->Surfaces, &s); } } - List_Delete(yyvsp[-1].l); - yyval.s.Type = type; - yyval.s.Num = num; - ; - break;} -case 92: + List_Delete((yyvsp[-1].l)); + (yyval.s).Type = type; + (yyval.s).Num = num; + ;} + break; + + case 93: #line 1359 "Gmsh.y" -{ - int num = (int)yyvsp[-8].d; - Surface *support = FindSurface((int)yyvsp[-4].d, THEM); + { + int num = (int)(yyvsp[-8].d); + Surface *support = FindSurface((int)(yyvsp[-4].d), THEM); if(!support){ - yymsg(GERROR, "Unknown support surface %d", (int)yyvsp[-4].d); + yymsg(GERROR, "Unknown support surface %d", (int)(yyvsp[-4].d)); } else{ if(FindSurface(num, THEM)){ @@ -3985,7 +4729,7 @@ case 92: } else{ Surface *s = Create_Surface(num, MSH_SURF_TRIMMED); - List_T *temp = ListOfDouble2ListOfInt(yyvsp[-2].l); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[-2].l)); setSurfaceGeneratrices(s, temp); List_Delete(temp); s->Support = support; @@ -3993,199 +4737,216 @@ case 92: Tree_Add(THEM->Surfaces, &s); } } - List_Delete(yyvsp[-2].l); - yyval.s.Type = MSH_SURF_TRIMMED; - yyval.s.Num = num; - ; - break;} -case 93: + List_Delete((yyvsp[-2].l)); + (yyval.s).Type = MSH_SURF_TRIMMED; + (yyval.s).Num = num; + ;} + break; + + case 94: #line 1386 "Gmsh.y" -{ - int num = (int)yyvsp[-16].d; + { + int num = (int)(yyvsp[-16].d); if(FindSurface(num, THEM)){ yymsg(GERROR, "Surface %d already exists", num); } else{ - CreateNurbsSurface(num, (int)yyvsp[-4].d, (int)yyvsp[-2].d, yyvsp[-13].l, yyvsp[-10].l, yyvsp[-8].l); - } - for(int i = 0; i < List_Nbr(yyvsp[-13].l); i++) - List_Delete((List_T*)List_Pointer(yyvsp[-13].l, i)); - List_Delete(yyvsp[-13].l); - List_Delete(yyvsp[-10].l); - List_Delete(yyvsp[-8].l); - yyval.s.Type = MSH_SURF_NURBS; - yyval.s.Num = num; - ; - break;} -case 94: + CreateNurbsSurface(num, (int)(yyvsp[-4].d), (int)(yyvsp[-2].d), (yyvsp[-13].l), (yyvsp[-10].l), (yyvsp[-8].l)); + } + for(int i = 0; i < List_Nbr((yyvsp[-13].l)); i++) + List_Delete((List_T*)List_Pointer((yyvsp[-13].l), i)); + List_Delete((yyvsp[-13].l)); + List_Delete((yyvsp[-10].l)); + List_Delete((yyvsp[-8].l)); + (yyval.s).Type = MSH_SURF_NURBS; + (yyval.s).Num = num; + ;} + break; + + case 95: #line 1405 "Gmsh.y" -{ - int num = (int)yyvsp[-16].d; + { + int num = (int)(yyvsp[-16].d); if(FindSurface(num, THEM)){ yymsg(GERROR, "Surface %d already exists", num); } else{ - CreateNurbsSurfaceSupport(num, (int)yyvsp[-4].d, (int)yyvsp[-2].d, yyvsp[-13].l, yyvsp[-10].l, yyvsp[-8].l); - } - for(int i = 0; i < List_Nbr(yyvsp[-13].l); i++) - List_Delete((List_T*)List_Pointer(yyvsp[-13].l, i)); - List_Delete(yyvsp[-13].l); - List_Delete(yyvsp[-10].l); - List_Delete(yyvsp[-8].l); - yyval.s.Type = MSH_SURF_NURBS; - yyval.s.Num = num; - ; - break;} -case 95: + CreateNurbsSurfaceSupport(num, (int)(yyvsp[-4].d), (int)(yyvsp[-2].d), (yyvsp[-13].l), (yyvsp[-10].l), (yyvsp[-8].l)); + } + for(int i = 0; i < List_Nbr((yyvsp[-13].l)); i++) + List_Delete((List_T*)List_Pointer((yyvsp[-13].l), i)); + List_Delete((yyvsp[-13].l)); + List_Delete((yyvsp[-10].l)); + List_Delete((yyvsp[-8].l)); + (yyval.s).Type = MSH_SURF_NURBS; + (yyval.s).Num = num; + ;} + break; + + case 96: #line 1422 "Gmsh.y" -{ - int num = (int)yyvsp[-4].d; + { + int num = (int)(yyvsp[-4].d); if(FindSurfaceLoop(num, THEM)){ yymsg(GERROR, "Surface loop %d already exists", num); } else{ - List_T *temp = ListOfDouble2ListOfInt(yyvsp[-1].l); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); SurfaceLoop *l = Create_SurfaceLoop(num, temp); Tree_Add(THEM->SurfaceLoops, &l); List_Delete(temp); } - List_Delete(yyvsp[-1].l); - yyval.s.Type = MSH_SURF_LOOP; - yyval.s.Num = num; - ; - break;} -case 96: + List_Delete((yyvsp[-1].l)); + (yyval.s).Type = MSH_SURF_LOOP; + (yyval.s).Num = num; + ;} + break; + + case 97: #line 1438 "Gmsh.y" -{ - int num = (int)yyvsp[-4].d; + { + int num = (int)(yyvsp[-4].d); if(FindPhysicalGroup(num, MSH_PHYSICAL_SURFACE, THEM)){ yymsg(GERROR, "Physical surface %d already exists", num); } else{ - List_T *temp = ListOfDouble2ListOfInt(yyvsp[-1].l); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); PhysicalGroup *p = Create_PhysicalGroup(num, MSH_PHYSICAL_SURFACE, temp); List_Delete(temp); List_Add(THEM->PhysicalGroups, &p); } - List_Delete(yyvsp[-1].l); - yyval.s.Type = MSH_PHYSICAL_SURFACE; - yyval.s.Num = num; - ; - break;} -case 97: + List_Delete((yyvsp[-1].l)); + (yyval.s).Type = MSH_PHYSICAL_SURFACE; + (yyval.s).Num = num; + ;} + break; + + case 98: #line 1458 "Gmsh.y" -{ - int num = (int)yyvsp[-4].d; + { + int num = (int)(yyvsp[-4].d); if(FindVolume(num, THEM)){ yymsg(GERROR, "Volume %d already exists", num); } else{ Volume *v = Create_Volume(num, MSH_VOLUME); - List_T *temp = ListOfDouble2ListOfInt(yyvsp[-1].l); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); setVolumeSurfaces(v, temp); List_Delete(temp); Tree_Add(THEM->Volumes, &v); } - List_Delete(yyvsp[-1].l); - yyval.s.Type = MSH_VOLUME; - yyval.s.Num = num; - ; - break;} -case 98: + List_Delete((yyvsp[-1].l)); + (yyval.s).Type = MSH_VOLUME; + (yyval.s).Num = num; + ;} + break; + + case 99: #line 1475 "Gmsh.y" -{ - int num = (int)yyvsp[-4].d; + { + int num = (int)(yyvsp[-4].d); if(FindVolume(num, THEM)){ yymsg(GERROR, "Volume %d already exists", num); } else{ Volume *v = Create_Volume(num, MSH_VOLUME); - List_T *temp = ListOfDouble2ListOfInt(yyvsp[-1].l); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); setVolumeSurfaces(v, temp); List_Delete(temp); Tree_Add(THEM->Volumes, &v); } - List_Delete(yyvsp[-1].l); - yyval.s.Type = MSH_VOLUME; - yyval.s.Num = num; - ; - break;} -case 99: + List_Delete((yyvsp[-1].l)); + (yyval.s).Type = MSH_VOLUME; + (yyval.s).Num = num; + ;} + break; + + case 100: #line 1492 "Gmsh.y" -{ - int num = (int)yyvsp[-4].d; + { + int num = (int)(yyvsp[-4].d); if(FindPhysicalGroup(num, MSH_PHYSICAL_VOLUME, THEM)){ yymsg(GERROR, "Physical volume %d already exists", num); } else{ - List_T *temp = ListOfDouble2ListOfInt(yyvsp[-1].l); + List_T *temp = ListOfDouble2ListOfInt((yyvsp[-1].l)); PhysicalGroup *p = Create_PhysicalGroup(num, MSH_PHYSICAL_VOLUME, temp); List_Delete(temp); List_Add(THEM->PhysicalGroups, &p); } - List_Delete(yyvsp[-1].l); - yyval.s.Type = MSH_PHYSICAL_VOLUME; - yyval.s.Num = num; - ; - break;} -case 100: + List_Delete((yyvsp[-1].l)); + (yyval.s).Type = MSH_PHYSICAL_VOLUME; + (yyval.s).Num = num; + ;} + break; + + case 101: #line 1513 "Gmsh.y" -{ - TranslateShapes(yyvsp[-3].v[0], yyvsp[-3].v[1], yyvsp[-3].v[2], yyvsp[-1].l, 1); - yyval.l = yyvsp[-1].l; - ; - break;} -case 101: + { + TranslateShapes((yyvsp[-3].v)[0], (yyvsp[-3].v)[1], (yyvsp[-3].v)[2], (yyvsp[-1].l), 1); + (yyval.l) = (yyvsp[-1].l); + ;} + break; + + case 102: #line 1518 "Gmsh.y" -{ - RotateShapes(yyvsp[-8].v[0], yyvsp[-8].v[1], yyvsp[-8].v[2], yyvsp[-6].v[0], yyvsp[-6].v[1], yyvsp[-6].v[2], yyvsp[-4].d, yyvsp[-1].l, 1); - yyval.l = yyvsp[-1].l; - ; - break;} -case 102: + { + RotateShapes((yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], (yyvsp[-4].d), (yyvsp[-1].l), 1); + (yyval.l) = (yyvsp[-1].l); + ;} + break; + + case 103: #line 1523 "Gmsh.y" -{ - SymmetryShapes(yyvsp[-3].v[0], yyvsp[-3].v[1], yyvsp[-3].v[2], yyvsp[-3].v[3], yyvsp[-1].l, 1); - yyval.l = yyvsp[-1].l; - ; - break;} -case 103: + { + SymmetryShapes((yyvsp[-3].v)[0], (yyvsp[-3].v)[1], (yyvsp[-3].v)[2], (yyvsp[-3].v)[3], (yyvsp[-1].l), 1); + (yyval.l) = (yyvsp[-1].l); + ;} + break; + + case 104: #line 1528 "Gmsh.y" -{ - DilatShapes(yyvsp[-6].v[0], yyvsp[-6].v[1], yyvsp[-6].v[2], yyvsp[-4].d, yyvsp[-1].l, 1); - yyval.l = yyvsp[-1].l; - ; - break;} -case 104: + { + DilatShapes((yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], (yyvsp[-4].d), (yyvsp[-1].l), 1); + (yyval.l) = (yyvsp[-1].l); + ;} + break; + + case 105: #line 1535 "Gmsh.y" -{ yyval.l = yyvsp[0].l; ; - break;} -case 105: + { (yyval.l) = (yyvsp[0].l); ;} + break; + + case 106: #line 1536 "Gmsh.y" -{ yyval.l = yyvsp[0].l; ; - break;} -case 106: + { (yyval.l) = (yyvsp[0].l); ;} + break; + + case 107: #line 1537 "Gmsh.y" -{ yyval.l = yyvsp[0].l; ; - break;} -case 107: + { (yyval.l) = (yyvsp[0].l); ;} + break; + + case 108: #line 1542 "Gmsh.y" -{ - yyval.l = List_Create(3, 3, sizeof(Shape)); - ; - break;} -case 108: + { + (yyval.l) = List_Create(3, 3, sizeof(Shape)); + ;} + break; + + case 109: #line 1546 "Gmsh.y" -{ - List_Add(yyval.l, &yyvsp[0].s); - ; - break;} -case 109: + { + List_Add((yyval.l), &(yyvsp[0].s)); + ;} + break; + + case 110: #line 1550 "Gmsh.y" -{ - for(int i = 0; i < List_Nbr(yyvsp[-2].l); i++){ + { + for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ double d; - List_Read(yyvsp[-2].l, i, &d); + List_Read((yyvsp[-2].l), i, &d); Shape TheShape; TheShape.Num = (int)d; Vertex *v = FindPoint(TheShape.Num, THEM); @@ -4193,17 +4954,18 @@ case 109: yymsg(WARNING, "Unknown point %d", TheShape.Num); else{ TheShape.Type = MSH_POINT; - List_Add(yyval.l, &TheShape); + List_Add((yyval.l), &TheShape); } } - ; - break;} -case 110: + ;} + break; + + case 111: #line 1566 "Gmsh.y" -{ - for(int i = 0; i < List_Nbr(yyvsp[-2].l); i++){ + { + for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ double d; - List_Read(yyvsp[-2].l, i, &d); + List_Read((yyvsp[-2].l), i, &d); Shape TheShape; TheShape.Num = (int)d; Curve *c = FindCurve(TheShape.Num, THEM); @@ -4211,17 +4973,18 @@ case 110: yymsg(WARNING, "Unknown curve %d", TheShape.Num); else{ TheShape.Type = c->Typ; - List_Add(yyval.l, &TheShape); + List_Add((yyval.l), &TheShape); } } - ; - break;} -case 111: + ;} + break; + + case 112: #line 1582 "Gmsh.y" -{ - for(int i = 0; i < List_Nbr(yyvsp[-2].l); i++){ + { + for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ double d; - List_Read(yyvsp[-2].l, i, &d); + List_Read((yyvsp[-2].l), i, &d); Shape TheShape; TheShape.Num = (int)d; Surface *s = FindSurface(TheShape.Num, THEM); @@ -4229,17 +4992,18 @@ case 111: yymsg(WARNING, "Unknown surface %d", TheShape.Num); else{ TheShape.Type = s->Typ; - List_Add(yyval.l, &TheShape); + List_Add((yyval.l), &TheShape); } } - ; - break;} -case 112: + ;} + break; + + case 113: #line 1598 "Gmsh.y" -{ - for(int i = 0; i < List_Nbr(yyvsp[-2].l); i++){ + { + for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ double d; - List_Read(yyvsp[-2].l, i, &d); + List_Read((yyvsp[-2].l), i, &d); Shape TheShape; TheShape.Num = (int)d; Volume *v = FindVolume(TheShape.Num, THEM); @@ -4247,93 +5011,101 @@ case 112: yymsg(WARNING, "Unknown volume %d", TheShape.Num); else{ TheShape.Type = v->Typ; - List_Add(yyval.l, &TheShape); + List_Add((yyval.l), &TheShape); } } - ; - break;} -case 113: + ;} + break; + + case 114: #line 1619 "Gmsh.y" -{ - yyval.l = List_Create(3, 3, sizeof(Shape)); - for(int i = 0; i < List_Nbr(yyvsp[-1].l); i++){ + { + (yyval.l) = List_Create(3, 3, sizeof(Shape)); + for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ Shape TheShape; - List_Read(yyvsp[-1].l, i, &TheShape); + List_Read((yyvsp[-1].l), i, &TheShape); int j; CopyShape(TheShape.Type, TheShape.Num, &j); TheShape.Num = j; - List_Add(yyval.l, &TheShape); + List_Add((yyval.l), &TheShape); } - List_Delete(yyvsp[-1].l); - ; - break;} -case 114: + List_Delete((yyvsp[-1].l)); + ;} + break; + + case 115: #line 1633 "Gmsh.y" -{ - if(!strcmp(yyvsp[-4].c, "View")) AliasView((int)yyvsp[-2].d, 0); - Free(yyvsp[-4].c); - yyval.l = NULL; - ; - break;} -case 115: + { + if(!strcmp((yyvsp[-4].c), "View")) AliasView((int)(yyvsp[-2].d), 0); + Free((yyvsp[-4].c)); + (yyval.l) = NULL; + ;} + break; + + case 116: #line 1639 "Gmsh.y" -{ - if(!strcmp(yyvsp[-4].c, "View")) AliasView((int)yyvsp[-2].d, 0); - Free(yyvsp[-4].c); - yyval.l = NULL; - ; - break;} -case 116: + { + if(!strcmp((yyvsp[-4].c), "View")) AliasView((int)(yyvsp[-2].d), 0); + Free((yyvsp[-4].c)); + (yyval.l) = NULL; + ;} + break; + + case 117: #line 1645 "Gmsh.y" -{ - if(!strcmp(yyvsp[-4].c, "View")) AliasView((int)yyvsp[-2].d, 1); - Free(yyvsp[-4].c); - yyval.l = NULL; - ; - break;} -case 117: + { + if(!strcmp((yyvsp[-4].c), "View")) AliasView((int)(yyvsp[-2].d), 1); + Free((yyvsp[-4].c)); + (yyval.l) = NULL; + ;} + break; + + case 118: #line 1657 "Gmsh.y" -{ - for(int i = 0; i < List_Nbr(yyvsp[-1].l); i++){ + { + for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ Shape TheShape; - List_Read(yyvsp[-1].l, i, &TheShape); + List_Read((yyvsp[-1].l), i, &TheShape); DeleteShape(TheShape.Type, TheShape.Num); } - List_Delete(yyvsp[-1].l); - ; - break;} -case 118: + List_Delete((yyvsp[-1].l)); + ;} + break; + + case 119: #line 1666 "Gmsh.y" -{ - if(!strcmp(yyvsp[-4].c, "View")){ - RemoveViewByIndex((int)yyvsp[-2].d); + { + if(!strcmp((yyvsp[-4].c), "View")){ + RemoveViewByIndex((int)(yyvsp[-2].d)); } else{ - yymsg(GERROR, "Unknown command 'Delete %s'", yyvsp[-4].c); + yymsg(GERROR, "Unknown command 'Delete %s'", (yyvsp[-4].c)); } - Free(yyvsp[-4].c); - ; - break;} -case 119: + Free((yyvsp[-4].c)); + ;} + break; + + case 120: #line 1676 "Gmsh.y" -{ - if(!strcmp(yyvsp[-1].c, "Meshes") || !strcmp(yyvsp[-1].c, "All")){ + { + if(!strcmp((yyvsp[-1].c), "Meshes") || !strcmp((yyvsp[-1].c), "All")){ Init_Mesh(THEM); } - else if(!strcmp(yyvsp[-1].c, "Physicals")){ + else if(!strcmp((yyvsp[-1].c), "Physicals")){ List_Action(THEM->PhysicalGroups, Free_PhysicalGroup); List_Reset(THEM->PhysicalGroups); } else{ - yymsg(GERROR, "Unknown command 'Delete %s'", yyvsp[-1].c); + yymsg(GERROR, "Unknown command 'Delete %s'", (yyvsp[-1].c)); } - Free(yyvsp[-1].c); - ; - break;} -case 120: + Free((yyvsp[-1].c)); + ;} + break; + + case 121: #line 1690 "Gmsh.y" -{ - if(!strcmp(yyvsp[-2].c, "Empty") && !strcmp(yyvsp[-1].c, "Views")){ + { + if(!strcmp((yyvsp[-2].c), "Empty") && !strcmp((yyvsp[-1].c), "Views")){ for(int i = List_Nbr(CTX.post.list) - 1; i >= 0; i--){ Post_View *v = *(Post_View **) List_Pointer(CTX.post.list, i); if(v->empty()) @@ -4341,70 +5113,76 @@ case 120: } } else{ - yymsg(GERROR, "Unknown command 'Delete %s %s'", yyvsp[-2].c, yyvsp[-1].c); + yymsg(GERROR, "Unknown command 'Delete %s %s'", (yyvsp[-2].c), (yyvsp[-1].c)); } - Free(yyvsp[-2].c); Free(yyvsp[-1].c); - ; - break;} -case 121: + Free((yyvsp[-2].c)); Free((yyvsp[-1].c)); + ;} + break; + + case 122: #line 1709 "Gmsh.y" -{ - for(int i = 0; i < List_Nbr(yyvsp[-1].l); i++){ + { + for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ Shape TheShape; - List_Read(yyvsp[-1].l, i, &TheShape); - ColorShape(TheShape.Type, TheShape.Num, yyvsp[-3].u); + List_Read((yyvsp[-1].l), i, &TheShape); + ColorShape(TheShape.Type, TheShape.Num, (yyvsp[-3].u)); } - List_Delete(yyvsp[-1].l); - ; - break;} -case 122: + List_Delete((yyvsp[-1].l)); + ;} + break; + + case 123: #line 1723 "Gmsh.y" -{ + { int m = (CTX.visibility_mode == 2) ? VIS_MESH : ((CTX.visibility_mode == 1) ? VIS_GEOM : VIS_GEOM|VIS_MESH); for(int i = 2; i < 6; i++) - SetVisibilityByNumber(yyvsp[-1].c, i, m); - Free(yyvsp[-1].c); - ; - break;} -case 123: + SetVisibilityByNumber((yyvsp[-1].c), i, m); + Free((yyvsp[-1].c)); + ;} + break; + + case 124: #line 1731 "Gmsh.y" -{ + { for(int i = 2; i < 6; i++) - SetVisibilityByNumber(yyvsp[-1].c, i, 0); - Free(yyvsp[-1].c); - ; - break;} -case 124: + SetVisibilityByNumber((yyvsp[-1].c), i, 0); + Free((yyvsp[-1].c)); + ;} + break; + + case 125: #line 1737 "Gmsh.y" -{ + { int m = (CTX.visibility_mode == 2) ? VIS_MESH : ((CTX.visibility_mode == 1) ? VIS_GEOM : VIS_GEOM|VIS_MESH); - for(int i = 0; i < List_Nbr(yyvsp[-1].l); i++){ + for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ Shape TheShape; - List_Read(yyvsp[-1].l, i, &TheShape); + List_Read((yyvsp[-1].l), i, &TheShape); VisibilityShape(TheShape.Type, TheShape.Num, m); } - List_Delete(yyvsp[-1].l); - ; - break;} -case 125: + List_Delete((yyvsp[-1].l)); + ;} + break; + + case 126: #line 1748 "Gmsh.y" -{ - for(int i = 0; i < List_Nbr(yyvsp[-1].l); i++){ + { + for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ Shape TheShape; - List_Read(yyvsp[-1].l, i, &TheShape); + List_Read((yyvsp[-1].l), i, &TheShape); VisibilityShape(TheShape.Type, TheShape.Num, 0); } - List_Delete(yyvsp[-1].l); - ; - break;} -case 126: + List_Delete((yyvsp[-1].l)); + ;} + break; + + case 127: #line 1762 "Gmsh.y" -{ - if(!strcmp(yyvsp[-2].c, "Include")){ + { + if(!strcmp((yyvsp[-2].c), "Include")){ char tmpstring[1024]; - FixRelativePath(yyvsp[-1].c, tmpstring); + FixRelativePath((yyvsp[-1].c), tmpstring); // Warning: we *don't* close included files (to allow user // functions in these files). If you need to include many many // files and don't have functions in the files, use "Merge" @@ -4414,158 +5192,165 @@ case 126: // using the FILE pointer, but hey, I'm lazy... ParseFile(tmpstring, 0, 0, 1); } - else if(!strcmp(yyvsp[-2].c, "Print")){ + else if(!strcmp((yyvsp[-2].c), "Print")){ #if defined(HAVE_FLTK) if(!CTX.batch){ char tmpstring[1024]; - FixRelativePath(yyvsp[-1].c, tmpstring); + FixRelativePath((yyvsp[-1].c), tmpstring); CreateOutputFile(tmpstring, CTX.print.format); } #endif } - else if(!strcmp(yyvsp[-2].c, "Save")){ + else if(!strcmp((yyvsp[-2].c), "Save")){ #if defined(HAVE_FLTK) char tmpstring[1024]; - FixRelativePath(yyvsp[-1].c, tmpstring); + FixRelativePath((yyvsp[-1].c), tmpstring); CreateOutputFile(tmpstring, CTX.mesh.format); #endif } - else if(!strcmp(yyvsp[-2].c, "Merge") || !strcmp(yyvsp[-2].c, "MergeWithBoundingBox")){ + else if(!strcmp((yyvsp[-2].c), "Merge") || !strcmp((yyvsp[-2].c), "MergeWithBoundingBox")){ // MergeWithBoundingBox is deprecated char tmpstring[1024]; - FixRelativePath(yyvsp[-1].c, tmpstring); + FixRelativePath((yyvsp[-1].c), tmpstring); MergeProblem(tmpstring, 1); } - else if(!strcmp(yyvsp[-2].c, "System")){ - SystemCall(yyvsp[-1].c); + else if(!strcmp((yyvsp[-2].c), "System")){ + SystemCall((yyvsp[-1].c)); } else{ - yymsg(GERROR, "Unknown command '%s'", yyvsp[-2].c); + yymsg(GERROR, "Unknown command '%s'", (yyvsp[-2].c)); } - Free(yyvsp[-2].c); Free(yyvsp[-1].c); - ; - break;} -case 127: + Free((yyvsp[-2].c)); Free((yyvsp[-1].c)); + ;} + break; + + case 128: #line 1806 "Gmsh.y" -{ - if(!strcmp(yyvsp[-6].c, "Save") && !strcmp(yyvsp[-5].c, "View")){ - Post_View **vv = (Post_View **)List_Pointer_Test(CTX.post.list, (int)yyvsp[-3].d); + { + if(!strcmp((yyvsp[-6].c), "Save") && !strcmp((yyvsp[-5].c), "View")){ + Post_View **vv = (Post_View **)List_Pointer_Test(CTX.post.list, (int)(yyvsp[-3].d)); if(vv){ char tmpstring[1024]; - FixRelativePath(yyvsp[-1].c, tmpstring); + FixRelativePath((yyvsp[-1].c), tmpstring); WriteView(*vv, tmpstring, CTX.post.file_format, 0); } } else{ - yymsg(GERROR, "Unknown command '%s'", yyvsp[-6].c); + yymsg(GERROR, "Unknown command '%s'", (yyvsp[-6].c)); } - Free(yyvsp[-6].c); Free(yyvsp[-5].c); Free(yyvsp[-1].c); - ; - break;} -case 128: + Free((yyvsp[-6].c)); Free((yyvsp[-5].c)); Free((yyvsp[-1].c)); + ;} + break; + + case 129: #line 1821 "Gmsh.y" -{ - if(!strcmp(yyvsp[-6].c, "Background") && !strcmp(yyvsp[-5].c, "Mesh") && !strcmp(yyvsp[-4].c, "View")){ - Post_View **vv = (Post_View **)List_Pointer_Test(CTX.post.list, (int)yyvsp[-2].d); + { + if(!strcmp((yyvsp[-6].c), "Background") && !strcmp((yyvsp[-5].c), "Mesh") && !strcmp((yyvsp[-4].c), "View")){ + Post_View **vv = (Post_View **)List_Pointer_Test(CTX.post.list, (int)(yyvsp[-2].d)); if(vv) BGMWithView(*vv); } else{ - yymsg(GERROR, "Unknown command '%s'", yyvsp[-6].c); + yymsg(GERROR, "Unknown command '%s'", (yyvsp[-6].c)); } - Free(yyvsp[-6].c); Free(yyvsp[-5].c); Free(yyvsp[-4].c); - ; - break;} -case 129: + Free((yyvsp[-6].c)); Free((yyvsp[-5].c)); Free((yyvsp[-4].c)); + ;} + break; + + case 130: #line 1832 "Gmsh.y" -{ - if(!strcmp(yyvsp[-2].c, "Sleep")){ - long sleep_time = GetTime(); - while(1){ - if(GetTime() - sleep_time > (long)(yyvsp[-1].d*1.e6)) break; - } + { + if(!strcmp((yyvsp[-2].c), "Sleep")){ + SleepMilliSeconds((int)((yyvsp[-1].d) * 1000.)); } - else if(!strcmp(yyvsp[-2].c, "Remesh")){ + else if(!strcmp((yyvsp[-2].c), "Remesh")){ ReMesh(THEM); } - else if(!strcmp(yyvsp[-2].c, "Mesh")){ + else if(!strcmp((yyvsp[-2].c), "Mesh")){ yymsg(GERROR, "Mesh directives are not (yet) allowed in scripts"); } else{ - yymsg(GERROR, "Unknown command '%s'", yyvsp[-2].c); + yymsg(GERROR, "Unknown command '%s'", (yyvsp[-2].c)); } - Free(yyvsp[-2].c); - ; - break;} -case 130: -#line 1851 "Gmsh.y" -{ + Free((yyvsp[-2].c)); + ;} + break; + + case 131: +#line 1848 "Gmsh.y" + { try { - GMSH_PluginManager::instance()->action(yyvsp[-4].c, yyvsp[-1].c, 0); + GMSH_PluginManager::instance()->action((yyvsp[-4].c), (yyvsp[-1].c), 0); } catch(...) { - yymsg(GERROR, "Unknown action '%s' or plugin '%s'", yyvsp[-1].c, yyvsp[-4].c); + yymsg(GERROR, "Unknown action '%s' or plugin '%s'", (yyvsp[-1].c), (yyvsp[-4].c)); } - Free(yyvsp[-4].c); Free(yyvsp[-1].c); - ; - break;} -case 131: -#line 1861 "Gmsh.y" -{ - if(!strcmp(yyvsp[-1].c, "ElementsFromAllViews")) + Free((yyvsp[-4].c)); Free((yyvsp[-1].c)); + ;} + break; + + case 132: +#line 1858 "Gmsh.y" + { + if(!strcmp((yyvsp[-1].c), "ElementsFromAllViews")) CombineViews(0, 1, CTX.post.combine_remove_orig); - else if(!strcmp(yyvsp[-1].c, "ElementsFromVisibleViews")) + else if(!strcmp((yyvsp[-1].c), "ElementsFromVisibleViews")) CombineViews(0, 0, CTX.post.combine_remove_orig); - else if(!strcmp(yyvsp[-1].c, "ElementsByViewName")) + else if(!strcmp((yyvsp[-1].c), "ElementsByViewName")) CombineViews(0, 2, CTX.post.combine_remove_orig); - else if(!strcmp(yyvsp[-1].c, "TimeStepsFromAllViews")) + else if(!strcmp((yyvsp[-1].c), "TimeStepsFromAllViews")) CombineViews(1, 1, CTX.post.combine_remove_orig); - else if(!strcmp(yyvsp[-1].c, "TimeStepsFromVisibleViews")) + else if(!strcmp((yyvsp[-1].c), "TimeStepsFromVisibleViews")) CombineViews(1, 0, CTX.post.combine_remove_orig); - else if(!strcmp(yyvsp[-1].c, "TimeStepsByViewName")) + else if(!strcmp((yyvsp[-1].c), "TimeStepsByViewName")) CombineViews(1, 2, CTX.post.combine_remove_orig); - else if(!strcmp(yyvsp[-1].c, "Views")) + else if(!strcmp((yyvsp[-1].c), "Views")) CombineViews(0, 1, CTX.post.combine_remove_orig); - else if(!strcmp(yyvsp[-1].c, "TimeSteps")) + else if(!strcmp((yyvsp[-1].c), "TimeSteps")) CombineViews(1, 2, CTX.post.combine_remove_orig); else yymsg(GERROR, "Unknown 'Combine' command"); - Free(yyvsp[-1].c); - ; - break;} -case 132: -#line 1883 "Gmsh.y" -{ + Free((yyvsp[-1].c)); + ;} + break; + + case 133: +#line 1880 "Gmsh.y" + { exit(0); - ; - break;} -case 133: -#line 1887 "Gmsh.y" -{ + ;} + break; + + case 134: +#line 1884 "Gmsh.y" + { CTX.forced_bbox = 0; SetBoundingBox(); - ; - break;} -case 134: -#line 1892 "Gmsh.y" -{ + ;} + break; + + case 135: +#line 1889 "Gmsh.y" + { CTX.forced_bbox = 1; - SetBoundingBox(yyvsp[-12].d, yyvsp[-10].d, yyvsp[-8].d, yyvsp[-6].d, yyvsp[-4].d, yyvsp[-2].d); - ; - break;} -case 135: -#line 1897 "Gmsh.y" -{ + SetBoundingBox((yyvsp[-12].d), (yyvsp[-10].d), (yyvsp[-8].d), (yyvsp[-6].d), (yyvsp[-4].d), (yyvsp[-2].d)); + ;} + break; + + case 136: +#line 1894 "Gmsh.y" + { #if defined(HAVE_FLTK) if(!CTX.batch) // we're in interactive mode Draw(); #endif - ; - break;} -case 136: -#line 1910 "Gmsh.y" -{ - LoopControlVariablesTab[ImbricatedLoop][0] = yyvsp[-3].d; - LoopControlVariablesTab[ImbricatedLoop][1] = yyvsp[-1].d; + ;} + break; + + case 137: +#line 1907 "Gmsh.y" + { + LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[-3].d); + LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[-1].d); LoopControlVariablesTab[ImbricatedLoop][2] = 1.0; LoopControlVariablesNameTab[ImbricatedLoop] = NULL; fgetpos(yyin, &yyposImbricatedLoopsTab[ImbricatedLoop]); @@ -4575,15 +5360,16 @@ case 136: yymsg(GERROR, "Reached maximum number of imbricated loops"); ImbricatedLoop = MAX_RECUR_LOOPS-1; } - if(yyvsp[-3].d > yyvsp[-1].d) skip_until("For", "EndFor"); - ; - break;} -case 137: -#line 1925 "Gmsh.y" -{ - LoopControlVariablesTab[ImbricatedLoop][0] = yyvsp[-5].d; - LoopControlVariablesTab[ImbricatedLoop][1] = yyvsp[-3].d; - LoopControlVariablesTab[ImbricatedLoop][2] = yyvsp[-1].d; + if((yyvsp[-3].d) > (yyvsp[-1].d)) skip_until("For", "EndFor"); + ;} + break; + + case 138: +#line 1922 "Gmsh.y" + { + LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[-5].d); + LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[-3].d); + LoopControlVariablesTab[ImbricatedLoop][2] = (yyvsp[-1].d); LoopControlVariablesNameTab[ImbricatedLoop] = NULL; fgetpos(yyin, &yyposImbricatedLoopsTab[ImbricatedLoop]); yylinenoImbricatedLoopsTab[ImbricatedLoop] = yylineno; @@ -4592,27 +5378,28 @@ case 137: yymsg(GERROR, "Reached maximum number of imbricated loops"); ImbricatedLoop = MAX_RECUR_LOOPS-1; } - if((yyvsp[-1].d > 0. && yyvsp[-5].d > yyvsp[-3].d) || (yyvsp[-1].d < 0. && yyvsp[-5].d < yyvsp[-3].d)) + if(((yyvsp[-1].d) > 0. && (yyvsp[-5].d) > (yyvsp[-3].d)) || ((yyvsp[-1].d) < 0. && (yyvsp[-5].d) < (yyvsp[-3].d))) skip_until("For", "EndFor"); - ; - break;} -case 138: -#line 1941 "Gmsh.y" -{ - LoopControlVariablesTab[ImbricatedLoop][0] = yyvsp[-3].d; - LoopControlVariablesTab[ImbricatedLoop][1] = yyvsp[-1].d; + ;} + break; + + case 139: +#line 1938 "Gmsh.y" + { + LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[-3].d); + LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[-1].d); LoopControlVariablesTab[ImbricatedLoop][2] = 1.0; - LoopControlVariablesNameTab[ImbricatedLoop] = yyvsp[-6].c; + LoopControlVariablesNameTab[ImbricatedLoop] = (yyvsp[-6].c); Symbol TheSymbol; - TheSymbol.Name = yyvsp[-6].c; + TheSymbol.Name = (yyvsp[-6].c); Symbol *pSymbol; if(!(pSymbol = (Symbol*)Tree_PQuery(Symbol_T, &TheSymbol))){ TheSymbol.val = List_Create(1, 1, sizeof(double)); - List_Put(TheSymbol.val, 0, &yyvsp[-3].d); + List_Put(TheSymbol.val, 0, &(yyvsp[-3].d)); Tree_Add(Symbol_T, &TheSymbol); } else{ - List_Write(pSymbol->val, 0, &yyvsp[-3].d); + List_Write(pSymbol->val, 0, &(yyvsp[-3].d)); } fgetpos(yyin, &yyposImbricatedLoopsTab[ImbricatedLoop]); yylinenoImbricatedLoopsTab[ImbricatedLoop] = yylineno; @@ -4621,26 +5408,27 @@ case 138: yymsg(GERROR, "Reached maximum number of imbricated loops"); ImbricatedLoop = MAX_RECUR_LOOPS-1; } - if(yyvsp[-3].d > yyvsp[-1].d) skip_until("For", "EndFor"); - ; - break;} -case 139: -#line 1967 "Gmsh.y" -{ - LoopControlVariablesTab[ImbricatedLoop][0] = yyvsp[-5].d; - LoopControlVariablesTab[ImbricatedLoop][1] = yyvsp[-3].d; - LoopControlVariablesTab[ImbricatedLoop][2] = yyvsp[-1].d; - LoopControlVariablesNameTab[ImbricatedLoop] = yyvsp[-8].c; + if((yyvsp[-3].d) > (yyvsp[-1].d)) skip_until("For", "EndFor"); + ;} + break; + + case 140: +#line 1964 "Gmsh.y" + { + LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[-5].d); + LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[-3].d); + LoopControlVariablesTab[ImbricatedLoop][2] = (yyvsp[-1].d); + LoopControlVariablesNameTab[ImbricatedLoop] = (yyvsp[-8].c); Symbol TheSymbol; - TheSymbol.Name = yyvsp[-8].c; + TheSymbol.Name = (yyvsp[-8].c); Symbol *pSymbol; if(!(pSymbol = (Symbol*)Tree_PQuery(Symbol_T, &TheSymbol))){ TheSymbol.val = List_Create(1, 1, sizeof(double)); - List_Put(TheSymbol.val, 0, &yyvsp[-5].d); + List_Put(TheSymbol.val, 0, &(yyvsp[-5].d)); Tree_Add(Symbol_T, &TheSymbol); } else{ - List_Write(pSymbol->val, 0, &yyvsp[-5].d); + List_Write(pSymbol->val, 0, &(yyvsp[-5].d)); } fgetpos(yyin, &yyposImbricatedLoopsTab[ImbricatedLoop]); yylinenoImbricatedLoopsTab[ImbricatedLoop] = yylineno; @@ -4649,13 +5437,14 @@ case 139: yymsg(GERROR, "Reached maximum number of imbricated loops"); ImbricatedLoop = MAX_RECUR_LOOPS-1; } - if((yyvsp[-1].d > 0. && yyvsp[-5].d > yyvsp[-3].d) || (yyvsp[-1].d < 0. && yyvsp[-5].d < yyvsp[-3].d)) + if(((yyvsp[-1].d) > 0. && (yyvsp[-5].d) > (yyvsp[-3].d)) || ((yyvsp[-1].d) < 0. && (yyvsp[-5].d) < (yyvsp[-3].d))) skip_until("For", "EndFor"); - ; - break;} -case 140: -#line 1994 "Gmsh.y" -{ + ;} + break; + + case 141: +#line 1991 "Gmsh.y" + { if(ImbricatedLoop <= 0){ yymsg(GERROR, "Invalid For/EndFor loop"); ImbricatedLoop = 0; @@ -4685,498 +5474,548 @@ case 140: ImbricatedLoop--; } } - ; - break;} -case 141: -#line 2026 "Gmsh.y" -{ - if(!FunctionManager::Instance()->createFunction(yyvsp[0].c, yyin, yyname, yylineno)) - yymsg(GERROR, "Redefinition of function %s", yyvsp[0].c); + ;} + break; + + case 142: +#line 2023 "Gmsh.y" + { + if(!FunctionManager::Instance()->createFunction((yyvsp[0].c), yyin, yyname, yylineno)) + yymsg(GERROR, "Redefinition of function %s", (yyvsp[0].c)); skip_until(NULL, "Return"); //FIXME: wee leak $2 - ; - break;} -case 142: -#line 2033 "Gmsh.y" -{ + ;} + break; + + case 143: +#line 2030 "Gmsh.y" + { if(!FunctionManager::Instance()->leaveFunction(&yyin, yyname, yylineno)) yymsg(GERROR, "Error while exiting function"); - ; - break;} -case 143: -#line 2038 "Gmsh.y" -{ - if(!FunctionManager::Instance()->enterFunction(yyvsp[-1].c, &yyin, yyname, yylineno)) - yymsg(GERROR, "Unknown function %s", yyvsp[-1].c); + ;} + break; + + case 144: +#line 2035 "Gmsh.y" + { + if(!FunctionManager::Instance()->enterFunction((yyvsp[-1].c), &yyin, yyname, yylineno)) + yymsg(GERROR, "Unknown function %s", (yyvsp[-1].c)); //FIXME: wee leak $2 - ; - break;} -case 144: -#line 2044 "Gmsh.y" -{ - if(!yyvsp[-1].d) skip_until("If", "EndIf"); - ; - break;} -case 145: -#line 2048 "Gmsh.y" -{ - ; - break;} -case 146: -#line 2057 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(Shape)); - ExtrudeShapes(TRANSLATE, yyvsp[-1].l, - yyvsp[-3].v[0], yyvsp[-3].v[1], yyvsp[-3].v[2], 0., 0., 0., 0., 0., 0., 0., - NULL, yyval.l); - List_Delete(yyvsp[-1].l); - ; - break;} -case 147: -#line 2065 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(Shape)); - ExtrudeShapes(ROTATE, yyvsp[-1].l, - 0., 0., 0., yyvsp[-8].v[0], yyvsp[-8].v[1], yyvsp[-8].v[2], yyvsp[-6].v[0], yyvsp[-6].v[1], yyvsp[-6].v[2], yyvsp[-4].d, - NULL, yyval.l); - List_Delete(yyvsp[-1].l); - ; - break;} -case 148: -#line 2073 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(Shape)); - ExtrudeShapes(TRANSLATE_ROTATE, yyvsp[-1].l, - yyvsp[-10].v[0], yyvsp[-10].v[1], yyvsp[-10].v[2], yyvsp[-8].v[0], yyvsp[-8].v[1], yyvsp[-8].v[2], yyvsp[-6].v[0], yyvsp[-6].v[1], yyvsp[-6].v[2], yyvsp[-4].d, - NULL, yyval.l); - List_Delete(yyvsp[-1].l); - ; - break;} -case 149: -#line 2081 "Gmsh.y" -{ + ;} + break; + + case 145: +#line 2041 "Gmsh.y" + { + if(!(yyvsp[-1].d)) skip_until("If", "EndIf"); + ;} + break; + + case 146: +#line 2045 "Gmsh.y" + { + ;} + break; + + case 147: +#line 2054 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(Shape)); + ExtrudeShapes(TRANSLATE, (yyvsp[-1].l), + (yyvsp[-3].v)[0], (yyvsp[-3].v)[1], (yyvsp[-3].v)[2], 0., 0., 0., 0., 0., 0., 0., + NULL, (yyval.l)); + List_Delete((yyvsp[-1].l)); + ;} + break; + + case 148: +#line 2062 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(Shape)); + ExtrudeShapes(ROTATE, (yyvsp[-1].l), + 0., 0., 0., (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], (yyvsp[-4].d), + NULL, (yyval.l)); + List_Delete((yyvsp[-1].l)); + ;} + break; + + case 149: +#line 2070 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(Shape)); + ExtrudeShapes(TRANSLATE_ROTATE, (yyvsp[-1].l), + (yyvsp[-10].v)[0], (yyvsp[-10].v)[1], (yyvsp[-10].v)[2], (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], (yyvsp[-4].d), + NULL, (yyval.l)); + List_Delete((yyvsp[-1].l)); + ;} + break; + + case 150: +#line 2078 "Gmsh.y" + { extr.mesh.ExtrudeMesh = false; extr.mesh.Recombine = false; - ; - break;} -case 150: -#line 2086 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(Shape)); - ExtrudeShapes(TRANSLATE, yyvsp[-3].l, - yyvsp[-5].v[0], yyvsp[-5].v[1], yyvsp[-5].v[2], 0., 0., 0., 0., 0., 0., 0., - &extr, yyval.l); - List_Delete(yyvsp[-3].l); - ; - break;} -case 151: -#line 2094 "Gmsh.y" -{ + ;} + break; + + case 151: +#line 2083 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(Shape)); + ExtrudeShapes(TRANSLATE, (yyvsp[-3].l), + (yyvsp[-5].v)[0], (yyvsp[-5].v)[1], (yyvsp[-5].v)[2], 0., 0., 0., 0., 0., 0., 0., + &extr, (yyval.l)); + List_Delete((yyvsp[-3].l)); + ;} + break; + + case 152: +#line 2091 "Gmsh.y" + { extr.mesh.ExtrudeMesh = false; extr.mesh.Recombine = false; - ; - break;} -case 152: -#line 2099 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(Shape)); - ExtrudeShapes(ROTATE, yyvsp[-3].l, - 0., 0., 0., yyvsp[-10].v[0], yyvsp[-10].v[1], yyvsp[-10].v[2], yyvsp[-8].v[0], yyvsp[-8].v[1], yyvsp[-8].v[2], yyvsp[-6].d, - &extr, yyval.l); - List_Delete(yyvsp[-3].l); - ; - break;} -case 153: -#line 2107 "Gmsh.y" -{ + ;} + break; + + case 153: +#line 2096 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(Shape)); + ExtrudeShapes(ROTATE, (yyvsp[-3].l), + 0., 0., 0., (yyvsp[-10].v)[0], (yyvsp[-10].v)[1], (yyvsp[-10].v)[2], (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].d), + &extr, (yyval.l)); + List_Delete((yyvsp[-3].l)); + ;} + break; + + case 154: +#line 2104 "Gmsh.y" + { extr.mesh.ExtrudeMesh = false; extr.mesh.Recombine = false; - ; - break;} -case 154: -#line 2112 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(Shape)); - ExtrudeShapes(TRANSLATE_ROTATE, yyvsp[-3].l, - yyvsp[-12].v[0], yyvsp[-12].v[1], yyvsp[-12].v[2], yyvsp[-10].v[0], yyvsp[-10].v[1], yyvsp[-10].v[2], yyvsp[-8].v[0], yyvsp[-8].v[1], yyvsp[-8].v[2], yyvsp[-6].d, - &extr, yyval.l); - List_Delete(yyvsp[-3].l); - ; - break;} -case 155: -#line 2122 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(TRANSLATE, MSH_POINT, (int)yyvsp[-4].d, - yyvsp[-2].v[0], yyvsp[-2].v[1], yyvsp[-2].v[2], 0., 0., 0., 0., 0., 0., 0., - NULL, yyval.l); - ; - break;} -case 156: -#line 2129 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(TRANSLATE, MSH_SEGM_LINE, (int)yyvsp[-4].d, - yyvsp[-2].v[0], yyvsp[-2].v[1], yyvsp[-2].v[2], 0., 0., 0., 0., 0., 0., 0., - NULL, yyval.l); - ; - break;} -case 157: -#line 2136 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(TRANSLATE, MSH_SURF_PLAN, (int)yyvsp[-4].d, - yyvsp[-2].v[0], yyvsp[-2].v[1], yyvsp[-2].v[2], 0., 0., 0., 0., 0., 0., 0., - NULL, yyval.l); - ; - break;} -case 158: -#line 2143 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(ROTATE, MSH_POINT, (int)yyvsp[-8].d, - 0., 0., 0., yyvsp[-6].v[0], yyvsp[-6].v[1], yyvsp[-6].v[2], yyvsp[-4].v[0], yyvsp[-4].v[1], yyvsp[-4].v[2], yyvsp[-2].d, - NULL, yyval.l); - ; - break;} -case 159: -#line 2150 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(ROTATE, MSH_SEGM_LINE, (int)yyvsp[-8].d, - 0., 0., 0., yyvsp[-6].v[0], yyvsp[-6].v[1], yyvsp[-6].v[2], yyvsp[-4].v[0], yyvsp[-4].v[1], yyvsp[-4].v[2], yyvsp[-2].d, - NULL, yyval.l); - ; - break;} -case 160: -#line 2157 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(ROTATE, MSH_SURF_PLAN, (int)yyvsp[-8].d, - 0., 0., 0., yyvsp[-6].v[0], yyvsp[-6].v[1], yyvsp[-6].v[2], yyvsp[-4].v[0], yyvsp[-4].v[1], yyvsp[-4].v[2], yyvsp[-2].d, - NULL, yyval.l); - ; - break;} -case 161: -#line 2164 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(TRANSLATE_ROTATE, MSH_POINT, (int)yyvsp[-10].d, - yyvsp[-8].v[0], yyvsp[-8].v[1], yyvsp[-8].v[2], yyvsp[-6].v[0], yyvsp[-6].v[1], yyvsp[-6].v[2], yyvsp[-4].v[0], yyvsp[-4].v[1], yyvsp[-4].v[2], yyvsp[-2].d, - NULL, yyval.l); - ; - break;} -case 162: -#line 2171 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(TRANSLATE_ROTATE, MSH_SEGM_LINE, (int)yyvsp[-10].d, - yyvsp[-8].v[0], yyvsp[-8].v[1], yyvsp[-8].v[2], yyvsp[-6].v[0], yyvsp[-6].v[1], yyvsp[-6].v[2], yyvsp[-4].v[0], yyvsp[-4].v[1], yyvsp[-4].v[2], yyvsp[-2].d, - NULL, yyval.l); - ; - break;} -case 163: -#line 2178 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(TRANSLATE_ROTATE, MSH_SURF_PLAN, (int)yyvsp[-10].d, - yyvsp[-8].v[0], yyvsp[-8].v[1], yyvsp[-8].v[2], yyvsp[-6].v[0], yyvsp[-6].v[1], yyvsp[-6].v[2], yyvsp[-4].v[0], yyvsp[-4].v[1], yyvsp[-4].v[2], yyvsp[-2].d, - NULL, yyval.l); - ; - break;} -case 164: -#line 2185 "Gmsh.y" -{ + ;} + break; + + case 155: +#line 2109 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(Shape)); + ExtrudeShapes(TRANSLATE_ROTATE, (yyvsp[-3].l), + (yyvsp[-12].v)[0], (yyvsp[-12].v)[1], (yyvsp[-12].v)[2], (yyvsp[-10].v)[0], (yyvsp[-10].v)[1], (yyvsp[-10].v)[2], (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].d), + &extr, (yyval.l)); + List_Delete((yyvsp[-3].l)); + ;} + break; + + case 156: +#line 2119 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(Shape)); + ExtrudeShape(TRANSLATE, MSH_POINT, (int)(yyvsp[-4].d), + (yyvsp[-2].v)[0], (yyvsp[-2].v)[1], (yyvsp[-2].v)[2], 0., 0., 0., 0., 0., 0., 0., + NULL, (yyval.l)); + ;} + break; + + case 157: +#line 2126 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(Shape)); + ExtrudeShape(TRANSLATE, MSH_SEGM_LINE, (int)(yyvsp[-4].d), + (yyvsp[-2].v)[0], (yyvsp[-2].v)[1], (yyvsp[-2].v)[2], 0., 0., 0., 0., 0., 0., 0., + NULL, (yyval.l)); + ;} + break; + + case 158: +#line 2133 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(Shape)); + ExtrudeShape(TRANSLATE, MSH_SURF_PLAN, (int)(yyvsp[-4].d), + (yyvsp[-2].v)[0], (yyvsp[-2].v)[1], (yyvsp[-2].v)[2], 0., 0., 0., 0., 0., 0., 0., + NULL, (yyval.l)); + ;} + break; + + case 159: +#line 2140 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(Shape)); + ExtrudeShape(ROTATE, MSH_POINT, (int)(yyvsp[-8].d), + 0., 0., 0., (yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], (yyvsp[-4].v)[0], (yyvsp[-4].v)[1], (yyvsp[-4].v)[2], (yyvsp[-2].d), + NULL, (yyval.l)); + ;} + break; + + case 160: +#line 2147 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(Shape)); + ExtrudeShape(ROTATE, MSH_SEGM_LINE, (int)(yyvsp[-8].d), + 0., 0., 0., (yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], (yyvsp[-4].v)[0], (yyvsp[-4].v)[1], (yyvsp[-4].v)[2], (yyvsp[-2].d), + NULL, (yyval.l)); + ;} + break; + + case 161: +#line 2154 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(Shape)); + ExtrudeShape(ROTATE, MSH_SURF_PLAN, (int)(yyvsp[-8].d), + 0., 0., 0., (yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], (yyvsp[-4].v)[0], (yyvsp[-4].v)[1], (yyvsp[-4].v)[2], (yyvsp[-2].d), + NULL, (yyval.l)); + ;} + break; + + case 162: +#line 2161 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(Shape)); + ExtrudeShape(TRANSLATE_ROTATE, MSH_POINT, (int)(yyvsp[-10].d), + (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], (yyvsp[-4].v)[0], (yyvsp[-4].v)[1], (yyvsp[-4].v)[2], (yyvsp[-2].d), + NULL, (yyval.l)); + ;} + break; + + case 163: +#line 2168 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(Shape)); + ExtrudeShape(TRANSLATE_ROTATE, MSH_SEGM_LINE, (int)(yyvsp[-10].d), + (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], (yyvsp[-4].v)[0], (yyvsp[-4].v)[1], (yyvsp[-4].v)[2], (yyvsp[-2].d), + NULL, (yyval.l)); + ;} + break; + + case 164: +#line 2175 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(Shape)); + ExtrudeShape(TRANSLATE_ROTATE, MSH_SURF_PLAN, (int)(yyvsp[-10].d), + (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], (yyvsp[-4].v)[0], (yyvsp[-4].v)[1], (yyvsp[-4].v)[2], (yyvsp[-2].d), + NULL, (yyval.l)); + ;} + break; + + case 165: +#line 2182 "Gmsh.y" + { extr.mesh.ExtrudeMesh = false; extr.mesh.Recombine = false; - ; - break;} -case 165: -#line 2190 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(TRANSLATE, MSH_POINT, (int)yyvsp[-8].d, - yyvsp[-6].v[0], yyvsp[-6].v[1], yyvsp[-6].v[2], 0., 0., 0., 0., 0., 0., 0., - &extr, yyval.l); - ; - break;} -case 166: -#line 2197 "Gmsh.y" -{ + ;} + break; + + case 166: +#line 2187 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(Shape)); + ExtrudeShape(TRANSLATE, MSH_POINT, (int)(yyvsp[-8].d), + (yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], 0., 0., 0., 0., 0., 0., 0., + &extr, (yyval.l)); + ;} + break; + + case 167: +#line 2194 "Gmsh.y" + { extr.mesh.ExtrudeMesh = false; extr.mesh.Recombine = false; - ; - break;} -case 167: -#line 2202 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(TRANSLATE, MSH_SEGM_LINE, (int)yyvsp[-8].d, - yyvsp[-6].v[0], yyvsp[-6].v[1], yyvsp[-6].v[2], 0., 0., 0., 0., 0., 0., 0., - &extr, yyval.l); - ; - break;} -case 168: -#line 2209 "Gmsh.y" -{ + ;} + break; + + case 168: +#line 2199 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(Shape)); + ExtrudeShape(TRANSLATE, MSH_SEGM_LINE, (int)(yyvsp[-8].d), + (yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], 0., 0., 0., 0., 0., 0., 0., + &extr, (yyval.l)); + ;} + break; + + case 169: +#line 2206 "Gmsh.y" + { extr.mesh.ExtrudeMesh = false; extr.mesh.Recombine = false; - ; - break;} -case 169: -#line 2214 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(TRANSLATE, MSH_SURF_PLAN, (int)yyvsp[-8].d, - yyvsp[-6].v[0], yyvsp[-6].v[1], yyvsp[-6].v[2], 0., 0., 0., 0., 0., 0., 0., - &extr, yyval.l); - ; - break;} -case 170: -#line 2221 "Gmsh.y" -{ + ;} + break; + + case 170: +#line 2211 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(Shape)); + ExtrudeShape(TRANSLATE, MSH_SURF_PLAN, (int)(yyvsp[-8].d), + (yyvsp[-6].v)[0], (yyvsp[-6].v)[1], (yyvsp[-6].v)[2], 0., 0., 0., 0., 0., 0., 0., + &extr, (yyval.l)); + ;} + break; + + case 171: +#line 2218 "Gmsh.y" + { extr.mesh.ExtrudeMesh = false; extr.mesh.Recombine = false; - ; - break;} -case 171: -#line 2226 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(ROTATE, MSH_POINT, (int)yyvsp[-12].d, - 0., 0., 0., yyvsp[-10].v[0], yyvsp[-10].v[1], yyvsp[-10].v[2], yyvsp[-8].v[0], yyvsp[-8].v[1], yyvsp[-8].v[2], yyvsp[-6].d, - &extr, yyval.l); - ; - break;} -case 172: -#line 2233 "Gmsh.y" -{ + ;} + break; + + case 172: +#line 2223 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(Shape)); + ExtrudeShape(ROTATE, MSH_POINT, (int)(yyvsp[-12].d), + 0., 0., 0., (yyvsp[-10].v)[0], (yyvsp[-10].v)[1], (yyvsp[-10].v)[2], (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].d), + &extr, (yyval.l)); + ;} + break; + + case 173: +#line 2230 "Gmsh.y" + { extr.mesh.ExtrudeMesh = false; extr.mesh.Recombine = false; - ; - break;} -case 173: -#line 2238 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(ROTATE, MSH_SEGM_LINE, (int)yyvsp[-12].d, - 0., 0., 0., yyvsp[-10].v[0], yyvsp[-10].v[1], yyvsp[-10].v[2], yyvsp[-8].v[0], yyvsp[-8].v[1], yyvsp[-8].v[2], yyvsp[-6].d, - &extr, yyval.l); - ; - break;} -case 174: -#line 2245 "Gmsh.y" -{ + ;} + break; + + case 174: +#line 2235 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(Shape)); + ExtrudeShape(ROTATE, MSH_SEGM_LINE, (int)(yyvsp[-12].d), + 0., 0., 0., (yyvsp[-10].v)[0], (yyvsp[-10].v)[1], (yyvsp[-10].v)[2], (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].d), + &extr, (yyval.l)); + ;} + break; + + case 175: +#line 2242 "Gmsh.y" + { extr.mesh.ExtrudeMesh = false; extr.mesh.Recombine = false; - ; - break;} -case 175: -#line 2250 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(ROTATE, MSH_SURF_PLAN, (int)yyvsp[-12].d, - 0., 0., 0., yyvsp[-10].v[0], yyvsp[-10].v[1], yyvsp[-10].v[2], yyvsp[-8].v[0], yyvsp[-8].v[1], yyvsp[-8].v[2], yyvsp[-6].d, - &extr, yyval.l); - ; - break;} -case 176: -#line 2257 "Gmsh.y" -{ + ;} + break; + + case 176: +#line 2247 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(Shape)); + ExtrudeShape(ROTATE, MSH_SURF_PLAN, (int)(yyvsp[-12].d), + 0., 0., 0., (yyvsp[-10].v)[0], (yyvsp[-10].v)[1], (yyvsp[-10].v)[2], (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].d), + &extr, (yyval.l)); + ;} + break; + + case 177: +#line 2254 "Gmsh.y" + { extr.mesh.ExtrudeMesh = false; extr.mesh.Recombine = false; - ; - break;} -case 177: -#line 2262 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(TRANSLATE_ROTATE, MSH_POINT, (int)yyvsp[-14].d, - yyvsp[-12].v[0], yyvsp[-12].v[1], yyvsp[-12].v[2], yyvsp[-10].v[0], yyvsp[-10].v[1], yyvsp[-10].v[2], yyvsp[-8].v[0], yyvsp[-8].v[1], yyvsp[-8].v[2], yyvsp[-6].d, - &extr, yyval.l); - ; - break;} -case 178: -#line 2269 "Gmsh.y" -{ + ;} + break; + + case 178: +#line 2259 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(Shape)); + ExtrudeShape(TRANSLATE_ROTATE, MSH_POINT, (int)(yyvsp[-14].d), + (yyvsp[-12].v)[0], (yyvsp[-12].v)[1], (yyvsp[-12].v)[2], (yyvsp[-10].v)[0], (yyvsp[-10].v)[1], (yyvsp[-10].v)[2], (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].d), + &extr, (yyval.l)); + ;} + break; + + case 179: +#line 2266 "Gmsh.y" + { extr.mesh.ExtrudeMesh = false; extr.mesh.Recombine = false; - ; - break;} -case 179: -#line 2274 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(TRANSLATE_ROTATE, MSH_SEGM_LINE, (int)yyvsp[-14].d, - yyvsp[-12].v[0], yyvsp[-12].v[1], yyvsp[-12].v[2], yyvsp[-10].v[0], yyvsp[-10].v[1], yyvsp[-10].v[2], yyvsp[-8].v[0], yyvsp[-8].v[1], yyvsp[-8].v[2], yyvsp[-6].d, - &extr, yyval.l); - ; - break;} -case 180: -#line 2281 "Gmsh.y" -{ + ;} + break; + + case 180: +#line 2271 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(Shape)); + ExtrudeShape(TRANSLATE_ROTATE, MSH_SEGM_LINE, (int)(yyvsp[-14].d), + (yyvsp[-12].v)[0], (yyvsp[-12].v)[1], (yyvsp[-12].v)[2], (yyvsp[-10].v)[0], (yyvsp[-10].v)[1], (yyvsp[-10].v)[2], (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].d), + &extr, (yyval.l)); + ;} + break; + + case 181: +#line 2278 "Gmsh.y" + { extr.mesh.ExtrudeMesh = false; extr.mesh.Recombine = false; - ; - break;} -case 181: -#line 2286 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(Shape)); - ExtrudeShape(TRANSLATE_ROTATE, MSH_SURF_PLAN, (int)yyvsp[-14].d, - yyvsp[-12].v[0], yyvsp[-12].v[1], yyvsp[-12].v[2], yyvsp[-10].v[0], yyvsp[-10].v[1], yyvsp[-10].v[2], yyvsp[-8].v[0], yyvsp[-8].v[1], yyvsp[-8].v[2], yyvsp[-6].d, - &extr, yyval.l); - ; - break;} -case 182: + ;} + break; + + case 182: +#line 2283 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(Shape)); + ExtrudeShape(TRANSLATE_ROTATE, MSH_SURF_PLAN, (int)(yyvsp[-14].d), + (yyvsp[-12].v)[0], (yyvsp[-12].v)[1], (yyvsp[-12].v)[2], (yyvsp[-10].v)[0], (yyvsp[-10].v)[1], (yyvsp[-10].v)[2], (yyvsp[-8].v)[0], (yyvsp[-8].v)[1], (yyvsp[-8].v)[2], (yyvsp[-6].d), + &extr, (yyval.l)); + ;} + break; + + case 183: +#line 2294 "Gmsh.y" + { + ;} + break; + + case 184: #line 2297 "Gmsh.y" -{ - ; - break;} -case 183: -#line 2300 "Gmsh.y" -{ - ; - break;} -case 184: -#line 2306 "Gmsh.y" -{ + { + ;} + break; + + case 185: +#line 2303 "Gmsh.y" + { double d; extr.mesh.ExtrudeMesh = true; - extr.mesh.NbLayer = List_Nbr(yyvsp[-6].l); - if(List_Nbr(yyvsp[-6].l) == List_Nbr(yyvsp[-4].l) && List_Nbr(yyvsp[-6].l) == List_Nbr(yyvsp[-2].l)){ + extr.mesh.NbLayer = List_Nbr((yyvsp[-6].l)); + if(List_Nbr((yyvsp[-6].l)) == List_Nbr((yyvsp[-4].l)) && List_Nbr((yyvsp[-6].l)) == List_Nbr((yyvsp[-2].l))){ extr.mesh.NbElmLayer = (int*)Malloc(extr.mesh.NbLayer*sizeof(int)); extr.mesh.ZonLayer = (int*)Malloc(extr.mesh.NbLayer*sizeof(int)); extr.mesh.hLayer = (double*)Malloc(extr.mesh.NbLayer*sizeof(double)); - for(int i = 0; i < List_Nbr(yyvsp[-6].l); i++){ - List_Read(yyvsp[-6].l, i, &d); + for(int i = 0; i < List_Nbr((yyvsp[-6].l)); i++){ + List_Read((yyvsp[-6].l), i, &d); extr.mesh.NbElmLayer[i] = (d>0)?(int)d:1; - List_Read(yyvsp[-4].l, i, &d); + List_Read((yyvsp[-4].l), i, &d); extr.mesh.ZonLayer[i] = (int)d; - List_Read(yyvsp[-2].l, i, &d); + List_Read((yyvsp[-2].l), i, &d); extr.mesh.hLayer[i] = d; } } else{ yymsg(GERROR, "Wrong layer definition {%d, %d, %d}", - List_Nbr(yyvsp[-6].l), List_Nbr(yyvsp[-4].l), List_Nbr(yyvsp[-2].l)); + List_Nbr((yyvsp[-6].l)), List_Nbr((yyvsp[-4].l)), List_Nbr((yyvsp[-2].l))); } - List_Delete(yyvsp[-6].l); - List_Delete(yyvsp[-4].l); - List_Delete(yyvsp[-2].l); - ; - break;} -case 185: -#line 2332 "Gmsh.y" -{ + List_Delete((yyvsp[-6].l)); + List_Delete((yyvsp[-4].l)); + List_Delete((yyvsp[-2].l)); + ;} + break; + + case 186: +#line 2329 "Gmsh.y" + { double d; extr.mesh.ExtrudeMesh = true; - extr.mesh.NbLayer = List_Nbr(yyvsp[-4].l); - if(List_Nbr(yyvsp[-4].l) == List_Nbr(yyvsp[-2].l)){ + extr.mesh.NbLayer = List_Nbr((yyvsp[-4].l)); + if(List_Nbr((yyvsp[-4].l)) == List_Nbr((yyvsp[-2].l))){ extr.mesh.NbElmLayer = (int*)Malloc(extr.mesh.NbLayer*sizeof(int)); extr.mesh.ZonLayer = (int*)Malloc(extr.mesh.NbLayer*sizeof(int)); extr.mesh.hLayer = (double*)Malloc(extr.mesh.NbLayer*sizeof(double)); - for(int i = 0; i < List_Nbr(yyvsp[-4].l); i++){ - List_Read(yyvsp[-4].l, i, &d); + for(int i = 0; i < List_Nbr((yyvsp[-4].l)); i++){ + List_Read((yyvsp[-4].l), i, &d); extr.mesh.NbElmLayer[i] = (d>0)?(int)d:1; extr.mesh.ZonLayer[i] = 0; - List_Read(yyvsp[-2].l, i, &d); + List_Read((yyvsp[-2].l), i, &d); extr.mesh.hLayer[i] = d; } } else{ yymsg(GERROR, "Wrong layer definition {%d, %d}", - List_Nbr(yyvsp[-4].l), List_Nbr(yyvsp[-2].l)); + List_Nbr((yyvsp[-4].l)), List_Nbr((yyvsp[-2].l))); } - List_Delete(yyvsp[-4].l); - List_Delete(yyvsp[-2].l); - ; - break;} -case 186: -#line 2356 "Gmsh.y" -{ + List_Delete((yyvsp[-4].l)); + List_Delete((yyvsp[-2].l)); + ;} + break; + + case 187: +#line 2353 "Gmsh.y" + { extr.mesh.Recombine = true; - ; - break;} -case 187: -#line 2365 "Gmsh.y" -{ - for(int i = 0; i < List_Nbr(yyvsp[-3].l); i++){ + ;} + break; + + case 188: +#line 2362 "Gmsh.y" + { + for(int i = 0; i < List_Nbr((yyvsp[-3].l)); i++){ double d; - List_Read(yyvsp[-3].l, i, &d); + List_Read((yyvsp[-3].l), i, &d); int j = (int)fabs(d); Curve *c = FindCurve(j, THEM); if(!c) yymsg(WARNING, "Unknown curve %d", j); else{ c->Method = TRANSFINI; - c->ipar[0] = (yyvsp[-1].d>2)?(int)yyvsp[-1].d:2; + c->ipar[0] = ((yyvsp[-1].d)>2)?(int)(yyvsp[-1].d):2; c->ipar[1] = sign(d); c->dpar[0] = 1.0; } } - List_Delete(yyvsp[-3].l); - ; - break;} -case 188: -#line 2383 "Gmsh.y" -{ - for(int i = 0; i < List_Nbr(yyvsp[-6].l); i++){ + List_Delete((yyvsp[-3].l)); + ;} + break; + + case 189: +#line 2380 "Gmsh.y" + { + for(int i = 0; i < List_Nbr((yyvsp[-6].l)); i++){ double d; - List_Read(yyvsp[-6].l, i, &d); + List_Read((yyvsp[-6].l), i, &d); int j = (int)fabs(d); Curve *c = FindCurve(j, THEM); if(!c) yymsg(WARNING, "Unknown curve %d", j); else{ c->Method = TRANSFINI; - c->ipar[0] = (yyvsp[-4].d>2)?(int)yyvsp[-4].d:2; + c->ipar[0] = ((yyvsp[-4].d)>2)?(int)(yyvsp[-4].d):2; c->ipar[1] = sign(d); /* Progresion : code 1 ou -1 */ - c->dpar[0] = fabs(yyvsp[-1].d); + c->dpar[0] = fabs((yyvsp[-1].d)); } } - List_Delete(yyvsp[-6].l); - ; - break;} -case 189: -#line 2401 "Gmsh.y" -{ - for(int i = 0; i < List_Nbr(yyvsp[-6].l); i++){ + List_Delete((yyvsp[-6].l)); + ;} + break; + + case 190: +#line 2398 "Gmsh.y" + { + for(int i = 0; i < List_Nbr((yyvsp[-6].l)); i++){ double d; - List_Read(yyvsp[-6].l, i, &d); + List_Read((yyvsp[-6].l), i, &d); int j = (int)fabs(d); Curve *c = FindCurve(j, THEM); if(!c) yymsg(WARNING, "Unknown curve %d", j); else{ c->Method = TRANSFINI; - c->ipar[0] = (yyvsp[-4].d>2)?(int)yyvsp[-4].d:2; + c->ipar[0] = ((yyvsp[-4].d)>2)?(int)(yyvsp[-4].d):2; c->ipar[1] = 2*sign(d); /* Bump : code 2 ou -2 */ - c->dpar[0] = fabs(yyvsp[-1].d); + c->dpar[0] = fabs((yyvsp[-1].d)); } } - List_Delete(yyvsp[-6].l); - ; - break;} -case 190: -#line 2419 "Gmsh.y" -{ - Surface *s = FindSurface((int)yyvsp[-4].d, THEM); + List_Delete((yyvsp[-6].l)); + ;} + break; + + case 191: +#line 2416 "Gmsh.y" + { + Surface *s = FindSurface((int)(yyvsp[-4].d), THEM); if(!s) - yymsg(WARNING, "Unknown surface %d", (int)yyvsp[-4].d); + yymsg(WARNING, "Unknown surface %d", (int)(yyvsp[-4].d)); else{ s->Method = TRANSFINI; s->Recombine_Dir = 1; - int k = List_Nbr(yyvsp[-1].l); + int k = List_Nbr((yyvsp[-1].l)); if(k != 3 && k != 4){ yymsg(GERROR, "Wrong definition of Transfinite Surface %d: " - "%d points instead of 3 or 4" , (int)yyvsp[-4].d, k); + "%d points instead of 3 or 4" , (int)(yyvsp[-4].d), k); } else{ List_Reset(s->TrsfPoints); for(int i = 0; i < k; i++){ double d; - List_Read(yyvsp[-1].l, i, &d); + List_Read((yyvsp[-1].l), i, &d); int j = (int)fabs(d); Vertex *v = FindPoint(j, THEM); if(!v) @@ -5186,33 +6025,34 @@ case 190: } } } - List_Delete(yyvsp[-1].l); - ; - break;} -case 191: -#line 2448 "Gmsh.y" -{ - Surface *s = FindSurface((int)yyvsp[-5].d, THEM); + List_Delete((yyvsp[-1].l)); + ;} + break; + + case 192: +#line 2445 "Gmsh.y" + { + Surface *s = FindSurface((int)(yyvsp[-5].d), THEM); if(!s) - yymsg(WARNING, "Unknown surface %d", (int)yyvsp[-5].d); + yymsg(WARNING, "Unknown surface %d", (int)(yyvsp[-5].d)); else{ s->Method = TRANSFINI; - int k = List_Nbr(yyvsp[-2].l); + int k = List_Nbr((yyvsp[-2].l)); if(k != 3 && k != 4){ yymsg(GERROR, "Wrong definition of Transfinite Surface %d: " - "%d points instead of 3 or 4" , (int)yyvsp[-5].d, k); + "%d points instead of 3 or 4" , (int)(yyvsp[-5].d), k); } else{ List_Reset(s->TrsfPoints); - if (!strcmp(yyvsp[-1].c, "Right")) + if (!strcmp((yyvsp[-1].c), "Right")) s->Recombine_Dir = 1; - else if (!strcmp(yyvsp[-1].c, "Left")) + else if (!strcmp((yyvsp[-1].c), "Left")) s->Recombine_Dir = -1; else s->Recombine_Dir = 0; for(int i = 0; i < k; i++){ double d; - List_Read(yyvsp[-2].l, i, &d); + List_Read((yyvsp[-2].l), i, &d); int j = (int)fabs(d); Vertex *v = FindPoint(j, THEM); if(!v) @@ -5222,27 +6062,28 @@ case 191: } } } - List_Delete(yyvsp[-2].l); - Free(yyvsp[-1].c); - ; - break;} -case 192: -#line 2483 "Gmsh.y" -{ - Surface *s = FindSurface((int)yyvsp[-4].d, THEM); + List_Delete((yyvsp[-2].l)); + Free((yyvsp[-1].c)); + ;} + break; + + case 193: +#line 2480 "Gmsh.y" + { + Surface *s = FindSurface((int)(yyvsp[-4].d), THEM); if(!s) - yymsg(WARNING, "Unknown surface %d", (int)yyvsp[-4].d); + yymsg(WARNING, "Unknown surface %d", (int)(yyvsp[-4].d)); else{ s->Method = ELLIPTIC; - int k = List_Nbr(yyvsp[-1].l); + int k = List_Nbr((yyvsp[-1].l)); if(k != 4) yymsg(GERROR, "Wrong definition of Elliptic Surface %d: " - "%d points instead of 4" , (int)yyvsp[-4].d, k); + "%d points instead of 4" , (int)(yyvsp[-4].d), k); else{ List_Reset(s->TrsfPoints); for(int i = 0; i < k; i++){ double d; - List_Read(yyvsp[-1].l, i, &d); + List_Read((yyvsp[-1].l), i, &d); int j = (int)fabs(d); Vertex *v = FindPoint(j, THEM); if(!v) @@ -5252,26 +6093,27 @@ case 192: } } } - List_Delete(yyvsp[-1].l); - ; - break;} -case 193: -#line 2510 "Gmsh.y" -{ - Volume *v = FindVolume((int)yyvsp[-4].d, THEM); + List_Delete((yyvsp[-1].l)); + ;} + break; + + case 194: +#line 2507 "Gmsh.y" + { + Volume *v = FindVolume((int)(yyvsp[-4].d), THEM); if(!v) - yymsg(WARNING, "Unknown volume %d", (int)yyvsp[-4].d); + yymsg(WARNING, "Unknown volume %d", (int)(yyvsp[-4].d)); else{ v->Method = TRANSFINI; - int k = List_Nbr(yyvsp[-1].l); + int k = List_Nbr((yyvsp[-1].l)); if(k != 6 && k != 8) yymsg(GERROR, "Wrong definition of Transfinite Volume %d: " - "%d points instead of 6 or 8" , (int)yyvsp[-4].d, k); + "%d points instead of 6 or 8" , (int)(yyvsp[-4].d), k); else{ List_Reset(v->TrsfPoints); for(int i = 0; i < k; i++){ double d; - List_Read(yyvsp[-1].l, i, &d); + List_Read((yyvsp[-1].l), i, &d); int j = (int)fabs(d); Vertex *vert = FindPoint(j, THEM); if(!vert) @@ -5281,1265 +6123,1450 @@ case 193: } } } - List_Delete(yyvsp[-1].l); - ; - break;} -case 194: -#line 2537 "Gmsh.y" -{ - for(int i = 0; i < List_Nbr(yyvsp[-3].l); i++){ + List_Delete((yyvsp[-1].l)); + ;} + break; + + case 195: +#line 2534 "Gmsh.y" + { + for(int i = 0; i < List_Nbr((yyvsp[-3].l)); i++){ double d; - List_Read(yyvsp[-3].l, i, &d); + List_Read((yyvsp[-3].l), i, &d); int j = (int)d; Surface *s = FindSurface(j, THEM); if(s){ s->Recombine = 1; - s->RecombineAngle = (yyvsp[-1].d > 0 && yyvsp[-1].d < 90) ? yyvsp[-1].d : 90; + s->RecombineAngle = ((yyvsp[-1].d) > 0 && (yyvsp[-1].d) < 90) ? (yyvsp[-1].d) : 90; } } - List_Delete(yyvsp[-3].l); - ; - break;} -case 195: -#line 2551 "Gmsh.y" -{ - for(int i = 0; i < List_Nbr(yyvsp[-1].l); i++){ + List_Delete((yyvsp[-3].l)); + ;} + break; + + case 196: +#line 2548 "Gmsh.y" + { + for(int i = 0; i < List_Nbr((yyvsp[-1].l)); i++){ double d; - List_Read(yyvsp[-1].l, i, &d); + List_Read((yyvsp[-1].l), i, &d); int j = (int)d; Surface *s = FindSurface(j, THEM); if(s){ s->Recombine = 1; } } - List_Delete(yyvsp[-1].l); - ; - break;} -case 196: -#line 2570 "Gmsh.y" -{ + List_Delete((yyvsp[-1].l)); + ;} + break; + + case 197: +#line 2567 "Gmsh.y" + { ReplaceAllDuplicates(THEM); - ; - break;} -case 197: -#line 2574 "Gmsh.y" -{ + ;} + break; + + case 198: +#line 2571 "Gmsh.y" + { IntersectAllSegmentsTogether(); - ; - break;} -case 198: + ;} + break; + + case 199: +#line 2580 "Gmsh.y" + { (yyval.d) = (yyvsp[0].d); ;} + break; + + case 200: +#line 2581 "Gmsh.y" + { (yyval.d) = (yyvsp[-1].d); ;} + break; + + case 201: +#line 2582 "Gmsh.y" + { (yyval.d) = -(yyvsp[0].d); ;} + break; + + case 202: #line 2583 "Gmsh.y" -{ yyval.d = yyvsp[0].d; ; - break;} -case 199: + { (yyval.d) = (yyvsp[0].d); ;} + break; + + case 203: #line 2584 "Gmsh.y" -{ yyval.d = yyvsp[-1].d; ; - break;} -case 200: + { (yyval.d) = !(yyvsp[0].d); ;} + break; + + case 204: #line 2585 "Gmsh.y" -{ yyval.d = -yyvsp[0].d; ; - break;} -case 201: + { (yyval.d) = (yyvsp[-2].d) - (yyvsp[0].d); ;} + break; + + case 205: #line 2586 "Gmsh.y" -{ yyval.d = yyvsp[0].d; ; - break;} -case 202: + { (yyval.d) = (yyvsp[-2].d) + (yyvsp[0].d); ;} + break; + + case 206: #line 2587 "Gmsh.y" -{ yyval.d = !yyvsp[0].d; ; - break;} -case 203: -#line 2588 "Gmsh.y" -{ yyval.d = yyvsp[-2].d - yyvsp[0].d; ; - break;} -case 204: + { (yyval.d) = (yyvsp[-2].d) * (yyvsp[0].d); ;} + break; + + case 207: #line 2589 "Gmsh.y" -{ yyval.d = yyvsp[-2].d + yyvsp[0].d; ; - break;} -case 205: -#line 2590 "Gmsh.y" -{ yyval.d = yyvsp[-2].d * yyvsp[0].d; ; - break;} -case 206: -#line 2592 "Gmsh.y" -{ - if(!yyvsp[0].d) - yymsg(GERROR, "Division by zero in '%g / %g'", yyvsp[-2].d, yyvsp[0].d); + { + if(!(yyvsp[0].d)) + yymsg(GERROR, "Division by zero in '%g / %g'", (yyvsp[-2].d), (yyvsp[0].d)); else - yyval.d = yyvsp[-2].d / yyvsp[0].d; - ; - break;} -case 207: + (yyval.d) = (yyvsp[-2].d) / (yyvsp[0].d); + ;} + break; + + case 208: +#line 2595 "Gmsh.y" + { (yyval.d) = (int)(yyvsp[-2].d) % (int)(yyvsp[0].d); ;} + break; + + case 209: +#line 2596 "Gmsh.y" + { (yyval.d) = pow((yyvsp[-2].d), (yyvsp[0].d)); ;} + break; + + case 210: +#line 2597 "Gmsh.y" + { (yyval.d) = (yyvsp[-2].d) < (yyvsp[0].d); ;} + break; + + case 211: #line 2598 "Gmsh.y" -{ yyval.d = (int)yyvsp[-2].d % (int)yyvsp[0].d; ; - break;} -case 208: + { (yyval.d) = (yyvsp[-2].d) > (yyvsp[0].d); ;} + break; + + case 212: #line 2599 "Gmsh.y" -{ yyval.d = pow(yyvsp[-2].d, yyvsp[0].d); ; - break;} -case 209: + { (yyval.d) = (yyvsp[-2].d) <= (yyvsp[0].d); ;} + break; + + case 213: #line 2600 "Gmsh.y" -{ yyval.d = yyvsp[-2].d < yyvsp[0].d; ; - break;} -case 210: + { (yyval.d) = (yyvsp[-2].d) >= (yyvsp[0].d); ;} + break; + + case 214: #line 2601 "Gmsh.y" -{ yyval.d = yyvsp[-2].d > yyvsp[0].d; ; - break;} -case 211: + { (yyval.d) = (yyvsp[-2].d) == (yyvsp[0].d); ;} + break; + + case 215: #line 2602 "Gmsh.y" -{ yyval.d = yyvsp[-2].d <= yyvsp[0].d; ; - break;} -case 212: + { (yyval.d) = (yyvsp[-2].d) != (yyvsp[0].d); ;} + break; + + case 216: #line 2603 "Gmsh.y" -{ yyval.d = yyvsp[-2].d >= yyvsp[0].d; ; - break;} -case 213: + { (yyval.d) = (yyvsp[-2].d) && (yyvsp[0].d); ;} + break; + + case 217: #line 2604 "Gmsh.y" -{ yyval.d = yyvsp[-2].d == yyvsp[0].d; ; - break;} -case 214: + { (yyval.d) = (yyvsp[-2].d) || (yyvsp[0].d); ;} + break; + + case 218: #line 2605 "Gmsh.y" -{ yyval.d = yyvsp[-2].d != yyvsp[0].d; ; - break;} -case 215: + { (yyval.d) = (yyvsp[-4].d)? (yyvsp[-2].d) : (yyvsp[0].d); ;} + break; + + case 219: #line 2606 "Gmsh.y" -{ yyval.d = yyvsp[-2].d && yyvsp[0].d; ; - break;} -case 216: + { (yyval.d) = exp((yyvsp[-1].d)); ;} + break; + + case 220: #line 2607 "Gmsh.y" -{ yyval.d = yyvsp[-2].d || yyvsp[0].d; ; - break;} -case 217: + { (yyval.d) = log((yyvsp[-1].d)); ;} + break; + + case 221: #line 2608 "Gmsh.y" -{ yyval.d = yyvsp[-4].d? yyvsp[-2].d : yyvsp[0].d; ; - break;} -case 218: + { (yyval.d) = log10((yyvsp[-1].d)); ;} + break; + + case 222: #line 2609 "Gmsh.y" -{ yyval.d = exp(yyvsp[-1].d); ; - break;} -case 219: + { (yyval.d) = sqrt((yyvsp[-1].d)); ;} + break; + + case 223: #line 2610 "Gmsh.y" -{ yyval.d = log(yyvsp[-1].d); ; - break;} -case 220: + { (yyval.d) = sin((yyvsp[-1].d)); ;} + break; + + case 224: #line 2611 "Gmsh.y" -{ yyval.d = log10(yyvsp[-1].d); ; - break;} -case 221: + { (yyval.d) = asin((yyvsp[-1].d)); ;} + break; + + case 225: #line 2612 "Gmsh.y" -{ yyval.d = sqrt(yyvsp[-1].d); ; - break;} -case 222: + { (yyval.d) = cos((yyvsp[-1].d)); ;} + break; + + case 226: #line 2613 "Gmsh.y" -{ yyval.d = sin(yyvsp[-1].d); ; - break;} -case 223: + { (yyval.d) = acos((yyvsp[-1].d)); ;} + break; + + case 227: #line 2614 "Gmsh.y" -{ yyval.d = asin(yyvsp[-1].d); ; - break;} -case 224: + { (yyval.d) = tan((yyvsp[-1].d)); ;} + break; + + case 228: #line 2615 "Gmsh.y" -{ yyval.d = cos(yyvsp[-1].d); ; - break;} -case 225: + { (yyval.d) = atan((yyvsp[-1].d)); ;} + break; + + case 229: #line 2616 "Gmsh.y" -{ yyval.d = acos(yyvsp[-1].d); ; - break;} -case 226: + { (yyval.d) = atan2((yyvsp[-3].d), (yyvsp[-1].d));;} + break; + + case 230: #line 2617 "Gmsh.y" -{ yyval.d = tan(yyvsp[-1].d); ; - break;} -case 227: + { (yyval.d) = sinh((yyvsp[-1].d)); ;} + break; + + case 231: #line 2618 "Gmsh.y" -{ yyval.d = atan(yyvsp[-1].d); ; - break;} -case 228: + { (yyval.d) = cosh((yyvsp[-1].d)); ;} + break; + + case 232: #line 2619 "Gmsh.y" -{ yyval.d = atan2(yyvsp[-3].d, yyvsp[-1].d);; - break;} -case 229: + { (yyval.d) = tanh((yyvsp[-1].d)); ;} + break; + + case 233: #line 2620 "Gmsh.y" -{ yyval.d = sinh(yyvsp[-1].d); ; - break;} -case 230: + { (yyval.d) = fabs((yyvsp[-1].d)); ;} + break; + + case 234: #line 2621 "Gmsh.y" -{ yyval.d = cosh(yyvsp[-1].d); ; - break;} -case 231: + { (yyval.d) = floor((yyvsp[-1].d)); ;} + break; + + case 235: #line 2622 "Gmsh.y" -{ yyval.d = tanh(yyvsp[-1].d); ; - break;} -case 232: + { (yyval.d) = ceil((yyvsp[-1].d)); ;} + break; + + case 236: #line 2623 "Gmsh.y" -{ yyval.d = fabs(yyvsp[-1].d); ; - break;} -case 233: + { (yyval.d) = fmod((yyvsp[-3].d), (yyvsp[-1].d)); ;} + break; + + case 237: #line 2624 "Gmsh.y" -{ yyval.d = floor(yyvsp[-1].d); ; - break;} -case 234: + { (yyval.d) = fmod((yyvsp[-3].d), (yyvsp[-1].d)); ;} + break; + + case 238: #line 2625 "Gmsh.y" -{ yyval.d = ceil(yyvsp[-1].d); ; - break;} -case 235: + { (yyval.d) = sqrt((yyvsp[-3].d)*(yyvsp[-3].d)+(yyvsp[-1].d)*(yyvsp[-1].d)); ;} + break; + + case 239: #line 2626 "Gmsh.y" -{ yyval.d = fmod(yyvsp[-3].d, yyvsp[-1].d); ; - break;} -case 236: -#line 2627 "Gmsh.y" -{ yyval.d = fmod(yyvsp[-3].d, yyvsp[-1].d); ; - break;} -case 237: + { (yyval.d) = (yyvsp[-1].d)*(double)rand()/(double)RAND_MAX; ;} + break; + + case 240: #line 2628 "Gmsh.y" -{ yyval.d = sqrt(yyvsp[-3].d*yyvsp[-3].d+yyvsp[-1].d*yyvsp[-1].d); ; - break;} -case 238: + { (yyval.d) = exp((yyvsp[-1].d)); ;} + break; + + case 241: #line 2629 "Gmsh.y" -{ yyval.d = yyvsp[-1].d*(double)rand()/(double)RAND_MAX; ; - break;} -case 239: + { (yyval.d) = log((yyvsp[-1].d)); ;} + break; + + case 242: +#line 2630 "Gmsh.y" + { (yyval.d) = log10((yyvsp[-1].d)); ;} + break; + + case 243: #line 2631 "Gmsh.y" -{ yyval.d = exp(yyvsp[-1].d); ; - break;} -case 240: + { (yyval.d) = sqrt((yyvsp[-1].d)); ;} + break; + + case 244: #line 2632 "Gmsh.y" -{ yyval.d = log(yyvsp[-1].d); ; - break;} -case 241: + { (yyval.d) = sin((yyvsp[-1].d)); ;} + break; + + case 245: #line 2633 "Gmsh.y" -{ yyval.d = log10(yyvsp[-1].d); ; - break;} -case 242: + { (yyval.d) = asin((yyvsp[-1].d)); ;} + break; + + case 246: #line 2634 "Gmsh.y" -{ yyval.d = sqrt(yyvsp[-1].d); ; - break;} -case 243: + { (yyval.d) = cos((yyvsp[-1].d)); ;} + break; + + case 247: #line 2635 "Gmsh.y" -{ yyval.d = sin(yyvsp[-1].d); ; - break;} -case 244: + { (yyval.d) = acos((yyvsp[-1].d)); ;} + break; + + case 248: #line 2636 "Gmsh.y" -{ yyval.d = asin(yyvsp[-1].d); ; - break;} -case 245: + { (yyval.d) = tan((yyvsp[-1].d)); ;} + break; + + case 249: #line 2637 "Gmsh.y" -{ yyval.d = cos(yyvsp[-1].d); ; - break;} -case 246: + { (yyval.d) = atan((yyvsp[-1].d)); ;} + break; + + case 250: #line 2638 "Gmsh.y" -{ yyval.d = acos(yyvsp[-1].d); ; - break;} -case 247: + { (yyval.d) = atan2((yyvsp[-3].d), (yyvsp[-1].d));;} + break; + + case 251: #line 2639 "Gmsh.y" -{ yyval.d = tan(yyvsp[-1].d); ; - break;} -case 248: + { (yyval.d) = sinh((yyvsp[-1].d)); ;} + break; + + case 252: #line 2640 "Gmsh.y" -{ yyval.d = atan(yyvsp[-1].d); ; - break;} -case 249: + { (yyval.d) = cosh((yyvsp[-1].d)); ;} + break; + + case 253: #line 2641 "Gmsh.y" -{ yyval.d = atan2(yyvsp[-3].d, yyvsp[-1].d);; - break;} -case 250: + { (yyval.d) = tanh((yyvsp[-1].d)); ;} + break; + + case 254: #line 2642 "Gmsh.y" -{ yyval.d = sinh(yyvsp[-1].d); ; - break;} -case 251: + { (yyval.d) = fabs((yyvsp[-1].d)); ;} + break; + + case 255: #line 2643 "Gmsh.y" -{ yyval.d = cosh(yyvsp[-1].d); ; - break;} -case 252: + { (yyval.d) = floor((yyvsp[-1].d)); ;} + break; + + case 256: #line 2644 "Gmsh.y" -{ yyval.d = tanh(yyvsp[-1].d); ; - break;} -case 253: + { (yyval.d) = ceil((yyvsp[-1].d)); ;} + break; + + case 257: #line 2645 "Gmsh.y" -{ yyval.d = fabs(yyvsp[-1].d); ; - break;} -case 254: + { (yyval.d) = fmod((yyvsp[-3].d), (yyvsp[-1].d)); ;} + break; + + case 258: #line 2646 "Gmsh.y" -{ yyval.d = floor(yyvsp[-1].d); ; - break;} -case 255: + { (yyval.d) = fmod((yyvsp[-3].d), (yyvsp[-1].d)); ;} + break; + + case 259: #line 2647 "Gmsh.y" -{ yyval.d = ceil(yyvsp[-1].d); ; - break;} -case 256: + { (yyval.d) = sqrt((yyvsp[-3].d)*(yyvsp[-3].d)+(yyvsp[-1].d)*(yyvsp[-1].d)); ;} + break; + + case 260: #line 2648 "Gmsh.y" -{ yyval.d = fmod(yyvsp[-3].d, yyvsp[-1].d); ; - break;} -case 257: -#line 2649 "Gmsh.y" -{ yyval.d = fmod(yyvsp[-3].d, yyvsp[-1].d); ; - break;} -case 258: -#line 2650 "Gmsh.y" -{ yyval.d = sqrt(yyvsp[-3].d*yyvsp[-3].d+yyvsp[-1].d*yyvsp[-1].d); ; - break;} -case 259: -#line 2651 "Gmsh.y" -{ yyval.d = yyvsp[-1].d*(double)rand()/(double)RAND_MAX; ; - break;} -case 260: + { (yyval.d) = (yyvsp[-1].d)*(double)rand()/(double)RAND_MAX; ;} + break; + + case 261: +#line 2657 "Gmsh.y" + { (yyval.d) = (yyvsp[0].d); ;} + break; + + case 262: +#line 2658 "Gmsh.y" + { (yyval.d) = 3.141592653589793; ;} + break; + + case 263: +#line 2659 "Gmsh.y" + { (yyval.d) = ParUtil::Instance()->rank(); ;} + break; + + case 264: #line 2660 "Gmsh.y" -{ yyval.d = yyvsp[0].d; ; - break;} -case 261: + { (yyval.d) = ParUtil::Instance()->size(); ;} + break; + + case 265: #line 2661 "Gmsh.y" -{ yyval.d = 3.141592653589793; ; - break;} -case 262: + { (yyval.d) = GMSH_MAJOR_VERSION; ;} + break; + + case 266: #line 2662 "Gmsh.y" -{ yyval.d = ParUtil::Instance()->rank(); ; - break;} -case 263: + { (yyval.d) = GMSH_MINOR_VERSION; ;} + break; + + case 267: #line 2663 "Gmsh.y" -{ yyval.d = ParUtil::Instance()->size(); ; - break;} -case 264: -#line 2664 "Gmsh.y" -{ yyval.d = GMSH_MAJOR_VERSION; ; - break;} -case 265: -#line 2665 "Gmsh.y" -{ yyval.d = GMSH_MINOR_VERSION; ; - break;} -case 266: -#line 2666 "Gmsh.y" -{ yyval.d = GMSH_PATCH_VERSION; ; - break;} -case 267: -#line 2671 "Gmsh.y" -{ + { (yyval.d) = GMSH_PATCH_VERSION; ;} + break; + + case 268: +#line 2668 "Gmsh.y" + { Symbol TheSymbol; - TheSymbol.Name = yyvsp[0].c; + TheSymbol.Name = (yyvsp[0].c); Symbol *pSymbol; if(!(pSymbol = (Symbol*)Tree_PQuery(Symbol_T, &TheSymbol))) { - yymsg(GERROR, "Unknown variable '%s'", yyvsp[0].c); - yyval.d = 0.; + yymsg(GERROR, "Unknown variable '%s'", (yyvsp[0].c)); + (yyval.d) = 0.; } else - yyval.d = *(double*)List_Pointer_Fast(pSymbol->val, 0); - Free(yyvsp[0].c); - ; - break;} -case 268: -#line 2684 "Gmsh.y" -{ + (yyval.d) = *(double*)List_Pointer_Fast(pSymbol->val, 0); + Free((yyvsp[0].c)); + ;} + break; + + case 269: +#line 2681 "Gmsh.y" + { Symbol TheSymbol; - TheSymbol.Name = yyvsp[-3].c; + TheSymbol.Name = (yyvsp[-3].c); Symbol *pSymbol; if(!(pSymbol = (Symbol*)Tree_PQuery(Symbol_T, &TheSymbol))) { - yymsg(GERROR, "Unknown variable '%s'", yyvsp[-3].c); - yyval.d = 0.; + yymsg(GERROR, "Unknown variable '%s'", (yyvsp[-3].c)); + (yyval.d) = 0.; } else{ double *pd; - if((pd = (double*)List_Pointer_Test(pSymbol->val, (int)yyvsp[-1].d))) - yyval.d = *pd; + if((pd = (double*)List_Pointer_Test(pSymbol->val, (int)(yyvsp[-1].d)))) + (yyval.d) = *pd; else{ - yymsg(GERROR, "Uninitialized variable '%s[%d]'", yyvsp[-3].c, (int)yyvsp[-1].d); - yyval.d = 0.; + yymsg(GERROR, "Uninitialized variable '%s[%d]'", (yyvsp[-3].c), (int)(yyvsp[-1].d)); + (yyval.d) = 0.; } } - Free(yyvsp[-3].c); - ; - break;} -case 269: -#line 2704 "Gmsh.y" -{ + Free((yyvsp[-3].c)); + ;} + break; + + case 270: +#line 2701 "Gmsh.y" + { Symbol TheSymbol; - TheSymbol.Name = yyvsp[-2].c; + TheSymbol.Name = (yyvsp[-2].c); Symbol *pSymbol; if(!(pSymbol = (Symbol*)Tree_PQuery(Symbol_T, &TheSymbol))) { - yymsg(GERROR, "Unknown variable '%s'", yyvsp[-2].c); - yyval.d = 0.; + yymsg(GERROR, "Unknown variable '%s'", (yyvsp[-2].c)); + (yyval.d) = 0.; } else{ - yyval.d = List_Nbr(pSymbol->val); + (yyval.d) = List_Nbr(pSymbol->val); } - Free(yyvsp[-2].c); - ; - break;} -case 270: -#line 2718 "Gmsh.y" -{ + Free((yyvsp[-2].c)); + ;} + break; + + case 271: +#line 2715 "Gmsh.y" + { Symbol TheSymbol; - TheSymbol.Name = yyvsp[-1].c; + TheSymbol.Name = (yyvsp[-1].c); Symbol *pSymbol; if(!(pSymbol = (Symbol*)Tree_PQuery(Symbol_T, &TheSymbol))) { - yymsg(GERROR, "Unknown variable '%s'", yyvsp[-1].c); - yyval.d = 0.; + yymsg(GERROR, "Unknown variable '%s'", (yyvsp[-1].c)); + (yyval.d) = 0.; } else - yyval.d = (*(double*)List_Pointer_Fast(pSymbol->val, 0) += yyvsp[0].i); - Free(yyvsp[-1].c); - ; - break;} -case 271: -#line 2731 "Gmsh.y" -{ + (yyval.d) = (*(double*)List_Pointer_Fast(pSymbol->val, 0) += (yyvsp[0].i)); + Free((yyvsp[-1].c)); + ;} + break; + + case 272: +#line 2728 "Gmsh.y" + { Symbol TheSymbol; - TheSymbol.Name = yyvsp[-4].c; + TheSymbol.Name = (yyvsp[-4].c); Symbol *pSymbol; if(!(pSymbol = (Symbol*)Tree_PQuery(Symbol_T, &TheSymbol))) { - yymsg(GERROR, "Unknown variable '%s'", yyvsp[-4].c); - yyval.d = 0.; + yymsg(GERROR, "Unknown variable '%s'", (yyvsp[-4].c)); + (yyval.d) = 0.; } else{ double *pd; - if((pd = (double*)List_Pointer_Test(pSymbol->val, (int)yyvsp[-2].d))) - yyval.d = (*pd += yyvsp[0].i); + if((pd = (double*)List_Pointer_Test(pSymbol->val, (int)(yyvsp[-2].d)))) + (yyval.d) = (*pd += (yyvsp[0].i)); else{ - yymsg(GERROR, "Uninitialized variable '%s[%d]'", yyvsp[-4].c, (int)yyvsp[-2].d); - yyval.d = 0.; + yymsg(GERROR, "Uninitialized variable '%s[%d]'", (yyvsp[-4].c), (int)(yyvsp[-2].d)); + (yyval.d) = 0.; } } - Free(yyvsp[-4].c); - ; - break;} -case 272: -#line 2754 "Gmsh.y" -{ + Free((yyvsp[-4].c)); + ;} + break; + + case 273: +#line 2751 "Gmsh.y" + { double (*pNumOpt)(int num, int action, double value); StringXNumber *pNumCat; - if(!(pNumCat = Get_NumberOptionCategory(yyvsp[-2].c))){ - yymsg(GERROR, "Unknown numeric option class '%s'", yyvsp[-2].c); - yyval.d = 0.; + if(!(pNumCat = Get_NumberOptionCategory((yyvsp[-2].c)))){ + yymsg(GERROR, "Unknown numeric option class '%s'", (yyvsp[-2].c)); + (yyval.d) = 0.; } else{ - if(!(pNumOpt = (double (*) (int, int, double))Get_NumberOption(yyvsp[0].c, pNumCat))){ - yymsg(GERROR, "Unknown numeric option '%s.%s'", yyvsp[-2].c, yyvsp[0].c); - yyval.d = 0.; + if(!(pNumOpt = (double (*) (int, int, double))Get_NumberOption((yyvsp[0].c), pNumCat))){ + yymsg(GERROR, "Unknown numeric option '%s.%s'", (yyvsp[-2].c), (yyvsp[0].c)); + (yyval.d) = 0.; } else - yyval.d = pNumOpt(0, GMSH_GET, 0); + (yyval.d) = pNumOpt(0, GMSH_GET, 0); } - Free(yyvsp[-2].c); Free(yyvsp[0].c); - ; - break;} -case 273: -#line 2772 "Gmsh.y" -{ + Free((yyvsp[-2].c)); Free((yyvsp[0].c)); + ;} + break; + + case 274: +#line 2769 "Gmsh.y" + { double (*pNumOpt)(int num, int action, double value); StringXNumber *pNumCat; - if(!(pNumCat = Get_NumberOptionCategory(yyvsp[-5].c))){ - yymsg(GERROR, "Unknown numeric option class '%s'", yyvsp[-5].c); - yyval.d = 0.; + if(!(pNumCat = Get_NumberOptionCategory((yyvsp[-5].c)))){ + yymsg(GERROR, "Unknown numeric option class '%s'", (yyvsp[-5].c)); + (yyval.d) = 0.; } else{ - if(!(pNumOpt = (double (*) (int, int, double))Get_NumberOption(yyvsp[0].c, pNumCat))){ - yymsg(GERROR, "Unknown numeric option '%s[%d].%s'", yyvsp[-5].c, (int)yyvsp[-3].d, yyvsp[0].c); - yyval.d = 0.; + if(!(pNumOpt = (double (*) (int, int, double))Get_NumberOption((yyvsp[0].c), pNumCat))){ + yymsg(GERROR, "Unknown numeric option '%s[%d].%s'", (yyvsp[-5].c), (int)(yyvsp[-3].d), (yyvsp[0].c)); + (yyval.d) = 0.; } else - yyval.d = pNumOpt((int)yyvsp[-3].d, GMSH_GET, 0); + (yyval.d) = pNumOpt((int)(yyvsp[-3].d), GMSH_GET, 0); } - Free(yyvsp[-5].c); Free(yyvsp[0].c); - ; - break;} -case 274: -#line 2790 "Gmsh.y" -{ + Free((yyvsp[-5].c)); Free((yyvsp[0].c)); + ;} + break; + + case 275: +#line 2787 "Gmsh.y" + { double (*pNumOpt)(int num, int action, double value); StringXNumber *pNumCat; - if(!(pNumCat = Get_NumberOptionCategory(yyvsp[-3].c))){ - yymsg(GERROR, "Unknown numeric option class '%s'", yyvsp[-3].c); - yyval.d = 0.; + if(!(pNumCat = Get_NumberOptionCategory((yyvsp[-3].c)))){ + yymsg(GERROR, "Unknown numeric option class '%s'", (yyvsp[-3].c)); + (yyval.d) = 0.; } else{ - if(!(pNumOpt = (double (*) (int, int, double))Get_NumberOption(yyvsp[-1].c, pNumCat))){ - yymsg(GERROR, "Unknown numeric option '%s.%s'", yyvsp[-3].c, yyvsp[-1].c); - yyval.d = 0.; + if(!(pNumOpt = (double (*) (int, int, double))Get_NumberOption((yyvsp[-1].c), pNumCat))){ + yymsg(GERROR, "Unknown numeric option '%s.%s'", (yyvsp[-3].c), (yyvsp[-1].c)); + (yyval.d) = 0.; } else - yyval.d = pNumOpt(0, GMSH_SET|GMSH_GUI, pNumOpt(0, GMSH_GET, 0)+yyvsp[0].i); + (yyval.d) = pNumOpt(0, GMSH_SET|GMSH_GUI, pNumOpt(0, GMSH_GET, 0)+(yyvsp[0].i)); } - Free(yyvsp[-3].c); Free(yyvsp[-1].c); - ; - break;} -case 275: -#line 2808 "Gmsh.y" -{ + Free((yyvsp[-3].c)); Free((yyvsp[-1].c)); + ;} + break; + + case 276: +#line 2805 "Gmsh.y" + { double (*pNumOpt)(int num, int action, double value); StringXNumber *pNumCat; - if(!(pNumCat = Get_NumberOptionCategory(yyvsp[-6].c))){ - yymsg(GERROR, "Unknown numeric option class '%s'", yyvsp[-6].c); - yyval.d = 0.; + if(!(pNumCat = Get_NumberOptionCategory((yyvsp[-6].c)))){ + yymsg(GERROR, "Unknown numeric option class '%s'", (yyvsp[-6].c)); + (yyval.d) = 0.; } else{ - if(!(pNumOpt = (double (*) (int, int, double))Get_NumberOption(yyvsp[-1].c, pNumCat))){ - yymsg(GERROR, "Unknown numeric option '%s[%d].%s'", yyvsp[-6].c, (int)yyvsp[-4].d, yyvsp[-1].c); - yyval.d = 0.; + if(!(pNumOpt = (double (*) (int, int, double))Get_NumberOption((yyvsp[-1].c), pNumCat))){ + yymsg(GERROR, "Unknown numeric option '%s[%d].%s'", (yyvsp[-6].c), (int)(yyvsp[-4].d), (yyvsp[-1].c)); + (yyval.d) = 0.; } else - yyval.d = pNumOpt((int)yyvsp[-4].d, GMSH_SET|GMSH_GUI, pNumOpt((int)yyvsp[-4].d, GMSH_GET, 0)+yyvsp[0].i); - } - Free(yyvsp[-6].c); Free(yyvsp[-1].c); - ; - break;} -case 276: -#line 2826 "Gmsh.y" -{ - yyval.d = GetValue(yyvsp[-3].c, yyvsp[-1].d); - Free(yyvsp[-3].c); - ; - break;} -case 277: -#line 2834 "Gmsh.y" -{ - memcpy(yyval.v, yyvsp[0].v, 5*sizeof(double)); - ; - break;} -case 278: -#line 2838 "Gmsh.y" -{ - for(int i = 0; i < 5; i++) yyval.v[i] = -yyvsp[0].v[i]; - ; - break;} -case 279: -#line 2842 "Gmsh.y" -{ - for(int i = 0; i < 5; i++) yyval.v[i] = yyvsp[0].v[i]; - ; - break;} -case 280: -#line 2846 "Gmsh.y" -{ - for(int i = 0; i < 5; i++) yyval.v[i] = yyvsp[-2].v[i] - yyvsp[0].v[i]; - ; - break;} -case 281: -#line 2850 "Gmsh.y" -{ - for(int i = 0; i < 5; i++) yyval.v[i] = yyvsp[-2].v[i] + yyvsp[0].v[i]; - ; - break;} -case 282: -#line 2857 "Gmsh.y" -{ - yyval.v[0] = yyvsp[-9].d; yyval.v[1] = yyvsp[-7].d; yyval.v[2] = yyvsp[-5].d; yyval.v[3] = yyvsp[-3].d; yyval.v[4] = yyvsp[-1].d; - ; - break;} -case 283: -#line 2861 "Gmsh.y" -{ - yyval.v[0] = yyvsp[-7].d; yyval.v[1] = yyvsp[-5].d; yyval.v[2] = yyvsp[-3].d; yyval.v[3] = yyvsp[-1].d; yyval.v[4] = 1.0; - ; - break;} -case 284: -#line 2865 "Gmsh.y" -{ - yyval.v[0] = yyvsp[-5].d; yyval.v[1] = yyvsp[-3].d; yyval.v[2] = yyvsp[-1].d; yyval.v[3] = 0.0; yyval.v[4] = 1.0; - ; - break;} -case 285: -#line 2869 "Gmsh.y" -{ - yyval.v[0] = yyvsp[-5].d; yyval.v[1] = yyvsp[-3].d; yyval.v[2] = yyvsp[-1].d; yyval.v[3] = 0.0; yyval.v[4] = 1.0; - ; - break;} -case 286: + (yyval.d) = pNumOpt((int)(yyvsp[-4].d), GMSH_SET|GMSH_GUI, pNumOpt((int)(yyvsp[-4].d), GMSH_GET, 0)+(yyvsp[0].i)); + } + Free((yyvsp[-6].c)); Free((yyvsp[-1].c)); + ;} + break; + + case 277: +#line 2823 "Gmsh.y" + { + (yyval.d) = GetValue((yyvsp[-3].c), (yyvsp[-1].d)); + Free((yyvsp[-3].c)); + ;} + break; + + case 278: +#line 2831 "Gmsh.y" + { + memcpy((yyval.v), (yyvsp[0].v), 5*sizeof(double)); + ;} + break; + + case 279: +#line 2835 "Gmsh.y" + { + for(int i = 0; i < 5; i++) (yyval.v)[i] = -(yyvsp[0].v)[i]; + ;} + break; + + case 280: +#line 2839 "Gmsh.y" + { + for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[0].v)[i]; + ;} + break; + + case 281: +#line 2843 "Gmsh.y" + { + for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[-2].v)[i] - (yyvsp[0].v)[i]; + ;} + break; + + case 282: +#line 2847 "Gmsh.y" + { + for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[-2].v)[i] + (yyvsp[0].v)[i]; + ;} + break; + + case 283: +#line 2854 "Gmsh.y" + { + (yyval.v)[0] = (yyvsp[-9].d); (yyval.v)[1] = (yyvsp[-7].d); (yyval.v)[2] = (yyvsp[-5].d); (yyval.v)[3] = (yyvsp[-3].d); (yyval.v)[4] = (yyvsp[-1].d); + ;} + break; + + case 284: +#line 2858 "Gmsh.y" + { + (yyval.v)[0] = (yyvsp[-7].d); (yyval.v)[1] = (yyvsp[-5].d); (yyval.v)[2] = (yyvsp[-3].d); (yyval.v)[3] = (yyvsp[-1].d); (yyval.v)[4] = 1.0; + ;} + break; + + case 285: +#line 2862 "Gmsh.y" + { + (yyval.v)[0] = (yyvsp[-5].d); (yyval.v)[1] = (yyvsp[-3].d); (yyval.v)[2] = (yyvsp[-1].d); (yyval.v)[3] = 0.0; (yyval.v)[4] = 1.0; + ;} + break; + + case 286: +#line 2866 "Gmsh.y" + { + (yyval.v)[0] = (yyvsp[-5].d); (yyval.v)[1] = (yyvsp[-3].d); (yyval.v)[2] = (yyvsp[-1].d); (yyval.v)[3] = 0.0; (yyval.v)[4] = 1.0; + ;} + break; + + case 287: +#line 2873 "Gmsh.y" + { + ;} + break; + + case 288: #line 2876 "Gmsh.y" -{ - ; - break;} -case 287: -#line 2879 "Gmsh.y" -{ - yyval.l = yyvsp[-1].l; - ; - break;} -case 288: -#line 2883 "Gmsh.y" -{ - yyval.l = yyvsp[-1].l; - ; - break;} -case 289: -#line 2890 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(List_T*)); - List_Add(yyval.l, &(yyvsp[0].l)); - ; - break;} -case 290: -#line 2895 "Gmsh.y" -{ - List_Add(yyval.l, &(yyvsp[0].l)); - ; - break;} -case 291: -#line 2903 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(double)); - List_Add(yyval.l, &(yyvsp[0].d)); - ; - break;} -case 292: -#line 2908 "Gmsh.y" -{ - yyval.l = yyvsp[0].l; - ; - break;} -case 293: -#line 2912 "Gmsh.y" -{ + { + (yyval.l) = (yyvsp[-1].l); + ;} + break; + + case 289: +#line 2880 "Gmsh.y" + { + (yyval.l) = (yyvsp[-1].l); + ;} + break; + + case 290: +#line 2887 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(List_T*)); + List_Add((yyval.l), &((yyvsp[0].l))); + ;} + break; + + case 291: +#line 2892 "Gmsh.y" + { + List_Add((yyval.l), &((yyvsp[0].l))); + ;} + break; + + case 292: +#line 2900 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(double)); + List_Add((yyval.l), &((yyvsp[0].d))); + ;} + break; + + case 293: +#line 2905 "Gmsh.y" + { + (yyval.l) = (yyvsp[0].l); + ;} + break; + + case 294: +#line 2909 "Gmsh.y" + { // creates an empty list - yyval.l = List_Create(2, 1, sizeof(double)); - ; - break;} -case 294: -#line 2917 "Gmsh.y" -{ - yyval.l = yyvsp[-1].l; - ; - break;} -case 295: -#line 2921 "Gmsh.y" -{ - yyval.l = yyvsp[-1].l; + (yyval.l) = List_Create(2, 1, sizeof(double)); + ;} + break; + + case 295: +#line 2914 "Gmsh.y" + { + (yyval.l) = (yyvsp[-1].l); + ;} + break; + + case 296: +#line 2918 "Gmsh.y" + { + (yyval.l) = (yyvsp[-1].l); double *pd; - for(int i = 0; i < List_Nbr(yyval.l); i++){ - pd = (double*)List_Pointer(yyval.l, i); + for(int i = 0; i < List_Nbr((yyval.l)); i++){ + pd = (double*)List_Pointer((yyval.l), i); (*pd) = - (*pd); } - ; - break;} -case 296: -#line 2933 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(double)); - for(double d = yyvsp[-2].d; (yyvsp[-2].d < yyvsp[0].d) ? (d <= yyvsp[0].d) : (d >= yyvsp[0].d); (yyvsp[-2].d < yyvsp[0].d) ? (d += 1.) : (d -= 1.)) - List_Add(yyval.l, &d); - ; - break;} -case 297: -#line 2939 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(double)); - if(!yyvsp[0].d || (yyvsp[-4].d < yyvsp[-2].d && yyvsp[0].d < 0) || (yyvsp[-4].d > yyvsp[-2].d && yyvsp[0].d > 0)){ - yymsg(GERROR, "Wrong increment in '%g:%g:%g'", yyvsp[-4].d, yyvsp[-2].d, yyvsp[0].d); - List_Add(yyval.l, &(yyvsp[-4].d)); + ;} + break; + + case 297: +#line 2930 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(double)); + for(double d = (yyvsp[-2].d); ((yyvsp[-2].d) < (yyvsp[0].d)) ? (d <= (yyvsp[0].d)) : (d >= (yyvsp[0].d)); ((yyvsp[-2].d) < (yyvsp[0].d)) ? (d += 1.) : (d -= 1.)) + List_Add((yyval.l), &d); + ;} + break; + + case 298: +#line 2936 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(double)); + if(!(yyvsp[0].d) || ((yyvsp[-4].d) < (yyvsp[-2].d) && (yyvsp[0].d) < 0) || ((yyvsp[-4].d) > (yyvsp[-2].d) && (yyvsp[0].d) > 0)){ + yymsg(GERROR, "Wrong increment in '%g:%g:%g'", (yyvsp[-4].d), (yyvsp[-2].d), (yyvsp[0].d)); + List_Add((yyval.l), &((yyvsp[-4].d))); } else - for(double d = yyvsp[-4].d; (yyvsp[0].d > 0) ? (d <= yyvsp[-2].d) : (d >= yyvsp[-2].d); d += yyvsp[0].d) - List_Add(yyval.l, &d); - ; - break;} -case 298: -#line 2950 "Gmsh.y" -{ + for(double d = (yyvsp[-4].d); ((yyvsp[0].d) > 0) ? (d <= (yyvsp[-2].d)) : (d >= (yyvsp[-2].d)); d += (yyvsp[0].d)) + List_Add((yyval.l), &d); + ;} + break; + + case 299: +#line 2947 "Gmsh.y" + { // Returns the coordinates of a point and fills a list with it. // This allows to ensure e.g. that relative point positions are // always conserved - Vertex *v = FindPoint((int)yyvsp[-1].d, THEM); - yyval.l = List_Create(3, 1, sizeof(double)); + Vertex *v = FindPoint((int)(yyvsp[-1].d), THEM); + (yyval.l) = List_Create(3, 1, sizeof(double)); if(!v) { - yymsg(GERROR, "Unknown point '%d'", (int) yyvsp[-1].d); + yymsg(GERROR, "Unknown point '%d'", (int) (yyvsp[-1].d)); double d = 0.0; - List_Add(yyval.l, &d); - List_Add(yyval.l, &d); - List_Add(yyval.l, &d); + List_Add((yyval.l), &d); + List_Add((yyval.l), &d); + List_Add((yyval.l), &d); } else{ - List_Add(yyval.l, &v->Pos.X); - List_Add(yyval.l, &v->Pos.Y); - List_Add(yyval.l, &v->Pos.Z); + List_Add((yyval.l), &v->Pos.X); + List_Add((yyval.l), &v->Pos.Y); + List_Add((yyval.l), &v->Pos.Z); } - ; - break;} -case 299: -#line 2970 "Gmsh.y" -{ - yyval.l = List_Create(List_Nbr(yyvsp[0].l), 1, sizeof(double)); - for(int i = 0; i < List_Nbr(yyvsp[0].l); i++){ - Shape *s = (Shape*) List_Pointer(yyvsp[0].l, i); + ;} + break; + + case 300: +#line 2967 "Gmsh.y" + { + (yyval.l) = List_Create(List_Nbr((yyvsp[0].l)), 1, sizeof(double)); + for(int i = 0; i < List_Nbr((yyvsp[0].l)); i++){ + Shape *s = (Shape*) List_Pointer((yyvsp[0].l), i); double d = s->Num; - List_Add(yyval.l, &d); + List_Add((yyval.l), &d); } - List_Delete(yyvsp[0].l); - ; - break;} -case 300: -#line 2980 "Gmsh.y" -{ - yyval.l = List_Create(List_Nbr(yyvsp[0].l), 1, sizeof(double)); - for(int i = 0; i < List_Nbr(yyvsp[0].l); i++){ - Shape *s = (Shape*) List_Pointer(yyvsp[0].l, i); + List_Delete((yyvsp[0].l)); + ;} + break; + + case 301: +#line 2977 "Gmsh.y" + { + (yyval.l) = List_Create(List_Nbr((yyvsp[0].l)), 1, sizeof(double)); + for(int i = 0; i < List_Nbr((yyvsp[0].l)); i++){ + Shape *s = (Shape*) List_Pointer((yyvsp[0].l), i); double d = s->Num; - List_Add(yyval.l, &d); + List_Add((yyval.l), &d); } - List_Delete(yyvsp[0].l); - ; - break;} -case 301: -#line 2990 "Gmsh.y" -{ - yyval.l = List_Create(List_Nbr(yyvsp[0].l), 1, sizeof(double)); - for(int i = 0; i < List_Nbr(yyvsp[0].l); i++){ - Shape *s = (Shape*) List_Pointer(yyvsp[0].l, i); + List_Delete((yyvsp[0].l)); + ;} + break; + + case 302: +#line 2987 "Gmsh.y" + { + (yyval.l) = List_Create(List_Nbr((yyvsp[0].l)), 1, sizeof(double)); + for(int i = 0; i < List_Nbr((yyvsp[0].l)); i++){ + Shape *s = (Shape*) List_Pointer((yyvsp[0].l), i); double d = s->Num; - List_Add(yyval.l, &d); + List_Add((yyval.l), &d); } - List_Delete(yyvsp[0].l); - ; - break;} -case 302: -#line 3000 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(double)); + List_Delete((yyvsp[0].l)); + ;} + break; + + case 303: +#line 2997 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(double)); Symbol TheSymbol; - TheSymbol.Name = yyvsp[-2].c; + TheSymbol.Name = (yyvsp[-2].c); Symbol *pSymbol; if(!(pSymbol = (Symbol*)Tree_PQuery(Symbol_T, &TheSymbol))) { - yymsg(GERROR, "Unknown variable '%s'", yyvsp[-2].c); + yymsg(GERROR, "Unknown variable '%s'", (yyvsp[-2].c)); double d = 0.0; - List_Add(yyval.l, &d); + List_Add((yyval.l), &d); } else{ for(int i = 0; i < List_Nbr(pSymbol->val); i++) - List_Add(yyval.l, (double*)List_Pointer_Fast(pSymbol->val, i)); + List_Add((yyval.l), (double*)List_Pointer_Fast(pSymbol->val, i)); } - Free(yyvsp[-2].c); - ; - break;} -case 303: -#line 3017 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(double)); + Free((yyvsp[-2].c)); + ;} + break; + + case 304: +#line 3014 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(double)); Symbol TheSymbol; - TheSymbol.Name = yyvsp[-2].c; + TheSymbol.Name = (yyvsp[-2].c); Symbol *pSymbol; if(!(pSymbol = (Symbol*)Tree_PQuery(Symbol_T, &TheSymbol))) { - yymsg(GERROR, "Unknown variable '%s'", yyvsp[-2].c); + yymsg(GERROR, "Unknown variable '%s'", (yyvsp[-2].c)); double d = 0.0; - List_Add(yyval.l, &d); + List_Add((yyval.l), &d); } else{ for(int i = 0; i < List_Nbr(pSymbol->val); i++){ double d = - *(double*)List_Pointer_Fast(pSymbol->val, i); - List_Add(yyval.l, &d); + List_Add((yyval.l), &d); } } - Free(yyvsp[-2].c); - ; - break;} -case 304: -#line 3036 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(double)); + Free((yyvsp[-2].c)); + ;} + break; + + case 305: +#line 3033 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(double)); Symbol TheSymbol; - TheSymbol.Name = yyvsp[-5].c; + TheSymbol.Name = (yyvsp[-5].c); Symbol *pSymbol; if(!(pSymbol = (Symbol*)Tree_PQuery(Symbol_T, &TheSymbol))) { - yymsg(GERROR, "Unknown variable '%s'", yyvsp[-5].c); + yymsg(GERROR, "Unknown variable '%s'", (yyvsp[-5].c)); double d = 0.0; - List_Add(yyval.l, &d); + List_Add((yyval.l), &d); } else{ - for(int i = 0; i < List_Nbr(yyvsp[-2].l); i++){ - int j = (int)(*(double*)List_Pointer_Fast(yyvsp[-2].l, i)); + for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ + int j = (int)(*(double*)List_Pointer_Fast((yyvsp[-2].l), i)); double *pd; if((pd = (double*)List_Pointer_Test(pSymbol->val, j))) - List_Add(yyval.l, pd); + List_Add((yyval.l), pd); else - yymsg(GERROR, "Uninitialized variable '%s[%d]'", yyvsp[-5].c, j); + yymsg(GERROR, "Uninitialized variable '%s[%d]'", (yyvsp[-5].c), j); } } - Free(yyvsp[-5].c); - List_Delete(yyvsp[-2].l); - ; - break;} -case 305: -#line 3060 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(double)); + Free((yyvsp[-5].c)); + List_Delete((yyvsp[-2].l)); + ;} + break; + + case 306: +#line 3057 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(double)); Symbol TheSymbol; - TheSymbol.Name = yyvsp[-5].c; + TheSymbol.Name = (yyvsp[-5].c); Symbol *pSymbol; if(!(pSymbol = (Symbol*)Tree_PQuery(Symbol_T, &TheSymbol))) { - yymsg(GERROR, "Unknown variable '%s'", yyvsp[-5].c); + yymsg(GERROR, "Unknown variable '%s'", (yyvsp[-5].c)); double d = 0.0; - List_Add(yyval.l, &d); + List_Add((yyval.l), &d); } else{ - for(int i = 0; i < List_Nbr(yyvsp[-2].l); i++){ - int j = (int)(*(double*)List_Pointer_Fast(yyvsp[-2].l, i)); + for(int i = 0; i < List_Nbr((yyvsp[-2].l)); i++){ + int j = (int)(*(double*)List_Pointer_Fast((yyvsp[-2].l), i)); double *pd; if((pd = (double*)List_Pointer_Test(pSymbol->val, j))){ double d = - *pd; - List_Add(yyval.l, &d); + List_Add((yyval.l), &d); } else - yymsg(GERROR, "Uninitialized variable '%s[%d]'", yyvsp[-5].c, j); + yymsg(GERROR, "Uninitialized variable '%s[%d]'", (yyvsp[-5].c), j); } } - Free(yyvsp[-5].c); - List_Delete(yyvsp[-2].l); - ; - break;} -case 306: -#line 3089 "Gmsh.y" -{ - yyval.l = List_Create(2, 1, sizeof(double)); - List_Add(yyval.l, &(yyvsp[0].d)); - ; - break;} -case 307: -#line 3094 "Gmsh.y" -{ - yyval.l = yyvsp[0].l; - ; - break;} -case 308: -#line 3098 "Gmsh.y" -{ - List_Add(yyval.l, &(yyvsp[0].d)); - ; - break;} -case 309: -#line 3102 "Gmsh.y" -{ - for(int i = 0; i < List_Nbr(yyvsp[0].l); i++){ + Free((yyvsp[-5].c)); + List_Delete((yyvsp[-2].l)); + ;} + break; + + case 307: +#line 3086 "Gmsh.y" + { + (yyval.l) = List_Create(2, 1, sizeof(double)); + List_Add((yyval.l), &((yyvsp[0].d))); + ;} + break; + + case 308: +#line 3091 "Gmsh.y" + { + (yyval.l) = (yyvsp[0].l); + ;} + break; + + case 309: +#line 3095 "Gmsh.y" + { + List_Add((yyval.l), &((yyvsp[0].d))); + ;} + break; + + case 310: +#line 3099 "Gmsh.y" + { + for(int i = 0; i < List_Nbr((yyvsp[0].l)); i++){ double d; - List_Read(yyvsp[0].l, i, &d); - List_Add(yyval.l, &d); + List_Read((yyvsp[0].l), i, &d); + List_Add((yyval.l), &d); } - List_Delete(yyvsp[0].l); - ; - break;} -case 310: -#line 3115 "Gmsh.y" -{ - yyval.u = CTX.PACK_COLOR((int)yyvsp[-7].d, (int)yyvsp[-5].d, (int)yyvsp[-3].d, (int)yyvsp[-1].d); - ; - break;} -case 311: -#line 3119 "Gmsh.y" -{ - yyval.u = CTX.PACK_COLOR((int)yyvsp[-5].d, (int)yyvsp[-3].d, (int)yyvsp[-1].d, 255); - ; - break;} -case 312: -#line 3131 "Gmsh.y" -{ + List_Delete((yyvsp[0].l)); + ;} + break; + + case 311: +#line 3112 "Gmsh.y" + { + (yyval.u) = CTX.PACK_COLOR((int)(yyvsp[-7].d), (int)(yyvsp[-5].d), (int)(yyvsp[-3].d), (int)(yyvsp[-1].d)); + ;} + break; + + case 312: +#line 3116 "Gmsh.y" + { + (yyval.u) = CTX.PACK_COLOR((int)(yyvsp[-5].d), (int)(yyvsp[-3].d), (int)(yyvsp[-1].d), 255); + ;} + break; + + case 313: +#line 3128 "Gmsh.y" + { int flag; - yyval.u = Get_ColorForString(ColorString, -1, yyvsp[0].c, &flag); - if(flag) yymsg(GERROR, "Unknown color '%s'", yyvsp[0].c); - Free(yyvsp[0].c); - ; - break;} -case 313: -#line 3138 "Gmsh.y" -{ + (yyval.u) = Get_ColorForString(ColorString, -1, (yyvsp[0].c), &flag); + if(flag) yymsg(GERROR, "Unknown color '%s'", (yyvsp[0].c)); + Free((yyvsp[0].c)); + ;} + break; + + case 314: +#line 3135 "Gmsh.y" + { unsigned int (*pColOpt)(int num, int action, unsigned int value); StringXColor *pColCat; - if(!(pColCat = Get_ColorOptionCategory(yyvsp[-4].c))){ - yymsg(GERROR, "Unknown color option class '%s'", yyvsp[-4].c); - yyval.u = 0; + if(!(pColCat = Get_ColorOptionCategory((yyvsp[-4].c)))){ + yymsg(GERROR, "Unknown color option class '%s'", (yyvsp[-4].c)); + (yyval.u) = 0; } else{ - if(!(pColOpt = (unsigned int (*) (int, int, unsigned int))Get_ColorOption(yyvsp[0].c, pColCat))){ - yymsg(GERROR, "Unknown color option '%s.Color.%s'", yyvsp[-4].c, yyvsp[0].c); - yyval.u = 0; + if(!(pColOpt = (unsigned int (*) (int, int, unsigned int))Get_ColorOption((yyvsp[0].c), pColCat))){ + yymsg(GERROR, "Unknown color option '%s.Color.%s'", (yyvsp[-4].c), (yyvsp[0].c)); + (yyval.u) = 0; } else{ - yyval.u = pColOpt(0, GMSH_GET, 0); + (yyval.u) = pColOpt(0, GMSH_GET, 0); } } - Free(yyvsp[-4].c); Free(yyvsp[0].c); - ; - break;} -case 314: -#line 3160 "Gmsh.y" -{ - yyval.l = yyvsp[-1].l; - ; - break;} -case 315: -#line 3164 "Gmsh.y" -{ - yyval.l = List_Create(256, 10, sizeof(unsigned int)); - GmshColorTable *ct = Get_ColorTable((int)yyvsp[-3].d); + Free((yyvsp[-4].c)); Free((yyvsp[0].c)); + ;} + break; + + case 315: +#line 3157 "Gmsh.y" + { + (yyval.l) = (yyvsp[-1].l); + ;} + break; + + case 316: +#line 3161 "Gmsh.y" + { + (yyval.l) = List_Create(256, 10, sizeof(unsigned int)); + GmshColorTable *ct = Get_ColorTable((int)(yyvsp[-3].d)); if(!ct) - yymsg(GERROR, "View[%d] does not exist", (int)yyvsp[-3].d); + yymsg(GERROR, "View[%d] does not exist", (int)(yyvsp[-3].d)); else{ for(int i = 0; i < ct->size; i++) - List_Add(yyval.l, &ct->table[i]); + List_Add((yyval.l), &ct->table[i]); } - Free(yyvsp[-5].c); - ; - break;} -case 316: -#line 3179 "Gmsh.y" -{ - yyval.l = List_Create(256, 10, sizeof(unsigned int)); - List_Add(yyval.l, &(yyvsp[0].u)); - ; - break;} -case 317: -#line 3184 "Gmsh.y" -{ - List_Add(yyval.l, &(yyvsp[0].u)); - ; - break;} -case 318: -#line 3191 "Gmsh.y" -{ - yyval.c = yyvsp[0].c; - ; - break;} -case 319: -#line 3195 "Gmsh.y" -{ - yyval.c = (char *)Malloc(32*sizeof(char)); + Free((yyvsp[-5].c)); + ;} + break; + + case 317: +#line 3176 "Gmsh.y" + { + (yyval.l) = List_Create(256, 10, sizeof(unsigned int)); + List_Add((yyval.l), &((yyvsp[0].u))); + ;} + break; + + case 318: +#line 3181 "Gmsh.y" + { + List_Add((yyval.l), &((yyvsp[0].u))); + ;} + break; + + case 319: +#line 3188 "Gmsh.y" + { + (yyval.c) = (yyvsp[0].c); + ;} + break; + + case 320: +#line 3192 "Gmsh.y" + { + (yyval.c) = (char *)Malloc(32*sizeof(char)); time_t now; time(&now); - strcpy(yyval.c, ctime(&now)); - yyval.c[strlen(yyval.c) - 1] = '\0'; - ; - break;} -case 320: -#line 3203 "Gmsh.y" -{ - yyval.c = (char *)Malloc((strlen(yyvsp[-3].c)+strlen(yyvsp[-1].c)+1)*sizeof(char)); - strcpy(yyval.c, yyvsp[-3].c); - strcat(yyval.c, yyvsp[-1].c); - Free(yyvsp[-3].c); - Free(yyvsp[-1].c); - ; - break;} -case 321: -#line 3211 "Gmsh.y" -{ - yyval.c = (char *)Malloc((strlen(yyvsp[-1].c)+1)*sizeof(char)); + strcpy((yyval.c), ctime(&now)); + (yyval.c)[strlen((yyval.c)) - 1] = '\0'; + ;} + break; + + case 321: +#line 3200 "Gmsh.y" + { + (yyval.c) = (char *)Malloc((strlen((yyvsp[-3].c))+strlen((yyvsp[-1].c))+1)*sizeof(char)); + strcpy((yyval.c), (yyvsp[-3].c)); + strcat((yyval.c), (yyvsp[-1].c)); + Free((yyvsp[-3].c)); + Free((yyvsp[-1].c)); + ;} + break; + + case 322: +#line 3208 "Gmsh.y" + { + (yyval.c) = (char *)Malloc((strlen((yyvsp[-1].c))+1)*sizeof(char)); int i; - for(i = strlen(yyvsp[-1].c)-1; i >= 0; i--){ - if(yyvsp[-1].c[i] == '.'){ - strncpy(yyval.c, yyvsp[-1].c, i); - yyval.c[i]='\0'; + for(i = strlen((yyvsp[-1].c))-1; i >= 0; i--){ + if((yyvsp[-1].c)[i] == '.'){ + strncpy((yyval.c), (yyvsp[-1].c), i); + (yyval.c)[i]='\0'; break; } } - if(i <= 0) strcpy(yyval.c, yyvsp[-1].c); - Free(yyvsp[-1].c); - ; - break;} -case 322: -#line 3225 "Gmsh.y" -{ - yyval.c = (char *)Malloc((strlen(yyvsp[-1].c)+1)*sizeof(char)); + if(i <= 0) strcpy((yyval.c), (yyvsp[-1].c)); + Free((yyvsp[-1].c)); + ;} + break; + + case 323: +#line 3222 "Gmsh.y" + { + (yyval.c) = (char *)Malloc((strlen((yyvsp[-1].c))+1)*sizeof(char)); int i; - for(i = strlen(yyvsp[-1].c)-1; i >= 0; i--){ - if(yyvsp[-1].c[i] == '/' || yyvsp[-1].c[i] == '\\') + for(i = strlen((yyvsp[-1].c))-1; i >= 0; i--){ + if((yyvsp[-1].c)[i] == '/' || (yyvsp[-1].c)[i] == '\\') break; } if(i <= 0) - strcpy(yyval.c, yyvsp[-1].c); + strcpy((yyval.c), (yyvsp[-1].c)); else - strcpy(yyval.c, &yyvsp[-1].c[i+1]); - Free(yyvsp[-1].c); - ; - break;} -case 323: -#line 3239 "Gmsh.y" -{ - yyval.c = yyvsp[-1].c; - ; - break;} -case 324: -#line 3243 "Gmsh.y" -{ + strcpy((yyval.c), &(yyvsp[-1].c)[i+1]); + Free((yyvsp[-1].c)); + ;} + break; + + case 324: +#line 3236 "Gmsh.y" + { + (yyval.c) = (yyvsp[-1].c); + ;} + break; + + case 325: +#line 3240 "Gmsh.y" + { char tmpstring[1024]; - int i = PrintListOfDouble(yyvsp[-3].c, yyvsp[-1].l, tmpstring); + int i = PrintListOfDouble((yyvsp[-3].c), (yyvsp[-1].l), tmpstring); if(i < 0){ yymsg(GERROR, "Too few arguments in Sprintf"); - yyval.c = yyvsp[-3].c; + (yyval.c) = (yyvsp[-3].c); } else if(i > 0){ yymsg(GERROR, "%d extra argument%s in Sprintf", i, (i>1)?"s":""); - yyval.c = yyvsp[-3].c; + (yyval.c) = (yyvsp[-3].c); } else{ - yyval.c = (char*)Malloc((strlen(tmpstring)+1)*sizeof(char)); - strcpy(yyval.c, tmpstring); - Free(yyvsp[-3].c); + (yyval.c) = (char*)Malloc((strlen(tmpstring)+1)*sizeof(char)); + strcpy((yyval.c), tmpstring); + Free((yyvsp[-3].c)); } - List_Delete(yyvsp[-1].l); - ; - break;} -case 325: -#line 3262 "Gmsh.y" -{ + List_Delete((yyvsp[-1].l)); + ;} + break; + + case 326: +#line 3259 "Gmsh.y" + { char* (*pStrOpt)(int num, int action, char *value); StringXString *pStrCat; - if(!(pStrCat = Get_StringOptionCategory(yyvsp[-3].c))){ - yymsg(GERROR, "Unknown string option class '%s'", yyvsp[-3].c); - yyval.c = (char*)Malloc(sizeof(char)); - yyval.c[0] = '\0'; + if(!(pStrCat = Get_StringOptionCategory((yyvsp[-3].c)))){ + yymsg(GERROR, "Unknown string option class '%s'", (yyvsp[-3].c)); + (yyval.c) = (char*)Malloc(sizeof(char)); + (yyval.c)[0] = '\0'; } else{ - if(!(pStrOpt = (char *(*) (int, int, char *))Get_StringOption(yyvsp[-1].c, pStrCat))){ - yymsg(GERROR, "Unknown string option '%s.%s'", yyvsp[-3].c, yyvsp[-1].c); - yyval.c = (char*)Malloc(sizeof(char)); - yyval.c[0] = '\0'; + if(!(pStrOpt = (char *(*) (int, int, char *))Get_StringOption((yyvsp[-1].c), pStrCat))){ + yymsg(GERROR, "Unknown string option '%s.%s'", (yyvsp[-3].c), (yyvsp[-1].c)); + (yyval.c) = (char*)Malloc(sizeof(char)); + (yyval.c)[0] = '\0'; } else{ char *str = pStrOpt(0, GMSH_GET, NULL); - yyval.c = (char*)Malloc((strlen(str)+1)*sizeof(char)); - strcpy(yyval.c, str); + (yyval.c) = (char*)Malloc((strlen(str)+1)*sizeof(char)); + strcpy((yyval.c), str); } } - ; - break;} -case 326: -#line 3284 "Gmsh.y" -{ + ;} + break; + + case 327: +#line 3281 "Gmsh.y" + { char* (*pStrOpt)(int num, int action, char *value); StringXString *pStrCat; - if(!(pStrCat = Get_StringOptionCategory(yyvsp[-6].c))){ - yymsg(GERROR, "Unknown string option class '%s'", yyvsp[-6].c); - yyval.c = (char*)Malloc(sizeof(char)); - yyval.c[0] = '\0'; + if(!(pStrCat = Get_StringOptionCategory((yyvsp[-6].c)))){ + yymsg(GERROR, "Unknown string option class '%s'", (yyvsp[-6].c)); + (yyval.c) = (char*)Malloc(sizeof(char)); + (yyval.c)[0] = '\0'; } else{ - if(!(pStrOpt = (char *(*) (int, int, char *))Get_StringOption(yyvsp[-1].c, pStrCat))){ - yymsg(GERROR, "Unknown string option '%s[%d].%s'", yyvsp[-6].c, (int)yyvsp[-4].d, yyvsp[-1].c); - yyval.c = (char*)Malloc(sizeof(char)); - yyval.c[0] = '\0'; + if(!(pStrOpt = (char *(*) (int, int, char *))Get_StringOption((yyvsp[-1].c), pStrCat))){ + yymsg(GERROR, "Unknown string option '%s[%d].%s'", (yyvsp[-6].c), (int)(yyvsp[-4].d), (yyvsp[-1].c)); + (yyval.c) = (char*)Malloc(sizeof(char)); + (yyval.c)[0] = '\0'; } else{ - char *str = pStrOpt((int)yyvsp[-4].d, GMSH_GET, NULL); - yyval.c = (char*)Malloc((strlen(str)+1)*sizeof(char)); - strcpy(yyval.c, str); + char *str = pStrOpt((int)(yyvsp[-4].d), GMSH_GET, NULL); + (yyval.c) = (char*)Malloc((strlen(str)+1)*sizeof(char)); + strcpy((yyval.c), str); } } - ; - break;} -} - /* the action file gets copied in in place of this dollarsign */ -#line 543 "/usr/share/bison.simple" + ;} + break; + + + default: break; + } + +/* Line 1126 of yacc.c. */ +#line 7302 "Gmsh.tab.cpp" yyvsp -= yylen; yyssp -= yylen; -#ifdef YYLSP_NEEDED - yylsp -= yylen; -#endif -#if YYDEBUG != 0 - if (yydebug) - { - short *ssp1 = yyss - 1; - fprintf (stderr, "state stack now"); - while (ssp1 != yyssp) - fprintf (stderr, " %d", *++ssp1); - fprintf (stderr, "\n"); - } -#endif + + YY_STACK_PRINT (yyss, yyssp); *++yyvsp = yyval; -#ifdef YYLSP_NEEDED - yylsp++; - if (yylen == 0) - { - yylsp->first_line = yylloc.first_line; - yylsp->first_column = yylloc.first_column; - yylsp->last_line = (yylsp-1)->last_line; - yylsp->last_column = (yylsp-1)->last_column; - yylsp->text = 0; - } - else - { - yylsp->last_line = (yylsp+yylen-1)->last_line; - yylsp->last_column = (yylsp+yylen-1)->last_column; - } -#endif - /* Now "shift" the result of the reduction. - Determine what state that goes to, - based on the state we popped back to - and the rule number reduced by. */ + /* Now `shift' the result of the reduction. Determine what state + that goes to, based on the state we popped back to and the rule + number reduced by. */ yyn = yyr1[yyn]; - yystate = yypgoto[yyn - YYNTBASE] + *yyssp; - if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp) + yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; + if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) yystate = yytable[yystate]; else - yystate = yydefgoto[yyn - YYNTBASE]; + yystate = yydefgoto[yyn - YYNTOKENS]; goto yynewstate; -yyerrlab: /* here on detecting error */ - if (! yyerrstatus) - /* If not already recovering from an error, report this error. */ +/*------------------------------------. +| yyerrlab -- here on detecting error | +`------------------------------------*/ +yyerrlab: + /* If not already recovering from an error, report this error. */ + if (!yyerrstatus) { ++yynerrs; - -#ifdef YYERROR_VERBOSE +#if YYERROR_VERBOSE yyn = yypact[yystate]; - if (yyn > YYFLAG && yyn < YYLAST) + if (YYPACT_NINF < yyn && yyn < YYLAST) { - int size = 0; - char *msg; - int x, count; - - count = 0; - /* Start X at -yyn if nec to avoid negative indexes in yycheck. */ - for (x = (yyn < 0 ? -yyn : 0); - x < (sizeof(yytname) / sizeof(char *)); x++) - if (yycheck[x + yyn] == x) - size += strlen(yytname[x]) + 15, count++; - msg = (char *) malloc(size + 15); - if (msg != 0) - { - strcpy(msg, "parse error"); + int yytype = YYTRANSLATE (yychar); + YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]); + YYSIZE_T yysize = yysize0; + YYSIZE_T yysize1; + int yysize_overflow = 0; + char *yymsg = 0; +# define 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; + 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; + } - if (count < 5) + yyf = YY_(yyformat); + yysize1 = yysize + yystrlen (yyf); + yysize_overflow |= yysize1 < yysize; + yysize = yysize1; + + if (!yysize_overflow && yysize <= YYSTACK_ALLOC_MAXIMUM) + yymsg = (char *) YYSTACK_ALLOC (yysize); + if (yymsg) + { + /* 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 = yymsg; + int yyi = 0; + while ((*yyp = *yyf)) { - count = 0; - for (x = (yyn < 0 ? -yyn : 0); - x < (sizeof(yytname) / sizeof(char *)); x++) - if (yycheck[x + yyn] == x) - { - strcat(msg, count == 0 ? ", expecting `" : " or `"); - strcat(msg, yytname[x]); - strcat(msg, "'"); - count++; - } + if (*yyp == '%' && yyf[1] == 's' && yyi < yycount) + { + yyp += yytnamerr (yyp, yyarg[yyi++]); + yyf += 2; + } + else + { + yyp++; + yyf++; + } } - yyerror(msg); - free(msg); + yyerror (yymsg); + YYSTACK_FREE (yymsg); } else - yyerror ("parse error; also virtual memory exceeded"); + { + yyerror (YY_("syntax error")); + goto yyexhaustedlab; + } } else #endif /* YYERROR_VERBOSE */ - yyerror("parse error"); + yyerror (YY_("syntax error")); } - goto yyerrlab1; -yyerrlab1: /* here on error raised explicitly by an action */ + if (yyerrstatus == 3) { - /* if just tried and failed to reuse lookahead token after an error, discard it. */ - - /* return failure if at end of input */ - if (yychar == YYEOF) - YYABORT; - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]); -#endif - - yychar = YYEMPTY; + /* If just tried and failed to reuse look-ahead token after an + error, discard it. */ + + if (yychar <= YYEOF) + { + /* Return failure if at end of input. */ + if (yychar == YYEOF) + YYABORT; + } + else + { + yydestruct ("Error: discarding", yytoken, &yylval); + yychar = YYEMPTY; + } } - /* Else will try to reuse lookahead token - after shifting the error token. */ + /* Else will try to reuse look-ahead token after shifting the error + token. */ + goto yyerrlab1; - yyerrstatus = 3; /* Each real token shifted decrements this */ - goto yyerrhandle; +/*---------------------------------------------------. +| yyerrorlab -- error raised explicitly by YYERROR. | +`---------------------------------------------------*/ +yyerrorlab: -yyerrdefault: /* current state does not do anything special for the error token. */ + /* Pacify compilers like GCC when the user code never invokes + YYERROR and the label yyerrorlab therefore never appears in user + code. */ + if (0) + goto yyerrorlab; -#if 0 - /* This is wrong; only states that explicitly want error tokens - should shift them. */ - yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/ - if (yyn) goto yydefault; -#endif +yyvsp -= yylen; + yyssp -= yylen; + yystate = *yyssp; + goto yyerrlab1; -yyerrpop: /* pop the current state because it cannot handle the error token */ - if (yyssp == yyss) YYABORT; - yyvsp--; - yystate = *--yyssp; -#ifdef YYLSP_NEEDED - yylsp--; -#endif +/*-------------------------------------------------------------. +| yyerrlab1 -- common code for both syntax error and YYERROR. | +`-------------------------------------------------------------*/ +yyerrlab1: + yyerrstatus = 3; /* Each real token shifted decrements this. */ -#if YYDEBUG != 0 - if (yydebug) + for (;;) { - short *ssp1 = yyss - 1; - fprintf (stderr, "Error: state stack now"); - while (ssp1 != yyssp) - fprintf (stderr, " %d", *++ssp1); - fprintf (stderr, "\n"); - } -#endif - -yyerrhandle: + yyn = yypact[yystate]; + if (yyn != YYPACT_NINF) + { + yyn += YYTERROR; + if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) + { + yyn = yytable[yyn]; + if (0 < yyn) + break; + } + } - yyn = yypact[yystate]; - if (yyn == YYFLAG) - goto yyerrdefault; + /* Pop the current state because it cannot handle the error token. */ + if (yyssp == yyss) + YYABORT; - yyn += YYTERROR; - if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR) - goto yyerrdefault; - yyn = yytable[yyn]; - if (yyn < 0) - { - if (yyn == YYFLAG) - goto yyerrpop; - yyn = -yyn; - goto yyreduce; + yydestruct ("Error: popping", yystos[yystate], yyvsp); + YYPOPSTACK; + yystate = *yyssp; + YY_STACK_PRINT (yyss, yyssp); } - else if (yyn == 0) - goto yyerrpop; if (yyn == YYFINAL) YYACCEPT; -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Shifting error token, "); -#endif - *++yyvsp = yylval; -#ifdef YYLSP_NEEDED - *++yylsp = yylloc; -#endif + + + /* Shift the error token. */ + YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); yystate = yyn; goto yynewstate; - yyacceptlab: - /* YYACCEPT comes here. */ - if (yyfree_stacks) - { - free (yyss); - free (yyvs); -#ifdef YYLSP_NEEDED - free (yyls); + +/*-------------------------------------. +| yyacceptlab -- YYACCEPT comes here. | +`-------------------------------------*/ +yyacceptlab: + yyresult = 0; + goto yyreturn; + +/*-----------------------------------. +| yyabortlab -- YYABORT comes here. | +`-----------------------------------*/ +yyabortlab: + yyresult = 1; + goto yyreturn; + +#ifndef yyoverflow +/*-------------------------------------------------. +| yyexhaustedlab -- memory exhaustion comes here. | +`-------------------------------------------------*/ +yyexhaustedlab: + yyerror (YY_("memory exhausted")); + yyresult = 2; + /* Fall through. */ #endif - } - return 0; - yyabortlab: - /* YYABORT comes here. */ - if (yyfree_stacks) +yyreturn: + if (yychar != YYEOF && yychar != YYEMPTY) + yydestruct ("Cleanup: discarding lookahead", + yytoken, &yylval); + while (yyssp != yyss) { - free (yyss); - free (yyvs); -#ifdef YYLSP_NEEDED - free (yyls); -#endif + yydestruct ("Cleanup: popping", + yystos[*yyssp], yyvsp); + YYPOPSTACK; } - return 1; +#ifndef yyoverflow + if (yyss != yyssa) + YYSTACK_FREE (yyss); +#endif + return yyresult; } -#line 3307 "Gmsh.y" + + +#line 3304 "Gmsh.y" void DeleteSymbol(void *a, void *b){ @@ -6633,3 +7660,4 @@ void yymsg(int type, char *fmt, ...){ if(type == GERROR) yyerrorstate++; } + diff --git a/Parser/Gmsh.tab.hpp b/Parser/Gmsh.tab.hpp index 96e801b6559312a4deed33757883c8f718d1861b..a64378ad904fa3bb1c1a84ceab820c088f4f2dfc 100644 --- a/Parser/Gmsh.tab.hpp +++ b/Parser/Gmsh.tab.hpp @@ -1,4 +1,280 @@ -typedef union { +/* A Bison parser, made by GNU Bison 2.1. */ + +/* Skeleton parser for Yacc-like parsing with Bison, + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 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 + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + 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., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. */ + +/* 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. */ + +/* Tokens. */ +#ifndef YYTOKENTYPE +# define YYTOKENTYPE + /* Put the tokens into the symbol table, so that GDB and other debuggers + know about them. */ + enum yytokentype { + tDOUBLE = 258, + tSTRING = 259, + tBIGSTR = 260, + tEND = 261, + tAFFECT = 262, + tDOTS = 263, + tPi = 264, + tMPI_Rank = 265, + tMPI_Size = 266, + tExp = 267, + tLog = 268, + tLog10 = 269, + tSqrt = 270, + tSin = 271, + tAsin = 272, + tCos = 273, + tAcos = 274, + tTan = 275, + tRand = 276, + tAtan = 277, + tAtan2 = 278, + tSinh = 279, + tCosh = 280, + tTanh = 281, + tFabs = 282, + tFloor = 283, + tCeil = 284, + tFmod = 285, + tModulo = 286, + tHypot = 287, + tPrintf = 288, + tSprintf = 289, + tStrCat = 290, + tStrPrefix = 291, + tStrRelative = 292, + tBoundingBox = 293, + tDraw = 294, + tToday = 295, + tPoint = 296, + tCircle = 297, + tEllipse = 298, + tLine = 299, + tSurface = 300, + tSpline = 301, + tVolume = 302, + tCharacteristic = 303, + tLength = 304, + tParametric = 305, + tElliptic = 306, + tPlane = 307, + tRuled = 308, + tTransfinite = 309, + tComplex = 310, + tPhysical = 311, + tUsing = 312, + tBump = 313, + tProgression = 314, + tPlugin = 315, + tRotate = 316, + tTranslate = 317, + tSymmetry = 318, + tDilate = 319, + tExtrude = 320, + tDuplicata = 321, + tLoop = 322, + tRecombine = 323, + tDelete = 324, + tCoherence = 325, + tIntersect = 326, + tAttractor = 327, + tLayers = 328, + tAlias = 329, + tAliasWithOptions = 330, + tText2D = 331, + tText3D = 332, + tInterpolationScheme = 333, + tTime = 334, + tCombine = 335, + tBSpline = 336, + tBezier = 337, + tNurbs = 338, + tOrder = 339, + tWith = 340, + tBounds = 341, + tKnots = 342, + tColor = 343, + tColorTable = 344, + tFor = 345, + tIn = 346, + tEndFor = 347, + tIf = 348, + tEndIf = 349, + tExit = 350, + tReturn = 351, + tCall = 352, + tFunction = 353, + tTrimmed = 354, + tShow = 355, + tHide = 356, + tGetValue = 357, + tGMSH_MAJOR_VERSION = 358, + tGMSH_MINOR_VERSION = 359, + tGMSH_PATCH_VERSION = 360, + tAFFECTDIVIDE = 361, + tAFFECTTIMES = 362, + tAFFECTMINUS = 363, + tAFFECTPLUS = 364, + tOR = 365, + tAND = 366, + tAPPROXEQUAL = 367, + tNOTEQUAL = 368, + tEQUAL = 369, + tGREATEROREQUAL = 370, + tLESSOREQUAL = 371, + tCROSSPRODUCT = 372, + UNARYPREC = 373, + tMINUSMINUS = 374, + tPLUSPLUS = 375 + }; +#endif +/* Tokens. */ +#define tDOUBLE 258 +#define tSTRING 259 +#define tBIGSTR 260 +#define tEND 261 +#define tAFFECT 262 +#define tDOTS 263 +#define tPi 264 +#define tMPI_Rank 265 +#define tMPI_Size 266 +#define tExp 267 +#define tLog 268 +#define tLog10 269 +#define tSqrt 270 +#define tSin 271 +#define tAsin 272 +#define tCos 273 +#define tAcos 274 +#define tTan 275 +#define tRand 276 +#define tAtan 277 +#define tAtan2 278 +#define tSinh 279 +#define tCosh 280 +#define tTanh 281 +#define tFabs 282 +#define tFloor 283 +#define tCeil 284 +#define tFmod 285 +#define tModulo 286 +#define tHypot 287 +#define tPrintf 288 +#define tSprintf 289 +#define tStrCat 290 +#define tStrPrefix 291 +#define tStrRelative 292 +#define tBoundingBox 293 +#define tDraw 294 +#define tToday 295 +#define tPoint 296 +#define tCircle 297 +#define tEllipse 298 +#define tLine 299 +#define tSurface 300 +#define tSpline 301 +#define tVolume 302 +#define tCharacteristic 303 +#define tLength 304 +#define tParametric 305 +#define tElliptic 306 +#define tPlane 307 +#define tRuled 308 +#define tTransfinite 309 +#define tComplex 310 +#define tPhysical 311 +#define tUsing 312 +#define tBump 313 +#define tProgression 314 +#define tPlugin 315 +#define tRotate 316 +#define tTranslate 317 +#define tSymmetry 318 +#define tDilate 319 +#define tExtrude 320 +#define tDuplicata 321 +#define tLoop 322 +#define tRecombine 323 +#define tDelete 324 +#define tCoherence 325 +#define tIntersect 326 +#define tAttractor 327 +#define tLayers 328 +#define tAlias 329 +#define tAliasWithOptions 330 +#define tText2D 331 +#define tText3D 332 +#define tInterpolationScheme 333 +#define tTime 334 +#define tCombine 335 +#define tBSpline 336 +#define tBezier 337 +#define tNurbs 338 +#define tOrder 339 +#define tWith 340 +#define tBounds 341 +#define tKnots 342 +#define tColor 343 +#define tColorTable 344 +#define tFor 345 +#define tIn 346 +#define tEndFor 347 +#define tIf 348 +#define tEndIf 349 +#define tExit 350 +#define tReturn 351 +#define tCall 352 +#define tFunction 353 +#define tTrimmed 354 +#define tShow 355 +#define tHide 356 +#define tGetValue 357 +#define tGMSH_MAJOR_VERSION 358 +#define tGMSH_MINOR_VERSION 359 +#define tGMSH_PATCH_VERSION 360 +#define tAFFECTDIVIDE 361 +#define tAFFECTTIMES 362 +#define tAFFECTMINUS 363 +#define tAFFECTPLUS 364 +#define tOR 365 +#define tAND 366 +#define tAPPROXEQUAL 367 +#define tNOTEQUAL 368 +#define tEQUAL 369 +#define tGREATEROREQUAL 370 +#define tLESSOREQUAL 371 +#define tCROSSPRODUCT 372 +#define UNARYPREC 373 +#define tMINUSMINUS 374 +#define tPLUSPLUS 375 + + + + +#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) +#line 78 "Gmsh.y" +typedef union YYSTYPE { char *c; int i; unsigned int u; @@ -7,124 +283,14 @@ typedef union { Shape s; List_T *l; } YYSTYPE; -#define tDOUBLE 257 -#define tSTRING 258 -#define tBIGSTR 259 -#define tEND 260 -#define tAFFECT 261 -#define tDOTS 262 -#define tPi 263 -#define tMPI_Rank 264 -#define tMPI_Size 265 -#define tExp 266 -#define tLog 267 -#define tLog10 268 -#define tSqrt 269 -#define tSin 270 -#define tAsin 271 -#define tCos 272 -#define tAcos 273 -#define tTan 274 -#define tRand 275 -#define tAtan 276 -#define tAtan2 277 -#define tSinh 278 -#define tCosh 279 -#define tTanh 280 -#define tFabs 281 -#define tFloor 282 -#define tCeil 283 -#define tFmod 284 -#define tModulo 285 -#define tHypot 286 -#define tPrintf 287 -#define tSprintf 288 -#define tStrCat 289 -#define tStrPrefix 290 -#define tStrRelative 291 -#define tBoundingBox 292 -#define tDraw 293 -#define tToday 294 -#define tPoint 295 -#define tCircle 296 -#define tEllipse 297 -#define tLine 298 -#define tSurface 299 -#define tSpline 300 -#define tVolume 301 -#define tCharacteristic 302 -#define tLength 303 -#define tParametric 304 -#define tElliptic 305 -#define tPlane 306 -#define tRuled 307 -#define tTransfinite 308 -#define tComplex 309 -#define tPhysical 310 -#define tUsing 311 -#define tBump 312 -#define tProgression 313 -#define tPlugin 314 -#define tRotate 315 -#define tTranslate 316 -#define tSymmetry 317 -#define tDilate 318 -#define tExtrude 319 -#define tDuplicata 320 -#define tLoop 321 -#define tRecombine 322 -#define tDelete 323 -#define tCoherence 324 -#define tIntersect 325 -#define tAttractor 326 -#define tLayers 327 -#define tAlias 328 -#define tAliasWithOptions 329 -#define tText2D 330 -#define tText3D 331 -#define tInterpolationScheme 332 -#define tTime 333 -#define tCombine 334 -#define tBSpline 335 -#define tBezier 336 -#define tNurbs 337 -#define tOrder 338 -#define tWith 339 -#define tBounds 340 -#define tKnots 341 -#define tColor 342 -#define tColorTable 343 -#define tFor 344 -#define tIn 345 -#define tEndFor 346 -#define tIf 347 -#define tEndIf 348 -#define tExit 349 -#define tReturn 350 -#define tCall 351 -#define tFunction 352 -#define tTrimmed 353 -#define tShow 354 -#define tHide 355 -#define tGetValue 356 -#define tGMSH_MAJOR_VERSION 357 -#define tGMSH_MINOR_VERSION 358 -#define tGMSH_PATCH_VERSION 359 -#define tAFFECTPLUS 360 -#define tAFFECTMINUS 361 -#define tAFFECTTIMES 362 -#define tAFFECTDIVIDE 363 -#define tOR 364 -#define tAND 365 -#define tEQUAL 366 -#define tNOTEQUAL 367 -#define tAPPROXEQUAL 368 -#define tLESSOREQUAL 369 -#define tGREATEROREQUAL 370 -#define tCROSSPRODUCT 371 -#define tPLUSPLUS 372 -#define tMINUSMINUS 373 -#define UNARYPREC 374 - +/* Line 1447 of yacc.c. */ +#line 288 "Gmsh.tab.hpp" +# define yystype YYSTYPE /* obsolescent; will be withdrawn */ +# define YYSTYPE_IS_DECLARED 1 +# define YYSTYPE_IS_TRIVIAL 1 +#endif extern YYSTYPE yylval; + + + diff --git a/Parser/Gmsh.y b/Parser/Gmsh.y index 587611e3a5372526da02a0e8e2efc30d71350ade..be879dcff671bddfc9106b75d64cd317057a0009 100644 --- a/Parser/Gmsh.y +++ b/Parser/Gmsh.y @@ -1,5 +1,5 @@ %{ -// $Id: Gmsh.y,v 1.220 2006-02-17 14:35:06 geuzaine Exp $ +// $Id: Gmsh.y,v 1.221 2006-02-24 22:07:08 geuzaine Exp $ // // Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle // @@ -1831,10 +1831,7 @@ Command : | tSTRING FExpr tEND { if(!strcmp($1, "Sleep")){ - long sleep_time = GetTime(); - while(1){ - if(GetTime() - sleep_time > (long)($2*1.e6)) break; - } + SleepMilliSeconds((int)($2 * 1000.)); } else if(!strcmp($1, "Remesh")){ ReMesh(THEM); diff --git a/Parser/Gmsh.yy.cpp b/Parser/Gmsh.yy.cpp index eb2332f97c0b1b0661ef62f74bb49bb17b87ca4b..875461e5a76fe765200e6c2b12d70851fc557567 100644 --- a/Parser/Gmsh.yy.cpp +++ b/Parser/Gmsh.yy.cpp @@ -2,7 +2,7 @@ /* A lexical scanner generated by flex */ /* Scanner skeleton version: - * $Header: /cvsroot/gmsh/Parser/Gmsh.yy.cpp,v 1.255 2006-02-17 14:35:06 geuzaine Exp $ + * $Header: /cvsroot/gmsh/Parser/Gmsh.yy.cpp,v 1.256 2006-02-24 22:07:08 geuzaine Exp $ */ #define FLEX_SCANNER @@ -10,7 +10,7 @@ #define YY_FLEX_MINOR_VERSION 5 #include <stdio.h> - +#include <errno.h> /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ #ifdef c_plusplus @@ -23,7 +23,9 @@ #ifdef __cplusplus #include <stdlib.h> +#ifndef _WIN32 #include <unistd.h> +#endif /* Use prototypes in function declarations. */ #define YY_USE_PROTOS @@ -63,6 +65,7 @@ #define YY_PROTO(proto) () #endif + /* Returned upon end-of-file. */ #define YY_NULL 0 @@ -727,7 +730,7 @@ char *yytext; #line 1 "Gmsh.l" #define INITIAL 0 #line 2 "Gmsh.l" -// $Id: Gmsh.yy.cpp,v 1.255 2006-02-17 14:35:06 geuzaine Exp $ +// $Id: Gmsh.yy.cpp,v 1.256 2006-02-24 22:07:08 geuzaine Exp $ // // Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle // @@ -789,7 +792,7 @@ void skipline(void); && ferror( yyin ) ) \ Msg(FATAL, "Input in flex scanner failed"); -#line 793 "Gmsh.yy.cpp" +#line 796 "Gmsh.yy.cpp" /* Macros after this point can all be overridden by user definitions in * section 1. @@ -889,9 +892,20 @@ YY_MALLOC_DECL YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ - else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ - && ferror( yyin ) ) \ - YY_FATAL_ERROR( "input in flex scanner failed" ); + else \ + { \ + errno=0; \ + while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ + { \ + if( errno != EINTR) \ + { \ + YY_FATAL_ERROR( "input in flex scanner failed" ); \ + break; \ + } \ + errno=0; \ + clearerr(yyin); \ + } \ + } #endif /* No semi-colon after return; correct usage is to write "yyterminate();" - @@ -943,7 +957,7 @@ YY_DECL #line 81 "Gmsh.l" -#line 947 "Gmsh.yy.cpp" +#line 961 "Gmsh.yy.cpp" if ( yy_init ) { @@ -1727,7 +1741,7 @@ YY_RULE_SETUP #line 250 "Gmsh.l" ECHO; YY_BREAK -#line 1731 "Gmsh.yy.cpp" +#line 1745 "Gmsh.yy.cpp" case YY_STATE_EOF(INITIAL): yyterminate(); @@ -2291,11 +2305,15 @@ YY_BUFFER_STATE b; } +#ifndef _WIN32 +#include <unistd.h> +#else #ifndef YY_ALWAYS_INTERACTIVE #ifndef YY_NEVER_INTERACTIVE extern int isatty YY_PROTO(( int )); #endif #endif +#endif #ifdef YY_USE_PROTOS void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) diff --git a/Parser/OpenFile.cpp b/Parser/OpenFile.cpp index 897058d5c496c7296f58e66f893e2f473c70ffaf..8eff4a45e66e4532654ba8d0f283e5495fec5819 100644 --- a/Parser/OpenFile.cpp +++ b/Parser/OpenFile.cpp @@ -1,4 +1,4 @@ -// $Id: OpenFile.cpp,v 1.89 2006-02-23 21:59:08 geuzaine Exp $ +// $Id: OpenFile.cpp,v 1.90 2006-02-24 22:07:08 geuzaine Exp $ // // Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle // @@ -405,9 +405,9 @@ void OpenProblemMacFinder(const char *filename) void SystemCall(char *command) { -#if defined(WIN32) && defined(HAVE_FLTK) - STARTUPINFO suInfo; // Process startup information - PROCESS_INFORMATION prInfo; // Process information +#if defined(WIN32) + STARTUPINFO suInfo; + PROCESS_INFORMATION prInfo; memset(&suInfo, 0, sizeof(suInfo)); suInfo.cb = sizeof(suInfo); Msg(INFO, "Calling '%s'", command); diff --git a/configure b/configure index 9fbda76e56b503a0a5bea46b700295e8ce033947..11c36dbf59147daf19d2a86056a1acf8d422e895 100755 --- a/configure +++ b/configure @@ -309,7 +309,7 @@ ac_includes_default="\ # include <unistd.h> #endif" -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP RANLIB ac_ct_RANLIB AR FLTKCONFIG EGREP UNAME FLAGS INCLS OPTIM LINKER GMSH_DIRS GMSH_LIBS POSTBUILD LIBOBJS LTLIBOBJS' +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP RANLIB ac_ct_RANLIB AR FLTKCONFIG EGREP UNAME FLAGS OPTIM LINKER GMSH_DIRS GMSH_LIBS POSTBUILD LIBOBJS LTLIBOBJS' ac_subst_files='' # Initialize some variables set by options. @@ -2719,9 +2719,17 @@ if test "x${CC}" = "x" -o "x${CXX}" = "x" ; then echo "$as_me: error: Could not find required compilers, aborting." >&2;} { (exit 1); exit 1; }; } fi +LINKER="${CXX}" +POSTBUILD="" + +if test "x$enable_cygwin" = "xno"; then + UNAME="${UNAME}-no-cygwin" + CC="${CC} -mno-cygwin" + CXX="${CXX} -mno-cygwin" + LINKER="${LINKER} -mno-cygwin" +fi FLAGS="" -INCLS="" OPTIM="${CXXFLAGS}" ac_ext=c @@ -3087,13 +3095,132 @@ AR="${AR} ruvs" -echo "$as_me:$LINENO: checking for main in -lm" >&5 -echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 -if test "${ac_cv_lib_m_main+set}" = set; then +GMSH_DIRS="Common DataStr Geo Mesh Numeric Parallel Parser Plugin" + +if test "x$enable_gui" != "xno"; then + + GMSH_DIRS="${GMSH_DIRS} Graphics Fltk" + GMSH_LIBS="-Llib -lGmshFltk -lGmshParser -lGmshGraphics -lGmshMesh -lGmshGeo" + GMSH_LIBS="${GMSH_LIBS} -lGmshCommon -lGmshDataStr -lGmshPlugin -lGmshNumeric" + GMSH_LIBS="${GMSH_LIBS} -lGmshParallel" + FLAGS="-DHAVE_FLTK ${FLAGS}" + + if test "x${FLTK_PREFIX}" != "x" ; then + # Extract the first word of "fltk-config", so it can be a program name with args. +set dummy fltk-config; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_FLTKCONFIG+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $FLTKCONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_FLTKCONFIG="$FLTKCONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="${FLTK_PREFIX}:${FLTK_PREFIX}/bin:$PATH" +for as_dir in $as_dummy +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_FLTKCONFIG="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + test -z "$ac_cv_path_FLTKCONFIG" && ac_cv_path_FLTKCONFIG="""" + ;; +esac +fi +FLTKCONFIG=$ac_cv_path_FLTKCONFIG + +if test -n "$FLTKCONFIG"; then + echo "$as_me:$LINENO: result: $FLTKCONFIG" >&5 +echo "${ECHO_T}$FLTKCONFIG" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + GMSH_LIBS="${GMSH_LIBS} -L${FLTK_PREFIX}/lib" + FLAGS="${FLAGS} -I${FLTK_PREFIX}" + else + # Extract the first word of "fltk-config", so it can be a program name with args. +set dummy fltk-config; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_FLTKCONFIG+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $FLTKCONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_FLTKCONFIG="$FLTKCONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_FLTKCONFIG="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + ;; +esac +fi +FLTKCONFIG=$ac_cv_path_FLTKCONFIG + +if test -n "$FLTKCONFIG"; then + echo "$as_me:$LINENO: result: $FLTKCONFIG" >&5 +echo "${ECHO_T}$FLTKCONFIG" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + fi + if test "x$FLTKCONFIG" = "x"; then + { { echo "$as_me:$LINENO: error: Could not find fltk-config. Try --with-fltk-prefix?" >&5 +echo "$as_me: error: Could not find fltk-config. Try --with-fltk-prefix?" >&2;} + { (exit 1); exit 1; }; } + fi + + GMSH_LIBS="${GMSH_LIBS} `$FLTKCONFIG --use-gl --use-images --ldflags`" + FLAGS="${FLAGS} `$FLTKCONFIG --use-gl --use-images --cxxflags`" + + FL_JPEG="" + expr "x${GMSH_LIBS}" : 'x.*fltk_jpeg.*' >/dev/null && FL_JPEG="yes" + FL_PNG="" + expr "x${GMSH_LIBS}" : 'x.*fltk_png.*' >/dev/null && FL_PNG="yes" + FL_ZLIB="" + expr "x${GMSH_LIBS}" : 'x.*fltk_z.*' >/dev/null && FL_ZLIB="yes" + + if test "x$enable_jpeg" != "xno"; then + if test "x${FL_JPEG}" = "xyes"; then + FLAGS="-DHAVE_LIBJPEG ${FLAGS}" + else + if test "x${JPEG_PREFIX}" != "x"; then + LDFLAGS="-L${JPEG_PREFIX} -L${JPEG_PREFIX}/lib ${LDFLAGS}" + fi + +echo "$as_me:$LINENO: checking for main in -ljpeg" >&5 +echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6 +if test "${ac_cv_lib_jpeg_main+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lm $LIBS" +LIBS="-ljpeg $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -3132,81 +3259,64 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_lib_m_main=yes + ac_cv_lib_jpeg_main=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_cv_lib_m_main=no +ac_cv_lib_jpeg_main=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 -echo "${ECHO_T}$ac_cv_lib_m_main" >&6 -if test $ac_cv_lib_m_main = yes; then - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBM 1 -_ACEOF - - LIBS="-lm $LIBS" - +echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5 +echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6 +if test $ac_cv_lib_jpeg_main = yes; then + JPEG="yes" +else + JPEG="no" fi + if test "x${JPEG}" = "xyes"; then + FLAGS="-DHAVE_LIBJPEG ${FLAGS}" + if test "x${JPEG_PREFIX}" = "x"; then + GMSH_LIBS="${GMSH_LIBS} -ljpeg" + else + GMSH_LIBS="${GMSH_LIBS} -L${JPEG_PREFIX} -L${JPEG_PREFIX}/lib -ljpeg" + FLAGS="${FLAGS} -I${JPEG_PREFIX} -I${JPEG_PREFIX}/include" + fi + fi + fi + fi -echo "$as_me:$LINENO: checking for vsnprintf" >&5 -echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6 -if test "${ac_cv_func_vsnprintf+set}" = set; then + ZLIB="" + if test "x$enable_zlib" != "xno"; then + if test "x${FL_ZLIB}" = "xyes"; then + ZLIB="yes" + else + if test "x${ZLIB_PREFIX}" != "x"; then + LDFLAGS="-L${ZLIB_PREFIX} -L${ZLIB_PREFIX}/lib ${LDFLAGS}" + fi + echo "$as_me:$LINENO: checking for main in -lz" >&5 +echo $ECHO_N "checking for main in -lz... $ECHO_C" >&6 +if test "${ac_cv_lib_z_main+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF + ac_check_lib_save_LIBS=$LIBS +LIBS="-lz $LIBS" +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf. - For example, HP-UX 11i <limits.h> declares gettimeofday. */ -#define vsnprintf innocuous_vsnprintf - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char vsnprintf (); below. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since - <limits.h> exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include <limits.h> -#else -# include <assert.h> -#endif -#undef vsnprintf - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char vsnprintf (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf) -choke me -#else -char (*f) () = vsnprintf; -#endif -#ifdef __cplusplus -} -#endif int main () { -return f != vsnprintf; +main (); ; return 0; } @@ -3233,76 +3343,54 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_func_vsnprintf=yes + ac_cv_lib_z_main=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_cv_func_vsnprintf=no +ac_cv_lib_z_main=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5 -echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6 -if test $ac_cv_func_vsnprintf = yes; then - : +echo "$as_me:$LINENO: result: $ac_cv_lib_z_main" >&5 +echo "${ECHO_T}$ac_cv_lib_z_main" >&6 +if test $ac_cv_lib_z_main = yes; then + ZLIB="yes" else - FLAGS="-DHAVE_NO_VSNPRINTF ${FLAGS}" + ZLIB="no" fi -echo "$as_me:$LINENO: checking for snprintf" >&5 -echo $ECHO_N "checking for snprintf... $ECHO_C" >&6 -if test "${ac_cv_func_snprintf+set}" = set; then + fi + fi + + if test "x$enable_png" != "xno" -a "x${ZLIB}" = "xyes"; then + if test "x${FL_PNG}" = "xyes"; then + FLAGS="-DHAVE_LIBPNG ${FLAGS}" + else + if test "x${PNG_PREFIX}" != "x"; then + LDFLAGS="-L${PNG_PREFIX} -L${PNG_PREFIX}/lib ${LDFLAGS}" + fi + echo "$as_me:$LINENO: checking for main in -lpng" >&5 +echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6 +if test "${ac_cv_lib_png_main+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpng $LIBS" +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf. - For example, HP-UX 11i <limits.h> declares gettimeofday. */ -#define snprintf innocuous_snprintf -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char snprintf (); below. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since - <limits.h> exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include <limits.h> -#else -# include <assert.h> -#endif - -#undef snprintf - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char snprintf (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_snprintf) || defined (__stub___snprintf) -choke me -#else -char (*f) () = snprintf; -#endif -#ifdef __cplusplus -} -#endif int main () { -return f != snprintf; +main (); ; return 0; } @@ -3329,199 +3417,67 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_func_snprintf=yes + ac_cv_lib_png_main=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_cv_func_snprintf=no +ac_cv_lib_png_main=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5 -echo "${ECHO_T}$ac_cv_func_snprintf" >&6 -if test $ac_cv_func_snprintf = yes; then - : -else - FLAGS="-DHAVE_NO_SNPRINTF ${FLAGS}" -fi - - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <sys/types.h> - #include <sys/socket.h> -int -main () -{ -socklen_t len = 42; return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : +echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5 +echo "${ECHO_T}$ac_cv_lib_png_main" >&6 +if test $ac_cv_lib_png_main = yes; then + PNG="yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -FLAGS="-DHAVE_NO_SOCKLEN_T ${FLAGS}" + PNG="no" fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - - -GMSH_DIRS="Common DataStr Geo Mesh Numeric Parallel Parser Plugin" - -if test "x$enable_gui" != "xno"; then - - GMSH_DIRS="${GMSH_DIRS} Graphics Fltk" - GMSH_LIBS="-Llib -lGmshFltk -lGmshParser -lGmshGraphics -lGmshMesh -lGmshGeo" - GMSH_LIBS="${GMSH_LIBS} -lGmshCommon -lGmshDataStr -lGmshPlugin -lGmshNumeric" - GMSH_LIBS="${GMSH_LIBS} -lGmshParallel" - FLAGS="-DHAVE_FLTK ${FLAGS}" - - if test "x${FLTK_PREFIX}" != "x" ; then - # Extract the first word of "fltk-config", so it can be a program name with args. -set dummy fltk-config; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_FLTKCONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $FLTKCONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_FLTKCONFIG="$FLTKCONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -as_dummy="${FLTK_PREFIX}:${FLTK_PREFIX}/bin:$PATH" -for as_dir in $as_dummy -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_FLTKCONFIG="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 + if test "x${PNG}" = "xyes"; then + FLAGS="-DHAVE_LIBPNG ${FLAGS}" + if test "x${PNG_PREFIX}" = "x"; then + GMSH_LIBS="${GMSH_LIBS} -lpng" + else + GMSH_LIBS="${GMSH_LIBS} -L${PNG_PREFIX} -L${PNG_PREFIX}/lib -lpng" + FLAGS="${FLAGS} -I${PNG_PREFIX} -I${PNG_PREFIX}/include" + fi + fi + fi fi -done -done - - test -z "$ac_cv_path_FLTKCONFIG" && ac_cv_path_FLTKCONFIG="""" - ;; -esac -fi -FLTKCONFIG=$ac_cv_path_FLTKCONFIG - -if test -n "$FLTKCONFIG"; then - echo "$as_me:$LINENO: result: $FLTKCONFIG" >&5 -echo "${ECHO_T}$FLTKCONFIG" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - GMSH_LIBS="${GMSH_LIBS} -L${FLTK_PREFIX}/lib" - INCLS="${INCLS} -I${FLTK_PREFIX}" - else - # Extract the first word of "fltk-config", so it can be a program name with args. -set dummy fltk-config; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_FLTKCONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $FLTKCONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_FLTKCONFIG="$FLTKCONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_FLTKCONFIG="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 + if test "x${ZLIB}" = "xyes"; then + if test "x${FL_ZLIB}" = "xyes"; then + FLAGS="-DHAVE_LIBZ ${FLAGS}" + else + FLAGS="-DHAVE_LIBZ ${FLAGS}" + if test "x${ZLIB_PREFIX}" = "x"; then + GMSH_LIBS="${GMSH_LIBS} -lz" + else + GMSH_LIBS="${GMSH_LIBS} -L${ZLIB_PREFIX} -L${ZLIB_PREFIX}/lib -lz" + FLAGS="${FLAGS} -I${ZLIB_PREFIX} -I${ZLIB_PREFIX}/include" + fi + fi fi -done -done - ;; -esac -fi -FLTKCONFIG=$ac_cv_path_FLTKCONFIG - -if test -n "$FLTKCONFIG"; then - echo "$as_me:$LINENO: result: $FLTKCONFIG" >&5 -echo "${ECHO_T}$FLTKCONFIG" >&6 else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - fi - if test "x$FLTKCONFIG" = "x"; then - { { echo "$as_me:$LINENO: error: Could not find fltk-config. Try --with-fltk-prefix?" >&5 -echo "$as_me: error: Could not find fltk-config. Try --with-fltk-prefix?" >&2;} - { (exit 1); exit 1; }; } - fi - - GMSH_LIBS="${GMSH_LIBS} `$FLTKCONFIG --use-gl --use-images --ldflags`" - INCLS="${INCLS} `$FLTKCONFIG --use-gl --use-images --cxxflags`" - - FL_JPEG="" - expr "x${GMSH_LIBS}" : 'x.*fltk_jpeg.*' >/dev/null && FL_JPEG="yes" - FL_PNG="" - expr "x${GMSH_LIBS}" : 'x.*fltk_png.*' >/dev/null && FL_PNG="yes" - FL_ZLIB="" - expr "x${GMSH_LIBS}" : 'x.*fltk_z.*' >/dev/null && FL_ZLIB="yes" - if test "x$enable_jpeg" != "xno"; then - if test "x${FL_JPEG}" = "xyes"; then - FLAGS="-DHAVE_LIBJPEG ${FLAGS}" - else - if test "x${JPEG_PREFIX}" != "x"; then - LDFLAGS="-L${JPEG_PREFIX} -L${JPEG_PREFIX}/lib ${LDFLAGS}" - fi - echo "$as_me:$LINENO: checking for main in -ljpeg" >&5 -echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6 -if test "${ac_cv_lib_jpeg_main+set}" = set; then + GMSH_DIRS="${GMSH_DIRS} Box" + GMSH_LIBS="-Llib -lGmshBox -lGmshParser -lGmshMesh -lGmshGeo -lGmshCommon" + GMSH_LIBS="${GMSH_LIBS} -lGmshDataStr -lGmshPlugin -lGmshNumeric -lGmshParallel" + +fi + + +echo "$as_me:$LINENO: checking for main in -lm" >&5 +echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 +if test "${ac_cv_lib_m_main+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-ljpeg $LIBS" +LIBS="-lm $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -3560,64 +3516,81 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_lib_jpeg_main=yes + ac_cv_lib_m_main=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_cv_lib_jpeg_main=no +ac_cv_lib_m_main=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5 -echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6 -if test $ac_cv_lib_jpeg_main = yes; then - JPEG="yes" -else - JPEG="no" +echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 +echo "${ECHO_T}$ac_cv_lib_m_main" >&6 +if test $ac_cv_lib_m_main = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBM 1 +_ACEOF + + LIBS="-lm $LIBS" + fi - if test "x${JPEG}" = "xyes"; then - FLAGS="-DHAVE_LIBJPEG ${FLAGS}" - if test "x${JPEG_PREFIX}" = "x"; then - GMSH_LIBS="${GMSH_LIBS} -ljpeg" - else - GMSH_LIBS="${GMSH_LIBS} -L${JPEG_PREFIX} -L${JPEG_PREFIX}/lib -ljpeg" - INCLS="${INCLS} -I${JPEG_PREFIX} -I${JPEG_PREFIX}/include" - fi - fi - fi - fi - ZLIB="" - if test "x$enable_zlib" != "xno"; then - if test "x${FL_ZLIB}" = "xyes"; then - ZLIB="yes" - else - if test "x${ZLIB_PREFIX}" != "x"; then - LDFLAGS="-L${ZLIB_PREFIX} -L${ZLIB_PREFIX}/lib ${LDFLAGS}" - fi - echo "$as_me:$LINENO: checking for main in -lz" >&5 -echo $ECHO_N "checking for main in -lz... $ECHO_C" >&6 -if test "${ac_cv_lib_z_main+set}" = set; then +echo "$as_me:$LINENO: checking for vsnprintf" >&5 +echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6 +if test "${ac_cv_func_vsnprintf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lz $LIBS" -cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ +/* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf. + For example, HP-UX 11i <limits.h> declares gettimeofday. */ +#define vsnprintf innocuous_vsnprintf + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char vsnprintf (); below. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since + <limits.h> exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include <limits.h> +#else +# include <assert.h> +#endif +#undef vsnprintf + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char vsnprintf (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf) +choke me +#else +char (*f) () = vsnprintf; +#endif +#ifdef __cplusplus +} +#endif int main () { -main (); +return f != vsnprintf; ; return 0; } @@ -3644,54 +3617,76 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_lib_z_main=yes + ac_cv_func_vsnprintf=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_cv_lib_z_main=no +ac_cv_func_vsnprintf=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:$LINENO: result: $ac_cv_lib_z_main" >&5 -echo "${ECHO_T}$ac_cv_lib_z_main" >&6 -if test $ac_cv_lib_z_main = yes; then - ZLIB="yes" +echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5 +echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6 +if test $ac_cv_func_vsnprintf = yes; then + : else - ZLIB="no" + FLAGS="-DHAVE_NO_VSNPRINTF ${FLAGS}" fi - fi - fi - - if test "x$enable_png" != "xno" -a "x${ZLIB}" = "xyes"; then - if test "x${FL_PNG}" = "xyes"; then - FLAGS="-DHAVE_LIBPNG ${FLAGS}" - else - if test "x${PNG_PREFIX}" != "x"; then - LDFLAGS="-L${PNG_PREFIX} -L${PNG_PREFIX}/lib ${LDFLAGS}" - fi - echo "$as_me:$LINENO: checking for main in -lpng" >&5 -echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6 -if test "${ac_cv_lib_png_main+set}" = set; then +echo "$as_me:$LINENO: checking for snprintf" >&5 +echo $ECHO_N "checking for snprintf... $ECHO_C" >&6 +if test "${ac_cv_func_snprintf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lpng $LIBS" -cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ +/* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf. + For example, HP-UX 11i <limits.h> declares gettimeofday. */ +#define snprintf innocuous_snprintf + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char snprintf (); below. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since + <limits.h> exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include <limits.h> +#else +# include <assert.h> +#endif +#undef snprintf + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char snprintf (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_snprintf) || defined (__stub___snprintf) +choke me +#else +char (*f) () = snprintf; +#endif +#ifdef __cplusplus +} +#endif int main () { -main (); +return f != snprintf; ; return 0; } @@ -3718,58 +3713,71 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_lib_png_main=yes + ac_cv_func_snprintf=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_cv_lib_png_main=no +ac_cv_func_snprintf=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5 -echo "${ECHO_T}$ac_cv_lib_png_main" >&6 -if test $ac_cv_lib_png_main = yes; then - PNG="yes" +echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5 +echo "${ECHO_T}$ac_cv_func_snprintf" >&6 +if test $ac_cv_func_snprintf = yes; then + : else - PNG="no" + FLAGS="-DHAVE_NO_SNPRINTF ${FLAGS}" fi - if test "x${PNG}" = "xyes"; then - FLAGS="-DHAVE_LIBPNG ${FLAGS}" - if test "x${PNG_PREFIX}" = "x"; then - GMSH_LIBS="${GMSH_LIBS} -lpng" - else - GMSH_LIBS="${GMSH_LIBS} -L${PNG_PREFIX} -L${PNG_PREFIX}/lib -lpng" - INCLS="${INCLS} -I${PNG_PREFIX} -I${PNG_PREFIX}/include" - fi - fi - fi - fi - - if test "x${ZLIB}" = "xyes"; then - if test "x${FL_ZLIB}" = "xyes"; then - FLAGS="-DHAVE_LIBZ ${FLAGS}" - else - FLAGS="-DHAVE_LIBZ ${FLAGS}" - if test "x${ZLIB_PREFIX}" = "x"; then - GMSH_LIBS="${GMSH_LIBS} -lz" - else - GMSH_LIBS="${GMSH_LIBS} -L${ZLIB_PREFIX} -L${ZLIB_PREFIX}/lib -lz" - INCLS="${INCLS} -I${ZLIB_PREFIX} -I${ZLIB_PREFIX}/include" - fi - fi - fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <sys/types.h> + #include <sys/socket.h> +int +main () +{ +socklen_t len = 42; return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + : else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - GMSH_DIRS="${GMSH_DIRS} Box" - GMSH_LIBS="-Llib -lGmshBox -lGmshParser -lGmshMesh -lGmshGeo -lGmshCommon" - GMSH_LIBS="${GMSH_LIBS} -lGmshDataStr -lGmshPlugin -lGmshNumeric -lGmshParallel" - +FLAGS="-DHAVE_NO_SOCKLEN_T ${FLAGS}" fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext if test "x$enable_contrib" != "xno"; then @@ -4203,7 +4211,7 @@ fi GMSH_LIBS="${GMSH_LIBS} -lgsl -lgslcblas" else GMSH_LIBS="${GMSH_LIBS} -L${GSL_PREFIX}/lib -lgsl -lgslcblas" - INCLS="${INCLS} -I${GSL_PREFIX}/include" + FLAGS="${FLAGS} -I${GSL_PREFIX}/include" fi fi fi @@ -4263,9 +4271,6 @@ if test "x$enable_parallel" = "xyes"; then FLAGS="-DHAVE_PARALLEL ${FLAGS}" fi -LINKER="${CXX}" -POSTBUILD="" - GMSH_LIBS="${GMSH_LIBS} -lm" case "$UNAME" in @@ -4273,9 +4278,7 @@ case "$UNAME" in CYGWIN* | MINGW*) LINKER="${LINKER} -mwindows" if test "x$enable_cygwin" = "xno"; then - FLAGS="${FLAGS} -mno-cygwin -DHAVE_NO_DLL" - LINKER="${LINKER} -mno-cygwin" - UNAME="${UNAME}-no-cygwin" + FLAGS="${FLAGS} -DHAVE_NO_DLL" fi if test "x$enable_gui" != "xno"; then GMSH_LIBS="${GMSH_LIBS} Fltk/Win32Icon.res" @@ -4735,7 +4738,6 @@ done - ac_config_files="$ac_config_files variables" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure @@ -4850,9 +4852,10 @@ for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_i=`echo "$ac_i" | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` - # 2. Add them. - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs @@ -5389,7 +5392,6 @@ s,@FLTKCONFIG@,$FLTKCONFIG,;t t s,@EGREP@,$EGREP,;t t s,@UNAME@,$UNAME,;t t s,@FLAGS@,$FLAGS,;t t -s,@INCLS@,$INCLS,;t t s,@OPTIM@,$OPTIM,;t t s,@LINKER@,$LINKER,;t t s,@GMSH_DIRS@,$GMSH_DIRS,;t t diff --git a/configure.in b/configure.in index bae1005a0f44339c103a1d0f2f5917e198a5f258..6f7c007bda7ccbd3fe794682181dcce66e45bbe7 100644 --- a/configure.in +++ b/configure.in @@ -1,4 +1,4 @@ -dnl $Id: configure.in,v 1.87 2006-01-28 05:26:43 geuzaine Exp $ +dnl $Id: configure.in,v 1.88 2006-02-24 22:07:05 geuzaine Exp $ dnl dnl Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle dnl @@ -103,10 +103,19 @@ AC_PROG_CXX if test "x${CC}" = "x" -o "x${CXX}" = "x" ; then AC_MSG_ERROR([Could not find required compilers, aborting.]) fi +LINKER="${CXX}" +POSTBUILD="" + +dnl Specify -mno-cygwin as soon as possible +if test "x$enable_cygwin" = "xno"; then + UNAME="${UNAME}-no-cygwin" + CC="${CC} -mno-cygwin" + CXX="${CXX} -mno-cygwin" + LINKER="${LINKER} -mno-cygwin" +fi dnl Set default flags FLAGS="" -INCLS="" OPTIM="${CXXFLAGS}" dnl Check for various programs @@ -120,19 +129,6 @@ if test "x${AR}" = "x:"; then fi AR="${AR} ruvs" -dnl Check for standard math library -AC_CHECK_LIB(m,main) - -dnl Check for various functions -AC_CHECK_FUNC(vsnprintf,,FLAGS="-DHAVE_NO_VSNPRINTF ${FLAGS}") -AC_CHECK_FUNC(snprintf,,FLAGS="-DHAVE_NO_SNPRINTF ${FLAGS}") - -dnl Check if Unix98 socklen_t type is available -AC_TRY_COMPILE( - [#include <sys/types.h> - #include <sys/socket.h>], - [socklen_t len = 42; return 0;],,FLAGS="-DHAVE_NO_SOCKLEN_T ${FLAGS}") - dnl See if we need a .exe extension on executables AC_EXEEXT @@ -152,7 +148,7 @@ if test "x$enable_gui" != "xno"; then AC_PATH_PROG(FLTKCONFIG,fltk-config,"",[${FLTK_PREFIX}:${FLTK_PREFIX}/bin:$PATH]) dnl Find the libs/includes even if fltk is _not_ properly installed (ugly hack!) GMSH_LIBS="${GMSH_LIBS} -L${FLTK_PREFIX}/lib" - INCLS="${INCLS} -I${FLTK_PREFIX}" + FLAGS="${FLAGS} -I${FLTK_PREFIX}" else AC_PATH_PROG(FLTKCONFIG,fltk-config) fi @@ -161,7 +157,7 @@ if test "x$enable_gui" != "xno"; then fi GMSH_LIBS="${GMSH_LIBS} `$FLTKCONFIG --use-gl --use-images --ldflags`" - INCLS="${INCLS} `$FLTKCONFIG --use-gl --use-images --cxxflags`" + FLAGS="${FLAGS} `$FLTKCONFIG --use-gl --use-images --cxxflags`" FL_JPEG="" expr "x${GMSH_LIBS}" : 'x.*fltk_jpeg.*' >/dev/null && FL_JPEG="yes" @@ -187,7 +183,7 @@ if test "x$enable_gui" != "xno"; then else dnl Find the libs/includes even if libjpeg is _not_ properly installed (ugly hack!) GMSH_LIBS="${GMSH_LIBS} -L${JPEG_PREFIX} -L${JPEG_PREFIX}/lib -ljpeg" - INCLS="${INCLS} -I${JPEG_PREFIX} -I${JPEG_PREFIX}/include" + FLAGS="${FLAGS} -I${JPEG_PREFIX} -I${JPEG_PREFIX}/include" fi fi fi @@ -224,7 +220,7 @@ if test "x$enable_gui" != "xno"; then else dnl Find the libs/includes even if libpng is _not_ properly installed (ugly hack!) GMSH_LIBS="${GMSH_LIBS} -L${PNG_PREFIX} -L${PNG_PREFIX}/lib -lpng" - INCLS="${INCLS} -I${PNG_PREFIX} -I${PNG_PREFIX}/include" + FLAGS="${FLAGS} -I${PNG_PREFIX} -I${PNG_PREFIX}/include" fi fi fi @@ -242,7 +238,7 @@ if test "x$enable_gui" != "xno"; then else dnl Find the libs/includes even if libz is _not_ properly installed (ugly hack!) GMSH_LIBS="${GMSH_LIBS} -L${ZLIB_PREFIX} -L${ZLIB_PREFIX}/lib -lz" - INCLS="${INCLS} -I${ZLIB_PREFIX} -I${ZLIB_PREFIX}/include" + FLAGS="${FLAGS} -I${ZLIB_PREFIX} -I${ZLIB_PREFIX}/include" fi fi fi @@ -255,6 +251,19 @@ else fi +dnl Check for standard math library +AC_CHECK_LIB(m,main) + +dnl Check for various functions +AC_CHECK_FUNC(vsnprintf,,FLAGS="-DHAVE_NO_VSNPRINTF ${FLAGS}") +AC_CHECK_FUNC(snprintf,,FLAGS="-DHAVE_NO_SNPRINTF ${FLAGS}") + +dnl Check if Unix98 socklen_t type is available +AC_TRY_COMPILE( + [#include <sys/types.h> + #include <sys/socket.h>], + [socklen_t len = 42; return 0;],,FLAGS="-DHAVE_NO_SOCKLEN_T ${FLAGS}") + dnl Check if we should consider the packages in contrib if test "x$enable_contrib" != "xno"; then @@ -433,7 +442,7 @@ if test "x$enable_gsl" != "xno"; then GMSH_LIBS="${GMSH_LIBS} -lgsl -lgslcblas" else GMSH_LIBS="${GMSH_LIBS} -L${GSL_PREFIX}/lib -lgsl -lgslcblas" - INCLS="${INCLS} -I${GSL_PREFIX}/include" + FLAGS="${FLAGS} -I${GSL_PREFIX}/include" fi fi fi @@ -471,10 +480,6 @@ if test "x$enable_parallel" = "xyes"; then FLAGS="-DHAVE_PARALLEL ${FLAGS}" fi -dnl Set default linker and post build action -LINKER="${CXX}" -POSTBUILD="" - dnl Finish link line GMSH_LIBS="${GMSH_LIBS} -lm" @@ -484,9 +489,7 @@ case "$UNAME" in CYGWIN* | MINGW*) LINKER="${LINKER} -mwindows" if test "x$enable_cygwin" = "xno"; then - FLAGS="${FLAGS} -mno-cygwin -DHAVE_NO_DLL" - LINKER="${LINKER} -mno-cygwin" - UNAME="${UNAME}-no-cygwin" + FLAGS="${FLAGS} -DHAVE_NO_DLL" fi if test "x$enable_gui" != "xno"; then GMSH_LIBS="${GMSH_LIBS} Fltk/Win32Icon.res" @@ -544,7 +547,6 @@ AC_CHECK_HEADERS(sys/time.h sys/resource.h) dnl Write output AC_SUBST(UNAME) AC_SUBST(FLAGS) -AC_SUBST(INCLS) AC_SUBST(OPTIM) AC_SUBST(LINKER) AC_SUBST(GMSH_DIRS) diff --git a/contrib/Metis/README b/contrib/Metis/README index d8cb6444b37d16be7e63c814a7372a07d1c87097..c257a6742ec0081949f01e78256a4c903b4aa8a5 100644 --- a/contrib/Metis/README +++ b/contrib/Metis/README @@ -1,3 +1,9 @@ + +This directory contains a slightly modifed version of Metis (see the +"Gmsh" tags in the code; the purpose of the changes is only to make the +library compile on all the architectures supported by Gmsh) + + /* * Copyright 1997, Regents of the University of Minnesota * @@ -8,7 +14,7 @@ * Started 8/27/94 * George * - * $Id: README,v 1.3 2005-11-26 16:01:11 geuzaine Exp $ + * $Id: README,v 1.4 2006-02-24 22:07:08 geuzaine Exp $ */ diff --git a/contrib/Metis/macros.h b/contrib/Metis/macros.h index 8151e10b415c3064b2b4d5c518b4229cb57b369a..cc316dba3559b4b97ae5754fa9a5448fb55375e1 100644 --- a/contrib/Metis/macros.h +++ b/contrib/Metis/macros.h @@ -8,7 +8,7 @@ * Started 9/25/94 * George * - * $Id: macros.h,v 1.1 2005-09-21 17:29:38 geuzaine Exp $ + * $Id: macros.h,v 1.2 2006-02-24 22:07:08 geuzaine Exp $ * */ @@ -16,7 +16,10 @@ /************************************************************************* * The following macro returns a random number in the specified range **************************************************************************/ -#ifdef __VC__ +/* Gmsh + #ifdef __VC__ +*/ +#if defined(WIN32) && !defined(__CYGWIN__) #define RandomInRange(u) ((rand()>>3)%(u)) #define RandomInRangeFast(u) ((rand()>>3)%(u)) #else diff --git a/contrib/Metis/util.c b/contrib/Metis/util.c index 69f16f8b899196fd9e59f912f0d648eb09fa416f..3a90c26ae5308936451772469410a9c20cfd7763 100644 --- a/contrib/Metis/util.c +++ b/contrib/Metis/util.c @@ -8,7 +8,7 @@ * Started 9/28/95 * George * - * $Id: util.c,v 1.2 2005-09-26 18:11:23 geuzaine Exp $ + * $Id: util.c,v 1.3 2006-02-24 22:07:08 geuzaine Exp $ */ #include <metis.h> @@ -493,13 +493,19 @@ int ispow2(int a) void InitRandom(int seed) { if (seed == -1) { -#ifndef __VC__ +/* Gmsh + #ifndef __VC__ +*/ +#if !defined(WIN32) || defined(__CYGWIN__) srand48(7654321L); #endif srand(4321); } else { -#ifndef __VC__ +/* Gmsh + #ifndef __VC__ +*/ +#if !defined(WIN32) || defined(__CYGWIN__) srand48(seed); #endif srand(seed); diff --git a/contrib/Triangle/Makefile b/contrib/Triangle/Makefile index 63e735c5b19a28082966ee89d4bb4cb27b6ec414..e8080092a2868d845f2ddc2b6d114b9820814323 100644 --- a/contrib/Triangle/Makefile +++ b/contrib/Triangle/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.2 2006-01-06 00:34:33 geuzaine Exp $ +# $Id: Makefile,v 1.3 2006-02-24 22:07:08 geuzaine Exp $ # # Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle # @@ -24,8 +24,8 @@ include ../../variables LIB = ../../lib/libGmshTriangle.a # Don't optimize triangle: it crashes on Linux -# CFLAGS = ${OPTIM} ${FLAGS} -DTRILIBRARY -CFLAGS = ${FLAGS} -DTRILIBRARY +# CFLAGS = ${OPTIM} ${FLAGS} -DTRILIBRARY -DNO_TIMER +CFLAGS = ${FLAGS} -DTRILIBRARY -DNO_TIMER SRC = triangle.c diff --git a/utils/solvers/c++/GmshClient.h b/utils/solvers/c++/GmshClient.h index ddfa50723b827b2dd793f28a9c08fd843f4ced14..5742f21f45caa4e4175e6c57d8ceea6f921ac7a1 100644 --- a/utils/solvers/c++/GmshClient.h +++ b/utils/solvers/c++/GmshClient.h @@ -36,18 +36,19 @@ #if !defined(WIN32) || defined(__CYGWIN__) +#include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/stat.h> #include <sys/un.h> #include <sys/time.h> -#include <unistd.h> #include <netinet/in.h> #include <netdb.h> #else // pure windows -#include <winsock2.h> +#include <winsock.h> +#include <process.h> #endif @@ -85,24 +86,12 @@ class GmshClient { _SendData(&len, sizeof(int)); _SendData(str, len); } - long _GetTime() + void _Idle(int usec) { #if !defined(WIN32) || defined(__CYGWIN__) - struct timeval tp; - gettimeofday(&tp, (struct timezone *)0); - return (long)tp.tv_sec * 1000000 + (long)tp.tv_usec; + usleep(usec); #else - return 0; -#endif - } - void _Idle(double delay) - { -#if !defined(WIN32) || defined(__CYGWIN__) - long t1 = _GetTime(); - while(1) { - if(_GetTime() - t1 > 1.e6 * delay) - break; - } + Sleep(usec); #endif } public: @@ -110,9 +99,16 @@ class GmshClient { ~GmshClient(){} int Connect(char *sockname) { +#if defined(WIN32) && !defined(__CYGWIN__) + WSADATA wsaData; + int iResult = WSAStartup(MAKEWORD(2,2), &wsaData); + if(iResult != NO_ERROR) + return -4; // Error: Couldn't initialize Windows sockets +#endif + // slight delay to be sure that the socket is bound by the // server before we attempt to connect to it... - _Idle(0.1); + _Idle(100); int portno; char remote[256]; @@ -133,6 +129,7 @@ class GmshClient { // create socket if(portno < 0){ +#if !defined(WIN32) || defined(__CYGWIN__) _sock = socket(PF_UNIX, SOCK_STREAM, 0); if(_sock < 0) return -1; // Error: Couldn't create socket @@ -143,8 +140,12 @@ class GmshClient { for(int tries = 0; tries < 5; tries++) { if(connect(_sock, (struct sockaddr *)&addr_un, sizeof(addr_un)) >= 0) return _sock; - _Idle(0.1); + _Idle(100); } +#else + // Unix sockets are not available on Windows without Cygwin + return -1; +#endif } else{ _sock = socket(AF_INET, SOCK_STREAM, 0); @@ -159,11 +160,10 @@ class GmshClient { addr_in.sin_family = AF_INET; memcpy((char *)&addr_in.sin_addr.s_addr, (char *)server->h_addr, server->h_length); addr_in.sin_port = htons(portno); - addr_in.sin_addr.s_addr = INADDR_ANY; for(int tries = 0; tries < 5; tries++) { if(connect(_sock, (struct sockaddr *)&addr_in, sizeof(addr_in)) >= 0) return _sock; - _Idle(0.1); + _Idle(100); } } return -2; // Error: Couldn't connect @@ -171,7 +171,11 @@ class GmshClient { void Start() { char tmp[256]; +#if !defined(WIN32) || defined(__CYGWIN__) sprintf(tmp, "%d", getpid()); +#else + sprintf(tmp, "%d", _getpid()); +#endif _SendString(CLIENT_START, tmp); } void Stop() @@ -215,7 +219,12 @@ class GmshClient { } void Disconnect() { +#if !defined(WIN32) || defined(__CYGWIN__) close(_sock); +#else + closesocket(_sock); + WSACleanup(); +#endif } }; diff --git a/utils/solvers/c++/Makefile b/utils/solvers/c++/Makefile index 4f3a70c11e7092e84b9f289d1b1e65f7e764e3b8..75980d9b89db51f0f49c4719f6227ae7aa2e0b6f 100644 --- a/utils/solvers/c++/Makefile +++ b/utils/solvers/c++/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.6 2006-02-24 02:29:45 geuzaine Exp $ +# $Id: Makefile,v 1.7 2006-02-24 22:07:08 geuzaine Exp $ # # Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle # @@ -23,6 +23,9 @@ include ../../../variables all: solver.exe interactive.exe +win: solver.cpp + ${CXX} ${FLAGS} ${OPTIM} -o solver.exe solver.cpp -lwsock32 + solver.exe: solver.cpp ${CXX} ${FLAGS} ${OPTIM} -o solver.exe solver.cpp diff --git a/utils/solvers/c++/solver.cpp b/utils/solvers/c++/solver.cpp index 48c883c2c9e07e11c8f7f3574d8b7ce75713820d..b1abd41deade5680693a3172b91a07b6f2280c70 100644 --- a/utils/solvers/c++/solver.cpp +++ b/utils/solvers/c++/solver.cpp @@ -1,4 +1,4 @@ -// $Id: solver.cpp,v 1.7 2006-02-23 21:59:08 geuzaine Exp $ +// $Id: solver.cpp,v 1.8 2006-02-24 22:07:08 geuzaine Exp $ // // Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle // @@ -100,7 +100,12 @@ int main(int argc, char *argv[]) // do the computation and merge some views for(int i = 0; i < 10; i++){ client.Info("Computing curve..."); - sleep(1); // fake computation... + // fake computation... +#if !defined(WIN32) || defined(__CYGWIN__) + usleep(500); +#else + Sleep(500); +#endif client.Info("Done computing curve"); FILE *file = fopen("solver.pos", "w"); if(!file) diff --git a/utils/solvers/c++/solver.opt b/utils/solvers/c++/solver.opt index c8e38486d211faf6b2481983bae6811e4cadd702..2601ed0e33712f4830bd2d63c2824fe46c72a69d 100644 --- a/utils/solvers/c++/solver.opt +++ b/utils/solvers/c++/solver.opt @@ -1,5 +1,5 @@ Solver.Name1 = "My C++ Solver"; -Solver.Executable1 = "./solver.exe"; +Solver.Executable1 = "solver.exe"; Solver.OptionCommand1 = "-options"; Solver.FirstOption1 = "My options"; Solver.FirstButton1 = "Run !"; diff --git a/variables.in b/variables.in index f8fcd1273e36e4cd7fb9f03a095237bac98500a7..57f008fa79d04dd4b4f86bdc6209f9e5af083d44 100644 --- a/variables.in +++ b/variables.in @@ -1,4 +1,4 @@ -# $Id: variables.in,v 1.12 2006-01-06 00:34:20 geuzaine Exp $ +# $Id: variables.in,v 1.13 2006-02-24 22:07:05 geuzaine Exp $ # # Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle # @@ -34,7 +34,7 @@ CXX=@CXX@ LINKER=@LINKER@ # Compiler flags -FLAGS=@FLAGS@ @INCLS@ +FLAGS=@FLAGS@ OPTIM=@OPTIM@ # Gmsh subdirectories and libraries