Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / bsd / ntp / dist / sntp / libopts / autoopts / usage-txt.h
blobd788ba8f5d0b6603436f3a9ed4d448311593c3c0
1 /* $NetBSD$ */
3 /* -*- buffer-read-only: t -*- vi: set ro:
4 *
5 * DO NOT EDIT THIS FILE (usage-txt.h)
6 *
7 * It has been AutoGen-ed November 8, 2009 at 08:41:07 AM by AutoGen 5.9.10pre13
8 * From the definitions usage-txt.def
9 * and the template file usage-txt.tpl
11 * This file handles all the bookkeeping required for tracking all the little
12 * tiny strings used by the AutoOpts library. There are 134
13 * of them. This is not versioned because it is entirely internal to the
14 * library and accessed by client code only in a very well-controlled way:
15 * they may substitute translated strings using a procedure that steps through
16 * all the string pointers.
18 * AutoOpts is free software: you can redistribute it and/or modify it
19 * under the terms of the GNU Lesser General Public License as published
20 * by the Free Software Foundation, either version 3 of the License, or
21 * (at your option) any later version.
23 * AutoOpts is distributed in the hope that it will be useful, but
24 * WITHOUT ANY WARRANTY; without even the implied warranty of
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
26 * See the GNU Lesser General Public License for more details.
28 * You should have received a copy of the GNU Lesser General Public License
29 * along with this program. If not, see <http://www.gnu.org/licenses/>.
31 #ifndef AUTOOPTS_USAGE_TXT_H_GUARD
32 #define AUTOOPTS_USAGE_TXT_H_GUARD 1
34 #undef cch_t
35 #define cch_t char const
38 * One structure to hold all the pointers to all the stringlets.
40 typedef struct {
41 int field_ct;
42 char* utpz_GnuBoolArg;
43 char* utpz_GnuKeyArg;
44 char* utpz_GnuFileArg;
45 char* utpz_GnuKeyLArg;
46 char* utpz_GnuTimeArg;
47 char* utpz_GnuNumArg;
48 char* utpz_GnuStrArg;
49 cch_t* apz_str[ 127 ];
50 } usage_text_t;
53 * Declare the global structure with all the pointers to translated
54 * strings. This is then used by the usage generation procedure.
56 extern usage_text_t option_usage_text;
58 #if defined(AUTOOPTS_INTERNAL) /* DEFINE ALL THE STRINGS = = = = = */
60 * Provide a mapping from a short name to fields in this structure.
62 #define zAO_Bad (option_usage_text.apz_str[ 0])
63 #define zAO_Big (option_usage_text.apz_str[ 1])
64 #define zAO_Err (option_usage_text.apz_str[ 2])
65 #define zAO_Sml (option_usage_text.apz_str[ 3])
66 #define zAO_Ver (option_usage_text.apz_str[ 4])
67 #define zAO_Woops (option_usage_text.apz_str[ 5])
68 #define zAliasRange (option_usage_text.apz_str[ 6])
69 #define zAll (option_usage_text.apz_str[ 7])
70 #define zAlt (option_usage_text.apz_str[ 8])
71 #define zAmbigKey (option_usage_text.apz_str[ 9])
72 #define zAmbigOptStr (option_usage_text.apz_str[ 10])
73 #define zArgsMust (option_usage_text.apz_str[ 11])
74 #define zAtMost (option_usage_text.apz_str[ 12])
75 #define zAuto (option_usage_text.apz_str[ 13])
76 #define zBadPipe (option_usage_text.apz_str[ 14])
77 #define zBadVerArg (option_usage_text.apz_str[ 15])
78 #define zCantFmt (option_usage_text.apz_str[ 16])
79 #define zCantSave (option_usage_text.apz_str[ 17])
80 #define zDefaultOpt (option_usage_text.apz_str[ 18])
81 #define zDis (option_usage_text.apz_str[ 19])
82 #define zDisabledErr (option_usage_text.apz_str[ 20])
83 #define zDisabledOpt (option_usage_text.apz_str[ 21])
84 #define zDisabledWhy (option_usage_text.apz_str[ 22])
85 #define zEnab (option_usage_text.apz_str[ 23])
86 #define zEquiv (option_usage_text.apz_str[ 24])
87 #define zErrOnly (option_usage_text.apz_str[ 25])
88 #define zExamineFmt (option_usage_text.apz_str[ 26])
89 #define zFiveSpaces (option_usage_text.apz_str[ 27])
90 #define zFlagOkay (option_usage_text.apz_str[ 28])
91 #define zFmtFmt (option_usage_text.apz_str[ 29])
92 #define zForkFail (option_usage_text.apz_str[ 30])
93 #define zFSErrOptLoad (option_usage_text.apz_str[ 31])
94 #define zFSErrReadFile (option_usage_text.apz_str[ 32])
95 #define zFSOptError (option_usage_text.apz_str[ 33])
96 #define zFSOptErrMayExist (option_usage_text.apz_str[ 34])
97 #define zFSOptErrMustExist (option_usage_text.apz_str[ 35])
98 #define zFSOptErrNoExist (option_usage_text.apz_str[ 36])
99 #define zFSOptErrOpen (option_usage_text.apz_str[ 37])
100 #define zFSOptErrFopen (option_usage_text.apz_str[ 38])
101 #define zFileCannotExist (option_usage_text.apz_str[ 39])
102 #define zFileMustExist (option_usage_text.apz_str[ 40])
103 #define zGenshell (option_usage_text.apz_str[ 41])
104 #define zGnuBoolArg (option_usage_text.utpz_GnuBoolArg)
105 #define zGnuBreak (option_usage_text.apz_str[ 42])
106 #define zGnuKeyArg (option_usage_text.utpz_GnuKeyArg)
107 #define zGnuFileArg (option_usage_text.utpz_GnuFileArg)
108 #define zGnuKeyLArg (option_usage_text.utpz_GnuKeyLArg)
109 #define zGnuTimeArg (option_usage_text.utpz_GnuTimeArg)
110 #define zGnuNestArg (option_usage_text.apz_str[ 43])
111 #define zGnuNumArg (option_usage_text.utpz_GnuNumArg)
112 #define zGnuOptArg (option_usage_text.apz_str[ 44])
113 #define zGnuOptFmt (option_usage_text.apz_str[ 45])
114 #define zGnuStrArg (option_usage_text.utpz_GnuStrArg)
115 #define zIllOptChr (option_usage_text.apz_str[ 46])
116 #define zIllOptStr (option_usage_text.apz_str[ 47])
117 #define zIllegal (option_usage_text.apz_str[ 48])
118 #define zIntRange (option_usage_text.apz_str[ 49])
119 #define zInvalOptDesc (option_usage_text.apz_str[ 50])
120 #define zLowerBits (option_usage_text.apz_str[ 51])
121 #define zMembers (option_usage_text.apz_str[ 52])
122 #define zMisArg (option_usage_text.apz_str[ 53])
123 #define zMultiEquiv (option_usage_text.apz_str[ 54])
124 #define zMust (option_usage_text.apz_str[ 55])
125 #define zNeedOne (option_usage_text.apz_str[ 56])
126 #define zNoArg (option_usage_text.apz_str[ 57])
127 #define zNoArgs (option_usage_text.apz_str[ 58])
128 #define zNoCreat (option_usage_text.apz_str[ 59])
129 #define zNoFlags (option_usage_text.apz_str[ 60])
130 #define zNoKey (option_usage_text.apz_str[ 61])
131 #define zNoLim (option_usage_text.apz_str[ 62])
132 #define zNoPreset (option_usage_text.apz_str[ 63])
133 #define zNoResetArg (option_usage_text.apz_str[ 64])
134 #define zNoRq_NoShrtTtl (option_usage_text.apz_str[ 65])
135 #define zNoRq_ShrtTtl (option_usage_text.apz_str[ 66])
136 #define zNoStat (option_usage_text.apz_str[ 67])
137 #define zNoState (option_usage_text.apz_str[ 68])
138 #define zNone (option_usage_text.apz_str[ 69])
139 #define zNotDef (option_usage_text.apz_str[ 70])
140 #define zNotCmdOpt (option_usage_text.apz_str[ 71])
141 #define zNotEnough (option_usage_text.apz_str[ 72])
142 #define zNotFile (option_usage_text.apz_str[ 73])
143 #define zNotNumber (option_usage_text.apz_str[ 74])
144 #define zNrmOptFmt (option_usage_text.apz_str[ 75])
145 #define zNumberOpt (option_usage_text.apz_str[ 76])
146 #define zOneSpace (option_usage_text.apz_str[ 77])
147 #define zOnlyOne (option_usage_text.apz_str[ 78])
148 #define zOptsOnly (option_usage_text.apz_str[ 79])
149 #define zPathFmt (option_usage_text.apz_str[ 80])
150 #define zPlsSendBugs (option_usage_text.apz_str[ 81])
151 #define zPreset (option_usage_text.apz_str[ 82])
152 #define zPresetFile (option_usage_text.apz_str[ 83])
153 #define zPresetIntro (option_usage_text.apz_str[ 84])
154 #define zProg (option_usage_text.apz_str[ 85])
155 #define zProhib (option_usage_text.apz_str[ 86])
156 #define zReorder (option_usage_text.apz_str[ 87])
157 #define zRange (option_usage_text.apz_str[ 88])
158 #define zRangeAbove (option_usage_text.apz_str[ 89])
159 #define zRangeLie (option_usage_text.apz_str[ 90])
160 #define zRangeBadLie (option_usage_text.apz_str[ 91])
161 #define zRangeOnly (option_usage_text.apz_str[ 92])
162 #define zRangeOr (option_usage_text.apz_str[ 93])
163 #define zRangeErr (option_usage_text.apz_str[ 94])
164 #define zRangeExact (option_usage_text.apz_str[ 95])
165 #define zRangeScaled (option_usage_text.apz_str[ 96])
166 #define zRangeUpto (option_usage_text.apz_str[ 97])
167 #define zResetNotConfig (option_usage_text.apz_str[ 98])
168 #define zReqFmt (option_usage_text.apz_str[ 99])
169 #define zReqOptFmt (option_usage_text.apz_str[100])
170 #define zReqThese (option_usage_text.apz_str[101])
171 #define zReq_NoShrtTtl (option_usage_text.apz_str[102])
172 #define zReq_ShrtTtl (option_usage_text.apz_str[103])
173 #define zSepChars (option_usage_text.apz_str[104])
174 #define zSetMemberSettings (option_usage_text.apz_str[105])
175 #define zShrtGnuOptFmt (option_usage_text.apz_str[106])
176 #define zSixSpaces (option_usage_text.apz_str[107])
177 #define zStdBoolArg (option_usage_text.apz_str[108])
178 #define zStdBreak (option_usage_text.apz_str[109])
179 #define zStdFileArg (option_usage_text.apz_str[110])
180 #define zStdKeyArg (option_usage_text.apz_str[111])
181 #define zStdKeyLArg (option_usage_text.apz_str[112])
182 #define zStdTimeArg (option_usage_text.apz_str[113])
183 #define zStdNestArg (option_usage_text.apz_str[114])
184 #define zStdNoArg (option_usage_text.apz_str[115])
185 #define zStdNumArg (option_usage_text.apz_str[116])
186 #define zStdOptArg (option_usage_text.apz_str[117])
187 #define zStdReqArg (option_usage_text.apz_str[118])
188 #define zStdStrArg (option_usage_text.apz_str[119])
189 #define zTabHyp (option_usage_text.apz_str[120])
190 #define zTabHypAnd (option_usage_text.apz_str[121])
191 #define zTabout (option_usage_text.apz_str[122])
192 #define zThreeSpaces (option_usage_text.apz_str[123])
193 #define zTwoSpaces (option_usage_text.apz_str[124])
194 #define zUpTo (option_usage_text.apz_str[125])
195 #define zValidKeys (option_usage_text.apz_str[126])
198 * First, set up the strings. Some of these are writable. These are all in
199 * English. This gets compiled into libopts and is distributed here so that
200 * xgettext (or equivalents) can extract these strings for translation.
203 static char eng_zGnuBoolArg[] = "=T/F";
204 static char eng_zGnuKeyArg[] = "=KWd";
205 static char eng_zGnuFileArg[] = "=file";
206 static char eng_zGnuKeyLArg[] = "=Mbr";
207 static char eng_zGnuTimeArg[] = "=Tim";
208 static char eng_zGnuNumArg[] = "=num";
209 static char eng_zGnuStrArg[] = "=str";
210 static char const usage_txt[4159] =
211 "AutoOpts function called without option descriptor\n\0"
212 "\tThis exceeds the compiled library version: \0"
213 "Automated Options Processing Error!\n"
214 "\t%s called AutoOpts function with structure version %d:%d:%d.\n\0"
215 "\tThis is less than the minimum library version: \0"
216 "Automated Options version %s\n"
217 "\tcopyright (c) 1999-2009 by Bruce Korb - all rights reserved\n\0"
218 "AutoOpts lib error: defaulted to option with optional arg\n\0"
219 "(AutoOpts bug): Aliasing option is out of range.\0"
220 "all\0"
221 "\t\t\t\t- an alternate for %s\n\0"
222 "%s error: the keyword `%s' is ambiguous for %s\n\0"
223 "%s: ambiguous option -- %s\n\0"
224 "%s: Command line arguments required\n\0"
225 "%d %s%s options allowed\n\0"
226 "version and help options:\0"
227 "Error %d (%s) from the pipe(2) syscall\n\0"
228 "ERROR: version option argument '%c' invalid. Use:\n"
229 "\t'v' - version only\n"
230 "\t'c' - version and copyright\n"
231 "\t'n' - version and copyright notice\n\0"
232 "ERROR: %s option conflicts with the %s option\n\0"
233 "%s(optionSaveState): error: cannot allocate %d bytes\n\0"
234 "\t\t\t\t- default option for unnamed options\n\0"
235 "\t\t\t\t- disabled as --%s\n\0"
236 "%s: The ``%s'' option has been disabled\0"
237 " --- %-14s %s\n\0"
238 "This option has been disabled\0"
239 "\t\t\t\t- enabled by default\n\0"
240 "-equivalence\0"
241 "ERROR: only \0"
242 " - examining environment variables named %s_*\n\0"
243 " \0"
244 "Options are specified by doubled hyphens and their name\n"
245 "or by a single hyphen and the flag character.\n\0"
246 "%%-%ds %%s\n\0"
247 "fs error %d (%s) on fork - cannot obtain %s usage\n\0"
248 "File error %d (%s) opening %s for loading options\n\0"
249 "fs error %d (%s) reading file %s\n\0"
250 "fs error %d (%s) on %s %s for option %s\n\0"
251 "stat-ing for directory\0"
252 "stat-ing for regular file\0"
253 "stat-ing for non-existant file\0"
254 "open-ing file\0"
255 "fopen-ing file\0"
256 "\t\t\t\t- file must not pre-exist\n\0"
257 "\t\t\t\t- file must pre-exist\n\0"
258 "\n"
259 "= = = = = = = =\n\n"
260 "This incarnation of genshell will produce\n"
261 "a shell script to parse the options for %s:\n\n\0"
262 "\n"
263 "%s\n\n\0"
264 "=Cplx\0"
265 "[=arg]\0"
266 "--%2$s%1$s\0"
267 "%s: illegal option -- %c\n\0"
268 "%s: illegal option -- %s\n\0"
269 "illegal\0"
270 " or an integer from %d through %d\n\0"
271 "AutoOpts ERROR: invalid option descriptor for %s\n\0"
272 " or an integer mask with any of the lower %d bits set\n\0"
273 "\t\t\t\t- is a set membership option\n\0"
274 "%s: option `%s' requires an argument\n\0"
275 "Equivalenced option '%s' was equivalenced to both\n"
276 "\t'%s' and '%s'\0"
277 "\t\t\t\t- must appear between %d and %d times\n\0"
278 "ERROR: The %s option is required\n\0"
279 "%s: option `%s' cannot have an argument\n\0"
280 "%s: Command line arguments not allowed\n\0"
281 "error %d (%s) creating %s\n\0"
282 "Options are specified by single or double hyphens and their name.\n\0"
283 "%s error: `%s' does not match any %s keywords\n\0"
284 "\t\t\t\t- may appear multiple times\n\0"
285 "\t\t\t\t- may not be preset\n\0"
286 "The 'reset-option' option requires an argument\n\0"
287 " Arg Option-Name Description\n\0"
288 " Flg Arg Option-Name Description\n\0"
289 "error %d (%s) stat-ing %s\n\0"
290 "%s(optionRestore): error: no saved option state\n\0"
291 "none\0"
292 "'%s' not defined\n\0"
293 "'%s' is not a command line option\n\0"
294 "ERROR: The %s option must appear %d times\n\0"
295 "error: cannot load options from non-regular file %s\n\0"
296 "%s error: `%s' is not a recognizable number\n\0"
297 " %3s %s\0"
298 "The '-#<number>' option may omit the hash char\n\0"
299 " \0"
300 "one %s%s option allowed\n\0"
301 "All arguments are named options.\n\0"
302 " - reading file %s\0"
303 "\n"
304 "please send bug reports to: %s\n\0"
305 "\t\t\t\t- may NOT appear - preset only\n\0"
306 "# preset/initialization file\n"
307 "# %s#\n\0"
308 "\n"
309 "The following option preset mechanisms are supported:\n\0"
310 "program\0"
311 "prohibits these options:\n\0"
312 "Operands and options may be intermixed. They will be reordered.\n\0"
313 "%s%ld to %ld\0"
314 "%sgreater than or equal to %ld\0"
315 "%sIt must lie in one of the ranges:\n\0"
316 "%sThis option must lie in one of the ranges:\n\0"
317 "%sit must be: \0"
318 ", or\n\0"
319 "%s error: %s option value ``%s'' is out of range.\n\0"
320 "%s%ld exactly\0"
321 "%sis scalable with a suffix: k/K/m/M/g/G/t/T\n\0"
322 "%sless than or equal to %ld\0"
323 "The --reset-option has not been configured.\n\0"
324 "ERROR: %s option requires the %s option\n\0"
325 " %3s %-14s %s\0"
326 "requires these options:\n\0"
327 " Arg Option-Name Req? Description\n\0"
328 " Flg Arg Option-Name Req? Description\n\0"
329 "-_^\0"
330 "or you may use a numeric representation. Preceding these with a '!' will\n"
331 "clear the bits, specifying 'none' will clear all bits, and 'all' will set them\n"
332 "all. Multiple entries may be passed as an option argument list.\n\0"
333 "%s\0"
334 " \0"
335 "T/F\0"
336 "\n"
337 "%s\n\n"
338 "%s\0"
339 "Fil\0"
340 "KWd\0"
341 "Mbr\0"
342 "Tim\0"
343 "Cpx\0"
344 "no \0"
345 "Num\0"
346 "opt\0"
347 "YES\0"
348 "Str\0"
349 "\t\t\t\t- \0"
350 "\t\t\t\t-- and \0"
351 "\t\t\t\t%s\n\0"
352 " \0"
353 " \0"
354 "\t\t\t\t- may appear up to %d times\n\0"
355 "The valid \"%s\" option keywords are:\n\0";
359 * Now, define (and initialize) the structure that contains
360 * the pointers to all these strings.
361 * Aren't you glad you don't maintain this by hand?
363 usage_text_t option_usage_text = {
364 134,
365 eng_zGnuBoolArg, eng_zGnuKeyArg, eng_zGnuFileArg, eng_zGnuKeyLArg,
366 eng_zGnuTimeArg, eng_zGnuNumArg, eng_zGnuStrArg,
368 usage_txt + 0, usage_txt + 52, usage_txt + 98, usage_txt + 197,
369 usage_txt + 247, usage_txt + 338, usage_txt + 397, usage_txt + 447,
370 usage_txt + 451, usage_txt + 478, usage_txt + 527, usage_txt + 555,
371 usage_txt + 592, usage_txt + 617, usage_txt + 643, usage_txt + 683,
372 usage_txt + 820, usage_txt + 868, usage_txt + 922, usage_txt + 964,
373 usage_txt + 988, usage_txt +1028, usage_txt +1043, usage_txt +1073,
374 usage_txt +1099, usage_txt +1112, usage_txt +1126, usage_txt +1173,
375 usage_txt +1179, usage_txt +1282, usage_txt +1294, usage_txt +1345,
376 usage_txt +1396, usage_txt +1430, usage_txt +1471, usage_txt +1494,
377 usage_txt +1520, usage_txt +1551, usage_txt +1565, usage_txt +1580,
378 usage_txt +1611, usage_txt +1638, usage_txt +1744, usage_txt +1750,
379 usage_txt +1756, usage_txt +1763, usage_txt +1774, usage_txt +1800,
380 usage_txt +1826, usage_txt +1834, usage_txt +1870, usage_txt +1921,
381 usage_txt +1977, usage_txt +2011, usage_txt +2049, usage_txt +2114,
382 usage_txt +2157, usage_txt +2192, usage_txt +2233, usage_txt +2273,
383 usage_txt +2300, usage_txt +2367, usage_txt +2415, usage_txt +2448,
384 usage_txt +2473, usage_txt +2521, usage_txt +2556, usage_txt +2594,
385 usage_txt +2621, usage_txt +2670, usage_txt +2675, usage_txt +2693,
386 usage_txt +2728, usage_txt +2772, usage_txt +2826, usage_txt +2872,
387 usage_txt +2880, usage_txt +2928, usage_txt +2930, usage_txt +2955,
388 usage_txt +2989, usage_txt +3008, usage_txt +3042, usage_txt +3078,
389 usage_txt +3116, usage_txt +3172, usage_txt +3180, usage_txt +3206,
390 usage_txt +3272, usage_txt +3285, usage_txt +3316, usage_txt +3353,
391 usage_txt +3399, usage_txt +3415, usage_txt +3421, usage_txt +3473,
392 usage_txt +3487, usage_txt +3533, usage_txt +3561, usage_txt +3606,
393 usage_txt +3648, usage_txt +3662, usage_txt +3687, usage_txt +3727,
394 usage_txt +3770, usage_txt +3774, usage_txt +3993, usage_txt +3996,
395 usage_txt +4003, usage_txt +4007, usage_txt +4015, usage_txt +4019,
396 usage_txt +4023, usage_txt +4027, usage_txt +4031, usage_txt +4035,
397 usage_txt +4039, usage_txt +4043, usage_txt +4047, usage_txt +4051,
398 usage_txt +4055, usage_txt +4062, usage_txt +4074, usage_txt +4082,
399 usage_txt +4086, usage_txt +4089, usage_txt +4122
403 #endif /* DO_TRANSLATIONS */
404 #endif /* AUTOOPTS_USAGE_TXT_H_GUARD */