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