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

Function menu_add_prop

scripts/config/menu.c:129–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129struct property *menu_add_prop(enum prop_type type, struct expr *expr,
130 struct expr *dep)
131{
132 struct property *prop;
133
134 prop = xmalloc(sizeof(*prop));
135 memset(prop, 0, sizeof(*prop));
136 prop->type = type;
137 prop->file = current_file;
138 prop->lineno = zconf_lineno();
139 prop->menu = current_entry;
140 prop->expr = expr;
141 prop->visible.expr = dep;
142
143 /* append property to the prop list of symbol */
144 if (current_entry->sym) {
145 struct property **propp;
146
147 for (propp = &current_entry->sym->prop;
148 *propp;
149 propp = &(*propp)->next)
150 ;
151 *propp = prop;
152 }
153
154 return prop;
155}
156
157struct property *menu_add_prompt(enum prop_type type, char *prompt,
158 struct expr *dep)

Callers 4

yyparseFunction · 0.85
menu_add_promptFunction · 0.85
menu_add_exprFunction · 0.85
menu_add_symbolFunction · 0.85

Calls 2

xmallocFunction · 0.85
zconf_linenoFunction · 0.85

Tested by

no test coverage detected