From 1e81da51bab87148981486a84b846399050f4ef2 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 17 Oct 2001 19:12:57 -0200 Subject: new API for registry and C upvalues + new implementation for references --- lstate.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index ebeeab52..aa29c3bd 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 1.59 2001/09/07 17:39:10 roberto Exp $ +** $Id: lstate.h,v 1.60 2001/10/02 16:43:29 roberto Exp $ ** Global State ** See Copyright Notice in lua.h */ @@ -58,8 +58,7 @@ typedef struct global_State { size_t Mbuffsize; /* size of Mbuffer */ stringtable strt; /* hash table for strings */ Hash *type2tag; /* hash table from type names to tags */ - Hash *registry; /* (strong) registry table */ - Hash *weakregistry; /* weakregistry table */ + TObject registry; /* registry table */ struct TM *TMtable; /* table for tag methods */ int sizeTM; /* size of TMtable */ int ntag; /* number of tags in TMtable */ -- cgit v1.2.3-55-g6feb