aboutsummaryrefslogtreecommitdiff
path: root/lglobal.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 /lglobal.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 'lglobal.h')
-rw-r--r--lglobal.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/lglobal.h b/lglobal.h
deleted file mode 100644
index 00edb4c6..00000000
--- a/lglobal.h
+++ /dev/null
@@ -1,35 +0,0 @@
1/*
2** $Id: $
3** Global variables
4** See Copyright Notice in lua.h
5*/
6
7#ifndef lglobal_h
8#define lglobal_h
9
10
11#include "lobject.h"
12
13
14typedef struct {
15 TObject object;
16 TaggedString *varname;
17} Symbol;
18
19
20extern Symbol *luaG_global; /* global variables */
21extern int luaG_nglobal; /* number of global variable (for luac) */
22
23
24Word luaG_findsymbolbyname (char *name);
25Word luaG_findsymbol (TaggedString *t);
26int luaG_globaldefined (char *name);
27int luaG_nextvar (Word next);
28char *luaG_travsymbol (int (*fn)(TObject *));
29
30
31#define s_object(i) (luaG_global[i].object)
32#define s_ttype(i) (ttype(&s_object(i)))
33
34
35#endif