• Home
  • Raw
  • Download

Lines Matching refs:sym

347 			if (menu->sym) {  in get_prompt_str()
348 str_printf(r, " (%s [=%s])", menu->sym->name ? in get_prompt_str()
349 menu->sym->name : "<choice>", in get_prompt_str()
350 sym_get_string_value(menu->sym)); in get_prompt_str()
357 static void get_symbol_str(struct gstr *r, struct symbol *sym) in get_symbol_str() argument
362 str_printf(r, "Symbol: %s [=%s]\n", sym->name, in get_symbol_str()
363 sym_get_string_value(sym)); in get_symbol_str()
364 for_all_prompts(sym, prop) in get_symbol_str()
367 for_all_properties(sym, prop, P_SELECT) { in get_symbol_str()
377 if (sym->rev_dep.expr) { in get_symbol_str()
379 expr_gstr_print(sym->rev_dep.expr, r); in get_symbol_str()
387 struct symbol *sym; in get_relations_str() local
391 for (i = 0; sym_arr && (sym = sym_arr[i]); i++) in get_relations_str()
392 get_symbol_str(&res, sym); in get_relations_str()
427 struct symbol *sym; in build_conf() local
437 sym = menu->sym; in build_conf()
439 if (!sym) { in build_conf()
470 type = sym_get_type(sym); in build_conf()
471 if (sym_is_choice(sym)) { in build_conf()
472 struct symbol *def_sym = sym_get_choice_value(sym); in build_conf()
477 if (menu_is_visible(child) && child->sym == def_sym) in build_conf()
481 val = sym_get_tristate_value(sym); in build_conf()
482 if (sym_is_changable(sym)) { in build_conf()
525 val = sym_get_tristate_value(sym); in build_conf()
526 if (sym_is_choice_value(sym) && val == yes) { in build_conf()
533 if (sym_is_changable(sym)) in build_conf()
546 if (sym_is_changable(sym)) in build_conf()
554 tmp = 2 + strlen(sym_get_string_value(sym)); /* () = 2 */ in build_conf()
555 item_make("(%s)", sym_get_string_value(sym)); in build_conf()
560 (sym_has_value(sym) || !sym_is_changable(sym)) ? in build_conf()
568 (sym_has_value(sym) || !sym_is_changable(sym)) ? in build_conf()
587 struct symbol *sym; in conf() local
620 sym = submenu->sym; in conf()
622 sym = NULL; in conf()
634 if (sym_is_choice(sym) && sym_get_tristate_value(sym) == yes) in conf()
651 if (sym) in conf()
658 if (sym_set_tristate_value(sym, yes)) in conf()
660 if (sym_set_tristate_value(sym, mod)) in conf()
666 sym_set_tristate_value(sym, no); in conf()
670 sym_set_tristate_value(sym, mod); in conf()
674 sym_toggle_tristate_value(sym); in conf()
699 struct symbol *sym = menu->sym; in show_help() local
701 if (sym->help) in show_help()
703 if (sym->name) { in show_help()
704 str_printf(&help, "CONFIG_%s:\n\n", sym->name); in show_help()
705 str_append(&help, _(sym->help)); in show_help()
711 get_symbol_str(&help, sym); in show_help()
722 active = sym_get_choice_value(menu->sym); in conf_choice()
734 if (child->sym == active) in conf_choice()
736 if (child->sym == sym_get_choice_value(menu->sym)) in conf_choice()
748 sym_set_tristate_value(child->sym, yes); in conf_choice()
755 active = child->sym; in conf_choice()
775 switch (sym_get_type(menu->sym)) { in conf_string()
791 sym_get_string_value(menu->sym)); in conf_string()
794 if (sym_set_string_value(menu->sym, dialog_input_result)) in conf_string()
863 struct symbol *sym; in main() local
874 sym = sym_lookup("KERNELVERSION", 0); in main()
875 sym_calc_value(sym); in main()
877 sym_get_string_value(sym)); in main()