rpm
4.5
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
lua
ltable.h
Go to the documentation of this file.
1
/*
2
** $Id: ltable.h,v 1.1 2004/03/16 21:58:30 niemeyer Exp $
3
** Lua tables (hash)
4
** See Copyright Notice in lua.h
5
*/
6
7
#ifndef ltable_h
8
#define ltable_h
9
10
#include "
lobject.h
"
11
12
13
#define gnode(t,i) (&(t)->node[i])
14
#define gkey(n) (&(n)->i_key)
15
#define gval(n) (&(n)->i_val)
16
17
18
/*@observer@*/
19
const
TObject
*
luaH_getnum
(
Table
*t,
int
key)
20
/*@*/
;
21
TObject
*
luaH_setnum
(
lua_State
*L,
Table
*t,
int
key)
22
/*@modifies L, t @*/
;
23
/*@observer@*/
24
const
TObject
*
luaH_getstr
(
Table
*t,
TString
*key)
25
/*@*/
;
26
/*@observer@*/
27
const
TObject
*
luaH_get
(
Table
*t,
const
TObject
*key)
28
/*@*/
;
29
TObject
*
luaH_set
(
lua_State
*L,
Table
*t,
const
TObject
*key)
30
/*@modifies L, t @*/
;
31
/*@null@*/
32
Table
*
luaH_new
(
lua_State
*L,
int
narray,
int
lnhash)
33
/*@modifies L @*/
;
34
void
luaH_free
(
lua_State
*L,
Table
*t)
35
/*@modifies L, t @*/
;
36
int
luaH_next
(
lua_State
*L,
Table
*t,
StkId
key)
37
/*@modifies L, key @*/
;
38
39
/* exported only for debugging */
40
Node
*
luaH_mainposition
(
const
Table
*t,
const
TObject
*key)
41
/*@*/
;
42
43
44
#endif
Generated on Tue Aug 28 2012 18:13:47 for rpm by
1.8.2