From daa858ef278ad136afcb62d7f625b491ffbd5fa3 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 16 Sep 1997 16:25:59 -0300 Subject: String table (keep all strings handled by Lua) --- tree.h | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 tree.h (limited to 'tree.h') diff --git a/tree.h b/tree.h deleted file mode 100644 index c898bb20..00000000 --- a/tree.h +++ /dev/null @@ -1,38 +0,0 @@ -/* -** tree.h -** TecCGraf - PUC-Rio -** $Id: tree.h,v 1.18 1997/06/09 17:28:14 roberto Exp roberto $ -*/ - -#ifndef tree_h -#define tree_h - -#include "types.h" - -#define NOT_USED 0xFFFE - - -typedef struct TaggedString -{ - int tag; /* if != LUA_T_STRING, this is a userdata */ - struct TaggedString *next; - union { - struct { - Word varindex; /* != NOT_USED if this is a symbol */ - Word constindex; /* hint to reuse constant indexes */ - } s; - void *v; /* if this is a userdata, here is its value */ - } u; - unsigned long hash; /* 0 if not initialized */ - int marked; /* for garbage collection; never collect (nor change) if > 1 */ - char str[1]; /* \0 byte already reserved */ -} TaggedString; - - -TaggedString *luaI_createstring (char *str); -TaggedString *luaI_createudata (void *udata, int tag); -TaggedString *luaI_strcollector (long *cont); -void luaI_strfree (TaggedString *l); -void luaI_strcallIM (TaggedString *l); - -#endif -- cgit v1.2.3-55-g6feb