00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _H_insfile
00024 #define _H_insfile
00025
00026 #ifndef _H_expressn
00027 #include "expressn.h"
00028 #endif
00029
00030 #define INSTANCE_FILE_DATA 30
00031
00032 #if BLOAD_INSTANCES || BSAVE_INSTANCES
00033 struct instanceFileData
00034 {
00035 #if BLOAD_INSTANCES || BSAVE_INSTANCES
00036 char *InstanceBinaryPrefixID;
00037 char *InstanceBinaryVersionID;
00038 unsigned long BinaryInstanceFileSize;
00039
00040 #if BLOAD_INSTANCES
00041 unsigned long BinaryInstanceFileOffset;
00042 char *CurrentReadBuffer;
00043 unsigned long CurrentReadBufferSize;
00044 unsigned long CurrentReadBufferOffset;
00045 #endif
00046
00047 #endif
00048 };
00049
00050 #define InstanceFileData(theEnv) ((struct instanceFileData *) GetEnvironmentData(theEnv,INSTANCE_FILE_DATA))
00051
00052 #endif
00053
00054 #ifdef LOCALE
00055 #undef LOCALE
00056 #endif
00057
00058 #ifdef _INSFILE_SOURCE_
00059 #define LOCALE
00060 #else
00061 #define LOCALE extern
00062 #endif
00063
00064 #define BinaryLoadInstances(a) EnvBinaryLoadInstances(GetCurrentEnvironment(),a)
00065 #define BinarySaveInstances(a,b,c,d) EnvBinarySaveInstances(GetCurrentEnvironment(),a,b,c,d)
00066 #define LoadInstances(a) EnvLoadInstances(GetCurrentEnvironment(),a)
00067 #define LoadInstancesFromString(a,b) EnvLoadInstancesFromString(GetCurrentEnvironment(),a,b)
00068 #define RestoreInstances(a) EnvRestoreInstances(GetCurrentEnvironment(),a)
00069 #define RestoreInstancesFromString(a,b) EnvRestoreInstancesFromString(GetCurrentEnvironment(),a,b)
00070 #define SaveInstances(a,b,c,d) EnvSaveInstances(GetCurrentEnvironment(),a,b,c,d)
00071
00072 LOCALE void SetupInstanceFileCommands(void *);
00073
00074 LOCALE long SaveInstancesCommand(void *);
00075 LOCALE long LoadInstancesCommand(void *);
00076 LOCALE long RestoreInstancesCommand(void *);
00077 LOCALE long EnvSaveInstances(void *,char *,int,EXPRESSION *,intBool);
00078
00079 #if BSAVE_INSTANCES
00080 LOCALE long BinarySaveInstancesCommand(void *);
00081 LOCALE long EnvBinarySaveInstances(void *,char *,int,EXPRESSION *,intBool);
00082 #endif
00083
00084 #if BLOAD_INSTANCES
00085 LOCALE long BinaryLoadInstancesCommand(void *);
00086 LOCALE long EnvBinaryLoadInstances(void *,char *);
00087 #endif
00088
00089 LOCALE long EnvLoadInstances(void *,char *);
00090 LOCALE long EnvLoadInstancesFromString(void *,char *,int);
00091 LOCALE long EnvRestoreInstances(void *,char *);
00092 LOCALE long EnvRestoreInstancesFromString(void *,char *,int);
00093
00094 #ifndef _INSFILE_SOURCE_
00095 #endif
00096
00097 #endif
00098
00099
00100