mirror of
https://github.com/lua/lua
synced 2024-11-28 15:43:08 +03:00
2cffb08a5c
opcodes. When a function is called, its entry in the stack is marked with LUA_T_(C)MARK, so function 'luaD_stackedfunction' can find it if needed. Functions now have their file names in the headers, so there is no need of 'addfile' and the like.
32 lines
724 B
C
32 lines
724 B
C
/*
|
|
** Module to control static tables
|
|
** TeCGraf - PUC-Rio
|
|
** $Id: table.h,v 2.11 1995/10/13 15:16:25 roberto Exp roberto $
|
|
*/
|
|
|
|
#ifndef table_h
|
|
#define table_h
|
|
|
|
#include "tree.h"
|
|
#include "opcode.h"
|
|
|
|
extern Symbol *lua_table;
|
|
extern TaggedString **lua_constant;
|
|
|
|
extern char *lua_file[];
|
|
extern int lua_nfile;
|
|
|
|
|
|
void lua_initconstant (void);
|
|
Word luaI_findsymbolbyname (char *name);
|
|
Word luaI_findsymbol (TreeNode *t);
|
|
Word luaI_findconstant (TreeNode *t);
|
|
Word luaI_findconstantbyname (char *name);
|
|
int lua_markobject (Object *o);
|
|
void lua_pack (void);
|
|
|
|
void luaI_funcInfo (Object *func, char **filename, char **funcname,
|
|
char **objname, int *linedefined);
|
|
|
|
#endif
|