table.h 645 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. ** Module to control static tables
  3. ** TeCGraf - PUC-Rio
  4. ** $Id: table.h,v 2.15 1996/01/26 18:03:19 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. void lua_initconstant (void);
  18. Word luaI_findsymbolbyname (char *name);
  19. Word luaI_findsymbol (TreeNode *t);
  20. Word luaI_findconstant (TreeNode *t);
  21. Word luaI_findconstantbyname (char *name);
  22. int lua_markobject (Object *o);
  23. Long luaI_collectgarbage (void);
  24. void lua_pack (void);
  25. #endif