diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-03-25 14:47:14 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-03-25 14:47:14 -0300 |
commit | 801aaf37b14a1fad5bb49c9a4200d25680152471 (patch) | |
tree | e3cc5cdebac6d503091f4ba16444f8ecfa8dfdb2 /lstate.h | |
parent | 00af2faae71e6388ee61ef18b2c5902a42e9bc27 (diff) | |
download | lua-801aaf37b14a1fad5bb49c9a4200d25680152471.tar.gz lua-801aaf37b14a1fad5bb49c9a4200d25680152471.tar.bz2 lua-801aaf37b14a1fad5bb49c9a4200d25680152471.zip |
simpler implementation for line information
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 1.78 2002/03/07 18:11:51 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 1.79 2002/03/11 12:45:00 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 | */ |
@@ -91,16 +91,12 @@ typedef struct CallInfo { | |||
91 | StkId top; /* top for this function (when it's a Lua function) */ | 91 | StkId top; /* top for this function (when it's a Lua function) */ |
92 | const Instruction **pc; /* points to `pc' variable in `luaV_execute' */ | 92 | const Instruction **pc; /* points to `pc' variable in `luaV_execute' */ |
93 | StkId *pb; /* points to `base' variable in `luaV_execute' */ | 93 | StkId *pb; /* points to `base' variable in `luaV_execute' */ |
94 | /* extra information for line tracing */ | ||
95 | int lastpc; /* last pc traced */ | 94 | int lastpc; /* last pc traced */ |
96 | int line; /* current line */ | 95 | int yield_results; |
97 | int refi; /* current index in `lineinfo' */ | ||
98 | } CallInfo; | 96 | } CallInfo; |
99 | 97 | ||
100 | #define ci_func(ci) (clvalue((ci)->base - 1)) | 98 | #define ci_func(ci) (clvalue((ci)->base - 1)) |
101 | 99 | ||
102 | #define yield_results refi /* reuse this field */ | ||
103 | |||
104 | 100 | ||
105 | /* | 101 | /* |
106 | ** `global state', shared by all threads of this state | 102 | ** `global state', shared by all threads of this state |