Skip to content

Commit 12aabdc

Browse files
Add extern to handleEntries in rules.h
* Add declaration of handleEntries to rete.c
1 parent b7102ec commit 12aabdc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/rules/rete.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
} while(0)
6060

6161

62+
handleEntry handleEntries[MAX_HANDLES];
6263
unsigned int firstEmptyEntry = 1;
6364
unsigned int lastEmptyEntry = MAX_HANDLES -1;
6465
char entriesInitialized = 0;

src/rules/rules.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ typedef struct handleEntry {
6666
unsigned int nextEmptyEntry;
6767
} handleEntry;
6868

69-
handleEntry handleEntries[MAX_HANDLES];
69+
extern handleEntry handleEntries[MAX_HANDLES];
7070
extern unsigned int firstEmptyEntry;
7171
extern unsigned int lastEmptyEntry;
7272
extern char entriesInitialized;

0 commit comments

Comments
 (0)