table.h 700 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. ** Module to control static tables
  3. ** TeCGraf - PUC-Rio
  4. ** $Id: table.h,v 2.14 1996/01/22 14:15:13 roberto Exp roberto $
  5. */
  6. #ifndef table_h
  7. #define table_h
  8. #include "tree.h"
  9. #include "opcode.h"
  10. typedef struct
  11. {
  12. Object object;
  13. TreeNode *varname;
  14. } Symbol;
  15. extern Symbol *lua_table;
  16. extern TaggedString **lua_constant;
  17. extern char *lua_file[];
  18. extern int lua_nfile;
  19. void lua_initconstant (void);
  20. Word luaI_findsymbolbyname (char *name);
  21. Word luaI_findsymbol (TreeNode *t);
  22. Word luaI_findconstant (TreeNode *t);
  23. Word luaI_findconstantbyname (char *name);
  24. int lua_markobject (Object *o);
  25. Long luaI_collectgarbage (void);
  26. void lua_pack (void);
  27. #endif