Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Romin Tomasetti
gmsh
Commits
ebb4f803
Commit
ebb4f803
authored
9 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fix compile w/o Post
parent
502b59eb
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Common/Gmsh.cpp
+2
-0
2 additions, 0 deletions
Common/Gmsh.cpp
Parser/Gmsh.tab.cpp
+4801
-4920
4801 additions, 4920 deletions
Parser/Gmsh.tab.cpp
Parser/Gmsh.tab.hpp
+217
-389
217 additions, 389 deletions
Parser/Gmsh.tab.hpp
Parser/Gmsh.yy.cpp
+13
-16
13 additions, 16 deletions
Parser/Gmsh.yy.cpp
with
5033 additions
and
5325 deletions
Common/Gmsh.cpp
+
2
−
0
View file @
ebb4f803
...
@@ -229,7 +229,9 @@ int GmshWriteFile(const std::string &fileName)
...
@@ -229,7 +229,9 @@ int GmshWriteFile(const std::string &fileName)
int
GmshFinalize
()
int
GmshFinalize
()
{
{
#if defined(HAVE_POST)
PView
::
list
.
clear
();
PView
::
list
.
clear
();
#endif
GModel
::
list
.
clear
();
GModel
::
list
.
clear
();
CTX
::
instance
()
->
files
.
clear
();
CTX
::
instance
()
->
files
.
clear
();
return
1
;
return
1
;
...
...
This diff is collapsed.
Click to expand it.
Parser/Gmsh.tab.cpp
+
4801
−
4920
View file @
ebb4f803
Source diff could not be displayed: it is too large. Options to address this:
view the blob
.
This diff is collapsed.
Click to expand it.
Parser/Gmsh.tab.hpp
+
217
−
389
View file @
ebb4f803
/* A Bison parser, made by GNU Bison
2.3
. */
/* A Bison parser, made by GNU Bison
3.0.4
. */
/*
Skelet
on interface for
Bison's
Yacc-like parsers in C
/*
Bis
on interface for Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
Free Software Foundation, Inc.
This program is free software
;
you can redistribute it and/or modify
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
it under the terms of the GNU General Public License as published by
the Free Software Foundation
;
either version
2, or (at your option)
the Free Software Foundation
,
either version
3 of the License, or
any later version.
(at your option)
any later version.
This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of
...
@@ -16,9 +15,7 @@
...
@@ -16,9 +15,7 @@
GNU General Public License for more details.
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
along with this program. If not, see <http://www.gnu.org/licenses/>. */
Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA. */
/* As a special exception, you may create a larger work that contains
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
part or all of the Bison parser skeleton and distribute that work
...
@@ -33,385 +30,212 @@
...
@@ -33,385 +30,212 @@
This special exception was added by the Free Software Foundation in
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
version 2.2 of Bison. */
/* Tokens. */
#ifndef YY_GMSH_YY_GMSH_TAB_HPP_INCLUDED
# define YY_GMSH_YY_GMSH_TAB_HPP_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern
int
gmsh_yydebug
;
#endif
/* Token type. */
#ifndef YYTOKENTYPE
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
# define YYTOKENTYPE
/* Put the tokens into the symbol table, so that GDB and other debuggers
enum
yytokentype
know about them. */
{
enum
yytokentype
{
tDOUBLE
=
258
,
tDOUBLE
=
258
,
tSTRING
=
259
,
tSTRING
=
259
,
tBIGSTR
=
260
,
tBIGSTR
=
260
,
tEND
=
261
,
tEND
=
261
,
tAFFECT
=
262
,
tAFFECT
=
262
,
tDOTS
=
263
,
tDOTS
=
263
,
tPi
=
264
,
tPi
=
264
,
tMPI_Rank
=
265
,
tMPI_Rank
=
265
,
tMPI_Size
=
266
,
tMPI_Size
=
266
,
tEuclidian
=
267
,
tEuclidian
=
267
,
tCoordinates
=
268
,
tCoordinates
=
268
,
tExp
=
269
,
tExp
=
269
,
tLog
=
270
,
tLog
=
270
,
tLog10
=
271
,
tLog10
=
271
,
tSqrt
=
272
,
tSqrt
=
272
,
tSin
=
273
,
tSin
=
273
,
tAsin
=
274
,
tAsin
=
274
,
tCos
=
275
,
tCos
=
275
,
tAcos
=
276
,
tAcos
=
276
,
tTan
=
277
,
tTan
=
277
,
tRand
=
278
,
tRand
=
278
,
tAtan
=
279
,
tAtan
=
279
,
tAtan2
=
280
,
tAtan2
=
280
,
tSinh
=
281
,
tSinh
=
281
,
tCosh
=
282
,
tCosh
=
282
,
tTanh
=
283
,
tTanh
=
283
,
tFabs
=
284
,
tFabs
=
284
,
tFloor
=
285
,
tFloor
=
285
,
tCeil
=
286
,
tCeil
=
286
,
tRound
=
287
,
tRound
=
287
,
tFmod
=
288
,
tFmod
=
288
,
tModulo
=
289
,
tModulo
=
289
,
tHypot
=
290
,
tHypot
=
290
,
tList
=
291
,
tList
=
291
,
tPrintf
=
292
,
tPrintf
=
292
,
tError
=
293
,
tError
=
293
,
tStr
=
294
,
tStr
=
294
,
tSprintf
=
295
,
tSprintf
=
295
,
tStrCat
=
296
,
tStrCat
=
296
,
tStrPrefix
=
297
,
tStrPrefix
=
297
,
tStrRelative
=
298
,
tStrRelative
=
298
,
tStrReplace
=
299
,
tStrReplace
=
299
,
tFind
=
300
,
tFind
=
300
,
tStrFind
=
301
,
tStrFind
=
301
,
tStrCmp
=
302
,
tStrCmp
=
302
,
tStrChoice
=
303
,
tStrChoice
=
303
,
tUpperCase
=
304
,
tUpperCase
=
304
,
tLowerCase
=
305
,
tLowerCase
=
305
,
tLowerCaseIn
=
306
,
tLowerCaseIn
=
306
,
tTextAttributes
=
307
,
tTextAttributes
=
307
,
tBoundingBox
=
308
,
tBoundingBox
=
308
,
tDraw
=
309
,
tDraw
=
309
,
tSetChanged
=
310
,
tSetChanged
=
310
,
tToday
=
311
,
tToday
=
311
,
tFixRelativePath
=
312
,
tFixRelativePath
=
312
,
tCurrentDirectory
=
313
,
tCurrentDirectory
=
313
,
tSyncModel
=
314
,
tSyncModel
=
314
,
tNewModel
=
315
,
tNewModel
=
315
,
tOnelabAction
=
316
,
tOnelabAction
=
316
,
tOnelabRun
=
317
,
tOnelabRun
=
317
,
tCpu
=
318
,
tCpu
=
318
,
tMemory
=
319
,
tMemory
=
319
,
tTotalMemory
=
320
,
tTotalMemory
=
320
,
tCreateTopology
=
321
,
tCreateTopology
=
321
,
tCreateTopologyNoHoles
=
322
,
tCreateTopologyNoHoles
=
322
,
tDistanceFunction
=
323
,
tDistanceFunction
=
323
,
tDefineConstant
=
324
,
tDefineConstant
=
324
,
tUndefineConstant
=
325
,
tUndefineConstant
=
325
,
tDefineNumber
=
326
,
tDefineNumber
=
326
,
tDefineString
=
327
,
tDefineString
=
327
,
tSetNumber
=
328
,
tSetNumber
=
328
,
tSetString
=
329
,
tSetString
=
329
,
tPoint
=
330
,
tPoint
=
330
,
tCircle
=
331
,
tCircle
=
331
,
tEllipse
=
332
,
tEllipse
=
332
,
tLine
=
333
,
tLine
=
333
,
tSphere
=
334
,
tSphere
=
334
,
tPolarSphere
=
335
,
tPolarSphere
=
335
,
tSurface
=
336
,
tSurface
=
336
,
tSpline
=
337
,
tSpline
=
337
,
tVolume
=
338
,
tVolume
=
338
,
tCharacteristic
=
339
,
tCharacteristic
=
339
,
tLength
=
340
,
tLength
=
340
,
tParametric
=
341
,
tParametric
=
341
,
tElliptic
=
342
,
tElliptic
=
342
,
tRefineMesh
=
343
,
tRefineMesh
=
343
,
tAdaptMesh
=
344
,
tAdaptMesh
=
344
,
tRelocateMesh
=
345
,
tRelocateMesh
=
345
,
tPlane
=
346
,
tPlane
=
346
,
tRuled
=
347
,
tRuled
=
347
,
tTransfinite
=
348
,
tTransfinite
=
348
,
tComplex
=
349
,
tComplex
=
349
,
tPhysical
=
350
,
tPhysical
=
350
,
tCompound
=
351
,
tCompound
=
351
,
tPeriodic
=
352
,
tPeriodic
=
352
,
tUsing
=
353
,
tUsing
=
353
,
tPlugin
=
354
,
tPlugin
=
354
,
tDegenerated
=
355
,
tDegenerated
=
355
,
tRecursive
=
356
,
tRecursive
=
356
,
tRotate
=
357
,
tRotate
=
357
,
tTranslate
=
358
,
tTranslate
=
358
,
tSymmetry
=
359
,
tSymmetry
=
359
,
tDilate
=
360
,
tDilate
=
360
,
tExtrude
=
361
,
tExtrude
=
361
,
tLevelset
=
362
,
tLevelset
=
362
,
tAffine
=
363
,
tAffine
=
363
,
tRecombine
=
364
,
tRecombine
=
364
,
tSmoother
=
365
,
tSmoother
=
365
,
tSplit
=
366
,
tSplit
=
366
,
tDelete
=
367
,
tDelete
=
367
,
tCoherence
=
368
,
tCoherence
=
368
,
tIntersect
=
369
,
tIntersect
=
369
,
tMeshAlgorithm
=
370
,
tMeshAlgorithm
=
370
,
tReverse
=
371
,
tReverse
=
371
,
tLayers
=
372
,
tLayers
=
372
,
tScaleLast
=
373
,
tScaleLast
=
373
,
tHole
=
374
,
tHole
=
374
,
tAlias
=
375
,
tAlias
=
375
,
tAliasWithOptions
=
376
,
tAliasWithOptions
=
376
,
tCopyOptions
=
377
,
tCopyOptions
=
377
,
tQuadTriAddVerts
=
378
,
tQuadTriAddVerts
=
378
,
tQuadTriNoNewVerts
=
379
,
tQuadTriNoNewVerts
=
379
,
tQuadTriSngl
=
380
,
tQuadTriSngl
=
380
,
tQuadTriDbl
=
381
,
tQuadTriDbl
=
381
,
tRecombLaterals
=
382
,
tRecombLaterals
=
382
,
tTransfQuadTri
=
383
,
tTransfQuadTri
=
383
,
tText2D
=
384
,
tText2D
=
384
,
tText3D
=
385
,
tText3D
=
385
,
tInterpolationScheme
=
386
,
tInterpolationScheme
=
386
,
tTime
=
387
,
tTime
=
387
,
tCombine
=
388
,
tCombine
=
388
,
tBSpline
=
389
,
tBSpline
=
389
,
tBezier
=
390
,
tBezier
=
390
,
tNurbs
=
391
,
tNurbs
=
391
,
tNurbsOrder
=
392
,
tNurbsOrder
=
392
,
tNurbsKnots
=
393
,
tNurbsKnots
=
393
,
tColor
=
394
,
tColor
=
394
,
tColorTable
=
395
,
tColorTable
=
395
,
tFor
=
396
,
tFor
=
396
,
tIn
=
397
,
tIn
=
397
,
tEndFor
=
398
,
tEndFor
=
398
,
tIf
=
399
,
tIf
=
399
,
tEndIf
=
400
,
tEndIf
=
400
,
tExit
=
401
,
tExit
=
401
,
tAbort
=
402
,
tAbort
=
402
,
tField
=
403
,
tField
=
403
,
tReturn
=
404
,
tReturn
=
404
,
tCall
=
405
,
tCall
=
405
,
tMacro
=
406
,
tMacro
=
406
,
tShow
=
407
,
tShow
=
407
,
tHide
=
408
,
tHide
=
408
,
tGetValue
=
409
,
tGetValue
=
409
,
tGetEnv
=
410
,
tGetEnv
=
410
,
tGetString
=
411
,
tGetString
=
411
,
tGetNumber
=
412
,
tGetNumber
=
412
,
tHomology
=
413
,
tHomology
=
413
,
tCohomology
=
414
,
tCohomology
=
414
,
tBetti
=
415
,
tBetti
=
415
,
tSetOrder
=
416
,
tSetOrder
=
416
,
tExists
=
417
,
tExists
=
417
,
tFileExists
=
418
,
tFileExists
=
418
,
tGMSH_MAJOR_VERSION
=
419
,
tGMSH_MAJOR_VERSION
=
419
,
tGMSH_MINOR_VERSION
=
420
,
tGMSH_MINOR_VERSION
=
420
,
tGMSH_PATCH_VERSION
=
421
,
tGMSH_PATCH_VERSION
=
421
,
tGmshExecutableName
=
422
,
tGmshExecutableName
=
422
,
tSetPartition
=
423
,
tSetPartition
=
423
,
tNameFromString
=
424
,
tNameFromString
=
424
,
tStringFromName
=
425
,
tStringFromName
=
425
,
tAFFECTPLUS
=
426
,
tAFFECTDIVIDE
=
426
,
tAFFECTMINUS
=
427
,
tAFFECTTIMES
=
427
,
tAFFECTTIMES
=
428
,
tAFFECTMINUS
=
428
,
tAFFECTDIVIDE
=
429
,
tAFFECTPLUS
=
429
,
tOR
=
430
,
tOR
=
430
,
tAND
=
431
,
tAND
=
431
,
tEQUAL
=
432
,
tNOTEQUAL
=
432
,
tNOTEQUAL
=
433
,
tEQUAL
=
433
,
tLESSOREQUAL
=
434
,
tGREATEROREQUAL
=
434
,
tGREATEROREQUAL
=
435
,
tLESSOREQUAL
=
435
,
tPLUSPLUS
=
436
,
UNARYPREC
=
436
,
tMINUSMINUS
=
437
,
tMINUSMINUS
=
437
,
UNARYPREC
=
438
tPLUSPLUS
=
438
};
};
#endif
#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 tEuclidian 267
#define tCoordinates 268
#define tExp 269
#define tLog 270
#define tLog10 271
#define tSqrt 272
#define tSin 273
#define tAsin 274
#define tCos 275
#define tAcos 276
#define tTan 277
#define tRand 278
#define tAtan 279
#define tAtan2 280
#define tSinh 281
#define tCosh 282
#define tTanh 283
#define tFabs 284
#define tFloor 285
#define tCeil 286
#define tRound 287
#define tFmod 288
#define tModulo 289
#define tHypot 290
#define tList 291
#define tPrintf 292
#define tError 293
#define tStr 294
#define tSprintf 295
#define tStrCat 296
#define tStrPrefix 297
#define tStrRelative 298
#define tStrReplace 299
#define tFind 300
#define tStrFind 301
#define tStrCmp 302
#define tStrChoice 303
#define tUpperCase 304
#define tLowerCase 305
#define tLowerCaseIn 306
#define tTextAttributes 307
#define tBoundingBox 308
#define tDraw 309
#define tSetChanged 310
#define tToday 311
#define tFixRelativePath 312
#define tCurrentDirectory 313
#define tSyncModel 314
#define tNewModel 315
#define tOnelabAction 316
#define tOnelabRun 317
#define tCpu 318
#define tMemory 319
#define tTotalMemory 320
#define tCreateTopology 321
#define tCreateTopologyNoHoles 322
#define tDistanceFunction 323
#define tDefineConstant 324
#define tUndefineConstant 325
#define tDefineNumber 326
#define tDefineString 327
#define tSetNumber 328
#define tSetString 329
#define tPoint 330
#define tCircle 331
#define tEllipse 332
#define tLine 333
#define tSphere 334
#define tPolarSphere 335
#define tSurface 336
#define tSpline 337
#define tVolume 338
#define tCharacteristic 339
#define tLength 340
#define tParametric 341
#define tElliptic 342
#define tRefineMesh 343
#define tAdaptMesh 344
#define tRelocateMesh 345
#define tPlane 346
#define tRuled 347
#define tTransfinite 348
#define tComplex 349
#define tPhysical 350
#define tCompound 351
#define tPeriodic 352
#define tUsing 353
#define tPlugin 354
#define tDegenerated 355
#define tRecursive 356
#define tRotate 357
#define tTranslate 358
#define tSymmetry 359
#define tDilate 360
#define tExtrude 361
#define tLevelset 362
#define tAffine 363
#define tRecombine 364
#define tSmoother 365
#define tSplit 366
#define tDelete 367
#define tCoherence 368
#define tIntersect 369
#define tMeshAlgorithm 370
#define tReverse 371
#define tLayers 372
#define tScaleLast 373
#define tHole 374
#define tAlias 375
#define tAliasWithOptions 376
#define tCopyOptions 377
#define tQuadTriAddVerts 378
#define tQuadTriNoNewVerts 379
#define tQuadTriSngl 380
#define tQuadTriDbl 381
#define tRecombLaterals 382
#define tTransfQuadTri 383
#define tText2D 384
#define tText3D 385
#define tInterpolationScheme 386
#define tTime 387
#define tCombine 388
#define tBSpline 389
#define tBezier 390
#define tNurbs 391
#define tNurbsOrder 392
#define tNurbsKnots 393
#define tColor 394
#define tColorTable 395
#define tFor 396
#define tIn 397
#define tEndFor 398
#define tIf 399
#define tEndIf 400
#define tExit 401
#define tAbort 402
#define tField 403
#define tReturn 404
#define tCall 405
#define tMacro 406
#define tShow 407
#define tHide 408
#define tGetValue 409
#define tGetEnv 410
#define tGetString 411
#define tGetNumber 412
#define tHomology 413
#define tCohomology 414
#define tBetti 415
#define tSetOrder 416
#define tExists 417
#define tFileExists 418
#define tGMSH_MAJOR_VERSION 419
#define tGMSH_MINOR_VERSION 420
#define tGMSH_PATCH_VERSION 421
#define tGmshExecutableName 422
#define tSetPartition 423
#define tNameFromString 424
#define tStringFromName 425
#define tAFFECTDIVIDE 426
#define tAFFECTTIMES 427
#define tAFFECTMINUS 428
#define tAFFECTPLUS 429
#define tOR 430
#define tAND 431
#define tNOTEQUAL 432
#define tEQUAL 433
#define tGREATEROREQUAL 434
#define tLESSOREQUAL 435
#define UNARYPREC 436
#define tMINUSMINUS 437
#define tPLUSPLUS 438
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef
union
YYSTYPE
#line 105 "Gmsh.y"
union
YYSTYPE
{
{
#line 105 "Gmsh.y"
/* yacc.c:1909 */
char
*
c
;
char
*
c
;
int
i
;
int
i
;
unsigned
int
u
;
unsigned
int
u
;
...
@@ -419,14 +243,18 @@ typedef union YYSTYPE
...
@@ -419,14 +243,18 @@ typedef union YYSTYPE
double
v
[
5
];
double
v
[
5
];
Shape
s
;
Shape
s
;
List_T
*
l
;
List_T
*
l
;
}
/* Line 1529 of yacc.c. */
#line 248 "Gmsh.tab.hpp"
/* yacc.c:1909 */
#line 425 "Gmsh.tab.hpp"
};
YYSTYPE
;
# define yystype YYSTYPE
/* obsolescent; will be withdrawn */
typedef
union
YYSTYPE
YYSTYPE
;
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif
#endif
extern
YYSTYPE
gmsh_yylval
;
extern
YYSTYPE
gmsh_yylval
;
int
gmsh_yyparse
(
void
);
#endif
/* !YY_GMSH_YY_GMSH_TAB_HPP_INCLUDED */
This diff is collapsed.
Click to expand it.
Parser/Gmsh.yy.cpp
+
13
−
16
View file @
ebb4f803
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#define FLEX_SCANNER
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
#define YY_FLEX_MINOR_VERSION 5
#define YY_FLEX_SUBMINOR_VERSION 3
5
#define YY_FLEX_SUBMINOR_VERSION 3
7
#if YY_FLEX_SUBMINOR_VERSION > 0
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#define FLEX_BETA
#endif
#endif
...
@@ -66,7 +66,6 @@ typedef int16_t flex_int16_t;
...
@@ -66,7 +66,6 @@ typedef int16_t flex_int16_t;
typedef
uint16_t
flex_uint16_t
;
typedef
uint16_t
flex_uint16_t
;
typedef
int32_t
flex_int32_t
;
typedef
int32_t
flex_int32_t
;
typedef
uint32_t
flex_uint32_t
;
typedef
uint32_t
flex_uint32_t
;
typedef
uint64_t
flex_uint64_t
;
#else
#else
typedef
signed
char
flex_int8_t
;
typedef
signed
char
flex_int8_t
;
typedef
short
int
flex_int16_t
;
typedef
short
int
flex_int16_t
;
...
@@ -74,7 +73,6 @@ typedef int flex_int32_t;
...
@@ -74,7 +73,6 @@ typedef int flex_int32_t;
typedef
unsigned
char
flex_uint8_t
;
typedef
unsigned
char
flex_uint8_t
;
typedef
unsigned
short
int
flex_uint16_t
;
typedef
unsigned
short
int
flex_uint16_t
;
typedef
unsigned
int
flex_uint32_t
;
typedef
unsigned
int
flex_uint32_t
;
#endif
/* ! C99 */
/* Limits of integral types. */
/* Limits of integral types. */
#ifndef INT8_MIN
#ifndef INT8_MIN
...
@@ -105,6 +103,8 @@ typedef unsigned int flex_uint32_t;
...
@@ -105,6 +103,8 @@ typedef unsigned int flex_uint32_t;
#define UINT32_MAX (4294967295U)
#define UINT32_MAX (4294967295U)
#endif
#endif
#endif
/* ! C99 */
#endif
/* ! FLEXINT_H */
#endif
/* ! FLEXINT_H */
#ifdef __cplusplus
#ifdef __cplusplus
...
@@ -375,7 +375,7 @@ static void yy_fatal_error (yyconst char msg[] );
...
@@ -375,7 +375,7 @@ static void yy_fatal_error (yyconst char msg[] );
*/
*/
#define YY_DO_BEFORE_ACTION \
#define YY_DO_BEFORE_ACTION \
(yytext_ptr) = yy_bp; \
(yytext_ptr) = yy_bp; \
gmsh_yyleng = (
yy_
size_t) (yy_cp - yy_bp); \
gmsh_yyleng = (size_t) (yy_cp - yy_bp); \
(yy_hold_char) = *yy_cp; \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
*yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp;
(yy_c_buf_p) = yy_cp;
...
@@ -1240,7 +1240,7 @@ static int input (void );
...
@@ -1240,7 +1240,7 @@ static int input (void );
/* This used to be an fputs(), but since the string might contain NUL's,
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
* we now use fwrite().
*/
*/
#define ECHO fwrite( gmsh_yytext, gmsh_yyleng, 1, gmsh_yyout )
#define ECHO
do { if (
fwrite( gmsh_yytext, gmsh_yyleng, 1, gmsh_yyout )
) {} } while (0)
#endif
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
...
@@ -1251,7 +1251,7 @@ static int input (void );
...
@@ -1251,7 +1251,7 @@ static int input (void );
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
{ \
int c = '*'; \
int c = '*'; \
yy_
size_t n; \
size_t n; \
for ( n = 0; n < max_size && \
for ( n = 0; n < max_size && \
(c = getc( gmsh_yyin )) != EOF && c != '\n'; ++n ) \
(c = getc( gmsh_yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
buf[n] = (char) c; \
...
@@ -2634,7 +2634,7 @@ static int yy_get_next_buffer (void)
...
@@ -2634,7 +2634,7 @@ static int yy_get_next_buffer (void)
{
/* Not enough room in the buffer - grow it. */
{
/* Not enough room in the buffer - grow it. */
/* just a shorter name for the current buffer */
/* just a shorter name for the current buffer */
YY_BUFFER_STATE
b
=
YY_CURRENT_BUFFER
;
YY_BUFFER_STATE
b
=
YY_CURRENT_BUFFER
_LVALUE
;
int
yy_c_buf_p_offset
=
int
yy_c_buf_p_offset
=
(
int
)
((
yy_c_buf_p
)
-
b
->
yy_ch_buf
);
(
int
)
((
yy_c_buf_p
)
-
b
->
yy_ch_buf
);
...
@@ -2767,7 +2767,7 @@ static int yy_get_next_buffer (void)
...
@@ -2767,7 +2767,7 @@ static int yy_get_next_buffer (void)
yy_current_state
=
yy_nxt
[
yy_base
[
yy_current_state
]
+
(
unsigned
int
)
yy_c
];
yy_current_state
=
yy_nxt
[
yy_base
[
yy_current_state
]
+
(
unsigned
int
)
yy_c
];
yy_is_jam
=
(
yy_current_state
==
1047
);
yy_is_jam
=
(
yy_current_state
==
1047
);
return
yy_is_jam
?
0
:
yy_current_state
;
return
yy_is_jam
?
0
:
yy_current_state
;
}
}
static
void
yyunput
(
int
c
,
register
char
*
yy_bp
)
static
void
yyunput
(
int
c
,
register
char
*
yy_bp
)
...
@@ -2855,7 +2855,7 @@ static int yy_get_next_buffer (void)
...
@@ -2855,7 +2855,7 @@ static int yy_get_next_buffer (void)
case
EOB_ACT_END_OF_FILE
:
case
EOB_ACT_END_OF_FILE
:
{
{
if
(
gmsh_yywrap
(
)
)
if
(
gmsh_yywrap
(
)
)
return
0
;
return
EOF
;
if
(
!
(
yy_did_buffer_switch_on_eof
)
)
if
(
!
(
yy_did_buffer_switch_on_eof
)
)
YY_NEW_FILE
;
YY_NEW_FILE
;
...
@@ -2991,10 +2991,6 @@ static void gmsh_yy_load_buffer_state (void)
...
@@ -2991,10 +2991,6 @@ static void gmsh_yy_load_buffer_state (void)
gmsh_yyfree
((
void
*
)
b
);
gmsh_yyfree
((
void
*
)
b
);
}
}
#ifndef __cplusplus
extern
int
isatty
(
int
);
#endif
/* __cplusplus */
/* Initializes or reinitializes a buffer.
/* Initializes or reinitializes a buffer.
* This function is sometimes called more than once on the same buffer,
* This function is sometimes called more than once on the same buffer,
* such as during a gmsh_yyrestart() or at EOF.
* such as during a gmsh_yyrestart() or at EOF.
...
@@ -3199,8 +3195,8 @@ YY_BUFFER_STATE gmsh_yy_scan_string (yyconst char * yystr )
...
@@ -3199,8 +3195,8 @@ YY_BUFFER_STATE gmsh_yy_scan_string (yyconst char * yystr )
/** Setup the input buffer state to scan the given bytes. The next call to gmsh_yylex() will
/** Setup the input buffer state to scan the given bytes. The next call to gmsh_yylex() will
* scan from a @e copy of @a bytes.
* scan from a @e copy of @a bytes.
* @param bytes the byte buffer to scan
* @param
yy
bytes the byte buffer to scan
* @param len the number of bytes in the buffer pointed to by @a bytes.
* @param
_yybytes_
len the number of bytes in the buffer pointed to by @a bytes.
*
*
* @return the newly allocated buffer state object.
* @return the newly allocated buffer state object.
*/
*/
...
@@ -3208,7 +3204,8 @@ YY_BUFFER_STATE gmsh_yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes
...
@@ -3208,7 +3204,8 @@ YY_BUFFER_STATE gmsh_yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes
{
{
YY_BUFFER_STATE
b
;
YY_BUFFER_STATE
b
;
char
*
buf
;
char
*
buf
;
yy_size_t
n
,
i
;
yy_size_t
n
;
int
i
;
/* Get memory for full buffer, including space for trailing EOB's. */
/* Get memory for full buffer, including space for trailing EOB's. */
n
=
_yybytes_len
+
2
;
n
=
_yybytes_len
+
2
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment