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 --- lglobal.h | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 lglobal.h (limited to 'lglobal.h') diff --git a/lglobal.h b/lglobal.h deleted file mode 100644 index 00edb4c6..00000000 --- a/lglobal.h +++ /dev/null @@ -1,35 +0,0 @@ -/* -** $Id: $ -** Global variables -** See Copyright Notice in lua.h -*/ - -#ifndef lglobal_h -#define lglobal_h - - -#include "lobject.h" - - -typedef struct { - TObject object; - TaggedString *varname; -} Symbol; - - -extern Symbol *luaG_global; /* global variables */ -extern int luaG_nglobal; /* number of global variable (for luac) */ - - -Word luaG_findsymbolbyname (char *name); -Word luaG_findsymbol (TaggedString *t); -int luaG_globaldefined (char *name); -int luaG_nextvar (Word next); -char *luaG_travsymbol (int (*fn)(TObject *)); - - -#define s_object(i) (luaG_global[i].object) -#define s_ttype(i) (ttype(&s_object(i))) - - -#endif -- cgit v1.2.3-55-g6feb