aboutsummaryrefslogtreecommitdiff
path: root/lparser.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 /lparser.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 'lparser.h')
-rw-r--r--lparser.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lparser.h b/lparser.h
index 220ae9e7..22482ce2 100644
--- a/lparser.h
+++ b/lparser.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.h,v 1.32 2001/06/28 14:56:25 roberto Exp roberto $ 2** $Id: lparser.h,v 1.33 2001/08/10 20:53:03 roberto Exp roberto $
3** Lua Parser 3** Lua Parser
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -8,6 +8,7 @@
8#define lparser_h 8#define lparser_h
9 9
10#include "lobject.h" 10#include "lobject.h"
11#include "ltable.h"
11#include "lzio.h" 12#include "lzio.h"
12 13
13 14
@@ -53,6 +54,7 @@ typedef struct FuncState {
53 int jlt; /* list of jumps to `lasttarget' */ 54 int jlt; /* list of jumps to `lasttarget' */
54 int freereg; /* first free register */ 55 int freereg; /* first free register */
55 int nk; /* number of elements in `k' */ 56 int nk; /* number of elements in `k' */
57 Hash *h; /* table to find (and reuse) elements in `k' */
56 int np; /* number of elements in `p' */ 58 int np; /* number of elements in `p' */
57 int nlineinfo; /* number of elements in `lineinfo' */ 59 int nlineinfo; /* number of elements in `lineinfo' */
58 int nlocvars; /* number of elements in `locvars' */ 60 int nlocvars; /* number of elements in `locvars' */