MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / getbinopr

Function getbinopr

lua/lparser.c:831–852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

829
830
831static BinOpr getbinopr (int op) {
832 switch (op) {
833 case '+': return OPR_ADD;
834 case '-': return OPR_SUB;
835 case '*': return OPR_MUL;
836 case '/': return OPR_DIV;
837 case '%': return OPR_MOD;
838 case '^': return OPR_POW;
839 case TK_CONCAT: return OPR_CONCAT;
840 /* COMDB2 MODIFICATION */
841 case TK_CAST: return OPR_CAST;
842 case TK_NE: return OPR_NE;
843 case TK_EQ: return OPR_EQ;
844 case '<': return OPR_LT;
845 case TK_LE: return OPR_LE;
846 case '>': return OPR_GT;
847 case TK_GE: return OPR_GE;
848 case TK_AND: return OPR_AND;
849 case TK_OR: return OPR_OR;
850 default: return OPR_NOBINOPR;
851 }
852}
853
854
855static const struct {

Callers 1

subexprFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected