1993-07-28 06:18:00 -07:00
|
|
|
/*
|
|
|
|
** Module to control static tables
|
|
|
|
** TeCGraf - PUC-Rio
|
1996-02-06 08:18:21 -08:00
|
|
|
** $Id: table.h,v 2.15 1996/01/26 18:03:19 roberto Exp roberto $
|
1993-07-28 06:18:00 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef table_h
|
|
|
|
#define table_h
|
|
|
|
|
1994-11-14 13:40:14 -08:00
|
|
|
#include "tree.h"
|
1994-11-23 06:32:00 -08:00
|
|
|
#include "opcode.h"
|
1994-11-14 13:40:14 -08:00
|
|
|
|
1996-01-26 10:03:19 -08:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
Object object;
|
|
|
|
TreeNode *varname;
|
|
|
|
} Symbol;
|
|
|
|
|
|
|
|
|
1993-07-28 06:18:00 -07:00
|
|
|
extern Symbol *lua_table;
|
1994-11-23 06:32:00 -08:00
|
|
|
extern TaggedString **lua_constant;
|
1993-07-28 06:18:00 -07:00
|
|
|
|
1994-07-19 14:27:18 -07:00
|
|
|
void lua_initconstant (void);
|
1994-12-20 13:20:36 -08:00
|
|
|
Word luaI_findsymbolbyname (char *name);
|
|
|
|
Word luaI_findsymbol (TreeNode *t);
|
|
|
|
Word luaI_findconstant (TreeNode *t);
|
1995-10-13 08:16:25 -07:00
|
|
|
Word luaI_findconstantbyname (char *name);
|
1995-10-17 04:58:41 -07:00
|
|
|
int lua_markobject (Object *o);
|
1996-01-22 06:15:13 -08:00
|
|
|
Long luaI_collectgarbage (void);
|
1994-04-20 15:07:57 -07:00
|
|
|
void lua_pack (void);
|
1995-10-17 04:58:41 -07:00
|
|
|
|
1993-07-28 06:18:00 -07:00
|
|
|
|
|
|
|
#endif
|