diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-03-21 17:31:43 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-03-21 17:31:43 -0300 |
| commit | 2626708b72f987b62747801443f22953655a2bfc (patch) | |
| tree | 6188c9ee06748bfea90b2678869b9851def52a23 /lcode.c | |
| parent | 19ac0fadc9ed657d550f44f66873be762dda39f1 (diff) | |
| download | lua-2626708b72f987b62747801443f22953655a2bfc.tar.gz lua-2626708b72f987b62747801443f22953655a2bfc.tar.bz2 lua-2626708b72f987b62747801443f22953655a2bfc.zip | |
details
Diffstat (limited to 'lcode.c')
| -rw-r--r-- | lcode.c | 7 |
1 files changed, 2 insertions, 5 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lcode.c,v 1.90 2002/03/05 12:42:47 roberto Exp roberto $ | 2 | ** $Id: lcode.c,v 1.91 2002/03/08 19:10:32 roberto Exp roberto $ |
| 3 | ** Code generator for Lua | 3 | ** Code generator for Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -22,9 +22,6 @@ | |||
| 22 | 22 | ||
| 23 | #define hasjumps(e) ((e)->t != (e)->f) | 23 | #define hasjumps(e) ((e)->t != (e)->f) |
| 24 | 24 | ||
| 25 | #define getcode(fs,e) ((fs)->f->code[(e)->info]) | ||
| 26 | |||
| 27 | |||
| 28 | 25 | ||
| 29 | void luaK_error (LexState *ls, const char *msg) { | 26 | void luaK_error (LexState *ls, const char *msg) { |
| 30 | luaX_error(ls, msg, ls->t.token); | 27 | luaX_error(ls, msg, ls->t.token); |
| @@ -501,7 +498,7 @@ static OpCode invertoperator (OpCode op) { | |||
| 501 | 498 | ||
| 502 | static void invertjump (FuncState *fs, expdesc *e) { | 499 | static void invertjump (FuncState *fs, expdesc *e) { |
| 503 | Instruction *pc = getjumpcontrol(fs, e->info); | 500 | Instruction *pc = getjumpcontrol(fs, e->info); |
| 504 | *pc = SET_OPCODE(*pc, invertoperator(GET_OPCODE(*pc))); | 501 | SET_OPCODE(*pc, invertoperator(GET_OPCODE(*pc))); |
| 505 | } | 502 | } |
| 506 | 503 | ||
| 507 | 504 | ||
