table.h 853 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. ** Module to control static tables
  3. ** TeCGraf - PUC-Rio
  4. ** $Id: table.h,v 2.24 1997/04/07 14:48:53 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. 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. int luaI_globaldefined (char *name);
  26. void luaI_nextvar (void);
  27. TaggedString *luaI_createfixedstring (char *str);
  28. int lua_markobject (TObject *o);
  29. int luaI_ismarked (TObject *o);
  30. void lua_pack (void);
  31. #endif