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