summaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-04-17 19:00:01 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-04-17 19:00:01 -0300
commitd3037d97ec192e7719de485f15dacb473bf96528 (patch)
treeea9f837cc64d9df82ae4324f2c7ea447b5c4582f /lstate.h
parentc6b442bd369ce05b3d4bfb95ba64451521aa1b31 (diff)
downloadlua-d3037d97ec192e7719de485f15dacb473bf96528.tar.gz
lua-d3037d97ec192e7719de485f15dacb473bf96528.tar.bz2
lua-d3037d97ec192e7719de485f15dacb473bf96528.zip
several small improvements based on 'ci' being fixed now (including
erasing savedpc from lua_State)
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lstate.h b/lstate.h
index 0e34a54c..23d1dfb5 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 2.41 2009/04/08 18:04:33 roberto Exp roberto $ 2** $Id: lstate.h,v 2.42 2009/04/17 14:28:06 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -81,11 +81,11 @@ typedef struct CallInfo {
81 StkId func; /* function index in the stack */ 81 StkId func; /* function index in the stack */
82 StkId top; /* top for this function */ 82 StkId top; /* top for this function */
83 struct CallInfo *previous, *next; /* dynamic call link */ 83 struct CallInfo *previous, *next; /* dynamic call link */
84 const Instruction *savedpc;
85 short nresults; /* expected number of results from a call */ 84 short nresults; /* expected number of results from a call */
86 lu_byte callstatus; 85 lu_byte callstatus;
87 union { 86 union {
88 struct { /* only for Lua functions */ 87 struct { /* only for Lua functions */
88 const Instruction *savedpc;
89 int tailcalls; /* number of tail calls lost under this entry */ 89 int tailcalls; /* number of tail calls lost under this entry */
90 } l; 90 } l;
91 struct { /* only for C functions */ 91 struct { /* only for C functions */
@@ -165,7 +165,6 @@ struct lua_State {
165 global_State *l_G; 165 global_State *l_G;
166 CallInfo *ci; /* call info for current function */ 166 CallInfo *ci; /* call info for current function */
167 int nci; /* number of total CallInfo structures linked */ 167 int nci; /* number of total CallInfo structures linked */
168 const Instruction *savedpc; /* `savedpc' of current function */
169 const Instruction *oldpc; /* last pc traced */ 168 const Instruction *oldpc; /* last pc traced */
170 StkId stack_last; /* last free slot in the stack */ 169 StkId stack_last; /* last free slot in the stack */
171 StkId stack; /* stack base */ 170 StkId stack; /* stack base */