aboutsummaryrefslogtreecommitdiff
path: root/lstring.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-09-26 12:02:26 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-09-26 12:02:26 -0300
commita580480b07cdf7201306b246deeb2fe84f2c25a9 (patch)
tree30e9d4798228156eea5be2589834f1ff2db4355e /lstring.h
parent0dd6d1080e7f58eb17cb8a2ad3fc5801ed7c0532 (diff)
downloadlua-a580480b07cdf7201306b246deeb2fe84f2c25a9.tar.gz
lua-a580480b07cdf7201306b246deeb2fe84f2c25a9.tar.bz2
lua-a580480b07cdf7201306b246deeb2fe84f2c25a9.zip
new implementation for globals: Global value is stored in TaggedString
Diffstat (limited to 'lstring.h')
-rw-r--r--lstring.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lstring.h b/lstring.h
index 74106224..23f624d0 100644
--- a/lstring.h
+++ b/lstring.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstring.h,v 1.1 1997/08/14 20:23:40 roberto Exp roberto $ 2** $Id: lstring.h,v 1.1 1997/09/16 19:25:59 roberto Exp roberto $
3** String table (keep all strings handled by Lua) 3** String table (keep all strings handled by Lua)
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -10,6 +10,7 @@
10 10
11#include "lobject.h" 11#include "lobject.h"
12 12
13extern GCnode luaS_root;
13 14
14TaggedString *luaS_createudata (void *udata, int tag); 15TaggedString *luaS_createudata (void *udata, int tag);
15TaggedString *luaS_collector (void); 16TaggedString *luaS_collector (void);
@@ -17,5 +18,8 @@ void luaS_free (TaggedString *l);
17void luaS_callIM (TaggedString *l); 18void luaS_callIM (TaggedString *l);
18TaggedString *luaS_new (char *str); 19TaggedString *luaS_new (char *str);
19TaggedString *luaS_newfixedstring (char *str); 20TaggedString *luaS_newfixedstring (char *str);
21void luaS_rawsetglobal (TaggedString *ts, TObject *newval);
22char *luaS_travsymbol (int (*fn)(TObject *));
23int luaS_globaldefined (char *name);
20 24
21#endif 25#endif