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
Model registry
Operate
Environments
Monitor
Incidents
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
Larry Price
gmsh
Commits
829d900f
Commit
829d900f
authored
13 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fix shift/reduce conflict
parent
14de6137
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Parser/Gmsh.tab.cpp
+1824
-1829
1824 additions, 1829 deletions
Parser/Gmsh.tab.cpp
Parser/Gmsh.tab.hpp
+1
-1
1 addition, 1 deletion
Parser/Gmsh.tab.hpp
Parser/Gmsh.y
+6
-7
6 additions, 7 deletions
Parser/Gmsh.y
with
1831 additions
and
1837 deletions
Parser/Gmsh.tab.cpp
+
1824
−
1829
View file @
829d900f
This diff is collapsed.
Click to expand it.
Parser/Gmsh.tab.hpp
+
1
−
1
View file @
829d900f
...
@@ -184,7 +184,7 @@ typedef union YYSTYPE
...
@@ -184,7 +184,7 @@ typedef union YYSTYPE
{
{
/* Line 1685 of yacc.c */
/* Line 1685 of yacc.c */
#line 8
7
"Gmsh.y"
#line 8
6
"Gmsh.y"
char
*
c
;
char
*
c
;
int
i
;
int
i
;
...
...
This diff is collapsed.
Click to expand it.
Parser/Gmsh.y
+
6
−
7
View file @
829d900f
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
#include "Geo.h"
#include "Geo.h"
#include "GeoInterpolation.h"
#include "GeoInterpolation.h"
#include "Options.h"
#include "Options.h"
#include "Colors.h"
#include "Parser.h"
#include "Parser.h"
#include "OpenFile.h"
#include "OpenFile.h"
#include "CommandLine.h"
#include "CommandLine.h"
...
@@ -3424,12 +3423,12 @@ Transfinite :
...
@@ -3424,12 +3423,12 @@ Transfinite :
List_Delete($2);
List_Delete($2);
}
}
}
}
| tMeshAlgorithm tSurface ListOfDouble FExpr tEND
| tMeshAlgorithm tSurface
'{' Recursive
ListOfDouble
'}'
FExpr tEND
{
{
for(int i = 0; i < List_Nbr($
3
); i++){
for(int i = 0; i < List_Nbr($
4
); i++){
double d;
double d;
List_Read($
3
, i, &d);
List_Read($
4
, i, &d);
CTX::instance()->mesh.algo2d_per_face[(int)d] = (int)$
4
;
CTX::instance()->mesh.algo2d_per_face[(int)d] = (int)$
6
;
}
}
}
}
...
@@ -4233,14 +4232,14 @@ ColorExpr :
...
@@ -4233,14 +4232,14 @@ ColorExpr :
| '{' tSTRING ',' FExpr '}'
| '{' tSTRING ',' FExpr '}'
{
{
int flag;
int flag;
$$ = GetColorForString(
ColorString,
(int)$4, $2, &flag);
$$ = GetColorForString((int)$4, $2, &flag);
if(flag) yymsg(0, "Unknown color '%s'", $2);
if(flag) yymsg(0, "Unknown color '%s'", $2);
}
}
*/
*/
| tSTRING
| tSTRING
{
{
int flag;
int flag;
$$ = GetColorForString(
ColorString,
-1, $1, &flag);
$$ = GetColorForString(-1, $1, &flag);
if(flag) yymsg(0, "Unknown color '%s'", $1);
if(flag) yymsg(0, "Unknown color '%s'", $1);
Free($1);
Free($1);
}
}
...
...
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