From a580480b07cdf7201306b246deeb2fe84f2c25a9 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 26 Sep 1997 12:02:26 -0300 Subject: new implementation for globals: Global value is stored in TaggedString --- lstring.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lstring.h') diff --git a/lstring.h b/lstring.h index 74106224..23f624d0 100644 --- a/lstring.h +++ b/lstring.h @@ -1,5 +1,5 @@ /* -** $Id: lstring.h,v 1.1 1997/08/14 20:23:40 roberto Exp roberto $ +** $Id: lstring.h,v 1.1 1997/09/16 19:25:59 roberto Exp roberto $ ** String table (keep all strings handled by Lua) ** See Copyright Notice in lua.h */ @@ -10,6 +10,7 @@ #include "lobject.h" +extern GCnode luaS_root; TaggedString *luaS_createudata (void *udata, int tag); TaggedString *luaS_collector (void); @@ -17,5 +18,8 @@ void luaS_free (TaggedString *l); void luaS_callIM (TaggedString *l); TaggedString *luaS_new (char *str); TaggedString *luaS_newfixedstring (char *str); +void luaS_rawsetglobal (TaggedString *ts, TObject *newval); +char *luaS_travsymbol (int (*fn)(TObject *)); +int luaS_globaldefined (char *name); #endif -- cgit v1.2.3-55-g6feb