1993-07-28 17:18:00 +04:00
|
|
|
/*
|
|
|
|
** Module to control static tables
|
|
|
|
** TeCGraf - PUC-Rio
|
1996-02-14 16:35:51 +03:00
|
|
|
** $Id: table.h,v 2.17 1996/02/12 18:32:40 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
|
|
|
|
{
|
|
|
|
Object 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;
|
1994-11-23 17:32:00 +03:00
|
|
|
extern TaggedString **lua_constant;
|
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);
|
1996-02-12 21:32:40 +03:00
|
|
|
TaggedString *lua_constcreate (char *str);
|
1995-10-17 14:58:41 +03:00
|
|
|
int lua_markobject (Object *o);
|
1996-01-22 17:15:13 +03:00
|
|
|
Long luaI_collectgarbage (void);
|
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
|