small optimization (reorder of BinOpr enum to unify some cases

in switches)
This commit is contained in:
Roberto Ierusalimschy
2009-06-18 13:35:05 -03:00
parent 14115170bc
commit d7872dcf91
3 changed files with 23 additions and 22 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lcode.h,v 1.49 2008/10/28 12:55:00 roberto Exp roberto $
** $Id: lcode.h,v 1.50 2009/06/10 16:52:03 roberto Exp roberto $
** Code generator for Lua
** See Copyright Notice in lua.h
*/
@@ -21,13 +21,13 @@
/*
** grep "ORDER OPR" if you change these enums
** grep "ORDER OPR" if you change these enums (ORDER OP)
*/
typedef enum BinOpr {
OPR_ADD, OPR_SUB, OPR_MUL, OPR_DIV, OPR_MOD, OPR_POW,
OPR_CONCAT,
OPR_NE, OPR_EQ,
OPR_LT, OPR_LE, OPR_GT, OPR_GE,
OPR_EQ, OPR_LT, OPR_LE,
OPR_NE, OPR_GT, OPR_GE,
OPR_AND, OPR_OR,
OPR_NOBINOPR
} BinOpr;