- Timestamp:
- Nov 10, 2021, 2:54:38 PM (2 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 8ad2935b9f03ca7820942e4018d26497779d34e5
- Parents:
- 314f6db51fc43d6de9f441fe21423a1b4513303d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
resources/feResource.cc
r314f6db ra00aa7 18 18 19 19 VAR char* feArgv0 = NULL; 20 21 #ifdef AIX_422 #ifndef HAVE_PUTENV23 #define HAVE_PUTENV 124 #endif25 #endif26 27 #if defined(HPUX_10) || defined(HPUX_9)28 #ifndef HAVE_SETENV29 extern "C" int setenv(const char *name, const char *value, int overwrite);30 #endif31 #endif32 33 20 34 21 //char* feResource(const char id, int warn = -1); … … 194 181 feResource('s',0); 195 182 feResource('P'); 196 197 #if defined(HAVE_SETENV) || defined(HAVE_PUTENV)198 char* path = feResource('p');199 #ifdef RESOURCE_DEBUG200 printf("feInitResources(argv0): setting path with '%s'\n", path);201 #endif202 #ifdef HAVE_PUTENV203 if (path != NULL) { char *s=(char *)malloc(strlen(path)+6);204 sprintf(s,"PATH=%s",path);205 putenv(s);206 }207 #else208 if (path != NULL) setenv("PATH", path, 1);209 #endif210 #endif211 183 } 212 184
Note: See TracChangeset
for help on using the changeset viewer.