Lines Matching refs:fprintf

78     fprintf(c_file, "/* Generated from %s */\n", filename);
80 fprintf(c_file, "/* %s */\n", id_str);
81 fprintf(c_file, "\n");
82 fprintf(c_file, "#include <stddef.h>\n");
83 fprintf(c_file, "#include <com_err.h>\n");
84 fprintf(c_file, "#include \"%s\"\n", hfn);
85 fprintf(c_file, "\n");
86 fprintf(c_file, "#define N_(x) (x)\n");
87 fprintf(c_file, "\n");
89 fprintf(c_file, "static const char *%s_error_strings[] = {\n", name);
93 fprintf(c_file, "\t/* %03d */ \"Reserved %s error (%d)\",\n",
98 fprintf(c_file, "\t/* %03d */ N_(\"%s\"),\n",
102 fprintf(c_file, "\tNULL\n");
103 fprintf(c_file, "};\n");
104 fprintf(c_file, "\n");
105 fprintf(c_file, "#define num_errors %d\n", number);
106 fprintf(c_file, "\n");
107 fprintf(c_file,
110 fprintf(c_file, "{\n");
111 fprintf(c_file,
114 fprintf(c_file, "}\n");
115 fprintf(c_file, "\n");
116 fprintf(c_file, "void initialize_%s_error_table(void)\n", name);
117 fprintf(c_file, "{\n");
118 fprintf(c_file,
121 fprintf(c_file, "}\n");
143 fprintf(h_file, "/* Generated from %s */\n", filename);
145 fprintf(h_file, "/* %s */\n", id_str);
146 fprintf(h_file, "\n");
147 fprintf(h_file, "#ifndef %s\n", fn);
148 fprintf(h_file, "#define %s\n", fn);
149 fprintf(h_file, "\n");
150 fprintf(h_file, "struct et_list;\n");
151 fprintf(h_file, "\n");
152 fprintf(h_file,
155 fprintf(h_file, "\n");
156 fprintf(h_file, "void initialize_%s_error_table(void);\n", name);
157 fprintf(h_file, "#define init_%s_err_tbl initialize_%s_error_table\n",
159 fprintf(h_file, "\n");
160 fprintf(h_file, "typedef enum %s_error_number{\n", name);
163 fprintf(h_file, "\t%s = %ld%s\n", ec->name, base_id + ec->number,
167 fprintf(h_file, "} %s_error_number;\n", name);
168 fprintf(h_file, "\n");
169 fprintf(h_file, "#define ERROR_TABLE_BASE_%s %ld\n", name, base_id);
170 fprintf(h_file, "\n");
171 fprintf(h_file, "#define COM_ERR_BINDDOMAIN_%s \"heim_com_err%ld\"\n", name, base_id);
172 fprintf(h_file, "\n");
173 fprintf(h_file, "#endif /* %s */\n", fn);