MCPcopy Create free account
hub / github.com/F-Stack/f-stack / getbinopr

Function getbinopr

app/redis-6.2.6/deps/lua/src/lparser.c:792–811  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790
791
792static BinOpr getbinopr (int op) {
793 switch (op) {
794 case '+': return OPR_ADD;
795 case '-': return OPR_SUB;
796 case '*': return OPR_MUL;
797 case '/': return OPR_DIV;
798 case '%': return OPR_MOD;
799 case '^': return OPR_POW;
800 case TK_CONCAT: return OPR_CONCAT;
801 case TK_NE: return OPR_NE;
802 case TK_EQ: return OPR_EQ;
803 case '<': return OPR_LT;
804 case TK_LE: return OPR_LE;
805 case '>': return OPR_GT;
806 case TK_GE: return OPR_GE;
807 case TK_AND: return OPR_AND;
808 case TK_OR: return OPR_OR;
809 default: return OPR_NOBINOPR;
810 }
811}
812
813
814static const struct {

Callers 1

subexprFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected