Changeset 7098117 in git
- Timestamp:
- Jan 29, 2002, 6:26:47 PM (22 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- d4cb43b26737c80cde4d1405d47ce55e39929c13
- Parents:
- eaf4cbcc0e3ddce55ed242af00a6024d38e4a967
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/Makefile.in
reaf4cb r7098117 323 323 feOptES.inc mmalloc.o 324 324 ${CXX} -O2 ${CPPFLAGS} ${DEFS} -DESINGULAR -o ESingular emacs.cc fegetopt.o \ 325 ${LDFLAGS} ${LIBS}-lomalloc_ndebug mmalloc.o325 ${LDFLAGS} -lomalloc_ndebug mmalloc.o 326 326 327 327 TSingular: fegetopt.o feResource.cc mod2.h feOpt.cc version.h emacs.cc \ 328 328 feOptTS.inc mmalloc.o 329 329 ${CXX} -O2 ${CPPFLAGS} ${DEFS} -DTSINGULAR -o TSingular emacs.cc fegetopt.o \ 330 ${LDFLAGS} ${LIBS}-lomalloc_ndebug mmalloc.o330 ${LDFLAGS} -lomalloc_ndebug mmalloc.o 331 331 332 332 feOpt.o: feOpt.inc feOptES.inc feOptTS.inc -
Singular/feResource.cc
reaf4cb r7098117 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: feResource.cc,v 1.3 2 2001-08-27 14:46:57 Singular Exp $ */4 /* $Id: feResource.cc,v 1.33 2002-01-29 17:26:47 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: management of resources … … 12 12 13 13 #include "mod2.h" 14 #ifdef AIX_4 15 #define HAVE_PUTENV 1 16 #endif 17 14 18 #include "distrib.h" 15 19 #include "dError.h" … … 190 194 feResource('s',0); 191 195 192 #if def HAVE_SETENV196 #if defined(HAVE_SETENV) || defined(HAVE_PUTENV) 193 197 char* path = feResource('p'); 194 198 #ifdef RESOURCE_DEBUG 195 199 printf("feInitResources: setting path with argv0=%s=\n", path); 196 200 #endif 201 #ifdef HAVE_PUTENV 202 if (path != NULL) { char *s=(char *)omAlloc0(strlen(path)+6); 203 sprintf(s,"PATH=%s",path); 204 putenv(s); 205 } 206 #else 197 207 if (path != NULL) setenv("PATH", path, 1); 208 #endif 198 209 #endif 199 210 }
Note: See TracChangeset
for help on using the changeset viewer.