codex
Loading...
Searching...
No Matches
lobject.h
Go to the documentation of this file.
1/*
2** Tagged Values. This is the basic
3** representation of values in Lua:
4** an actual value plus a tag with
5** its type.
6*/
7
8#define TValuefields \
9 Value value_; \
10 lu_byte tt_
11
12typedef struct TValue {
15
16/*
17** Entries in a Lua stack.
18*/
19typedef union StackValue {
21 struct {
23 unsigned short delta;
26
27/*
28** Nodes for Hash tables: A pack
29** of two TValue's (key-value pairs)
30** plus a 'next' field to link
31** colliding entries.
32*/
33typedef union Node {
34 struct NodeKey {
36 lu_byte key_tt;
37 int next;
38 Value key_val;
39 } u;
struct TValue TValue
union StackValue StackValue
union Node Node
Definition lobject.h:34
Value key_val
Definition lobject.h:38
int next
Definition lobject.h:37
TValuefields
Definition lobject.h:35
lu_byte key_tt
Definition lobject.h:36
Definition lobject.h:12
TValuefields
Definition lobject.h:13
Definition lobject.h:33
TValue i_val
Definition lobject.h:40
struct Node::NodeKey u
Definition lobject.h:19
struct StackValue::@1 tbclist
TValuefields
Definition lobject.h:22
unsigned short delta
Definition lobject.h:23
TValue val
Definition lobject.h:20