History

Lua 5.1-beta

Lua Team committed 21 years ago

Commit 27f2ec71 parent 573ffb039 files · +1862 −1502Browse files

Showing the changes to src/lcode.h (1 of 39 files). Show all

Unified · Split

src/lcode.h+3−5
@@ -1,5 +1,5 @@
11 /*
2−** $Id: lcode.h,v 1.45 2005/08/29 20:49:21 roberto Exp $
2+** $Id: lcode.h,v 1.47 2005/11/08 19:44:31 roberto Exp $
33 ** Code generator for Lua
44 ** See Copyright Notice in lua.h
55 */
@@ -24,7 +24,7 @@ · 18 unmodified lines
2424 ** grep "ORDER OPR" if you change these enums
2525 */
2626 typedef enum BinOpr {
27− OPR_ADD, OPR_SUB, OPR_MULT, OPR_DIV, OPR_MOD, OPR_POW,
27+ OPR_ADD, OPR_SUB, OPR_MUL, OPR_DIV, OPR_MOD, OPR_POW,
2828 OPR_CONCAT,
2929 OPR_NE, OPR_EQ,
3030 OPR_LT, OPR_LE, OPR_GT, OPR_GE,
@@ -37,13 +37,12 @@ typedef enum BinOpr { · 6 unmodified lines
3737 typedef enum UnOpr { OPR_MINUS, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr;
3838
3939
40−#define getcode(fs,e) ((fs)->f->code[(e)->info])
40+#define getcode(fs,e) ((fs)->f->code[(e)->u.s.info])
4141
4242 #define luaK_codeAsBx(fs,o,A,sBx) luaK_codeABx(fs,o,A,(sBx)+MAXARG_sBx)
4343
4444 #define luaK_setmultret(fs,e) luaK_setreturns(fs, e, LUA_MULTRET)
4545
46−LUAI_FUNC int luaK_code (FuncState *fs, Instruction i, int line);
4746 LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx);
4847 LUAI_FUNC int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C);
4948 LUAI_FUNC void luaK_fixline (FuncState *fs, int line);
@@ -60,7 +59,6 @@ LUAI_FUNC int luaK_exp2RK (FuncState *fs, expdesc *e); · 10 unmodified lines
6059 LUAI_FUNC void luaK_self (FuncState *fs, expdesc *e, expdesc *key);
6160 LUAI_FUNC void luaK_indexed (FuncState *fs, expdesc *t, expdesc *k);
6261 LUAI_FUNC void luaK_goiftrue (FuncState *fs, expdesc *e);
63−LUAI_FUNC void luaK_goiffalse (FuncState *fs, expdesc *e);
6462 LUAI_FUNC void luaK_storevar (FuncState *fs, expdesc *var, expdesc *e);
6563 LUAI_FUNC void luaK_setreturns (FuncState *fs, expdesc *e, int nresults);
6664 LUAI_FUNC void luaK_setoneret (FuncState *fs, expdesc *e);