diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-10 16:22:11 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-10 16:22:11 -0300 |
commit | 2dadc8182282afa4b1fe6e6287704a54cd8e5123 (patch) | |
tree | 933eef764dba4636de1e8afcde10e0dc9a052f33 /lparser.h | |
parent | b487975344ee90c0410e79e1af08461bdbc0f3da (diff) | |
download | lua-2dadc8182282afa4b1fe6e6287704a54cd8e5123.tar.gz lua-2dadc8182282afa4b1fe6e6287704a54cd8e5123.tar.bz2 lua-2dadc8182282afa4b1fe6e6287704a54cd8e5123.zip |
cleaner implementation of code generation for jumps
Diffstat (limited to 'lparser.h')
-rw-r--r-- | lparser.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.h,v 1.41 2002/03/25 17:47:14 roberto Exp roberto $ | 2 | ** $Id: lparser.h,v 1.42 2002/05/09 18:00:38 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 | */ |
@@ -63,7 +63,7 @@ typedef struct FuncState { | |||
63 | struct BlockCnt *bl; /* chain of current blocks */ | 63 | struct BlockCnt *bl; /* chain of current blocks */ |
64 | int pc; /* next position to code (equivalent to `ncode') */ | 64 | int pc; /* next position to code (equivalent to `ncode') */ |
65 | int lasttarget; /* `pc' of last `jump target' */ | 65 | int lasttarget; /* `pc' of last `jump target' */ |
66 | int jlt; /* list of jumps to `lasttarget' */ | 66 | int jpc; /* list of jumps to `pc' */ |
67 | int freereg; /* first free register */ | 67 | int freereg; /* first free register */ |
68 | int defaultglob; /* where to look for non-declared globals */ | 68 | int defaultglob; /* where to look for non-declared globals */ |
69 | int nk; /* number of elements in `k' */ | 69 | int nk; /* number of elements in `k' */ |