Lines Matching refs:sourcefile
69 void make_intro (FILE *sourcefile) in make_intro() argument
71 fprintf (sourcefile, "#include <linux/init.h>\n"); in make_intro()
73 fprintf (sourcefile, "\n"); in make_intro()
75 fprintf (sourcefile, "static char __attribute__ ((unused)) *configs[] __initdata = {\n"); in make_intro()
76 fprintf (sourcefile, " \"CONFIG_BEGIN=n\\n\" ,\n"); in make_intro()
79 void make_ending (FILE *sourcefile) in make_ending() argument
81 fprintf (sourcefile, " \"CONFIG_END=n\\n\"\n"); in make_ending()
82 fprintf (sourcefile, "};\n"); in make_ending()
86 void make_lines (FILE *configfile, FILE *sourcefile) in make_lines() argument
117 fprintf (sourcefile, " \"%s\\n\" ,\n", cfgline); in make_lines()
123 fprintf (sourcefile, " \""); /* lead-in */ in make_lines()
126 fputc ('\\', sourcefile); in make_lines()
127 fputc (*ch, sourcefile); in make_lines()
129 fprintf (sourcefile, "\\n\" ,\n"); in make_lines()
133 void make_configs (FILE *configfile, FILE *sourcefile) in make_configs() argument
135 make_intro (sourcefile); in make_configs()
136 make_lines (configfile, sourcefile); in make_configs()
137 make_ending (sourcefile); in make_configs()
144 FILE *configfile, *sourcefile; in main() local
158 sourcefile = fopen (sourcename, "w"); in main()
159 if (!sourcefile) { in main()
165 make_configs (configfile, sourcefile); in main()
167 if (fclose (sourcefile)) { in main()