History

Lua 5.3.0-work2

Lua Team committed 12 years ago

Commit ad386d91 parent b83a40a60 files · +3280 −2672Browse files

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

Unified · Split

src/lcode.h+7−3
@@ -1,5 +1,5 @@
11 /*
2−** $Id: lcode.h,v 1.60 2013/04/26 13:07:53 roberto Exp $
2+** $Id: lcode.h,v 1.63 2013/12/30 20:47:58 roberto Exp $
33 ** Code generator for Lua
44 ** See Copyright Notice in lua.h
55 */
@@ -24,7 +24,11 @@ · 18 unmodified lines
2424 ** grep "ORDER OPR" if you change these enums (ORDER OP)
2525 */
2626 typedef enum BinOpr {
27− OPR_ADD, OPR_SUB, OPR_MUL, OPR_DIV, OPR_IDIV, OPR_MOD, OPR_POW,
27+ OPR_ADD, OPR_SUB, OPR_MUL, OPR_MOD, OPR_POW,
28+ OPR_DIV,
29+ OPR_IDIV,
30+ OPR_BAND, OPR_BOR, OPR_BXOR,
31+ OPR_SHL, OPR_SHR,
2832 OPR_CONCAT,
2933 OPR_EQ, OPR_LT, OPR_LE,
3034 OPR_NE, OPR_GT, OPR_GE,
@@ -33,7 +37,7 @@ typedef enum BinOpr { · 2 unmodified lines
3337 } BinOpr;
3438
3539
36−typedef enum UnOpr { OPR_MINUS, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr;
40+typedef enum UnOpr { OPR_MINUS, OPR_BNOT, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr;
3741
3842
3943 #define getcode(fs,e) ((fs)->f->code[(e)->u.info])