author | zautrix <zautrix> | 2004-10-19 20:16:14 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-19 20:16:14 (UTC) |
commit | eca49bb06a71980ef61d078904573f25890fc7f2 (patch) (unidiff) | |
tree | c5338e3b12430248979a9ac2c1c7e6646ea9ecdf /pwmanager/libcrypt/error/err-sources-sym.h | |
parent | 53cc32b6e7b1f672bf91b2baf2df6c1e8baf3e0a (diff) | |
download | kdepimpi-eca49bb06a71980ef61d078904573f25890fc7f2.zip kdepimpi-eca49bb06a71980ef61d078904573f25890fc7f2.tar.gz kdepimpi-eca49bb06a71980ef61d078904573f25890fc7f2.tar.bz2 |
Initial revision
Diffstat (limited to 'pwmanager/libcrypt/error/err-sources-sym.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | pwmanager/libcrypt/error/err-sources-sym.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/pwmanager/libcrypt/error/err-sources-sym.h b/pwmanager/libcrypt/error/err-sources-sym.h new file mode 100644 index 0000000..8213f6e --- a/dev/null +++ b/pwmanager/libcrypt/error/err-sources-sym.h | |||
@@ -0,0 +1,70 @@ | |||
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_USER_1" "\0" | ||
41 | "GPG_ERR_SOURCE_USER_2" "\0" | ||
42 | "GPG_ERR_SOURCE_USER_3" "\0" | ||
43 | "GPG_ERR_SOURCE_USER_4" "\0" | ||
44 | "GPG_ERR_SOURCE_DIM"; | ||
45 | |||
46 | static const int msgidx[] = | ||
47 | { | ||
48 | 0, | ||
49 | 23, | ||
50 | 45, | ||
51 | 64, | ||
52 | 85, | ||
53 | 109, | ||
54 | 133, | ||
55 | 152, | ||
56 | 173, | ||
57 | 195, | ||
58 | 215, | ||
59 | 238, | ||
60 | 258, | ||
61 | 280, | ||
62 | 302, | ||
63 | 324, | ||
64 | 346 | ||
65 | }; | ||
66 | |||
67 | #define msgidxof(code) (0 ? -1 \ | ||
68 | : ((code >= 0) && (code <= 11)) ? (code - 0) \ | ||
69 | : ((code >= 32) && (code <= 35)) ? (code - 20) \ | ||
70 | : 36 - 20) | ||