Newer
Older
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
/* 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 tAttractor 325
#define tLayers 326
#define tAlias 327
#define tAliasWithOptions 328
#define tText2D 329
#define tText3D 330
#define tInterpolationScheme 331
#define tTime 332
#define tGrain 333
#define tCombine 334
#define tBSpline 335
#define tBezier 336
#define tNurbs 337
#define tOrder 338
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#define tKnots 339
#define tColor 340
#define tColorTable 341
#define tFor 342
#define tIn 343
#define tEndFor 344
#define tIf 345
#define tEndIf 346
#define tExit 347
#define tReturn 348
#define tCall 349
#define tFunction 350
#define tShow 351
#define tHide 352
#define tGetValue 353
#define tGMSH_MAJOR_VERSION 354
#define tGMSH_MINOR_VERSION 355
#define tGMSH_PATCH_VERSION 356
#define tAFFECTPLUS 357
#define tAFFECTMINUS 358
#define tAFFECTTIMES 359
#define tAFFECTDIVIDE 360
#define tOR 361
#define tAND 362
#define tEQUAL 363
#define tNOTEQUAL 364
#define tLESSOREQUAL 365
#define tGREATEROREQUAL 366
#define tPLUSPLUS 367
#define tMINUSMINUS 368
#define UNARYPREC 369
#line 1 "Gmsh.y"
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
// 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 of the License, 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

Christophe Geuzaine
committed
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
// USA.
//
#include <stdarg.h>
#include "Gmsh.h"
#include "Numeric.h"
#include "Context.h"
#include "Geo.h"

Christophe Geuzaine
committed
#include "Draw.h"
#include "Views.h"
#include "Colors.h"
#include "Parser.h"
static List_T *ViewValueList;
static double ViewCoord[100];
static int *ViewNumList, ViewNumNodes, ViewNumComp, ViewNumListTmp;
static int ViewCoordIdx, ViewElementIdx;
#define MAX_RECUR_LOOPS 100
static int ImbricatedLoop = 0;
static fpos_t yyposImbricatedLoopsTab[MAX_RECUR_LOOPS];
static int yylinenoImbricatedLoopsTab[MAX_RECUR_LOOPS];
static double LoopControlVariablesTab[MAX_RECUR_LOOPS][3];
static char *LoopControlVariablesNameTab[MAX_RECUR_LOOPS];
void yyerror(char *s);
void yymsg(int type, char *fmt, ...);
void skip_until(char *skip, char *until);
int PrintListOfDouble(char *format, List_T *list, char *buffer);
int CheckViewErrorFlags(Post_View *v);
Loading
Loading full blame...