new field 'next' in struct 'Hash', to list tables for garbage collection.

This commit is contained in:
Waldemar Celes
1994-09-08 13:51:49 -03:00
parent b826a39919
commit 0dcae99d74

3
hash.h
View File

@@ -2,7 +2,7 @@
** hash.h ** hash.h
** hash manager for lua ** hash manager for lua
** Luiz Henrique de Figueiredo - 17 Aug 90 ** Luiz Henrique de Figueiredo - 17 Aug 90
** $Id: hash.h,v 2.2 1994/08/05 19:25:09 celes Exp celes $ ** $Id: hash.h,v 2.3 1994/08/09 11:24:45 celes Exp celes $
*/ */
#ifndef hash_h #ifndef hash_h
@@ -16,6 +16,7 @@ typedef struct node
typedef struct Hash typedef struct Hash
{ {
struct Hash *next;
char mark; char mark;
unsigned int nhash; unsigned int nhash;
unsigned int nuse; unsigned int nuse;