Lines Matching refs:out
2353 static void print_quoted_string(FILE *out, const char *str)
2358 putc('"', out);
2362 fprintf(out, "%.*s", len, str);
2363 fputs("\\\"", out);
2366 fputs(str, out);
2367 putc('"', out);
2370 static void print_symbol(FILE *out, struct menu *menu)
2376 fprintf(out, "\nchoice\n");
2378 fprintf(out, "\nconfig %s\n", sym->name);
2381 fputs(" boolean\n", out);
2384 fputs(" tristate\n", out);
2387 fputs(" string\n", out);
2390 fputs(" integer\n", out);
2393 fputs(" hex\n", out);
2396 fputs(" ???\n", out);
2404 fputs(" prompt ", out);
2405 print_quoted_string(out, prop->text);
2407 fputs(" if ", out);
2408 expr_fprint(prop->visible.expr, out);
2410 fputc('\n', out);
2413 fputs( " default ", out);
2414 expr_fprint(prop->expr, out);
2416 fputs(" if ", out);
2417 expr_fprint(prop->visible.expr, out);
2419 fputc('\n', out);
2422 fputs(" #choice value\n", out);
2425 fputs( " select ", out);
2426 expr_fprint(prop->expr, out);
2427 fputc('\n', out);
2430 fputs( " range ", out);
2431 expr_fprint(prop->expr, out);
2432 fputc('\n', out);
2435 fputs( " menu ", out);
2436 print_quoted_string(out, prop->text);
2437 fputc('\n', out);
2440 fprintf(out, " unknown prop %d!\n", prop->type);
2448 fprintf(out, " help\n%s\n", menu->help);
2452 void zconfdump(FILE *out)
2461 print_symbol(out, menu);
2465 fputs("\ncomment ", out);
2466 print_quoted_string(out, prop->text);
2467 fputs("\n", out);
2470 fputs("\nmenu ", out);
2471 print_quoted_string(out, prop->text);
2472 fputs("\n", out);
2478 fputs(" depends ", out);
2479 expr_fprint(prop->visible.expr, out);
2480 fputc('\n', out);
2490 fputs("\nendmenu\n", out);