Lines Matching refs:def
120 int cnt, def; in randomize_choice_values() local
141 def = rand() % cnt; in randomize_choice_values()
145 if (def == cnt++) { in randomize_choice_values()
146 sym->def[S_DEF_USER].tri = yes; in randomize_choice_values()
147 csym->def[S_DEF_USER].val = sym; in randomize_choice_values()
149 sym->def[S_DEF_USER].tri = no; in randomize_choice_values()
239 sym->def[S_DEF_USER].tri = yes; in conf_set_all_new_symbols()
242 sym->def[S_DEF_USER].tri = mod; in conf_set_all_new_symbols()
245 sym->def[S_DEF_USER].tri = no; in conf_set_all_new_symbols()
248 sym->def[S_DEF_USER].tri = no; in conf_set_all_new_symbols()
252 sym->def[S_DEF_USER].tri = yes; in conf_set_all_new_symbols()
254 sym->def[S_DEF_USER].tri = mod; in conf_set_all_new_symbols()
256 sym->def[S_DEF_USER].tri = yes; in conf_set_all_new_symbols()
314 sym->def[S_DEF_USER].tri == old_val) in conf_rewrite_mod_or_yes()
315 sym->def[S_DEF_USER].tri = new_val; in conf_rewrite_mod_or_yes()
320 static int conf_askvalue(struct symbol *sym, const char *def) in conf_askvalue() argument
329 printf("%s\n", def); in conf_askvalue()
339 printf("%s\n", def); in conf_askvalue()
355 const char *def; in conf_string() local
360 def = sym_get_string_value(sym); in conf_string()
361 if (def) in conf_string()
362 printf("[%s] ", def); in conf_string()
363 if (!conf_askvalue(sym, def)) in conf_string()
372 def = NULL; in conf_string()
378 def = line; in conf_string()
380 if (def && sym_set_string_value(sym, def)) in conf_string()
484 int cnt, def; in conf_choice() local
488 cnt = def = 0; in conf_choice()
499 def = cnt; in conf_choice()
520 cnt = def; in conf_choice()
534 cnt = def; in conf_choice()