change in hash algorithm so that it does not need empty slot

(tables can be 100% full)
This commit is contained in:
Roberto Ierusalimschy
2005-01-05 16:20:51 -02:00
parent 65726f3e2e
commit e2498e079e
9 changed files with 125 additions and 108 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstate.h,v 2.9 2004/12/06 17:53:42 roberto Exp roberto $
** $Id: lstate.h,v 2.10 2004/12/13 12:15:11 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -90,7 +90,6 @@ typedef struct global_State {
lua_CFunction panic; /* to be called in unprotected errors */
TValue _registry;
struct lua_State *mainthread;
Node dummynode[1]; /* common node array for all empty tables */
TString *tmname[TM_N]; /* array with tag-method names */
} global_State;