00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _H_factbin
00022
00023 #define _H_factbin
00024
00025 #include "factbld.h"
00026
00027 #define FACTBIN_DATA 62
00028
00029 struct factBinaryData
00030 {
00031 struct factPatternNode *FactPatternArray;
00032 long NumberOfPatterns;
00033 };
00034
00035 #define FactBinaryData(theEnv) ((struct factBinaryData *) GetEnvironmentData(theEnv,FACTBIN_DATA))
00036
00037 #ifdef LOCALE
00038 #undef LOCALE
00039 #endif
00040
00041 #ifdef _FACTBIN_SOURCE_
00042 #define LOCALE
00043 #else
00044 #define LOCALE extern
00045 #endif
00046
00047 LOCALE void FactBinarySetup(void *);
00048
00049 #define BsaveFactPatternIndex(patPtr) ((patPtr == NULL) ? -1L : ((struct factPatternNode *) patPtr)->bsaveID)
00050 #define BloadFactPatternPointer(i) ((struct factPatternNode *) ((i == -1L) ? NULL : &FactBinaryData(theEnv)->FactPatternArray[i]))
00051
00052 #endif
00053