diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-10-03 11:02:40 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-10-03 11:02:40 -0300 |
| commit | 6dd0c6ccbcddc875933cab872008f57cbbbf997b (patch) | |
| tree | 1be44c1159f8d1d0c06bd884e5c86498e7652f55 /lcode.h | |
| parent | a77413acd0735754ffedde30bd09d86897964534 (diff) | |
| download | lua-6dd0c6ccbcddc875933cab872008f57cbbbf997b.tar.gz lua-6dd0c6ccbcddc875933cab872008f57cbbbf997b.tar.bz2 lua-6dd0c6ccbcddc875933cab872008f57cbbbf997b.zip | |
numeral expressions keep their values in struct 'expdesc'
Diffstat (limited to '')
| -rw-r--r-- | lcode.h | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lcode.h,v 1.44 2005/05/20 15:53:42 roberto Exp $ | 2 | ** $Id: lcode.h,v 1.45 2005/08/29 20:49:21 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 | */ |
| @@ -24,7 +24,7 @@ | |||
| 24 | ** grep "ORDER OPR" if you change these enums | 24 | ** grep "ORDER OPR" if you change these enums |
| 25 | */ | 25 | */ |
| 26 | typedef enum BinOpr { | 26 | 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, |
| 28 | OPR_CONCAT, | 28 | OPR_CONCAT, |
| 29 | OPR_NE, OPR_EQ, | 29 | OPR_NE, OPR_EQ, |
| 30 | OPR_LT, OPR_LE, OPR_GT, OPR_GE, | 30 | OPR_LT, OPR_LE, OPR_GT, OPR_GE, |
| @@ -37,7 +37,7 @@ typedef enum BinOpr { | |||
| 37 | typedef enum UnOpr { OPR_MINUS, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr; | 37 | typedef enum UnOpr { OPR_MINUS, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr; |
| 38 | 38 | ||
| 39 | 39 | ||
| 40 | #define getcode(fs,e) ((fs)->f->code[(e)->info]) | 40 | #define getcode(fs,e) ((fs)->f->code[(e)->u.s.info]) |
| 41 | 41 | ||
| 42 | #define luaK_codeAsBx(fs,o,A,sBx) luaK_codeABx(fs,o,A,(sBx)+MAXARG_sBx) | 42 | #define luaK_codeAsBx(fs,o,A,sBx) luaK_codeABx(fs,o,A,(sBx)+MAXARG_sBx) |
| 43 | 43 | ||
