Changeset 2532 in Sophya for trunk/SophyaLib/SysTools
- Timestamp:
- Apr 28, 2004, 2:40:24 PM (21 years ago)
- Location:
- trunk/SophyaLib/SysTools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SysTools/commander.cc
r2518 r2532 1429 1429 pev += '='; 1430 1430 pev += vv; 1431 #if defined(Linux) 1432 // Reza - 28/04/2004 1433 // putenv de Linux ne declare pas la variable char *string const 1434 // On ne doit meme pas utiliser une variable automatique 1435 // J'alloue donc un nouveau tableau - mais qui va le liberer ? 1436 char* bev = new char[pev.size()+1]; 1437 strcpy(bev, pev.c_str()); 1438 if (putenv(bev) == 0) return true; 1439 #else 1431 1440 if (putenv(pev.c_str()) == 0) return true; 1441 #endif 1432 1442 else return false; 1433 1443 } -
trunk/SophyaLib/SysTools/rpneval.cc
r2512 r2532 1 1 #include "rpneval.h" 2 2 #include <stdlib.h> 3 #include <stdio.h> 3 4 #include "strutilxx.h" 4 5 #include "srandgen.h"
Note:
See TracChangeset
for help on using the changeset viewer.