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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
41e586ba
Commit
41e586ba
authored
24 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fclose + includes (JF, qu'en penses-tu ?)
end of file
parent
31749304
No related branches found
No related tags found
No related merge requests found
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Parser/Gmsh.l
+5
-2
5 additions, 2 deletions
Parser/Gmsh.l
Parser/Gmsh.tab.cpp
+362
-352
362 additions, 352 deletions
Parser/Gmsh.tab.cpp
Parser/Gmsh.y
+13
-2
13 additions, 2 deletions
Parser/Gmsh.y
Parser/Gmsh.yy.cpp
+7
-9
7 additions, 9 deletions
Parser/Gmsh.yy.cpp
with
387 additions
and
365 deletions
Parser/Gmsh.l
+
5
−
2
View file @
41e586ba
%{
// $Id: Gmsh.l,v 1.
29
2001-0
4-20 08:52:23
geuzaine Exp $
// $Id: Gmsh.l,v 1.
30
2001-0
5-16 15:11:45
geuzaine Exp $
#include <stdio.h>
#include <stdlib.h>
...
...
@@ -330,7 +330,10 @@ void skip_until(char *skip, char *until){
while(1){
while (1){
chars[0] = yyinput();
if(chars[0] == (char)EOF) Msg(FATAL, "Unexpected end of file") ;
if(chars[0] == (char)EOF){
Msg(GERROR, "Unexpected end of file") ;
return;
}
if(chars[0] == until[0]) break;
if(skip && chars[0] == skip[0]) break;
}
...
...
This diff is collapsed.
Click to expand it.
Parser/Gmsh.tab.cpp
+
362
−
352
View file @
41e586ba
This diff is collapsed.
Click to expand it.
Parser/Gmsh.y
+
13
−
2
View file @
41e586ba
%{
// $Id: Gmsh.y,v 1.76 2001-04-26 17:58:00 remacle Exp $
// $Id: Gmsh.y,v 1.77 2001-05-16 15:11:45 geuzaine Exp $
//
// Generaliser sprintf avec des chaines de caracteres
//
#include <stdarg.h>
...
...
@@ -1453,7 +1457,13 @@ Command :
while(!feof(yyin)){
yyparse();
}
fclose(yyin);
//
//Est-ce grave de laisser le stream ouvert? Si on fait le
//fclose, on ne peut pas faire appel a une fonction
//(Function) definie en dehors de son fichier de
//definition...
//
//fclose(yyin);
yyin = yyinTab[--RecursionLevel];
strcpy(yyname,yynameTab[RecursionLevel]);
yylineno = yylinenoTab[RecursionLevel];
...
...
@@ -2410,6 +2420,7 @@ RecursiveListOfDouble :
}
;
ColorExpr :
'{' FExpr ',' FExpr ',' FExpr ',' FExpr '}'
{
...
...
This diff is collapsed.
Click to expand it.
Parser/Gmsh.yy.cpp
+
7
−
9
View file @
41e586ba
...
...
@@ -2,7 +2,7 @@
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
* $Header: /cvsroot/gmsh/Parser/Gmsh.yy.cpp,v 1.8
6
2001-0
4-26 17:58:00 remacl
e Exp $
* $Header: /cvsroot/gmsh/Parser/Gmsh.yy.cpp,v 1.8
7
2001-0
5-16 15:11:46 geuzain
e Exp $
*/
#define FLEX_SCANNER
...
...
@@ -10,6 +10,7 @@
#define YY_FLEX_MINOR_VERSION 5
#include
<stdio.h>
#include
<unistd.h>
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
...
...
@@ -23,7 +24,6 @@
#ifdef __cplusplus
#include
<stdlib.h>
#include
<unistd.h>
/* Use prototypes in function declarations. */
#define YY_USE_PROTOS
...
...
@@ -978,7 +978,7 @@ char *yytext;
#define INITIAL 0
#line 2 "Gmsh.l"
// $Id: Gmsh.yy.cpp,v 1.8
6
2001-0
4-26 17:58:00 remacl
e Exp $
// $Id: Gmsh.yy.cpp,v 1.8
7
2001-0
5-16 15:11:46 geuzain
e Exp $
#include
<stdio.h>
#include
<stdlib.h>
...
...
@@ -2713,11 +2713,6 @@ YY_BUFFER_STATE b;
}
#ifndef YY_ALWAYS_INTERACTIVE
#ifndef YY_NEVER_INTERACTIVE
extern
int
isatty
YY_PROTO
((
int
));
#endif
#endif
#ifdef YY_USE_PROTOS
void
yy_init_buffer
(
YY_BUFFER_STATE
b
,
FILE
*
file
)
...
...
@@ -3096,7 +3091,10 @@ void skip_until(char *skip, char *until){
while
(
1
){
while
(
1
){
chars
[
0
]
=
yyinput
();
if
(
chars
[
0
]
==
(
char
)
EOF
)
Msg
(
FATAL
,
"Unexpected end of file"
)
;
if
(
chars
[
0
]
==
(
char
)
EOF
){
Msg
(
GERROR
,
"Unexpected end of file"
)
;
return
;
}
if
(
chars
[
0
]
==
until
[
0
])
break
;
if
(
skip
&&
chars
[
0
]
==
skip
[
0
])
break
;
}
...
...
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