table.h 820 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. ** Module to control static tables
  3. ** TeCGraf - PUC-Rio
  4. ** $Id: table.h,v 2.20 1996/03/14 15:57: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. 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. int luaI_ismarked (Object *o);
  28. Long luaI_collectgarbage (void);
  29. void lua_pack (void);
  30. #endif