1993-07-28 17:18:00 +04:00
|
|
|
/*
|
|
|
|
** Module to control static tables
|
|
|
|
** TeCGraf - PUC-Rio
|
1997-05-26 18:42:36 +04:00
|
|
|
** $Id: table.h,v 2.24 1997/04/07 14:48:53 roberto Exp roberto $
|
1993-07-28 17:18:00 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef table_h
|
|
|
|
#define table_h
|
|
|
|
|
1994-11-15 00:40:14 +03:00
|
|
|
#include "tree.h"
|
1994-11-23 17:32:00 +03:00
|
|
|
#include "opcode.h"
|
1994-11-15 00:40:14 +03:00
|
|
|
|
1996-01-26 21:03:19 +03:00
|
|
|
typedef struct
|
|
|
|
{
|
1997-03-31 18:02:58 +04:00
|
|
|
TObject object;
|
1996-02-12 21:32:40 +03:00
|
|
|
TaggedString *varname;
|
1996-01-26 21:03:19 +03:00
|
|
|
} Symbol;
|
|
|
|
|
|
|
|
|
1993-07-28 17:18:00 +04:00
|
|
|
extern Symbol *lua_table;
|
1996-03-14 18:57:19 +03:00
|
|
|
extern Word lua_ntable;
|
1994-11-23 17:32:00 +03:00
|
|
|
extern TaggedString **lua_constant;
|
1996-03-14 18:57:19 +03:00
|
|
|
extern Word lua_nconstant;
|
1993-07-28 17:18:00 +04:00
|
|
|
|
1996-02-14 16:35:51 +03:00
|
|
|
void luaI_initsymbol (void);
|
|
|
|
void luaI_initconstant (void);
|
1994-12-21 00:20:36 +03:00
|
|
|
Word luaI_findsymbolbyname (char *name);
|
1996-02-12 21:32:40 +03:00
|
|
|
Word luaI_findsymbol (TaggedString *t);
|
|
|
|
Word luaI_findconstant (TaggedString *t);
|
1995-10-13 18:16:25 +03:00
|
|
|
Word luaI_findconstantbyname (char *name);
|
1997-04-07 18:48:53 +04:00
|
|
|
int luaI_globaldefined (char *name);
|
1997-02-26 20:38:41 +03:00
|
|
|
void luaI_nextvar (void);
|
1996-02-27 00:00:27 +03:00
|
|
|
TaggedString *luaI_createfixedstring (char *str);
|
1997-03-31 18:02:58 +04:00
|
|
|
int lua_markobject (TObject *o);
|
|
|
|
int luaI_ismarked (TObject *o);
|
1994-04-21 02:07:57 +04:00
|
|
|
void lua_pack (void);
|
1995-10-17 14:58:41 +03:00
|
|
|
|
1993-07-28 17:18:00 +04:00
|
|
|
|
|
|
|
#endif
|