Home | History | Annotate | Download | only in menuc

Lines Matching defs:out_file

111 	FILE *out_file, *sys_file;
141 out_file = fopen(hname, "w");
142 if (out_file == NULL) {
149 (void)fprintf(out_file, "%s",
161 (void)fprintf(out_file, "#define MSG_XLAT(x) msg_string(x)\n");
163 (void)fprintf(out_file, "#define MSG_XLAT(x) (x)\n");
165 (void)fprintf(out_file, "#define DYNAMIC_MENUS\n");
167 (void)fprintf(out_file, "#define MENU_EXPANDS\n");
169 (void)fprintf(out_file, "\n");
171 (void)fprintf(out_file,
177 (void)fprintf(out_file,
179 (void)fprintf(out_file,
193 (void)fprintf(out_file,
195 (void)fprintf(out_file,
208 (void)fprintf(out_file,
211 (void)fprintf(out_file,
234 (void)fprintf(out_file, "%s",
243 (void)fprintf(out_file, "%s",
255 (void)fprintf(out_file, "\n/* Menu names */\n");
257 (void)fprintf(out_file, "#define MENU_%s\t%d\n",
261 (void)fprintf(out_file, "\n#define DYN_MENU_START\t%d",
264 (void)fprintf (out_file, "\n#define MAX_STRLEN %d\n"
266 fclose(out_file);
269 out_file = fopen(cname, "w");
270 if (out_file == NULL) {
277 fprintf(out_file, "#include \"%s\"\n\n", hname);
278 fprintf(out_file, "%s\n\n", initcode);
285 (void)fprintf(out_file, "/*ARGSUSED*/\n"
288 (void)fprintf(out_file, "\tendwin();\n");
289 (void)fprintf(out_file, "\t%s\n}\n\n",
293 (void)fprintf(out_file, "/*ARGSUSED*/\n"
296 (void)fprintf(out_file, "\tendwin();\n");
297 (void)fprintf(out_file, "\t%s\n}\n\n",
301 (void)fprintf(out_file, "/*ARGSUSED*/\n"
304 (void)fprintf(out_file, "\tendwin();\n");
305 (void)fprintf(out_file, "\t%s\n}\n\n",
314 (void)fprintf(out_file, "/*ARGSUSED*/\n"
331 (void)fprintf(out_file, "static menu_ent optent%d[] = {\n", i);
336 (void)fprintf(out_file, "\t{ .opt_name = %s, "
344 (void)fprintf(out_file, "opt_act_%d_%d}", i, j);
346 (void)fprintf(out_file, "NULL}");
347 (void)fprintf(out_file, "%s\n",
350 (void)fprintf(out_file, "\t};\n\n");
354 fprintf(out_file, "static void menu_%d_legend("
361 fprintf(out_file, "\tcase %d:\n\t\t{%s};\n"
364 fprintf(out_file, "\t}\n}\n\n");
371 (void)fprintf(out_file, "static int num_menus = %d;\n",
374 (void)fprintf(out_file, "static struct menudesc menu_def[] = {\n"
377 (void)fprintf(out_file,
380 (void)fprintf(out_file,
382 (void)fprintf(out_file,
389 (void)fprintf(out_file, "NULL");
393 (void)fprintf(out_file, "%s", tmpstr);
398 (void)fprintf(out_file, "\n");
401 fputc(*tmpstr++, out_file);
404 (void)fprintf(out_file, "\\n\"\n\"");
409 (void)fprintf(out_file, ",");
411 (void) fprintf (out_file, "NULL");
413 (void)fprintf(out_file, "%s", menus[i]->info->exitstr);
415 (void)fprintf(out_file, "\"Exit\"");
418 (void)fprintf(out_file, ",menu_%d_expact", i);
420 (void)fprintf(out_file, ",NULL");
423 (void)fprintf(out_file, ",menu_%d_postact", i);
425 (void)fprintf(out_file, ",NULL");
427 (void)fprintf(out_file, ",menu_%d_exitact", i);
429 (void)fprintf(out_file, ",NULL");
431 (void)fprintf(out_file, ",menu_%d_legend", i);
433 (void)fprintf(out_file, ",NULL");
435 (void)fprintf(out_file, "},\n");
438 (void)fprintf(out_file, "{NULL");
440 (void)fprintf(out_file, ", NULL");
441 (void)fprintf(out_file, ", 0, 0, 0, 0, 0, 0, 0, 0, "
444 (void)fprintf(out_file, ", NULL");
445 (void)fprintf(out_file, "}};\n\n");
448 (void)fprintf(out_file,
452 (void)fprintf(out_file,
460 (void)fprintf(out_file, "\tendwin();\n");
461 (void)fprintf(out_file, "%s\n}\n", error_act.code);
466 fputc(ch, out_file);
472 fputc(ch, out_file);
474 fclose(out_file);