1 /*******************************************************/ 2 /* "C" Language Integrated Production System */ 3 /* */ 4 /* CLIPS Version 6.30 08/16/14 */ 5 /* */ 6 /* FILE COMMANDS HEADER FILE */ 7 /*******************************************************/ 8 9 /*************************************************************/ 10 /* Purpose: Contains the code for file commands including */ 11 /* batch, dribble-on, dribble-off, save, load, bsave, and */ 12 /* bload. */ 13 /* */ 14 /* Principal Programmer(s): */ 15 /* Gary D. Riley */ 16 /* */ 17 /* Contributing Programmer(s): */ 18 /* */ 19 /* Revision History: */ 20 /* */ 21 /* 6.24: Added environment parameter to GenClose. */ 22 /* Added environment parameter to GenOpen. */ 23 /* */ 24 /* Renamed BOOLEAN macro type to intBool. */ 25 /* */ 26 /* 6.30: Removed conditional code for unsupported */ 27 /* compilers/operating systems (IBM_MCW, */ 28 /* MAC_MCW, and IBM_TBC). */ 29 /* */ 30 /* Added code for capturing errors/warnings. */ 31 /* */ 32 /* Added AwaitingInput flag. */ 33 /* */ 34 /* Added const qualifiers to remove C++ */ 35 /* deprecation warnings. */ 36 /* */ 37 /* Converted API macros to function calls. */ 38 /* */ 39 /* Fixed linkage issue when BLOAD_ONLY compiler */ 40 /* flag is set to 1. */ 41 /* */ 42 /*************************************************************/ 43 44 #ifndef _H_filecom 45 46 #define _H_filecom 47 48 #ifdef LOCALE 49 #undef LOCALE 50 #endif 51 52 #ifdef _FILECOM_SOURCE_ 53 #define LOCALE 54 #else 55 #define LOCALE extern 56 #endif 57 58 LOCALE void FileCommandDefinitions(void *); 59 LOCALE intBool EnvDribbleOn(void *,const char *); 60 LOCALE intBool EnvDribbleActive(void *); 61 LOCALE intBool EnvDribbleOff(void *); 62 LOCALE void SetDribbleStatusFunction(void *,int (*)(void *,int)); 63 LOCALE int LLGetcBatch(void *,const char *,int); 64 LOCALE int Batch(void *,const char *); 65 LOCALE int OpenBatch(void *,const char *,int); 66 LOCALE int OpenStringBatch(void *,const char *,const char *,int); 67 LOCALE int RemoveBatch(void *); 68 LOCALE intBool BatchActive(void *); 69 LOCALE void CloseAllBatchSources(void *); 70 LOCALE int BatchCommand(void *); 71 LOCALE int BatchStarCommand(void *); 72 LOCALE int EnvBatchStar(void *,const char *); 73 LOCALE int LoadCommand(void *); 74 LOCALE int LoadStarCommand(void *); 75 LOCALE int SaveCommand(void *); 76 LOCALE int DribbleOnCommand(void *); 77 LOCALE int DribbleOffCommand(void *); 78 79 #if ALLOW_ENVIRONMENT_GLOBALS 80 81 LOCALE intBool DribbleActive(void); 82 LOCALE intBool DribbleOn(const char *); 83 LOCALE intBool DribbleOff(void); 84 LOCALE int BatchStar(const char *); 85 86 #endif /* ALLOW_ENVIRONMENT_GLOBALS */ 87 88 #endif /* _H_filecom */ 89 90 91 92 93 94 95