/********************************************* Bload update routines for generic structures *********************************************/ static void UpdateGenericModule( void *buf, long obji) { BSAVE_DEFGENERIC_MODULE *bdptr; bdptr = (BSAVE_DEFGENERIC_MODULE *) buf; UpdateDefmoduleItemHeader(&bdptr->header,&ModuleArray[obji].header, (int) sizeof(DEFGENERIC),(void *) defgenericArray); }
/******************************************************* NAME : UpdateDeffunctionModule DESCRIPTION : Updates deffunction module with binary load data - sets pointers from offset information INPUTS : 1) A pointer to the bloaded data 2) The index of the binary array element to update RETURNS : Nothing useful SIDE EFFECTS : Deffunction moudle pointers updated NOTES : None *******************************************************/ static void UpdateDeffunctionModule( void *buf, long obji) { BSAVE_DEFFUNCTION_MODULE *bdptr; bdptr = (BSAVE_DEFFUNCTION_MODULE *) buf; UpdateDefmoduleItemHeader(&bdptr->header,&ModuleArray[obji].header, (int) sizeof(DEFFUNCTION),(void *) deffunctionArray); }
/********************************************************* Refresh update routines for bsaved COOL structures *********************************************************/ static void UpdateDefclassModule( void *buf, long obji) { BSAVE_DEFCLASS_MODULE *bdptr; bdptr = (BSAVE_DEFCLASS_MODULE *) buf; UpdateDefmoduleItemHeader(&bdptr->header,&ModuleArray[obji].header, (int) sizeof(DEFCLASS),(void *) defclassArray); }
/******************************************************* NAME : UpdateDeffunctionModule DESCRIPTION : Updates deffunction module with binary load data - sets pointers from offset information INPUTS : 1) A pointer to the bloaded data 2) The index of the binary array element to update RETURNS : Nothing useful SIDE EFFECTS : Deffunction moudle pointers updated NOTES : None *******************************************************/ static void UpdateDeffunctionModule( void *theEnv, void *buf, long obji) { BSAVE_DEFFUNCTION_MODULE *bdptr; bdptr = (BSAVE_DEFFUNCTION_MODULE *) buf; UpdateDefmoduleItemHeader(theEnv,&bdptr->header,&DeffunctionBinaryData(theEnv)->ModuleArray[obji].header, (int) sizeof(DEFFUNCTION),(void *) DeffunctionBinaryData(theEnv)->DeffunctionArray); }
/******************************************************* NAME : UpdateDefinstancesModule DESCRIPTION : Updates definstances module with binary load data - sets pointers from offset information INPUTS : 1) A pointer to the bloaded data 2) The index of the binary array element to update RETURNS : Nothing useful SIDE EFFECTS : Definstances moudle pointers updated NOTES : None *******************************************************/ static void UpdateDefinstancesModule( void *theEnv, void *buf, long obji) { BSAVE_DEFINSTANCES_MODULE *bdptr; bdptr = (BSAVE_DEFINSTANCES_MODULE *) buf; UpdateDefmoduleItemHeader(theEnv,&bdptr->header,&DefinstancesBinaryData(theEnv)->ModuleArray[obji].header, (int) sizeof(DEFINSTANCES),(void *) DefinstancesBinaryData(theEnv)->DefinstancesArray); }
static void UpdateDeffactsModule( void *theEnv, void *buf, long obji) { struct bsaveDeffactsModule *bdmPtr; bdmPtr = (struct bsaveDeffactsModule *) buf; UpdateDefmoduleItemHeader(theEnv,&bdmPtr->header,&DeffactsBinaryData(theEnv)->ModuleArray[obji].header, (int) sizeof(struct deffacts),(void *) DeffactsBinaryData(theEnv)->DeffactsArray); }
/********************************************* Bload update routines for generic structures *********************************************/ static void UpdateGenericModule( void *theEnv, void *buf, long obji) { BSAVE_DEFGENERIC_MODULE *bdptr; bdptr = (BSAVE_DEFGENERIC_MODULE *) buf; UpdateDefmoduleItemHeader(theEnv,&bdptr->header,&DefgenericBinaryData(theEnv)->ModuleArray[obji].header, (int) sizeof(DEFGENERIC),(void *) DefgenericBinaryData(theEnv)->DefgenericArray); }
static void UpdateDefruleModule( void *buf, long obji) { struct bsaveDefruleModule *bdmPtr; bdmPtr = (struct bsaveDefruleModule *) buf; UpdateDefmoduleItemHeader(&bdmPtr->header,&ModuleArray[obji].header, (int) sizeof(struct defrule), (void *) DefruleArray); ModuleArray[obji].agenda = NULL; }
static void UpdateDeftemplateModule( Environment *theEnv, void *buf, unsigned long obji) { struct bsaveDeftemplateModule *bdmPtr; bdmPtr = (struct bsaveDeftemplateModule *) buf; UpdateDefmoduleItemHeader(theEnv,&bdmPtr->header,&DeftemplateBinaryData(theEnv)->ModuleArray[obji].header, sizeof(Deftemplate), (void *) DeftemplateBinaryData(theEnv)->DeftemplateArray); }
static void UpdateDefglobalModule( void *buf, long obji) { struct bsaveDefglobalModule *bdmPtr; bdmPtr = (struct bsaveDefglobalModule *) buf; UpdateDefmoduleItemHeader(&bdmPtr->header,&ModuleArray[obji].header, (int) sizeof(struct defglobal), (void *) DefglobalArray); }
static void UpdateDefglobalModule( void *theEnv, EXEC_STATUS, void *buf, long obji) { struct bsaveDefglobalModule *bdmPtr; bdmPtr = (struct bsaveDefglobalModule *) buf; UpdateDefmoduleItemHeader(theEnv,execStatus,&bdmPtr->header,&DefglobalBinaryData(theEnv,execStatus)->ModuleArray[obji].header, (int) sizeof(struct defglobal), (void *) DefglobalBinaryData(theEnv,execStatus)->DefglobalArray); }