version 1.3, 2005/10/19 04:51:16 |
version 1.5, 2009/08/25 08:01:03 |
|
|
if ( slash ) |
if ( slash ) |
*slash = 0; |
*slash = 0; |
ldir = strlen(dir)+1; |
ldir = strlen(dir)+1; |
if ( 1 || access("UseCurrentDir",0) >= 0 ) { |
if ( access("UseCurrentDir",0) >= 0 ) { |
use_current_dir = 1; |
use_current_dir = 1; |
strcpy(rootdir,dir); |
strcpy(rootdir,dir); |
strcpy(name,dir); |
strcpy(name,dir); |
Line 164 BOOL Init_IO(char *errmsg) { |
|
Line 164 BOOL Init_IO(char *errmsg) { |
|
if ( get_rootdir(name,len,errmsg) == FALSE ) { |
if ( get_rootdir(name,len,errmsg) == FALSE ) { |
return FALSE; |
return FALSE; |
} |
} |
// sprintf(AsirExe,"%s\\bin\\engine.exe",name); |
sprintf(AsirExe,"%s\\bin\\engine.exe",name); |
// sprintf(AsirExe,"c:\\home\\noro\\engine2000\\debug\\engine.exe"); |
// sprintf(AsirExe,"c:\\home\\noro\\engine2000\\debug\\engine.exe"); |
sprintf(AsirExe,"d:\\cygwin\\home\\noro\\OpenXM_contrib2\\\\windows\\engine2000\\debug\\engine.exe"); |
|
if ( !getenv("HOME") ) { |
if ( !getenv("HOME") ) { |
sprintf(home,"HOME=%s",name); |
sprintf(home,"HOME=%s",name); |
_putenv(home); |
_putenv(home); |
Line 260 void read_and_insert() |
|
Line 259 void read_and_insert() |
|
} |
} |
} |
} |
|
|
|
static char history_path[BUFSIZ]; |
|
static char history_errmsg[BUFSIZ]; |
|
|
void init_input_history() |
void init_input_history() |
{ |
{ |
|
char rootdir[BUFSIZ]; |
|
get_rootdir(rootdir,sizeof(rootdir),history_errmsg); |
|
sprintf(history_path,"%s\\bin\\%s",rootdir,HISTORY); |
init_hist(MAXHIST); |
init_hist(MAXHIST); |
} |
} |
|
|
void write_input_history() |
void write_input_history() |
{ |
{ |
write_hist(HISTORY); |
write_hist(history_path); |
} |
} |
|
|
void read_input_history() |
void read_input_history() |
{ |
{ |
read_hist(HISTORY); |
read_hist(history_path); |
} |
} |
|
|
void send_intr() { |
void send_intr() { |