summaryrefslogtreecommitdiff
path: root/src/factcom.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/factcom.h')
-rw-r--r--src/factcom.h60
1 files changed, 42 insertions, 18 deletions
diff --git a/src/factcom.h b/src/factcom.h
index f4a10f8..f29e30e 100644
--- a/src/factcom.h
+++ b/src/factcom.h
@@ -1,7 +1,7 @@
/*******************************************************/
/* "C" Language Integrated Production System */
/* */
- /* CLIPS Version 6.21 06/15/03 */
+ /* CLIPS Version 6.30 02/04/15 */
/* */
/* FACT COMMANDS HEADER FILE */
/*******************************************************/
@@ -16,6 +16,30 @@
/* */
/* Revision History: */
/* */
+/* Revision History: */
+/* */
+/* 6.23: Correction for FalseSymbol/TrueSymbol. DR0859 */
+/* */
+/* 6.24: Added environment parameter to GenClose. */
+/* Added environment parameter to GenOpen. */
+/* */
+/* Renamed BOOLEAN macro type to intBool. */
+/* */
+/* 6.30: Support for long long integers. */
+/* */
+/* Removed conditional code for unsupported */
+/* compilers/operating systems (IBM_MCW and */
+/* MAC_MCW). */
+/* */
+/* Added const qualifiers to remove C++ */
+/* deprecation warnings. */
+/* */
+/* Converted API macros to function calls. */
+/* */
+/* Added code to prevent a clear command from */
+/* being executed during fact assertions via */
+/* Increment/DecrementClearReadyLocks API. */
+/* */
/*************************************************************/
#ifndef _H_factcom
@@ -35,33 +59,33 @@
#define LOCALE extern
#endif
-#if ENVIRONMENT_API_ONLY
-#define Facts(theEnv,a,b,c,d,e) EnvFacts(theEnv,a,b,c,d,e)
-#define LoadFacts(theEnv,a) EnvLoadFacts(theEnv,a)
-#define SaveFacts(theEnv,a,b,c) EnvSaveFacts(theEnv,a,b,c)
-#define LoadFactsFromString(theEnv,a,b) EnvLoadFactsFromString(theEnv,a,b)
-#else
-#define Facts(a,b,c,d,e) EnvFacts(GetCurrentEnvironment(),a,b,c,d,e)
-#define LoadFacts(a) EnvLoadFacts(GetCurrentEnvironment(),a)
-#define SaveFacts(a,b,c) EnvSaveFacts(GetCurrentEnvironment(),a,b,c)
-#define LoadFactsFromString(a,b) EnvLoadFactsFromString(GetCurrentEnvironment(),a,b)
-#endif
-
LOCALE void FactCommandDefinitions(void *);
LOCALE void AssertCommand(void *,DATA_OBJECT_PTR);
LOCALE void RetractCommand(void *);
LOCALE void AssertStringFunction(void *,DATA_OBJECT_PTR);
LOCALE void FactsCommand(void *);
- LOCALE void EnvFacts(void *,char *,void *,long,long,long);
+ LOCALE void EnvFacts(void *,const char *,void *,long long,long long,long long);
LOCALE int SetFactDuplicationCommand(void *);
LOCALE int GetFactDuplicationCommand(void *);
LOCALE int SaveFactsCommand(void *);
LOCALE int LoadFactsCommand(void *);
- LOCALE int EnvSaveFacts(void *,char *,int,struct expr *);
- LOCALE int EnvLoadFacts(void *,char *);
- LOCALE int EnvLoadFactsFromString(void *,char *,int);
- LOCALE long int FactIndexFunction(void *);
+ LOCALE int EnvSaveFacts(void *,const char *,int);
+ LOCALE int EnvSaveFactsDriver(void *,const char *,int,struct expr *);
+ LOCALE int EnvLoadFacts(void *,const char *);
+ LOCALE int EnvLoadFactsFromString(void *,const char *,long);
+ LOCALE long long FactIndexFunction(void *);
+
+#if ALLOW_ENVIRONMENT_GLOBALS
+#if DEBUGGING_FUNCTIONS
+ LOCALE void Facts(const char *,void *,long long,long long,long long);
#endif
+ LOCALE intBool LoadFacts(const char *);
+ LOCALE intBool SaveFacts(const char *,int);
+ LOCALE intBool LoadFactsFromString(const char *,int);
+
+#endif /* ALLOW_ENVIRONMENT_GLOBALS */
+
+#endif /* _H_factcom */