version 1.2, 2003/07/21 11:56:34 |
version 1.4, 2003/07/21 13:36:43 |
|
|
/* $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 */ |
/* Moved from misc-2003/07/cygwin/test.c */ |
#include <stdio.h> |
#include <stdio.h> |
#include <sys/types.h> |
#include <sys/types.h> |
Line 25 static char *get_oxlog_path(); |
|
Line 25 static char *get_oxlog_path(); |
|
|
|
|
|
|
|
static int Verbose_get_home = 1; |
static int Verbose_get_home = 0; |
static int NoX = 0; |
static int NoX = 0; |
|
|
|
|
#define nomemory(a) {fprintf(stderr,"(%d) no more memory.\n",a);exit(10);} |
#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) { |
int ox_pathfinderNoX(int f) { |
if (f < 0) return NoX; |
if (f < 0) return NoX; |
NoX = f; |
NoX = f; |
return 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 */ |
/* See kxx/ox100start.c for main */ |
|
|
Line 652 char *getLOAD_SM1_PATH2() { |
|
Line 658 char *getLOAD_SM1_PATH2() { |
|
p = get_sm1_lib_path(); |
p = get_sm1_lib_path(); |
if (p == NULL) { |
if (p == NULL) { |
return("/usr/local/lib/sm1/"); |
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{ |
}else{ |
return p; |
return p; |
} |
} |