version 1.23, 2013/06/13 18:42:11 |
version 1.24, 2014/03/30 10:48:16 |
|
|
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* |
* |
* $OpenXM: OpenXM_contrib2/asir2000/parse/load.c,v 1.22 2012/12/17 07:20:45 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/parse/load.c,v 1.23 2013/06/13 18:42:11 ohara Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
#include "parse.h" |
#include "parse.h" |
Line 102 char *search_executable(char *name); |
|
Line 102 char *search_executable(char *name); |
|
|
|
extern char *asir_libdir; |
extern char *asir_libdir; |
extern char *asir_contrib_dir; |
extern char *asir_contrib_dir; |
|
extern char *asir_private_dir; |
extern char *asir_pager; |
extern char *asir_pager; |
extern int main_parser; |
extern int main_parser; |
extern JMP_BUF exec_env; |
extern JMP_BUF exec_env; |
Line 176 void env_init() { |
|
Line 177 void env_init() { |
|
} |
} |
} |
} |
|
|
|
asir_private_dir = NULL; |
|
#if defined(VISUAL) |
|
if ( e = getenv("APPDATA") ) { |
|
asir_private_dir = (char *)malloc(strlen(e)+strlen("/asir/lib-asir-contrib")+1); |
|
sprintf(asir_private_dir,"%s/asir/lib-asir-contrib",e); |
|
} |
|
#endif |
|
|
if ( !(asir_pager = getenv("PAGER")) ) { |
if ( !(asir_pager = getenv("PAGER")) ) { |
japanese = 0; |
japanese = 0; |
if ( (e = getenv("LANGUAGE")) && |
if ( (e = getenv("LANGUAGE")) && |
Line 219 void env_init() { |
|
Line 228 void env_init() { |
|
} |
} |
|
|
for ( i = 0; ASIRLOADPATH[i]; i++ ); |
for ( i = 0; ASIRLOADPATH[i]; i++ ); |
|
if (asir_private_dir) ASIRLOADPATH[i++] = asir_private_dir; |
if (asir_contrib_dir) ASIRLOADPATH[i++] = asir_contrib_dir; |
if (asir_contrib_dir) ASIRLOADPATH[i++] = asir_contrib_dir; |
if (asir_libdir) ASIRLOADPATH[i++] = asir_libdir; |
if (asir_libdir) ASIRLOADPATH[i++] = asir_libdir; |
ASIRLOADPATH[i] = NULL; |
ASIRLOADPATH[i] = NULL; |