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

Function get_symbol_props_str

scripts/config/menu.c:768–784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

766}
767
768static void get_symbol_props_str(struct gstr *r, struct symbol *sym,
769 enum prop_type tok, const char *prefix)
770{
771 bool hit = false;
772 struct property *prop;
773
774 for_all_properties(sym, prop, tok) {
775 if (!hit) {
776 str_append(r, prefix);
777 hit = true;
778 } else
779 str_printf(r, " && ");
780 expr_gstr_print(prop->expr, r);
781 }
782 if (hit)
783 str_append(r, "\n");
784}
785
786/*
787 * head is optional and may be NULL

Callers 1

get_symbol_strFunction · 0.85

Calls 3

str_appendFunction · 0.85
str_printfFunction · 0.85
expr_gstr_printFunction · 0.85

Tested by

no test coverage detected