first implementation for weak tables

This commit is contained in:
Roberto Ierusalimschy
2001-04-11 11:42:41 -03:00
parent 2a50188269
commit 0e0e4a480e
7 changed files with 121 additions and 30 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lobject.h,v 1.100 2001/03/02 17:27:50 roberto Exp roberto $
** $Id: lobject.h,v 1.101 2001/03/07 18:09:25 roberto Exp roberto $
** Type definitions for Lua objects
** See Copyright Notice in lua.h
*/
@@ -179,6 +179,7 @@ typedef struct Hash {
Node *firstfree; /* this position is free; all positions after it are full */
struct Hash *next;
struct Hash *mark; /* marked tables (point to itself when not marked) */
int weakmode;
} Hash;