table.h 789 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. ** Module to control static tables
  3. ** TeCGraf - PUC-Rio
  4. ** $Id: table.h,v 2.19 1996/02/26 21:00:27 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. TaggedString *varname;
  14. } Symbol;
  15. extern Symbol *lua_table;
  16. extern Word lua_ntable;
  17. extern TaggedString **lua_constant;
  18. extern Word lua_nconstant;
  19. void luaI_initsymbol (void);
  20. void luaI_initconstant (void);
  21. Word luaI_findsymbolbyname (char *name);
  22. Word luaI_findsymbol (TaggedString *t);
  23. Word luaI_findconstant (TaggedString *t);
  24. Word luaI_findconstantbyname (char *name);
  25. TaggedString *luaI_createfixedstring (char *str);
  26. int lua_markobject (Object *o);
  27. Long luaI_collectgarbage (void);
  28. void lua_pack (void);
  29. #endif