=================================================================== RCS file: /home/cvs/OpenXM/src/util/ox_pathfinder.c,v retrieving revision 1.2 retrieving revision 1.4 diff -u -p -r1.2 -r1.4 --- OpenXM/src/util/ox_pathfinder.c 2003/07/21 11:56:34 1.2 +++ OpenXM/src/util/ox_pathfinder.c 2003/07/21 13:36:43 1.4 @@ -1,4 +1,4 @@ -/* $OpenXM: OpenXM/src/util/ox_pathfinder.c,v 1.1 2003/07/21 11:36:10 takayama Exp $ */ +/* $OpenXM: OpenXM/src/util/ox_pathfinder.c,v 1.3 2003/07/21 12:41:23 takayama Exp $ */ /* Moved from misc-2003/07/cygwin/test.c */ #include #include @@ -25,18 +25,24 @@ static char *get_oxlog_path(); -static int Verbose_get_home = 1; +static int Verbose_get_home = 0; static int NoX = 0; #define nomemory(a) {fprintf(stderr,"(%d) no more memory.\n",a);exit(10);} -#define mymalloc(a) malloc(a) +#define mymalloc(a) sGC_malloc(a) int ox_pathfinderNoX(int f) { if (f < 0) return NoX; NoX = f; return f; } +int ox_pathfinderVerbose(int f) { + extern Verbose_get_home; + if (f < 0) return Verbose_get_home; + Verbose_get_home = f; + return f; +} /* See kxx/ox100start.c for main */ @@ -652,6 +658,16 @@ char *getLOAD_SM1_PATH2() { p = get_sm1_lib_path(); if (p == NULL) { return("/usr/local/lib/sm1/"); + }else{ + return p; + } +} + +char *getLOAD_K_PATH2(void) { + char *p; + p = get_k0_lib_path(); + if (p == NULL) { + return("/usr/local/lib/kxx97/yacc/"); }else{ return p; }