new implementation for global variable values (separated from strings)

This commit is contained in:
Roberto Ierusalimschy
1999-11-04 15:23:12 -02:00
parent 80b39d83c3
commit cde179b369
12 changed files with 166 additions and 145 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstring.h,v 1.10 1999/10/11 16:13:11 roberto Exp roberto $
** $Id: lstring.h,v 1.11 1999/10/14 19:13:31 roberto Exp roberto $
** String table (keep all strings handled by Lua)
** See Copyright Notice in lua.h
*/
@@ -33,7 +33,8 @@ void luaS_free (TaggedString *ts);
TaggedString *luaS_newlstr (const char *str, long l);
TaggedString *luaS_new (const char *str);
TaggedString *luaS_newfixedstring (const char *str);
void luaS_rawsetglobal (TaggedString *ts, const TObject *newval);
GlobalVar *luaS_assertglobal (TaggedString *ts);
GlobalVar *luaS_assertglobalbyname (const char *name);
int luaS_globaldefined (const char *name);