aboutsummaryrefslogtreecommitdiff
path: root/tree.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-09-16 16:25:59 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-09-16 16:25:59 -0300
commitdaa858ef278ad136afcb62d7f625b491ffbd5fa3 (patch)
tree1b3ce52cd504f66b9bd00b301544ed9308ba85c8 /tree.h
parentea169d20835aa7d2a42641decc5b5d802047afca (diff)
downloadlua-daa858ef278ad136afcb62d7f625b491ffbd5fa3.tar.gz
lua-daa858ef278ad136afcb62d7f625b491ffbd5fa3.tar.bz2
lua-daa858ef278ad136afcb62d7f625b491ffbd5fa3.zip
String table (keep all strings handled by Lua)
Diffstat (limited to 'tree.h')
-rw-r--r--tree.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/tree.h b/tree.h
deleted file mode 100644
index c898bb20..00000000
--- a/tree.h
+++ /dev/null
@@ -1,38 +0,0 @@
1/*
2** tree.h
3** TecCGraf - PUC-Rio
4** $Id: tree.h,v 1.18 1997/06/09 17:28:14 roberto Exp roberto $
5*/
6
7#ifndef tree_h
8#define tree_h
9
10#include "types.h"
11
12#define NOT_USED 0xFFFE
13
14
15typedef struct TaggedString
16{
17 int tag; /* if != LUA_T_STRING, this is a userdata */
18 struct TaggedString *next;
19 union {
20 struct {
21 Word varindex; /* != NOT_USED if this is a symbol */
22 Word constindex; /* hint to reuse constant indexes */
23 } s;
24 void *v; /* if this is a userdata, here is its value */
25 } u;
26 unsigned long hash; /* 0 if not initialized */
27 int marked; /* for garbage collection; never collect (nor change) if > 1 */
28 char str[1]; /* \0 byte already reserved */
29} TaggedString;
30
31
32TaggedString *luaI_createstring (char *str);
33TaggedString *luaI_createudata (void *udata, int tag);
34TaggedString *luaI_strcollector (long *cont);
35void luaI_strfree (TaggedString *l);
36void luaI_strcallIM (TaggedString *l);
37
38#endif