aboutsummaryrefslogtreecommitdiff
path: root/ltable.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-04-26 12:39:25 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-04-26 12:39:25 -0300
commitd4e6b750983febf3af0f09235169be9a9e9250d8 (patch)
treeae9852dd4327786f89cb7a499c384a01224397d3 /ltable.h
parenta2f5c28a802ae99f2045ab96585fade2c65b2037 (diff)
downloadlua-d4e6b750983febf3af0f09235169be9a9e9250d8.tar.gz
lua-d4e6b750983febf3af0f09235169be9a9e9250d8.tar.bz2
lua-d4e6b750983febf3af0f09235169be9a9e9250d8.zip
"integer" keys in tables are now lua_Integer, not 'int'.
Diffstat (limited to 'ltable.h')
-rw-r--r--ltable.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/ltable.h b/ltable.h
index 9088b9e8..a6dc17d9 100644
--- a/ltable.h
+++ b/ltable.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.h,v 2.15 2011/08/09 20:58:29 roberto Exp roberto $ 2** $Id: ltable.h,v 2.16 2011/08/17 20:26:47 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*/
@@ -18,8 +18,9 @@
18#define invalidateTMcache(t) ((t)->flags = 0) 18#define invalidateTMcache(t) ((t)->flags = 0)
19 19
20 20
21LUAI_FUNC const TValue *luaH_getint (Table *t, int key); 21LUAI_FUNC const TValue *luaH_getint (Table *t, lua_Integer key);
22LUAI_FUNC void luaH_setint (lua_State *L, Table *t, int key, TValue *value); 22LUAI_FUNC void luaH_setint (lua_State *L, Table *t, lua_Integer key,
23 TValue *value);
23LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key); 24LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key);
24LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key); 25LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key);
25LUAI_FUNC TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key); 26LUAI_FUNC TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key);