Lines Matching refs:prop
28 static void prop_warn(struct property *prop, const char *fmt, ...) in prop_warn() argument
32 fprintf(stderr, "%s:%d:warning: ", prop->file->name, prop->lineno); in prop_warn()
124 struct property *prop = prop_alloc(type, current_entry->sym); in menu_add_prop() local
126 prop->menu = current_entry; in menu_add_prop()
127 prop->expr = expr; in menu_add_prop()
128 prop->visible.expr = menu_check_dep(dep); in menu_add_prop()
132 prop_warn(prop, "leading whitespace ignored"); in menu_add_prop()
137 prop_warn(prop, "prompt redefined"); in menu_add_prop()
138 current_entry->prompt = prop; in menu_add_prop()
140 prop->text = prompt; in menu_add_prop()
142 return prop; in menu_add_prop()
162 struct property *prop; in menu_add_option() local
166 prop = prop_alloc(P_DEFAULT, modules_sym); in menu_add_option()
167 prop->expr = expr_alloc_symbol(current_entry->sym); in menu_add_option()
186 struct property *prop; in sym_check_prop() local
188 for (prop = sym->prop; prop; prop = prop->next) { in sym_check_prop()
189 switch (prop->type) { in sym_check_prop()
192 prop->expr->type != E_SYMBOL) in sym_check_prop()
193 prop_warn(prop, in sym_check_prop()
198 sym2 = prop_get_symbol(prop); in sym_check_prop()
200 prop_warn(prop, in sym_check_prop()
204 prop_warn(prop, in sym_check_prop()
209 prop_warn(prop, in sym_check_prop()
216 prop_warn(prop, "range is only allowed " in sym_check_prop()
218 if (!menu_range_valid_sym(sym, prop->expr->left.sym) || in sym_check_prop()
219 !menu_range_valid_sym(sym, prop->expr->right.sym)) in sym_check_prop()
220 prop_warn(prop, "range is invalid"); in sym_check_prop()
232 struct property *prop; in menu_finalize() local
260 prop = menu->sym->prop; in menu_finalize()
262 prop = menu->prompt; in menu_finalize()
263 for (; prop; prop = prop->next) { in menu_finalize()
264 if (prop->menu != menu) in menu_finalize()
266 dep = expr_transform(prop->visible.expr); in menu_finalize()
271 prop->visible.expr = dep; in menu_finalize()
272 if (prop->type == P_SELECT) { in menu_finalize()
273 struct symbol *es = prop_get_symbol(prop); in menu_finalize()
318 for (prop = menu->sym->prop; prop; prop = prop->next) { in menu_finalize()
319 if (prop->type == P_PROMPT && prop->menu != menu) { in menu_finalize()
320 prop_warn(prop, "choice values " in menu_finalize()
324 if (prop->type == P_DEFAULT) in menu_finalize()
325 prop_warn(prop, "defaults for choice " in menu_finalize()
331 prop = sym_get_choice_prop(sym); in menu_finalize()
332 for (ep = &prop->expr; *ep; ep = &(*ep)->left.expr) in menu_finalize()