1*6a54128fSAndroid Build Coastguard Worker /*
2*6a54128fSAndroid Build Coastguard Worker * prof_err.c:
3*6a54128fSAndroid Build Coastguard Worker * This file is automatically generated; please do not edit it.
4*6a54128fSAndroid Build Coastguard Worker */
5*6a54128fSAndroid Build Coastguard Worker
6*6a54128fSAndroid Build Coastguard Worker #include <stdlib.h>
7*6a54128fSAndroid Build Coastguard Worker
8*6a54128fSAndroid Build Coastguard Worker #define N_(a) a
9*6a54128fSAndroid Build Coastguard Worker
10*6a54128fSAndroid Build Coastguard Worker static const char * const text[] = {
11*6a54128fSAndroid Build Coastguard Worker N_("Profile version 0.0"),
12*6a54128fSAndroid Build Coastguard Worker N_("Bad magic value in profile_node"),
13*6a54128fSAndroid Build Coastguard Worker N_("Profile section not found"),
14*6a54128fSAndroid Build Coastguard Worker N_("Profile relation not found"),
15*6a54128fSAndroid Build Coastguard Worker N_( "Attempt to add a relation to node which is not a section"),
16*6a54128fSAndroid Build Coastguard Worker N_( "A profile section header has a non-zero value"),
17*6a54128fSAndroid Build Coastguard Worker N_("Bad linked list in profile structures"),
18*6a54128fSAndroid Build Coastguard Worker N_("Bad group level in profile structures"),
19*6a54128fSAndroid Build Coastguard Worker N_( "Bad parent pointer in profile structures"),
20*6a54128fSAndroid Build Coastguard Worker N_("Bad magic value in profile iterator"),
21*6a54128fSAndroid Build Coastguard Worker N_("Can't set value on section node"),
22*6a54128fSAndroid Build Coastguard Worker N_("Invalid argument passed to profile library"),
23*6a54128fSAndroid Build Coastguard Worker N_("Attempt to modify read-only profile"),
24*6a54128fSAndroid Build Coastguard Worker N_("Profile section header not at top level"),
25*6a54128fSAndroid Build Coastguard Worker N_("Syntax error in profile section header"),
26*6a54128fSAndroid Build Coastguard Worker N_("Syntax error in profile relation"),
27*6a54128fSAndroid Build Coastguard Worker N_("Extra closing brace in profile"),
28*6a54128fSAndroid Build Coastguard Worker N_("Missing open brace in profile"),
29*6a54128fSAndroid Build Coastguard Worker N_("Bad magic value in profile_t"),
30*6a54128fSAndroid Build Coastguard Worker N_("Bad magic value in profile_section_t"),
31*6a54128fSAndroid Build Coastguard Worker N_( "Iteration through all top level section not supported"),
32*6a54128fSAndroid Build Coastguard Worker N_("Invalid profile_section object"),
33*6a54128fSAndroid Build Coastguard Worker N_("No more sections"),
34*6a54128fSAndroid Build Coastguard Worker N_("Bad nameset passed to query routine"),
35*6a54128fSAndroid Build Coastguard Worker N_("No profile file open"),
36*6a54128fSAndroid Build Coastguard Worker N_("Bad magic value in profile_file_t"),
37*6a54128fSAndroid Build Coastguard Worker N_("Couldn't open profile file"),
38*6a54128fSAndroid Build Coastguard Worker N_("Section already exists"),
39*6a54128fSAndroid Build Coastguard Worker N_("Invalid boolean value"),
40*6a54128fSAndroid Build Coastguard Worker N_("Invalid integer value"),
41*6a54128fSAndroid Build Coastguard Worker N_("Bad magic value in profile_file_data_t"),
42*6a54128fSAndroid Build Coastguard Worker 0
43*6a54128fSAndroid Build Coastguard Worker };
44*6a54128fSAndroid Build Coastguard Worker
45*6a54128fSAndroid Build Coastguard Worker struct error_table {
46*6a54128fSAndroid Build Coastguard Worker char const * const * msgs;
47*6a54128fSAndroid Build Coastguard Worker long base;
48*6a54128fSAndroid Build Coastguard Worker int n_msgs;
49*6a54128fSAndroid Build Coastguard Worker };
50*6a54128fSAndroid Build Coastguard Worker struct et_list {
51*6a54128fSAndroid Build Coastguard Worker struct et_list *next;
52*6a54128fSAndroid Build Coastguard Worker const struct error_table * table;
53*6a54128fSAndroid Build Coastguard Worker };
54*6a54128fSAndroid Build Coastguard Worker extern struct et_list *_et_list;
55*6a54128fSAndroid Build Coastguard Worker
56*6a54128fSAndroid Build Coastguard Worker const struct error_table et_prof_error_table = { text, -1429577728L, 31 };
57*6a54128fSAndroid Build Coastguard Worker
58*6a54128fSAndroid Build Coastguard Worker static struct et_list link = { 0, 0 };
59*6a54128fSAndroid Build Coastguard Worker
60*6a54128fSAndroid Build Coastguard Worker void initialize_prof_error_table_r(struct et_list **list);
61*6a54128fSAndroid Build Coastguard Worker void initialize_prof_error_table(void);
62*6a54128fSAndroid Build Coastguard Worker
initialize_prof_error_table(void)63*6a54128fSAndroid Build Coastguard Worker void initialize_prof_error_table(void) {
64*6a54128fSAndroid Build Coastguard Worker initialize_prof_error_table_r(&_et_list);
65*6a54128fSAndroid Build Coastguard Worker }
66*6a54128fSAndroid Build Coastguard Worker
67*6a54128fSAndroid Build Coastguard Worker /* For Heimdal compatibility */
initialize_prof_error_table_r(struct et_list ** list)68*6a54128fSAndroid Build Coastguard Worker void initialize_prof_error_table_r(struct et_list **list)
69*6a54128fSAndroid Build Coastguard Worker {
70*6a54128fSAndroid Build Coastguard Worker struct et_list *et, **end;
71*6a54128fSAndroid Build Coastguard Worker
72*6a54128fSAndroid Build Coastguard Worker for (end = list, et = *list; et; end = &et->next, et = et->next)
73*6a54128fSAndroid Build Coastguard Worker if (et->table->msgs == text)
74*6a54128fSAndroid Build Coastguard Worker return;
75*6a54128fSAndroid Build Coastguard Worker et = malloc(sizeof(struct et_list));
76*6a54128fSAndroid Build Coastguard Worker if (et == 0) {
77*6a54128fSAndroid Build Coastguard Worker if (!link.table)
78*6a54128fSAndroid Build Coastguard Worker et = &link;
79*6a54128fSAndroid Build Coastguard Worker else
80*6a54128fSAndroid Build Coastguard Worker return;
81*6a54128fSAndroid Build Coastguard Worker }
82*6a54128fSAndroid Build Coastguard Worker et->table = &et_prof_error_table;
83*6a54128fSAndroid Build Coastguard Worker et->next = 0;
84*6a54128fSAndroid Build Coastguard Worker *end = et;
85*6a54128fSAndroid Build Coastguard Worker }
86