On 2005-01-15, Thomas Frieden wrote:
Hi,
Tony Wyatt wrote:
<SNIP>
Anyway, we have a working binary at the moment, so making the source more portable does not seem like an urgent problem.
The problem is getting the thing to accept unix path names...
As a quick hack, why not just wrap open(), chdir(), fopen() etc.? Would be fairly trivial with a quick header hack I think. E.g.:
static int my_chdir(char *path) { char apath[MAX_PATH_LEN]; PathTranslate(apath,path); return(chdir(apath)); } #define chdir(x) my_chdir(x)
Function with a variable number of arguments like open() could be more problematic with SAS/C (gcc supports both its own and C99 style variadic macros) but should be doable.
Just a quick suggestion, anyway.
-Peter aka. Archprogrammer
Reality is for people who cannot face ScienceFiction. Only lefthanded people are in their right minds.