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
b19c15f3
Commit
b19c15f3
authored
24 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
Pb with HOME on WinNT
parent
9981bf30
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Common/Context.h
+2
-1
2 additions, 1 deletion
Common/Context.h
Common/Options.cpp
+5
-2
5 additions, 2 deletions
Common/Options.cpp
with
7 additions
and
3 deletions
Common/Context.h
+
2
−
1
View file @
b19c15f3
...
...
@@ -39,7 +39,8 @@ public :
char
*
display
;
// forced display host:0.0 under X11
int
terminal
;
// show we print to the terminal console?
char
*
editor
;
// text editor command (with included '%s')
char
home_dir
[
NAME_STR_L
];
// the home directory
char
home_dir
[
NAME_STR_L
],
tmp_dir
[
NAME_STR_L
];
// the home and tmp directories
int
position
[
2
];
// position of the menu window on the screen
int
gl_position
[
2
];
// position of the graphic window on the screen
...
...
This diff is collapsed.
Click to expand it.
Common/Options.cpp
+
5
−
2
View file @
b19c15f3
// $Id: Options.cpp,v 1.2
0
2001-05-21 13:
01:13
geuzaine Exp $
// $Id: Options.cpp,v 1.2
1
2001-05-21 13:
19:05
geuzaine Exp $
#include
"Gmsh.h"
#include
"GmshUI.h"
...
...
@@ -22,8 +22,11 @@ void Init_Options(int num){
char
*
tmp
;
// Home directory
#if !defined(WIN32) // Some WinNT systems have bad HOME variables...
if
((
tmp
=
getenv
(
"HOME"
)))
strcpy
(
CTX
.
home_dir
,
tmp
);
else
if
((
tmp
=
getenv
(
"TMP"
)))
strcpy
(
CTX
.
home_dir
,
tmp
);
else
#endif
if
((
tmp
=
getenv
(
"TMP"
)))
strcpy
(
CTX
.
home_dir
,
tmp
);
else
if
((
tmp
=
getenv
(
"TEMP"
)))
strcpy
(
CTX
.
home_dir
,
tmp
);
else
strcpy
(
CTX
.
home_dir
,
""
);
if
(
strlen
(
CTX
.
home_dir
)){
...
...
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