Imported from ../lua-3.0.tar.gz.
[lua.git] / src / table.h
blob5a628526e9ca3be3dbe16ea3b1e6e5f9ede9800d
1 /*
2 ** Module to control static tables
3 ** TeCGraf - PUC-Rio
4 ** $Id: table.h,v 2.25 1997/05/26 14:42:36 roberto Exp $
5 */
7 #ifndef table_h
8 #define table_h
10 #include "tree.h"
11 #include "opcode.h"
13 typedef struct
15 TObject object;
16 TaggedString *varname;
17 } Symbol;
20 extern Symbol *lua_table;
21 extern Word lua_ntable;
22 extern TaggedString **lua_constant;
23 extern Word lua_nconstant;
25 void luaI_initsymbol (void);
26 void luaI_initconstant (void);
27 Word luaI_findsymbolbyname (char *name);
28 Word luaI_findsymbol (TaggedString *t);
29 Word luaI_findconstant (TaggedString *t);
30 Word luaI_findconstantbyname (char *name);
31 int luaI_globaldefined (char *name);
32 void luaI_nextvar (void);
33 TaggedString *luaI_createfixedstring (char *str);
34 int lua_markobject (TObject *o);
35 int luaI_ismarked (TObject *o);
36 void lua_pack (void);
39 #endif