From a404f6e0e621927dc3765db556a7f4e645756a47 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 16 Sep 1997 16:25:59 -0300 Subject: Lua tables (hash) --- hash.h | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 hash.h (limited to 'hash.h') diff --git a/hash.h b/hash.h deleted file mode 100644 index 4fbde55c..00000000 --- a/hash.h +++ /dev/null @@ -1,39 +0,0 @@ -/* -** hash.h -** hash manager for lua -** $Id: hash.h,v 2.15 1997/03/31 14:02:58 roberto Exp roberto $ -*/ - -#ifndef hash_h -#define hash_h - -#include "types.h" -#include "opcode.h" - -typedef struct node { - TObject ref; - TObject val; -} Node; - -typedef struct Hash { - struct Hash *next; - Node *node; - int nhash; - int nuse; - int htag; - char mark; -} Hash; - - -int lua_equalObj (TObject *t1, TObject *t2); -int luaI_redimension (int nhash); -Hash *lua_createarray (int nhash); -void lua_hashmark (Hash *h); -Hash *luaI_hashcollector (long *count); -void luaI_hashcallIM (Hash *l); -void luaI_hashfree (Hash *frees); -TObject *lua_hashget (Hash *t, TObject *ref); -TObject *lua_hashdefine (Hash *t, TObject *ref); -void lua_next (void); - -#endif -- cgit v1.2.3-55-g6feb