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
7dbd8e92
Commit
7dbd8e92
authored
8 years ago
by
Patrick Dular
Browse files
Options
Downloads
Patches
Plain Diff
(1) Added: Delete Struct; (2) Added: Structures in PrintParserSymbols
parent
723a181b
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
+3398
-3339
3398 additions, 3339 deletions
Parser/Gmsh.tab.cpp
Parser/Gmsh.y
+14
-0
14 additions, 0 deletions
Parser/Gmsh.y
Parser/Parser.h
+1
-0
1 addition, 0 deletions
Parser/Parser.h
with
3413 additions
and
3339 deletions
Parser/Gmsh.tab.cpp
+
3398
−
3339
View file @
7dbd8e92
This diff is collapsed.
Click to expand it.
Parser/Gmsh.y
+
14
−
0
View file @
7dbd8e92
...
...
@@ -2839,6 +2839,10 @@ Delete :
#endif
Free($2); Free($3);
}
| tDelete tDefineStruct tEND
{
nameSpaces.clear();
}
;
// C O L O R I F Y
...
...
@@ -6225,6 +6229,16 @@ void PrintParserSymbols(bool help, std::vector<std::string> &vec)
vec.push_back(s);
}
}
if (nameSpaces.size()){
if(help){
vec.push_back("//");
vec.push_back("// Structures");
vec.push_back("//");
}
std::string s;
nameSpaces.sprint(s);
vec.push_back(s);
}
}
fullMatrix<double> ListOfListOfDouble2Matrix(List_T *list)
...
...
This diff is collapsed.
Click to expand it.
Parser/Parser.h
+
1
−
0
View file @
7dbd8e92
...
...
@@ -139,6 +139,7 @@ public:
inline
const
std
::
map
<
K
,
T
>
&
get
()
const
{
return
_map
;
}
inline
int
count
(
const
std
::
string
key
)
const
{
return
_map
.
count
(
key
);
}
inline
int
size
()
const
{
return
_map
.
size
();
}
void
clear
()
{
_map
.
clear
();
}
public
:
std
::
map
<
K
,
T
>
_map
;
...
...
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