/
facthsh.h
65 lines (52 loc) · 2.4 KB
/
facthsh.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*******************************************************/
/* "C" Language Integrated Production System */
/* */
/* CLIPS Version 6.24 06/05/06 */
/* */
/* FACT HASHING MODULE */
/*******************************************************/
/*************************************************************/
/* Purpose: */
/* */
/* Principal Programmer(s): */
/* Gary D. Riley */
/* */
/* Contributing Programmer(s): */
/* */
/* Revision History: */
/* */
/* 6.24: Renamed BOOLEAN macro type to intBool. */
/* */
/*************************************************************/
#ifndef _H_facthsh
#define _H_facthsh
struct factHashEntry;
#ifndef _H_factmngr
#include "factmngr.h"
#endif
struct factHashEntry
{
struct fact *theFact;
struct factHashEntry *next;
};
#define SIZE_FACT_HASH 16231
#ifdef LOCALE
#undef LOCALE
#endif
#ifdef _FACTHSH_SOURCE_
#define LOCALE
#else
#define LOCALE extern
#endif
#define GetFactDuplication() EnvGetFactDuplication(GetCurrentEnvironment())
#define SetFactDuplication(a) EnvSetFactDuplication(GetCurrentEnvironment(),a)
LOCALE void AddHashedFact(void *,struct fact *,unsigned long);
LOCALE intBool RemoveHashedFact(void *,struct fact *);
LOCALE unsigned long HandleFactDuplication(void *,void *,intBool *);
LOCALE intBool EnvGetFactDuplication(void *);
LOCALE intBool EnvSetFactDuplication(void *,int);
LOCALE void InitializeFactHashTable(void *);
LOCALE void ShowFactHashTable(void *);
LOCALE unsigned long HashFact(struct fact *);
LOCALE intBool FactWillBeAsserted(void *,void *);
#endif