1 /*******************************************************/ 2 /* "C" Language Integrated Production System */ 3 /* */ 4 /* CLIPS Version 6.30 08/16/14 */ 5 /* */ 6 /* DEFFACTS BSAVE/BLOAD HEADER FILE */ 7 /*******************************************************/ 8 9 /*************************************************************/ 10 /* Purpose: */ 11 /* */ 12 /* Principal Programmer(s): */ 13 /* Gary D. Riley */ 14 /* */ 15 /* Contributing Programmer(s): */ 16 /* Brian L. Dantes */ 17 /* */ 18 /* Revision History: */ 19 /* */ 20 /* 6.30: Changed integer type/precision. */ 21 /* */ 22 /*************************************************************/ 23 24 #if (! RUN_TIME) 25 26 #ifndef _H_dffctbin 27 28 #define _H_dffctbin 29 30 #include "modulbin.h" 31 #include "cstrcbin.h" 32 #ifndef _H_constrct 33 #include "constrct.h" 34 #endif 35 36 struct bsaveDeffacts 37 { 38 struct bsaveConstructHeader header; 39 long assertList; 40 }; 41 42 struct bsaveDeffactsModule 43 { 44 struct bsaveDefmoduleItemHeader header; 45 }; 46 47 #define DFFCTBIN_DATA 26 48 49 struct deffactsBinaryData 50 { 51 struct deffacts *DeffactsArray; 52 long NumberOfDeffacts; 53 struct deffactsModule *ModuleArray; 54 long NumberOfDeffactsModules; 55 }; 56 57 #define DeffactsBinaryData(theEnv) ((struct deffactsBinaryData *) GetEnvironmentData(theEnv,DFFCTBIN_DATA)) 58 59 #ifdef LOCALE 60 #undef LOCALE 61 #endif 62 63 #ifdef _DFFCTBIN_SOURCE_ 64 #define LOCALE 65 #else 66 #define LOCALE extern 67 #endif 68 69 LOCALE void DeffactsBinarySetup(void *); 70 LOCALE void *BloadDeffactsModuleReference(void *,int); 71 72 #endif /* _H_dffctbin */ 73 74 #endif /* (! RUN_TIME) */ 75 76 77 78