1 /*******************************************************/
2 /* "C" Language Integrated Production System */
4 /* CLIPS Version 6.30 02/04/15 */
7 /*******************************************************/
9 /*************************************************************/
12 /* Principal Programmer(s): */
15 /* Contributing Programmer(s): */
17 /* Revision History: */
19 /* 6.23: Corrected compilation errors for files */
20 /* generated by constructs-to-c. DR0861 */
22 /* 6.24: Renamed BOOLEAN macro type to intBool. */
24 /* 6.30: Removed conditional code for unsupported */
25 /* compilers/operating systems (IBM_MCW, */
26 /* MAC_MCW, and IBM_TBC). */
28 /* GetConstructNameAndComment API change. */
30 /* Added const qualifiers to remove C++ */
31 /* deprecation warnings. */
33 /* Converted API macros to function calls. */
35 /* Changed find construct functionality so that */
36 /* imported modules are search when locating a */
37 /* named construct. */
39 /*************************************************************/
44 #if DEFINSTANCES_CONSTRUCT
64 typedef struct definstancesModule
66 struct defmoduleItemHeader header;
67 } DEFINSTANCES_MODULE;
69 typedef struct definstances
71 struct constructHeader header;
73 EXPRESSION *mkinstance;
76 #define DEFINSTANCES_DATA 22
78 struct definstancesData
80 struct construct *DefinstancesConstruct;
81 int DefinstancesModuleIndex;
82 #if CONSTRUCT_COMPILER && (! RUN_TIME)
83 struct CodeGeneratorItem *DefinstancesCodeItem;
87 #define DefinstancesData(theEnv) ((struct definstancesData *) GetEnvironmentData(theEnv,DEFINSTANCES_DATA))
93 #ifdef _DEFINS_SOURCE_
99 LOCALE const char *EnvDefinstancesModule(void *,void *);
100 LOCALE const char *EnvDefinstancesModuleName(void *,void *);
101 LOCALE void *EnvFindDefinstances(void *,const char *);
102 LOCALE void *EnvFindDefinstancesInModule(void *,const char *);
103 LOCALE void EnvGetDefinstancesList(void *,DATA_OBJECT *,struct defmodule *);
104 LOCALE const char *EnvGetDefinstancesName(void *,void *);
105 LOCALE SYMBOL_HN *EnvGetDefinstancesNamePointer(void *,void *);
106 LOCALE const char *EnvGetDefinstancesPPForm(void *,void *);
107 LOCALE void *EnvGetNextDefinstances(void *,void *);
108 LOCALE int EnvIsDefinstancesDeletable(void *,void *);
109 LOCALE void EnvSetDefinstancesPPForm(void *,void *,const char *);
110 LOCALE intBool EnvUndefinstances(void *,void *);
111 LOCALE void GetDefinstancesListFunction(void *,DATA_OBJECT *);
112 LOCALE void *GetDefinstancesModuleCommand(void *);
113 LOCALE void SetupDefinstances(void *);
114 LOCALE void UndefinstancesCommand(void *);
115 #if DEBUGGING_FUNCTIONS
116 LOCALE void PPDefinstancesCommand(void *);
117 LOCALE void ListDefinstancesCommand(void *);
118 LOCALE void EnvListDefinstances(void *,const char *,struct defmodule *);
121 #if ALLOW_ENVIRONMENT_GLOBALS
123 LOCALE const char *DefinstancesModule(void *);
124 LOCALE void *FindDefinstances(const char *);
125 LOCALE void GetDefinstancesList(DATA_OBJECT *,struct defmodule *);
126 LOCALE const char *GetDefinstancesName(void *);
127 LOCALE const char *GetDefinstancesPPForm(void *);
128 LOCALE void *GetNextDefinstances(void *);
129 LOCALE int IsDefinstancesDeletable(void *);
130 #if DEBUGGING_FUNCTIONS
131 LOCALE void ListDefinstances(const char *,struct defmodule *);
133 LOCALE intBool Undefinstances(void *);
135 #endif /* ALLOW_ENVIRONMENT_GLOBALS */
137 #endif /* DEFINSTANCES_CONSTRUCT */
139 #endif /* _H_defins */