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
dc923030
Commit
dc923030
authored
19 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fix user-defined functions: text mode messes up fsetpos/getpos: weird
parent
58447802
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Parser/OpenFile.cpp
+5
-3
5 additions, 3 deletions
Parser/OpenFile.cpp
TODO
+1
-6
1 addition, 6 deletions
TODO
with
6 additions
and
9 deletions
Parser/OpenFile.cpp
+
5
−
3
View file @
dc923030
// $Id: OpenFile.cpp,v 1.9
1
2006-02-25 07:
2
2:
11
geuzaine Exp $
// $Id: OpenFile.cpp,v 1.9
2
2006-02-25 07:
3
2:
42
geuzaine Exp $
//
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -141,7 +141,9 @@ int ParseFile(char *f, int silent, int close, int warn_if_missing)
FILE
*
yyin_old
,
*
fp
;
int
yylineno_old
,
yyerrorstate_old
,
numviews_old
,
status
;
if
(
!
(
fp
=
fopen
(
f
,
"r"
))){
// add 'b' for pure Windows programs: opening in text mode messes up
// fsetpos/fgetpos (used e.g. for user-defined functions)
if
(
!
(
fp
=
fopen
(
f
,
"rb"
))){
if
(
warn_if_missing
)
Msg
(
WARNING
,
"Unable to open file '%s'"
,
f
);
return
0
;
...
...
@@ -242,7 +244,7 @@ int MergeProblem(char *name, int warn_if_missing)
int
status
;
FILE
*
fp
;
// add 'b' for pure Windows programs, since some of these files
// add
ed
'b' for pure Windows programs, since some of these files
// contain binary data
if
(
!
(
fp
=
fopen
(
name
,
"rb"
))){
if
(
warn_if_missing
)
...
...
This diff is collapsed.
Click to expand it.
TODO
+
1
−
6
View file @
dc923030
$Id: TODO,v 1.12
3
2006-02-25 07:
0
2:2
0
geuzaine Exp $
$Id: TODO,v 1.12
4
2006-02-25 07:
3
2:
4
2 geuzaine Exp $
********************************************************************
...
...
@@ -37,11 +37,6 @@ curve/surface/volume or loop over all elements.)
********************************************************************
On Windows WITHOUT Cygwin:
- Functions in parser don't seem to work
********************************************************************
allow mixed 1st/2nd order meshes (2nd order only where the geometry
requires it). Add this as an advanced option since it will create
meshes with hanging nodes.
...
...
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