Showing the changes to src/lcode.h (1 of 60 files). Show all
Unified · Split
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 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 $ |
| 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 | */ |
| @@ -24,7 +24,11 @@ · 18 unmodified lines | |||
| 24 | ** grep "ORDER OPR" if you change these enums (ORDER OP) | 24 | ** grep "ORDER OPR" if you change these enums (ORDER OP) |
| 25 | */ | 25 | */ |
| 26 | typedef enum BinOpr { | 26 | 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, | ||
| 28 | OPR_CONCAT, | 32 | OPR_CONCAT, |
| 29 | OPR_EQ, OPR_LT, OPR_LE, | 33 | OPR_EQ, OPR_LT, OPR_LE, |
| 30 | OPR_NE, OPR_GT, OPR_GE, | 34 | OPR_NE, OPR_GT, OPR_GE, |
| @@ -33,7 +37,7 @@ typedef enum BinOpr { · 2 unmodified lines | |||
| 33 | } BinOpr; | 37 | } BinOpr; |
| 34 | 38 | ||
| 35 | 39 | ||
| 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; |
| 37 | 41 | ||
| 38 | 42 | ||
| 39 | #define getcode(fs,e) ((fs)->f->code[(e)->u.info]) | 43 | #define getcode(fs,e) ((fs)->f->code[(e)->u.info]) |