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