aboutsummaryrefslogtreecommitdiff
path: root/lglobal.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-09-16 16:25:59 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-09-16 16:25:59 -0300
commitb8a049abed1f021009930a3030b484e70f89f001 (patch)
tree20d636a16f78b3a4ff357de97d365a8af4ebbdfb /lglobal.h
parente18f6813330ad141cdac86d194175e75b418df2d (diff)
downloadlua-b8a049abed1f021009930a3030b484e70f89f001.tar.gz
lua-b8a049abed1f021009930a3030b484e70f89f001.tar.bz2
lua-b8a049abed1f021009930a3030b484e70f89f001.zip
Global variables
Diffstat (limited to 'lglobal.h')
-rw-r--r--lglobal.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/lglobal.h b/lglobal.h
new file mode 100644
index 00000000..00edb4c6
--- /dev/null
+++ b/lglobal.h
@@ -0,0 +1,35 @@
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