table.h 781 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. ** Module to control static tables
  3. ** TeCGraf - PUC-Rio
  4. ** $Id: table.h,v 2.25 1997/05/26 14:42:36 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. TObject object;
  13. TaggedString *varname;
  14. } Symbol;
  15. extern Symbol *lua_table;
  16. extern Word lua_ntable;
  17. void luaI_initsymbol (void);
  18. void luaI_initconstant (void);
  19. Word luaI_findsymbolbyname (char *name);
  20. Word luaI_findsymbol (TaggedString *t);
  21. int luaI_globaldefined (char *name);
  22. void luaI_nextvar (void);
  23. TaggedString *luaI_createtempstring (char *name);
  24. void luaI_releasestring (TaggedString *t);
  25. void luaI_fixstring (TaggedString *t);
  26. int lua_markobject (TObject *o);
  27. int luaI_ismarked (TObject *o);
  28. void lua_pack (void);
  29. #endif