MCPcopy Create free account
hub / github.com/Entware/Entware / expr_alloc_two

Function expr_alloc_two

scripts/config/expr.c:34–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2)
35{
36 struct expr *e = xcalloc(1, sizeof(*e));
37 e->type = type;
38 e->left.expr = e1;
39 e->right.expr = e2;
40 return e;
41}
42
43struct expr *expr_alloc_comp(enum expr_type type, struct symbol *s1, struct symbol *s2)
44{

Callers 4

expr_alloc_andFunction · 0.85
expr_alloc_orFunction · 0.85
expr_trans_compareFunction · 0.85
yyparseFunction · 0.85

Calls 1

xcallocFunction · 0.85

Tested by

no test coverage detected