Lines Matching refs:out
592 static void print_quoted_string(FILE *out, const char *str)
597 putc('"', out);
601 fprintf(out, "%.*s", len, str);
602 fputs("\\\"", out);
605 fputs(str, out);
606 putc('"', out);
609 static void print_symbol(FILE *out, struct menu *menu)
615 fprintf(out, "\nchoice\n");
617 fprintf(out, "\nconfig %s\n", sym->name);
620 fputs(" bool\n", out);
623 fputs(" tristate\n", out);
626 fputs(" string\n", out);
629 fputs(" integer\n", out);
632 fputs(" hex\n", out);
635 fputs(" ???\n", out);
643 fputs(" prompt ", out);
644 print_quoted_string(out, prop->text);
646 fputs(" if ", out);
647 expr_fprint(prop->visible.expr, out);
649 fputc('\n', out);
652 fputs( " default ", out);
653 expr_fprint(prop->expr, out);
655 fputs(" if ", out);
656 expr_fprint(prop->visible.expr, out);
658 fputc('\n', out);
661 fputs(" #choice value\n", out);
664 fputs( " select ", out);
665 expr_fprint(prop->expr, out);
666 fputc('\n', out);
669 fputs( " imply ", out);
670 expr_fprint(prop->expr, out);
671 fputc('\n', out);
674 fputs( " range ", out);
675 expr_fprint(prop->expr, out);
676 fputc('\n', out);
679 fputs( " menu ", out);
680 print_quoted_string(out, prop->text);
681 fputc('\n', out);
684 fputs( " symbol ", out);
685 fprintf(out, "%s\n", prop->menu->sym->name);
688 fprintf(out, " unknown prop %d!\n", prop->type);
696 fprintf(out, " help\n%s\n", menu->help);
700 void zconfdump(FILE *out)
709 print_symbol(out, menu);
713 fputs("\ncomment ", out);
714 print_quoted_string(out, prop->text);
715 fputs("\n", out);
718 fputs("\nmenu ", out);
719 print_quoted_string(out, prop->text);
720 fputs("\n", out);
726 fputs(" depends ", out);
727 expr_fprint(prop->visible.expr, out);
728 fputc('\n', out);
738 fputs("\nendmenu\n", out);