diff options
Diffstat (limited to 'hash.h')
| -rw-r--r-- | hash.h | 19 |
1 files changed, 9 insertions, 10 deletions
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** hash.h | 2 | ** hash.h |
| 3 | ** hash manager for lua | 3 | ** hash manager for lua |
| 4 | ** $Id: hash.h,v 2.11 1996/03/08 12:04:04 roberto Exp roberto $ | 4 | ** $Id: hash.h,v 2.12 1996/05/06 14:30:27 roberto Exp roberto $ |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #ifndef hash_h | 7 | #ifndef hash_h |
| @@ -10,19 +10,18 @@ | |||
| 10 | #include "types.h" | 10 | #include "types.h" |
| 11 | #include "opcode.h" | 11 | #include "opcode.h" |
| 12 | 12 | ||
| 13 | typedef struct node | 13 | typedef struct node { |
| 14 | { | ||
| 15 | Object ref; | 14 | Object ref; |
| 16 | Object val; | 15 | Object val; |
| 17 | } Node; | 16 | } Node; |
| 18 | 17 | ||
| 19 | typedef struct Hash | 18 | typedef struct Hash { |
| 20 | { | 19 | struct Hash *next; |
| 21 | struct Hash *next; | 20 | Node *node; |
| 22 | Node *node; | 21 | int nhash; |
| 23 | int nhash; | 22 | int nuse; |
| 24 | int nuse; | 23 | int htag; |
| 25 | char mark; | 24 | char mark; |
| 26 | } Hash; | 25 | } Hash; |
| 27 | 26 | ||
| 28 | 27 | ||
