comparison PrivateHash.h @ 9:7c4d2bf121a9

Bugfix: Strings were used to handle keys. So 0 byte in key will terminate all functions.
author Merten Sach <msach@mailbox.tu-berlin.de>
date Wed, 28 Sep 2011 13:38:15 +0200
parents 5900d90f5d71
children 40ec8f9583d8
comparison
equal deleted inserted replaced
1:b9cfb28f8f37 2:5d447d984d89
11 #include "../VMS_primitive_data_types.h" 11 #include "../VMS_primitive_data_types.h"
12 12
13 #define TRUE 1 13 #define TRUE 1
14 #define FALSE 0 14 #define FALSE 0
15 15
16 union hashkey_t{
17 char hashable[8];
18 int parts[2];
19 };
20
21 typedef union hashkey_t hashkey_t;
16 22
17 #define DEFAULT_HASHSIZE 1 << 10 23 #define DEFAULT_HASHSIZE 1 << 10
18 24
19 typedef struct _HashEntry HashEntry; 25 typedef struct _HashEntry HashEntry;
20 26