MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / _AR_EXP_NewOpNode

Function _AR_EXP_NewOpNode

src/arithmetic/arithmetic_expression.c:137–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137static AR_ExpNode *_AR_EXP_NewOpNode(uint child_count) {
138 AR_ExpNode *node = rm_calloc(1, sizeof(AR_ExpNode));
139
140 node->type = AR_EXP_OP;
141 node->op.children = rm_malloc(child_count * sizeof(AR_ExpNode *));
142 node->op.child_count = child_count;
143
144 return node;
145}
146
147static AR_ExpNode *_AR_EXP_CloneOp(AR_ExpNode *exp) {
148 const char *func_name = exp->op.f->name;

Callers 1

AR_EXP_NewOpNodeFunction · 0.85

Calls 2

rm_callocFunction · 0.85
rm_mallocFunction · 0.85

Tested by

no test coverage detected