new auxiliary function `luaH_setstr'

This commit is contained in:
Roberto Ierusalimschy
2003-08-26 09:04:13 -03:00
parent 4b2e71ddb6
commit b114142799
3 changed files with 18 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: ltable.h,v 1.43 2002/11/07 16:03:33 roberto Exp roberto $
** $Id: ltable.h,v 1.44 2003/03/18 12:50:04 roberto Exp roberto $
** Lua tables (hash)
** See Copyright Notice in lua.h
*/
@@ -18,6 +18,7 @@
const TObject *luaH_getnum (Table *t, int key);
TObject *luaH_setnum (lua_State *L, Table *t, int key);
const TObject *luaH_getstr (Table *t, TString *key);
TObject *luaH_setstr (lua_State *L, Table *t, TString *key);
const TObject *luaH_get (Table *t, const TObject *key);
TObject *luaH_set (lua_State *L, Table *t, const TObject *key);
Table *luaH_new (lua_State *L, int narray, int lnhash);