diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-09-26 12:02:26 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-09-26 12:02:26 -0300 |
commit | a580480b07cdf7201306b246deeb2fe84f2c25a9 (patch) | |
tree | 30e9d4798228156eea5be2589834f1ff2db4355e /lstring.h | |
parent | 0dd6d1080e7f58eb17cb8a2ad3fc5801ed7c0532 (diff) | |
download | lua-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.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 | ||
13 | extern GCnode luaS_root; | ||
13 | 14 | ||
14 | TaggedString *luaS_createudata (void *udata, int tag); | 15 | TaggedString *luaS_createudata (void *udata, int tag); |
15 | TaggedString *luaS_collector (void); | 16 | TaggedString *luaS_collector (void); |
@@ -17,5 +18,8 @@ void luaS_free (TaggedString *l); | |||
17 | void luaS_callIM (TaggedString *l); | 18 | void luaS_callIM (TaggedString *l); |
18 | TaggedString *luaS_new (char *str); | 19 | TaggedString *luaS_new (char *str); |
19 | TaggedString *luaS_newfixedstring (char *str); | 20 | TaggedString *luaS_newfixedstring (char *str); |
21 | void luaS_rawsetglobal (TaggedString *ts, TObject *newval); | ||
22 | char *luaS_travsymbol (int (*fn)(TObject *)); | ||
23 | int luaS_globaldefined (char *name); | ||
20 | 24 | ||
21 | #endif | 25 | #endif |