use of a common `dummynode' for all empty tables

This commit is contained in:
Roberto Ierusalimschy
2002-04-23 12:04:39 -03:00
parent f1a1bb23fe
commit 383e8b9e77
4 changed files with 46 additions and 35 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstate.h,v 1.82 2002/04/10 12:11:07 roberto Exp roberto $
** $Id: lstate.h,v 1.83 2002/04/16 17:08:28 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -113,6 +113,7 @@ typedef struct global_State {
lu_mem GCthreshold;
lu_mem nblocks; /* number of `bytes' currently allocated */
lua_CFunction panic; /* to be called in unprotected errors */
Node dummynode[1]; /* common node array for all empty tables */
TString *tmname[TM_N]; /* array with tag-method names */
} global_State;