aboutsummaryrefslogtreecommitdiff
path: root/ltable.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-09-04 15:15:29 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-09-04 15:15:29 -0300
commit3a15c7ce4338de8414239a898f6c121294b4dde7 (patch)
tree2d449c2966afaf5d092b6d07d8f04b2b0a9b13bb /ltable.h
parent0a6b58c3aac2741cf1c84c44d168c73e3e478c4d (diff)
downloadlua-3a15c7ce4338de8414239a898f6c121294b4dde7.tar.gz
lua-3a15c7ce4338de8414239a898f6c121294b4dde7.tar.bz2
lua-3a15c7ce4338de8414239a898f6c121294b4dde7.zip
size for array part of a table ('sizearray') changed from 'int' to
'unsigned int', which allows twice as many elements in the array part
Diffstat (limited to 'ltable.h')
-rw-r--r--ltable.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/ltable.h b/ltable.h
index a4570d9d..20ddacd0 100644
--- a/ltable.h
+++ b/ltable.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.h,v 2.18 2013/08/30 16:01:37 roberto Exp roberto $ 2** $Id: ltable.h,v 2.19 2014/07/29 16:22:24 roberto Exp roberto $
3** Lua tables (hash) 3** Lua tables (hash)
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -30,14 +30,15 @@
30 30
31LUAI_FUNC const TValue *luaH_getint (Table *t, lua_Integer key); 31LUAI_FUNC const TValue *luaH_getint (Table *t, lua_Integer key);
32LUAI_FUNC void luaH_setint (lua_State *L, Table *t, lua_Integer key, 32LUAI_FUNC void luaH_setint (lua_State *L, Table *t, lua_Integer key,
33 TValue *value); 33 TValue *value);
34LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key); 34LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key);
35LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key); 35LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key);
36LUAI_FUNC TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key); 36LUAI_FUNC TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key);
37LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key); 37LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key);
38LUAI_FUNC Table *luaH_new (lua_State *L); 38LUAI_FUNC Table *luaH_new (lua_State *L);
39LUAI_FUNC void luaH_resize (lua_State *L, Table *t, int nasize, int nhsize); 39LUAI_FUNC void luaH_resize (lua_State *L, Table *t, unsigned int nasize,
40LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, int nasize); 40 unsigned int nhsize);
41LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, unsigned int nasize);
41LUAI_FUNC void luaH_free (lua_State *L, Table *t); 42LUAI_FUNC void luaH_free (lua_State *L, Table *t);
42LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key); 43LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key);
43LUAI_FUNC int luaH_getn (Table *t); 44LUAI_FUNC int luaH_getn (Table *t);