1 /*******************************************************/ 2 /* "C" Language Integrated Production System */ 3 /* */ 4 /* CLIPS Version 6.30 08/16/14 */ 5 /* */ 6 /* DEFTEMPLATE BASIC COMMANDS HEADER FILE */ 7 /*******************************************************/ 8 9 /*************************************************************/ 10 /* Purpose: Implements core commands for the deftemplate */ 11 /* construct such as clear, reset, save, undeftemplate, */ 12 /* ppdeftemplate, list-deftemplates, and */ 13 /* get-deftemplate-list. */ 14 /* */ 15 /* Principal Programmer(s): */ 16 /* Gary D. Riley */ 17 /* */ 18 /* Contributing Programmer(s): */ 19 /* Brian L. Dantes */ 20 /* */ 21 /* Revision History: */ 22 /* */ 23 /* 6.23: Corrected compilation errors for files */ 24 /* generated by constructs-to-c. DR0861 */ 25 /* */ 26 /* Changed name of variable log to logName */ 27 /* because of Unix compiler warnings of shadowed */ 28 /* definitions. */ 29 /* */ 30 /* 6.24: Renamed BOOLEAN macro type to intBool. */ 31 /* */ 32 /* Corrected code to remove compiler warnings */ 33 /* when ENVIRONMENT_API_ONLY flag is set. */ 34 /* */ 35 /* 6.30: Removed conditional code for unsupported */ 36 /* compilers/operating systems (IBM_MCW, */ 37 /* MAC_MCW, and IBM_TBC). */ 38 /* */ 39 /* Added const qualifiers to remove C++ */ 40 /* deprecation warnings. */ 41 /* */ 42 /* Converted API macros to function calls. */ 43 /* */ 44 /*************************************************************/ 45 46 #ifndef _H_tmpltbsc 47 #define _H_tmpltbsc 48 49 #ifndef _H_evaluatn 50 #include "evaluatn.h" 51 #endif 52 53 #ifdef LOCALE 54 #undef LOCALE 55 #endif 56 57 #ifdef _TMPLTBSC_SOURCE_ 58 #define LOCALE 59 #else 60 #define LOCALE extern 61 #endif 62 63 LOCALE void DeftemplateBasicCommands(void *); 64 LOCALE void UndeftemplateCommand(void *); 65 LOCALE intBool EnvUndeftemplate(void *,void *); 66 LOCALE void GetDeftemplateListFunction(void *,DATA_OBJECT_PTR); 67 LOCALE void EnvGetDeftemplateList(void *,DATA_OBJECT_PTR,void *); 68 LOCALE void *DeftemplateModuleFunction(void *); 69 #if DEBUGGING_FUNCTIONS 70 LOCALE void PPDeftemplateCommand(void *); 71 LOCALE int PPDeftemplate(void *,const char *,const char *); 72 LOCALE void ListDeftemplatesCommand(void *); 73 LOCALE void EnvListDeftemplates(void *,const char *,void *); 74 LOCALE unsigned EnvGetDeftemplateWatch(void *,void *); 75 LOCALE void EnvSetDeftemplateWatch(void *,unsigned,void *); 76 LOCALE unsigned DeftemplateWatchAccess(void *,int,unsigned,struct expr *); 77 LOCALE unsigned DeftemplateWatchPrint(void *,const char *,int,struct expr *); 78 #endif 79 80 #if ALLOW_ENVIRONMENT_GLOBALS 81 82 LOCALE void GetDeftemplateList(DATA_OBJECT_PTR,void *); 83 #if DEBUGGING_FUNCTIONS 84 LOCALE unsigned GetDeftemplateWatch(void *); 85 LOCALE void ListDeftemplates(const char *,void *); 86 LOCALE void SetDeftemplateWatch(unsigned,void *); 87 #endif 88 LOCALE intBool Undeftemplate(void *); 89 90 #endif /* ALLOW_ENVIRONMENT_GLOBALS */ 91 92 #endif /* _H_tmpltbsc */ 93 94 95