annotate lib/lua/lua-5.2.2/ltable.h @ 2353:bb9f180d50f6

Removing a few unsorted_subs includes
author Grumpy7
date Wed, 09 Apr 2014 21:58:09 +0200
parents 41cc4dd3c122
children
rev   line source
1866
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
1 /*
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
2 ** $Id: ltable.h,v 2.16 2011/08/17 20:26:47 roberto Exp $
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
3 ** Lua tables (hash)
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
4 ** See Copyright Notice in lua.h
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
5 */
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
6
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
7 #ifndef ltable_h
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
8 #define ltable_h
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
9
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
10 #include "lobject.h"
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
11
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
12
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
13 #define gnode(t,i) (&(t)->node[i])
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
14 #define gkey(n) (&(n)->i_key.tvk)
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
15 #define gval(n) (&(n)->i_val)
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
16 #define gnext(n) ((n)->i_key.nk.next)
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
17
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
18 #define invalidateTMcache(t) ((t)->flags = 0)
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
19
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
20
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
21 LUAI_FUNC const TValue *luaH_getint (Table *t, int key);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
22 LUAI_FUNC void luaH_setint (lua_State *L, Table *t, int key, TValue *value);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
23 LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
24 LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
25 LUAI_FUNC TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
26 LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
27 LUAI_FUNC Table *luaH_new (lua_State *L);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
28 LUAI_FUNC void luaH_resize (lua_State *L, Table *t, int nasize, int nhsize);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
29 LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, int nasize);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
30 LUAI_FUNC void luaH_free (lua_State *L, Table *t);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
31 LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
32 LUAI_FUNC int luaH_getn (Table *t);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
33
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
34
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
35 #if defined(LUA_DEBUG)
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
36 LUAI_FUNC Node *luaH_mainposition (const Table *t, const TValue *key);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
37 LUAI_FUNC int luaH_isdummy (Node *n);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
38 #endif
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
39
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
40
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
41 #endif