1 /* 2 * heimdal3.c: 3 * This file is automatically generated; please do not edit it. 4 */ 5 6 #include <stdlib.h> 7 8 #define N_(a) a 9 10 static const char * const text[] = { 11 N_("Test message 1"), 12 N_("Test message 2"), 13 0 14 }; 15 16 struct error_table { 17 char const * const * msgs; 18 long base; 19 int n_msgs; 20 }; 21 struct et_list { 22 struct et_list *next; 23 const struct error_table * table; 24 }; 25 extern struct et_list *_et_list; 26 27 const struct error_table et_h3test_error_table = { text, 43787520L, 2 }; 28 29 static struct et_list link = { 0, 0 }; 30 31 void initialize_h3test_error_table_r(struct et_list **list); 32 void initialize_h3test_error_table(void); 33 initialize_h3test_error_table(void)34void initialize_h3test_error_table(void) { 35 initialize_h3test_error_table_r(&_et_list); 36 } 37 38 /* For Heimdal compatibility */ initialize_h3test_error_table_r(struct et_list ** list)39void initialize_h3test_error_table_r(struct et_list **list) 40 { 41 struct et_list *et, **end; 42 43 for (end = list, et = *list; et; end = &et->next, et = et->next) 44 if (et->table->msgs == text) 45 return; 46 et = malloc(sizeof(struct et_list)); 47 if (et == 0) { 48 if (!link.table) 49 et = &link; 50 else 51 return; 52 } 53 et->table = &et_h3test_error_table; 54 et->next = 0; 55 *end = et; 56 } 57