lua/func.h

39 lines
700 B
C
Raw Normal View History

1995-10-04 07:20:26 -07:00
#ifndef func_h
#define func_h
#include "types.h"
#include "lua.h"
1995-10-04 07:20:26 -07:00
typedef struct LocVar
{
TaggedString *varname; /* NULL signals end of scope */
int line;
} LocVar;
1995-10-04 07:20:26 -07:00
/*
** Function Headers
1995-10-04 07:20:26 -07:00
*/
typedef struct TFunc
{
struct TFunc *next;
char marked;
int size;
Byte *code;
int lineDefined;
char *fileName;
LocVar *locvars;
1995-10-04 07:20:26 -07:00
} TFunc;
Long luaI_funccollector (void);
void luaI_insertfunction (TFunc *f);
void luaI_initTFunc (TFunc *f);
void luaI_registerlocalvar (TaggedString *varname, int line);
void luaI_unregisterlocalvar (int line);
void luaI_closelocalvars (TFunc *func);
char *luaI_getlocalname (TFunc *func, int local_number, int line);
1995-10-04 07:20:26 -07:00
#endif