mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
use a table to find (and reuse) constants when parsing
This commit is contained in:
parent
7afc74ff07
commit
c3d72096c4
6 changed files with 32 additions and 38 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lobject.h,v 1.108 2001/06/28 14:48:44 roberto Exp roberto $
|
||||
** $Id: lobject.h,v 1.109 2001/06/28 14:56:25 roberto Exp roberto $
|
||||
** Type definitions for Lua objects
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -90,8 +90,7 @@ typedef union TString {
|
|||
struct {
|
||||
lu_hash hash;
|
||||
size_t len;
|
||||
unsigned short constindex; /* hint to reuse constants */
|
||||
short marked;
|
||||
int marked;
|
||||
union TString *nexthash; /* chain for hash table */
|
||||
} tsv;
|
||||
} TString;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue