summaryrefslogtreecommitdiff
path: root/lcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcode.c')
-rw-r--r--lcode.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lcode.c b/lcode.c
index 3cc0ea5c..086b527f 100644
--- a/lcode.c
+++ b/lcode.c
@@ -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
29void luaK_error (LexState *ls, const char *msg) { 26void 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
502static void invertjump (FuncState *fs, expdesc *e) { 499static 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