mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
small optimization (reorder of BinOpr enum to unify some cases
in switches)
This commit is contained in:
parent
14115170bc
commit
d7872dcf91
3 changed files with 23 additions and 22 deletions
8
lcode.h
8
lcode.h
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue