From d7872dcf91eb2075312a03973a6cdb489610c796 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 18 Jun 2009 13:35:05 -0300 Subject: small optimization (reorder of BinOpr enum to unify some cases in switches) --- lcode.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lcode.h') diff --git a/lcode.h b/lcode.h index 77f1450a..55426417 100644 --- a/lcode.h +++ b/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; -- cgit v1.2.3-55-g6feb