Lines Matching refs:out

624 static void print_quoted_string(FILE *out, const char *str)
629 putc('"', out);
633 fprintf(out, "%.*s", len, str);
634 fputs("\\\"", out);
637 fputs(str, out);
638 putc('"', out);
641 static void print_symbol(FILE *out, struct menu *menu)
647 fprintf(out, "\nchoice\n");
649 fprintf(out, "\nconfig %s\n", sym->name);
652 fputs(" bool\n", out);
655 fputs(" tristate\n", out);
658 fputs(" string\n", out);
661 fputs(" integer\n", out);
664 fputs(" hex\n", out);
667 fputs(" ???\n", out);
675 fputs(" prompt ", out);
676 print_quoted_string(out, prop->text);
678 fputs(" if ", out);
679 expr_fprint(prop->visible.expr, out);
681 fputc('\n', out);
684 fputs( " default ", out);
685 expr_fprint(prop->expr, out);
687 fputs(" if ", out);
688 expr_fprint(prop->visible.expr, out);
690 fputc('\n', out);
693 fputs(" #choice value\n", out);
696 fputs( " select ", out);
697 expr_fprint(prop->expr, out);
698 fputc('\n', out);
701 fputs( " imply ", out);
702 expr_fprint(prop->expr, out);
703 fputc('\n', out);
706 fputs( " range ", out);
707 expr_fprint(prop->expr, out);
708 fputc('\n', out);
711 fputs( " menu ", out);
712 print_quoted_string(out, prop->text);
713 fputc('\n', out);
716 fputs( " symbol ", out);
717 fprintf(out, "%s\n", prop->menu->sym->name);
720 fprintf(out, " unknown prop %d!\n", prop->type);
728 fprintf(out, " help\n%s\n", menu->help);
732 void zconfdump(FILE *out)
741 print_symbol(out, menu);
745 fputs("\ncomment ", out);
746 print_quoted_string(out, prop->text);
747 fputs("\n", out);
750 fputs("\nmenu ", out);
751 print_quoted_string(out, prop->text);
752 fputs("\n", out);
758 fputs(" depends ", out);
759 expr_fprint(prop->visible.expr, out);
760 fputc('\n', out);
770 fputs("\nendmenu\n", out);