tree.h 628 B

12345678910111213141516171819202122232425262728
  1. /*
  2. ** tree.h
  3. ** TecCGraf - PUC-Rio
  4. ** $Id: tree.h,v 1.12 1996/02/12 18:32:40 roberto Exp roberto $
  5. */
  6. #ifndef tree_h
  7. #define tree_h
  8. #include "types.h"
  9. #define NOT_USED 0xFFFE
  10. typedef struct TaggedString
  11. {
  12. unsigned short varindex; /* != NOT_USED if this is a symbol */
  13. unsigned short constindex; /* != NOT_USED if this is a constant */
  14. unsigned long hash; /* 0 if not initialized */
  15. int marked; /* for garbage collection; never collect (nor change) if > 1 */
  16. char str[1]; /* \0 byte already reserved */
  17. } TaggedString;
  18. TaggedString *lua_createstring (char *str);
  19. Long lua_strcollector (void);
  20. #endif