summaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-08-27 12:16:28 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-08-27 12:16:28 -0300
commitc3d72096c4841ebc04a0615917d71f22aaa5e5ff (patch)
tree45b143ed4284ba9b30fdae965aef0a047aab6deb /lobject.h
parent7afc74ff07907294a2162600023a9c61a64cdbd5 (diff)
downloadlua-c3d72096c4841ebc04a0615917d71f22aaa5e5ff.tar.gz
lua-c3d72096c4841ebc04a0615917d71f22aaa5e5ff.tar.bz2
lua-c3d72096c4841ebc04a0615917d71f22aaa5e5ff.zip
use a table to find (and reuse) constants when parsing
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lobject.h b/lobject.h
index 9a19ea8e..9170d81b 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 1.108 2001/06/28 14:48:44 roberto Exp roberto $ 2** $Id: lobject.h,v 1.109 2001/06/28 14:56:25 roberto Exp roberto $
3** Type definitions for Lua objects 3** Type definitions for Lua objects
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -90,8 +90,7 @@ typedef union TString {
90 struct { 90 struct {
91 lu_hash hash; 91 lu_hash hash;
92 size_t len; 92 size_t len;
93 unsigned short constindex; /* hint to reuse constants */ 93 int marked;
94 short marked;
95 union TString *nexthash; /* chain for hash table */ 94 union TString *nexthash; /* chain for hash table */
96 } tsv; 95 } tsv;
97} TString; 96} TString;