00001 /*******************************************************/ 00002 /* "C" Language Integrated Production System */ 00003 /* */ 00004 /* CLIPS Version 6.20 01/31/02 */ 00005 /* */ 00006 /* DEFMODULE BSAVE/BLOAD HEADER FILE */ 00007 /*******************************************************/ 00008 00009 /*************************************************************/ 00010 /* Purpose: */ 00011 /* */ 00012 /* Principal Programmer(s): */ 00013 /* Gary D. Riley */ 00014 /* */ 00015 /* Contributing Programmer(s): */ 00016 /* Brian L. Dantes */ 00017 /* */ 00018 /* Revision History: */ 00019 /* */ 00020 /*************************************************************/ 00021 00022 #ifndef _H_modulbin 00023 00024 #define _H_modulbin 00025 00026 #ifndef _H_moduldef 00027 #include "moduldef.h" 00028 #endif 00029 00030 struct bsaveDefmodule 00031 { 00032 unsigned long name; 00033 long importList; 00034 long exportList; 00035 long next; 00036 long bsaveID; 00037 }; 00038 00039 struct bsaveDefmoduleItemHeader 00040 { 00041 long theModule; 00042 long firstItem; 00043 long lastItem; 00044 }; 00045 00046 struct bsavePortItem 00047 { 00048 long moduleName; 00049 long constructType; 00050 long constructName; 00051 long next; 00052 }; 00053 00054 #define ModulePointer(i) ((struct defmodule *) (&DefmoduleData(theEnv)->DefmoduleArray[i])) 00055 00056 #ifdef LOCALE 00057 #undef LOCALE 00058 #endif 00059 00060 #ifdef _MODULBIN_SOURCE_ 00061 #define LOCALE 00062 #else 00063 #define LOCALE extern 00064 #endif 00065 00066 LOCALE void DefmoduleBinarySetup(void *); 00067 LOCALE void UpdateDefmoduleItemHeader 00068 (void *,struct bsaveDefmoduleItemHeader *, 00069 struct defmoduleItemHeader *,int,void *); 00070 00071 #if BLOAD_AND_BSAVE 00072 LOCALE void AssignBsaveDefmdlItemHdrVals 00073 (struct bsaveDefmoduleItemHeader *, 00074 struct defmoduleItemHeader *); 00075 #endif 00076 00077 #endif 00078 00079 00080
1.5.6