table.h 731 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. ** Module to control static tables
  3. ** TeCGraf - PUC-Rio
  4. ** $Id: table.h,v 2.17 1996/02/12 18:32:40 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 TaggedString **lua_constant;
  17. void luaI_initsymbol (void);
  18. void luaI_initconstant (void);
  19. Word luaI_findsymbolbyname (char *name);
  20. Word luaI_findsymbol (TaggedString *t);
  21. Word luaI_findconstant (TaggedString *t);
  22. Word luaI_findconstantbyname (char *name);
  23. TaggedString *lua_constcreate (char *str);
  24. int lua_markobject (Object *o);
  25. Long luaI_collectgarbage (void);
  26. void lua_pack (void);
  27. #endif