Lines 220-226
Link Here
|
220 |
print " struct et_list *next;" > outfile |
220 |
print " struct et_list *next;" > outfile |
221 |
print " const struct error_table * table;" > outfile |
221 |
print " const struct error_table * table;" > outfile |
222 |
print "};" > outfile |
222 |
print "};" > outfile |
223 |
print "extern struct et_list *_et_list;" > outfile |
223 |
print "extern long add_error_table(const struct error_table * et);" > outfile |
224 |
print "" > outfile |
224 |
print "" > outfile |
225 |
if (tab_base_high == 0) { |
225 |
if (tab_base_high == 0) { |
226 |
print "const struct error_table et_" table_name "_error_table = { text, " \ |
226 |
print "const struct error_table et_" table_name "_error_table = { text, " \ |
Lines 232-247
Link Here
|
232 |
tab_base_low, table_item_count) > outfile |
232 |
tab_base_low, table_item_count) > outfile |
233 |
} |
233 |
} |
234 |
print "" > outfile |
234 |
print "" > outfile |
235 |
print "static struct et_list link = { 0, 0 };" > outfile |
|
|
236 |
print "" > outfile |
237 |
print "void initialize_" table_name "_error_table(void);" > outfile |
235 |
print "void initialize_" table_name "_error_table(void);" > outfile |
238 |
print "" > outfile |
236 |
print "" > outfile |
239 |
print "void initialize_" table_name "_error_table(void) {" > outfile |
237 |
print "void initialize_" table_name "_error_table(void) {" > outfile |
240 |
print " if (!link.table) {" > outfile |
238 |
print " add_error_table(&et_" table_name "_error_table);" > outfile |
241 |
print " link.next = _et_list;" > outfile |
|
|
242 |
print " link.table = &et_" table_name "_error_table;" > outfile |
243 |
print " _et_list = &link;" > outfile |
244 |
print " }" > outfile |
245 |
print "}" > outfile |
239 |
print "}" > outfile |
246 |
print "" > outfile |
240 |
print "" > outfile |
247 |
print "/* For Heimdal compatibility */" > outfile |
241 |
print "/* For Heimdal compatibility */" > outfile |