1994-07-20 01:24:17 +04:00
|
|
|
/*
|
|
|
|
** tree.h
|
|
|
|
** TecCGraf - PUC-Rio
|
1996-02-14 16:35:51 +03:00
|
|
|
** $Id: tree.h,v 1.12 1996/02/12 18:32:40 roberto Exp roberto $
|
1994-07-20 01:24:17 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef tree_h
|
|
|
|
#define tree_h
|
|
|
|
|
1994-12-21 00:20:36 +03:00
|
|
|
#include "types.h"
|
1994-07-20 01:24:17 +04:00
|
|
|
|
1994-11-23 17:32:00 +03:00
|
|
|
#define NOT_USED 0xFFFE
|
1994-07-20 01:24:17 +04:00
|
|
|
|
|
|
|
|
1994-11-23 17:32:00 +03:00
|
|
|
typedef struct TaggedString
|
|
|
|
{
|
1996-02-12 21:32:40 +03:00
|
|
|
unsigned short varindex; /* != NOT_USED if this is a symbol */
|
|
|
|
unsigned short constindex; /* != NOT_USED if this is a constant */
|
1994-11-25 22:27:03 +03:00
|
|
|
unsigned long hash; /* 0 if not initialized */
|
1996-02-14 16:35:51 +03:00
|
|
|
int marked; /* for garbage collection; never collect (nor change) if > 1 */
|
1994-11-23 17:32:00 +03:00
|
|
|
char str[1]; /* \0 byte already reserved */
|
|
|
|
} TaggedString;
|
1994-11-15 00:40:14 +03:00
|
|
|
|
|
|
|
|
1994-11-23 17:32:00 +03:00
|
|
|
TaggedString *lua_createstring (char *str);
|
1995-01-12 17:19:04 +03:00
|
|
|
Long lua_strcollector (void);
|
1994-07-20 01:24:17 +04:00
|
|
|
|
|
|
|
#endif
|