diff options
Diffstat (limited to 'src/crstrtgy.h')
-rw-r--r-- | src/crstrtgy.h | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/src/crstrtgy.h b/src/crstrtgy.h index c8daf06..997c691 100644 --- a/src/crstrtgy.h +++ b/src/crstrtgy.h @@ -1,7 +1,7 @@ /*******************************************************/ /* "C" Language Integrated Production System */ /* */ - /* CLIPS Version 6.24 05/17/06 */ + /* CLIPS Version 6.30 08/16/14 */ /* */ /* CONFLICT RESOLUTION STRATEGY HEADER MODULE */ /*******************************************************/ @@ -19,12 +19,26 @@ /* Contributing Programmer(s): */ /* */ /* Revision History: */ +/* */ /* 6.23: Corrected compilation errors for files */ /* generated by constructs-to-c. DR0861 */ /* */ /* 6.24: Removed CONFLICT_RESOLUTION_STRATEGIES */ /* compilation flag. */ /* */ +/* 6.30: Added salience groups to improve performance */ +/* with large numbers of activations of different */ +/* saliences. */ +/* */ +/* Removed pseudo-facts used for not CEs. */ +/* */ +/* Changed integer type/precision. */ +/* */ +/* Added const qualifiers to remove C++ */ +/* deprecation warnings. */ +/* */ +/* Converted API macros to function calls. */ +/* */ /*************************************************************/ #ifndef _H_crstrtgy @@ -54,21 +68,19 @@ #define LOCALE extern #endif -#if ENVIRONMENT_API_ONLY -#define GetStrategy(theEnv) EnvGetStrategy(theEnv) -#define SetStrategy(theEnv,a) EnvSetStrategy(theEnv,a) -#else -#define GetStrategy() EnvGetStrategy(GetCurrentEnvironment()) -#define SetStrategy(a) EnvSetStrategy(GetCurrentEnvironment(),a) -#endif - - LOCALE void PlaceActivation(void *,ACTIVATION **,ACTIVATION *); + LOCALE void PlaceActivation(void *,ACTIVATION **,ACTIVATION *,struct salienceGroup *); LOCALE int EnvSetStrategy(void *,int); LOCALE int EnvGetStrategy(void *); LOCALE void *SetStrategyCommand(void *); LOCALE void *GetStrategyCommand(void *); +#if ALLOW_ENVIRONMENT_GLOBALS + + LOCALE int SetStrategy(int); + LOCALE int GetStrategy(void); + #endif +#endif /* _H_crstrtgy */ |