Lines Matching refs:prop

52 static void prop_warn(const struct property *prop, const char *fmt, ...)  in prop_warn()  argument
56 fprintf(stderr, "%s:%d:warning: ", prop->filename, prop->lineno); in prop_warn()
153 struct property *prop; in menu_add_prop() local
155 prop = xmalloc(sizeof(*prop)); in menu_add_prop()
156 memset(prop, 0, sizeof(*prop)); in menu_add_prop()
157 prop->type = type; in menu_add_prop()
158 prop->filename = cur_filename; in menu_add_prop()
159 prop->lineno = cur_lineno; in menu_add_prop()
160 prop->menu = current_entry; in menu_add_prop()
161 prop->expr = expr; in menu_add_prop()
162 prop->visible.expr = dep; in menu_add_prop()
168 for (propp = &current_entry->sym->prop; in menu_add_prop()
172 *propp = prop; in menu_add_prop()
175 return prop; in menu_add_prop()
181 struct property *prop = menu_add_prop(type, NULL, dep); in menu_add_prompt() local
184 prop_warn(prop, "leading whitespace ignored"); in menu_add_prompt()
189 prop_warn(prop, "prompt redefined"); in menu_add_prompt()
199 prop->visible.expr = expr_alloc_and(prop->visible.expr, in menu_add_prompt()
204 current_entry->prompt = prop; in menu_add_prompt()
205 prop->text = prompt; in menu_add_prompt()
207 return prop; in menu_add_prompt()
234 struct property *prop; in sym_check_prop() local
238 for (prop = sym->prop; prop; prop = prop->next) { in sym_check_prop()
239 switch (prop->type) { in sym_check_prop()
242 prop->expr->type != E_SYMBOL) in sym_check_prop()
243 prop_warn(prop, in sym_check_prop()
246 if (prop->expr->type != E_SYMBOL) in sym_check_prop()
248 sym2 = prop_get_symbol(prop); in sym_check_prop()
251 prop_warn(prop, in sym_check_prop()
259 prop_warn(prop, in sym_check_prop()
266 use = prop->type == P_SELECT ? "select" : "imply"; in sym_check_prop()
267 sym2 = prop_get_symbol(prop); in sym_check_prop()
269 prop_warn(prop, in sym_check_prop()
275 prop_warn(prop, in sym_check_prop()
282 prop_warn(prop, "range is only allowed " in sym_check_prop()
284 if (!menu_validate_number(sym, prop->expr->left.sym) || in sym_check_prop()
285 !menu_validate_number(sym, prop->expr->right.sym)) in sym_check_prop()
286 prop_warn(prop, "range is invalid"); in sym_check_prop()
298 struct property *prop; in _menu_finalize() local
325 prop = menu->sym->prop; in _menu_finalize()
331 prop = menu->prompt; in _menu_finalize()
334 for (; prop; prop = prop->next) { in _menu_finalize()
335 if (prop->menu != menu) in _menu_finalize()
358 dep = rewrite_m(prop->visible.expr); in _menu_finalize()
362 prop->visible.expr = dep; in _menu_finalize()
368 if (prop->type == P_SELECT) { in _menu_finalize()
369 struct symbol *es = prop_get_symbol(prop); in _menu_finalize()
372 } else if (prop->type == P_IMPLY) { in _menu_finalize()
373 struct symbol *es = prop_get_symbol(prop); in _menu_finalize()
610 static void get_prompt_str(struct gstr *r, struct property *prop, in get_prompt_str() argument
617 str_printf(r, " Prompt: %s\n", prop->text); in get_prompt_str()
619 get_dep_str(r, prop->menu->dep, " Depends on: "); in get_prompt_str()
628 if (!expr_eq(prop->menu->dep, prop->visible.expr)) in get_prompt_str()
629 get_dep_str(r, prop->visible.expr, " Visible if: "); in get_prompt_str()
631 menu = prop->menu; in get_prompt_str()
673 struct property *prop; in get_symbol_props_str() local
675 for_all_properties(sym, prop, tok) { in get_symbol_props_str()
681 expr_gstr_print(prop->expr, r); in get_symbol_props_str()
693 struct property *prop; in get_symbol_str() local
701 prop = sym_get_range_prop(sym); in get_symbol_str()
702 if (prop) { in get_symbol_str()
704 expr_gstr_print(prop->expr, r); in get_symbol_str()