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

Function expr_alloc_symbol

scripts/config/expr.c:18–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16static struct expr *expr_eliminate_yn(struct expr *e);
17
18struct expr *expr_alloc_symbol(struct symbol *sym)
19{
20 struct expr *e = xcalloc(1, sizeof(*e));
21 e->type = E_SYMBOL;
22 e->left.sym = sym;
23 return e;
24}
25
26struct expr *expr_alloc_one(enum expr_type type, struct expr *ce)
27{

Callers 10

__expr_eliminate_eqFunction · 0.85
expr_join_orFunction · 0.85
expr_join_andFunction · 0.85
expr_eliminate_dups1Function · 0.85
expr_transformFunction · 0.85
expr_trans_compareFunction · 0.85
yyparseFunction · 0.85
rewrite_mFunction · 0.85
menu_add_symbolFunction · 0.85
menu_finalizeFunction · 0.85

Calls 1

xcallocFunction · 0.85

Tested by

no test coverage detected