From 330e51bed3159aa83dcc9cc559c22e7d84d37604 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 10 May 2000 13:33:20 -0300 Subject: string hash uses one single hash table --- lobject.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index a02cc047..cb9670ed 100644 --- a/lobject.h +++ b/lobject.h @@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 1.62 2000/05/08 19:32:53 roberto Exp roberto $ +** $Id: lobject.h,v 1.63 2000/05/08 19:37:10 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -93,6 +93,7 @@ typedef struct TString { struct { /* for strings */ unsigned long hash; long len; + int constindex; /* hint to reuse constants */ } s; struct { /* for userdata */ int tag; @@ -100,7 +101,6 @@ typedef struct TString { } d; } u; struct TString *nexthash; /* chain for hash table */ - int constindex; /* hint to reuse constants (= -1 if this is a userdata) */ unsigned char marked; char str[1]; /* variable length string!! must be the last field! */ } TString; -- cgit v1.2.3-55-g6feb