diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-06-18 13:35:05 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-06-18 13:35:05 -0300 |
commit | d7872dcf91eb2075312a03973a6cdb489610c796 (patch) | |
tree | d07d6d33355ad2c56dc6343317c3021294cf49f7 /lcode.h | |
parent | 14115170bc9411e1c13871b87e50d83d60a4bb1c (diff) | |
download | lua-d7872dcf91eb2075312a03973a6cdb489610c796.tar.gz lua-d7872dcf91eb2075312a03973a6cdb489610c796.tar.bz2 lua-d7872dcf91eb2075312a03973a6cdb489610c796.zip |
small optimization (reorder of BinOpr enum to unify some cases
in switches)
Diffstat (limited to 'lcode.h')
-rw-r--r-- | lcode.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lcode.h,v 1.49 2008/10/28 12:55:00 roberto Exp roberto $ | 2 | ** $Id: lcode.h,v 1.50 2009/06/10 16:52:03 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 | */ |
@@ -21,13 +21,13 @@ | |||
21 | 21 | ||
22 | 22 | ||
23 | /* | 23 | /* |
24 | ** grep "ORDER OPR" if you change these enums | 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_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_EQ, OPR_LT, OPR_LE, |
30 | OPR_LT, OPR_LE, OPR_GT, OPR_GE, | 30 | OPR_NE, OPR_GT, OPR_GE, |
31 | OPR_AND, OPR_OR, | 31 | OPR_AND, OPR_OR, |
32 | OPR_NOBINOPR | 32 | OPR_NOBINOPR |
33 | } BinOpr; | 33 | } BinOpr; |