Line data Source code
1 : /* Output of mkstrtable.awk. DO NOT EDIT. */
2 :
3 : /* err-sources.h - List of error sources and their description.
4 : Copyright (C) 2003, 2004 g10 Code GmbH
5 :
6 : This file is part of libgpg-error.
7 :
8 : libgpg-error is free software; you can redistribute it and/or
9 : modify it under the terms of the GNU Lesser General Public License
10 : as published by the Free Software Foundation; either version 2.1 of
11 : the License, or (at your option) any later version.
12 :
13 : libgpg-error is distributed in the hope that it will be useful, but
14 : WITHOUT ANY WARRANTY; without even the implied warranty of
15 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 : Lesser General Public License for more details.
17 :
18 : You should have received a copy of the GNU Lesser General Public
19 : License along with libgpg-error; if not, write to the Free
20 : Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 : 02111-1307, USA. */
22 :
23 :
24 : /* The purpose of this complex string table is to produce
25 : optimal code with a minimum of relocations. */
26 :
27 : static const char msgstr[] =
28 : "GPG_ERR_SOURCE_UNKNOWN" "\0"
29 : "GPG_ERR_SOURCE_GCRYPT" "\0"
30 : "GPG_ERR_SOURCE_GPG" "\0"
31 : "GPG_ERR_SOURCE_GPGSM" "\0"
32 : "GPG_ERR_SOURCE_GPGAGENT" "\0"
33 : "GPG_ERR_SOURCE_PINENTRY" "\0"
34 : "GPG_ERR_SOURCE_SCD" "\0"
35 : "GPG_ERR_SOURCE_GPGME" "\0"
36 : "GPG_ERR_SOURCE_KEYBOX" "\0"
37 : "GPG_ERR_SOURCE_KSBA" "\0"
38 : "GPG_ERR_SOURCE_DIRMNGR" "\0"
39 : "GPG_ERR_SOURCE_GSTI" "\0"
40 : "GPG_ERR_SOURCE_GPA" "\0"
41 : "GPG_ERR_SOURCE_KLEO" "\0"
42 : "GPG_ERR_SOURCE_G13" "\0"
43 : "GPG_ERR_SOURCE_ASSUAN" "\0"
44 : "GPG_ERR_SOURCE_TLS" "\0"
45 : "GPG_ERR_SOURCE_ANY" "\0"
46 : "GPG_ERR_SOURCE_USER_1" "\0"
47 : "GPG_ERR_SOURCE_USER_2" "\0"
48 : "GPG_ERR_SOURCE_USER_3" "\0"
49 : "GPG_ERR_SOURCE_USER_4" "\0"
50 : "GPG_ERR_SOURCE_DIM";
51 :
52 : static const int msgidx[] =
53 : {
54 : 0,
55 : 23,
56 : 45,
57 : 64,
58 : 85,
59 : 109,
60 : 133,
61 : 152,
62 : 173,
63 : 195,
64 : 215,
65 : 238,
66 : 258,
67 : 277,
68 : 297,
69 : 316,
70 : 338,
71 : 357,
72 : 376,
73 : 398,
74 : 420,
75 : 442,
76 : 464
77 : };
78 :
79 : static GPG_ERR_INLINE int
80 : msgidxof (int code)
81 : {
82 : return (0 ? 0
83 0 : : ((code >= 0) && (code <= 15)) ? (code - 0)
84 : : ((code >= 17) && (code <= 17)) ? (code - 1)
85 0 : : ((code >= 31) && (code <= 35)) ? (code - 14)
86 0 : : 36 - 14);
87 : }
|