=================================================================== RCS file: /home/cvs/OpenXM/src/kan96xx/Kan/global.c,v retrieving revision 1.1.1.1 retrieving revision 1.11 diff -u -p -r1.1.1.1 -r1.11 --- OpenXM/src/kan96xx/Kan/global.c 1999/10/08 02:12:01 1.1.1.1 +++ OpenXM/src/kan96xx/Kan/global.c 2000/03/20 01:53:46 1.11 @@ -1,4 +1,4 @@ -/* global.c */ +/* global.c $OpenXM: OpenXM/src/kan96xx/Kan/global.c,v 1.10 2000/02/24 12:33:47 takayama Exp $ */ #include #include #include "datatype.h" @@ -86,6 +86,7 @@ int Criterion2B = 0; int Criterion2M = 0; int Criterion2F = 0; int Statistics = 0; +int AutoReduce = 0; int CheckHomogenization = 1; int ErrorMessageMode = 0; int WarningMessageMode = 0; @@ -101,13 +102,15 @@ int Homogenize_vec = 1; /*x + e (x+1)===>(1) x h + e ( int CmoDMSOutputOption = 0; /* Output with (1) RING_BY_NAME or (0) DMS_OF_N_VARIABLES. plugin/cmo.c */ +int SecureMode = 0; /* global variables for stackmachine.c */ int VerboseStack = 1; /* 0 is quiet, 1 is standard, 2 ... */ int DebugStack = 0; -FILE *Fstack = stdout; /* standard output stream - for module: stackmachine */ +FILE *Fstack = NULL; /* Initialized to standard output stream + in stackmachine_init() + for module: stackmachine */ #if defined(sun) /* in case of Solaris, use the following: */ @@ -124,8 +127,11 @@ int Lookup[TYPES][TYPES]; int Quiet = 0; int TimerOn = 0; -char *VersionString = "2.990914"; +char *VersionString = "3.000320"; +char *LeftBracket = NULL; +char *RightBracket = NULL; + int AvoidTheSameRing = 1; int DebugCMO = 0; /* plugin/cmo.c */ int OXprintMessage = 1; /* referred only from ox_sm1 plugin/ox.hh */ @@ -133,10 +139,19 @@ int OXprintMessage = 1; /* referred only from ox_sm1 char *OxSystem = "ox_sm1.plain"; /* Example : ox_sm1.plain */ char *OxSystemVersion = NULL; /* Example : 0.1 */ +/* global variables for kanExport0.c */ +int VerboseK = 1; /* 1 is standard */ +int DebugK = 0; +FILE *Fk = NULL; /* Initialized to stdout in stackmachine_init() */ + stackmachine_init() { int i,j; + extern FILE *BaseFp; OxSystemVersion = VersionString; Fstack = stdout; /* initialize output stream */ + Fk = stdout; + BaseFp = stdin; + LeftBracket = "["; RightBracket = "]"; /* initialize null object */ NullObject.tag = 0; NullObject.lc.op = NullObject.rc.op = (struct object *)NULL; @@ -161,10 +176,6 @@ stackmachine_close() { } -/* global variables for kanExport0.c */ -int VerboseK = 1; /* 1 is standard */ -int DebugK = 0; -FILE *Fk = stdout; Kclose() { /* close Fk */