Annotation of embedaddon/ntp/sntp/libopts/autoopts/usage-txt.h, revision 1.1.1.1
1.1 misho 1: /* -*- buffer-read-only: t -*- vi: set ro:
2: *
3: * DO NOT EDIT THIS FILE (usage-txt.h)
4: *
5: * It has been AutoGen-ed April 29, 2011 at 03:44:00 PM by AutoGen 5.11.9
6: * From the definitions usage-txt.def
7: * and the template file usage-txt.tpl
8: *
9: * This file handles all the bookkeeping required for tracking all the little
10: * tiny strings used by the AutoOpts library. There are 142
11: * of them. This is not versioned because it is entirely internal to the
12: * library and accessed by client code only in a very well-controlled way:
13: * they may substitute translated strings using a procedure that steps through
14: * all the string pointers.
15: *
16: * AutoOpts is free software: you can redistribute it and/or modify it
17: * under the terms of the GNU Lesser General Public License as published
18: * by the Free Software Foundation, either version 3 of the License, or
19: * (at your option) any later version.
20: *
21: * AutoOpts is distributed in the hope that it will be useful, but
22: * WITHOUT ANY WARRANTY; without even the implied warranty of
23: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24: * See the GNU Lesser General Public License for more details.
25: *
26: * You should have received a copy of the GNU Lesser General Public License
27: * along with this program. If not, see <http://www.gnu.org/licenses/>.";
28:
29: */
30: #ifndef AUTOOPTS_USAGE_TXT_H_GUARD
31: #define AUTOOPTS_USAGE_TXT_H_GUARD 1
32:
33: #undef cch_t
34: #define cch_t char const
35:
36: /*
37: * One structure to hold all the pointers to all the stringlets.
38: */
39: typedef struct {
40: int field_ct;
41: char* utpz_GnuBoolArg;
42: char* utpz_GnuKeyArg;
43: char* utpz_GnuFileArg;
44: char* utpz_GnuKeyLArg;
45: char* utpz_GnuTimeArg;
46: char* utpz_GnuNumArg;
47: char* utpz_GnuStrArg;
48: cch_t* apz_str[ 135 ];
49: } usage_text_t;
50:
51: /*
52: * Declare the global structure with all the pointers to translated
53: * strings. This is then used by the usage generation procedure.
54: */
55: extern usage_text_t option_usage_text;
56:
57: #if defined(AUTOOPTS_INTERNAL) /* DEFINE ALL THE STRINGS = = = = = */
58: /*
59: * Provide a mapping from a short name to fields in this structure.
60: */
61: #define zAO_Alloc (option_usage_text.apz_str[ 0])
62: #define zAO_Bad (option_usage_text.apz_str[ 1])
63: #define zAO_Big (option_usage_text.apz_str[ 2])
64: #define zAO_Err (option_usage_text.apz_str[ 3])
65: #define zAO_Realloc (option_usage_text.apz_str[ 4])
66: #define zAO_Sml (option_usage_text.apz_str[ 5])
67: #define zAO_Strdup (option_usage_text.apz_str[ 6])
68: #define zAO_Ver (option_usage_text.apz_str[ 7])
69: #define zAO_Woops (option_usage_text.apz_str[ 8])
70: #define zAliasRange (option_usage_text.apz_str[ 9])
71: #define zAll (option_usage_text.apz_str[ 10])
72: #define zAlt (option_usage_text.apz_str[ 11])
73: #define zAmbigKey (option_usage_text.apz_str[ 12])
74: #define zAmbigOptStr (option_usage_text.apz_str[ 13])
75: #define zArgsMust (option_usage_text.apz_str[ 14])
76: #define zAtMost (option_usage_text.apz_str[ 15])
77: #define zAuto (option_usage_text.apz_str[ 16])
78: #define zBadPipe (option_usage_text.apz_str[ 17])
79: #define zBadVerArg (option_usage_text.apz_str[ 18])
80: #define zCantFmt (option_usage_text.apz_str[ 19])
81: #define zCantSave (option_usage_text.apz_str[ 20])
82: #define zCfgAO_Flags (option_usage_text.apz_str[ 21])
83: #define zCfgProg (option_usage_text.apz_str[ 22])
84: #define zDefaultOpt (option_usage_text.apz_str[ 23])
85: #define zDis (option_usage_text.apz_str[ 24])
86: #define zDisabledErr (option_usage_text.apz_str[ 25])
87: #define zDisabledOpt (option_usage_text.apz_str[ 26])
88: #define zDisabledWhy (option_usage_text.apz_str[ 27])
89: #define zEnab (option_usage_text.apz_str[ 28])
90: #define zEquiv (option_usage_text.apz_str[ 29])
91: #define zErrOnly (option_usage_text.apz_str[ 30])
92: #define zExamineFmt (option_usage_text.apz_str[ 31])
93: #define zFiveSpaces (option_usage_text.apz_str[ 32])
94: #define zFlagOkay (option_usage_text.apz_str[ 33])
95: #define zFmtFmt (option_usage_text.apz_str[ 34])
96: #define zForkFail (option_usage_text.apz_str[ 35])
97: #define zFreopenFail (option_usage_text.apz_str[ 36])
98: #define zFSErrOptLoad (option_usage_text.apz_str[ 37])
99: #define zFSErrReadFile (option_usage_text.apz_str[ 38])
100: #define zFSOptError (option_usage_text.apz_str[ 39])
101: #define zFSOptErrMayExist (option_usage_text.apz_str[ 40])
102: #define zFSOptErrMustExist (option_usage_text.apz_str[ 41])
103: #define zFSOptErrNoExist (option_usage_text.apz_str[ 42])
104: #define zFSOptErrOpen (option_usage_text.apz_str[ 43])
105: #define zFSOptErrFopen (option_usage_text.apz_str[ 44])
106: #define zFileCannotExist (option_usage_text.apz_str[ 45])
107: #define zFileMustExist (option_usage_text.apz_str[ 46])
108: #define zGenshell (option_usage_text.apz_str[ 47])
109: #define zGnuBoolArg (option_usage_text.utpz_GnuBoolArg)
110: #define zGnuBreak (option_usage_text.apz_str[ 48])
111: #define zGnuKeyArg (option_usage_text.utpz_GnuKeyArg)
112: #define zGnuFileArg (option_usage_text.utpz_GnuFileArg)
113: #define zGnuKeyLArg (option_usage_text.utpz_GnuKeyLArg)
114: #define zGnuTimeArg (option_usage_text.utpz_GnuTimeArg)
115: #define zGnuNestArg (option_usage_text.apz_str[ 49])
116: #define zGnuNumArg (option_usage_text.utpz_GnuNumArg)
117: #define zGnuOptArg (option_usage_text.apz_str[ 50])
118: #define zGnuOptFmt (option_usage_text.apz_str[ 51])
119: #define zGnuStrArg (option_usage_text.utpz_GnuStrArg)
120: #define zIllOptChr (option_usage_text.apz_str[ 52])
121: #define zIllOptStr (option_usage_text.apz_str[ 53])
122: #define zIllegal (option_usage_text.apz_str[ 54])
123: #define zIntRange (option_usage_text.apz_str[ 55])
124: #define zInvalOptDesc (option_usage_text.apz_str[ 56])
125: #define zLowerBits (option_usage_text.apz_str[ 57])
126: #define zMembers (option_usage_text.apz_str[ 58])
127: #define zMisArg (option_usage_text.apz_str[ 59])
128: #define zMultiEquiv (option_usage_text.apz_str[ 60])
129: #define zMust (option_usage_text.apz_str[ 61])
130: #define zNeedOne (option_usage_text.apz_str[ 62])
131: #define zNoArg (option_usage_text.apz_str[ 63])
132: #define zNoArgv (option_usage_text.apz_str[ 64])
133: #define zNoArgs (option_usage_text.apz_str[ 65])
134: #define zNoCreat (option_usage_text.apz_str[ 66])
135: #define zNoFlags (option_usage_text.apz_str[ 67])
136: #define zNoKey (option_usage_text.apz_str[ 68])
137: #define zNoLim (option_usage_text.apz_str[ 69])
138: #define zNoPreset (option_usage_text.apz_str[ 70])
139: #define zNoResetArg (option_usage_text.apz_str[ 71])
140: #define zNoRq_NoShrtTtl (option_usage_text.apz_str[ 72])
141: #define zNoRq_ShrtTtl (option_usage_text.apz_str[ 73])
142: #define zNoStat (option_usage_text.apz_str[ 74])
143: #define zNoState (option_usage_text.apz_str[ 75])
144: #define zNone (option_usage_text.apz_str[ 76])
145: #define zNotDef (option_usage_text.apz_str[ 77])
146: #define zNotCmdOpt (option_usage_text.apz_str[ 78])
147: #define zNotEnough (option_usage_text.apz_str[ 79])
148: #define zNotFile (option_usage_text.apz_str[ 80])
149: #define zNotNumber (option_usage_text.apz_str[ 81])
150: #define zNotDate (option_usage_text.apz_str[ 82])
151: #define zNotDuration (option_usage_text.apz_str[ 83])
152: #define zNrmOptFmt (option_usage_text.apz_str[ 84])
153: #define zNumberOpt (option_usage_text.apz_str[ 85])
154: #define zOneSpace (option_usage_text.apz_str[ 86])
155: #define zOnlyOne (option_usage_text.apz_str[ 87])
156: #define zOptsOnly (option_usage_text.apz_str[ 88])
157: #define zOutputFail (option_usage_text.apz_str[ 89])
158: #define zPathFmt (option_usage_text.apz_str[ 90])
159: #define zPlsSendBugs (option_usage_text.apz_str[ 91])
160: #define zPreset (option_usage_text.apz_str[ 92])
161: #define zPresetFile (option_usage_text.apz_str[ 93])
162: #define zPresetIntro (option_usage_text.apz_str[ 94])
163: #define zProhib (option_usage_text.apz_str[ 95])
164: #define zReorder (option_usage_text.apz_str[ 96])
165: #define zRange (option_usage_text.apz_str[ 97])
166: #define zRangeAbove (option_usage_text.apz_str[ 98])
167: #define zRangeLie (option_usage_text.apz_str[ 99])
168: #define zRangeOnly (option_usage_text.apz_str[100])
169: #define zRangeOr (option_usage_text.apz_str[101])
170: #define zRangeErr (option_usage_text.apz_str[102])
171: #define zRangeExact (option_usage_text.apz_str[103])
172: #define zRangeScaled (option_usage_text.apz_str[104])
173: #define zRangeUpto (option_usage_text.apz_str[105])
174: #define zResetNotConfig (option_usage_text.apz_str[106])
175: #define zReqFmt (option_usage_text.apz_str[107])
176: #define zReqOptFmt (option_usage_text.apz_str[108])
177: #define zReqThese (option_usage_text.apz_str[109])
178: #define zReq_NoShrtTtl (option_usage_text.apz_str[110])
179: #define zReq_ShrtTtl (option_usage_text.apz_str[111])
180: #define zSepChars (option_usage_text.apz_str[112])
181: #define zSetMemberSettings (option_usage_text.apz_str[113])
182: #define zShrtGnuOptFmt (option_usage_text.apz_str[114])
183: #define zSixSpaces (option_usage_text.apz_str[115])
184: #define zStdBoolArg (option_usage_text.apz_str[116])
185: #define zStdBreak (option_usage_text.apz_str[117])
186: #define zStdFileArg (option_usage_text.apz_str[118])
187: #define zStdKeyArg (option_usage_text.apz_str[119])
188: #define zStdKeyLArg (option_usage_text.apz_str[120])
189: #define zStdTimeArg (option_usage_text.apz_str[121])
190: #define zStdNestArg (option_usage_text.apz_str[122])
191: #define zStdNoArg (option_usage_text.apz_str[123])
192: #define zStdNumArg (option_usage_text.apz_str[124])
193: #define zStdOptArg (option_usage_text.apz_str[125])
194: #define zStdReqArg (option_usage_text.apz_str[126])
195: #define zStdStrArg (option_usage_text.apz_str[127])
196: #define zTabHyp (option_usage_text.apz_str[128])
197: #define zTabHypAnd (option_usage_text.apz_str[129])
198: #define zTabout (option_usage_text.apz_str[130])
199: #define zThreeSpaces (option_usage_text.apz_str[131])
200: #define zTwoSpaces (option_usage_text.apz_str[132])
201: #define zUpTo (option_usage_text.apz_str[133])
202: #define zValidKeys (option_usage_text.apz_str[134])
203:
204: /*
205: * First, set up the strings. Some of these are writable. These are all in
206: * English. This gets compiled into libopts and is distributed here so that
207: * xgettext (or equivalents) can extract these strings for translation.
208: */
209:
210: static char eng_zGnuBoolArg[] = "=T/F";
211: static char eng_zGnuKeyArg[] = "=KWd";
212: static char eng_zGnuFileArg[] = "=file";
213: static char eng_zGnuKeyLArg[] = "=Mbr";
214: static char eng_zGnuTimeArg[] = "=Tim";
215: static char eng_zGnuNumArg[] = "=num";
216: static char eng_zGnuStrArg[] = "=str";
217: static char const usage_txt[4435] =
218: "malloc of %d bytes failed\n\0"
219: "AutoOpts function called without option descriptor\n\0"
220: "\tThis exceeds the compiled library version: \0"
221: "Automated Options Processing Error!\n"
222: "\t%s called AutoOpts function with structure version %d:%d:%d.\n\0"
223: "realloc of %d bytes at 0x%p failed\n\0"
224: "\tThis is less than the minimum library version: \0"
225: "strdup of %d byte string failed\n\0"
226: "Automated Options version %s\n"
227: "\tcopyright (c) 1999-2011 by Bruce Korb - all rights reserved\n\0"
228: "AutoOpts lib error: defaulted to option with optional arg\n\0"
229: "(AutoOpts bug): Aliasing option is out of range.\0"
230: "all\0"
231: "\t\t\t\t- an alternate for %s\n\0"
232: "%s error: the keyword `%s' is ambiguous for %s\n\0"
233: "%s: ambiguous option -- %s\n\0"
234: "%s: Command line arguments required\n\0"
235: "%d %s%s options allowed\n\0"
236: "version and help options:\0"
237: "Error %d (%s) from the pipe(2) syscall\n\0"
238: "ERROR: version option argument '%c' invalid. Use:\n"
239: "\t'v' - version only\n"
240: "\t'c' - version and copyright\n"
241: "\t'n' - version and copyright notice\n\0"
242: "ERROR: %s option conflicts with the %s option\n\0"
243: "%s(optionSaveState): error: cannot allocate %d bytes\n\0"
244: "auto-options\0"
245: "program\0"
246: "\t\t\t\t- default option for unnamed options\n\0"
247: "\t\t\t\t- disabled as --%s\n\0"
248: "%s: The ``%s'' option has been disabled\0"
249: " --- %-14s %s\n\0"
250: "This option has been disabled\0"
251: "\t\t\t\t- enabled by default\n\0"
252: "-equivalence\0"
253: "ERROR: only \0"
254: " - examining environment variables named %s_*\n\0"
255: " \0"
256: "Options are specified by doubled hyphens and their name or by a single\n"
257: "hyphen and the flag character.\n\0"
258: "%%-%ds %%s\n\0"
259: "fs error %d (%s) on fork - cannot obtain %s usage\n\0"
260: "fs error %d (%s) on freopen\n\0"
261: "File error %d (%s) opening %s for loading options\n\0"
262: "fs error %d (%s) reading file %s\n\0"
263: "fs error %d (%s) on %s %s for option %s\n\0"
264: "stat-ing for directory\0"
265: "stat-ing for regular file\0"
266: "stat-ing for non-existant file\0"
267: "open-ing file\0"
268: "fopen-ing file\0"
269: "\t\t\t\t- file must not pre-exist\n\0"
270: "\t\t\t\t- file must pre-exist\n\0"
271: "\n"
272: "= = = = = = = =\n\n"
273: "This incarnation of genshell will produce\n"
274: "a shell script to parse the options for %s:\n\n\0"
275: "\n"
276: "%s\n\n\0"
277: "=Cplx\0"
278: "[=arg]\0"
279: "--%2$s%1$s\0"
280: "%s: illegal option -- %c\n\0"
281: "%s: illegal option -- %s\n\0"
282: "illegal\0"
283: " or an integer from %d through %d\n\0"
284: "AutoOpts ERROR: invalid option descriptor for %s\n\0"
285: " or an integer mask with any of the lower %d bits set\n\0"
286: "\t\t\t\t- is a set membership option\n\0"
287: "%s: option `%s' requires an argument\n\0"
288: "Equivalenced option '%s' was equivalenced to both\n"
289: "\t'%s' and '%s'\0"
290: "\t\t\t\t- must appear between %d and %d times\n\0"
291: "ERROR: The %s option is required\n\0"
292: "%s: option `%s' cannot have an argument\n\0"
293: "%s: cannot allocate new argument vector\n\0"
294: "%s: Command line arguments not allowed\n\0"
295: "error %d (%s) creating %s\n\0"
296: "Options are specified by single or double hyphens and their name.\n\0"
297: "%s error: `%s' does not match any %s keywords\n\0"
298: "\t\t\t\t- may appear multiple times\n\0"
299: "\t\t\t\t- may not be preset\n\0"
300: "The 'reset-option' option requires an argument\n\0"
301: " Arg Option-Name Description\n\0"
302: " Flg Arg Option-Name Description\n\0"
303: "error %d (%s) stat-ing %s\n\0"
304: "%s(optionRestore): error: no saved option state\n\0"
305: "none\0"
306: "'%s' not defined\n\0"
307: "'%s' is not a command line option\n\0"
308: "ERROR: The %s option must appear %d times\n\0"
309: "error: cannot load options from non-regular file %s\n\0"
310: "%s error: `%s' is not a recognizable number\n\0"
311: "%s error: `%s' is not a recognizable date/time\n\0"
312: "%s error: `%s' is not a recognizable time duration\n\0"
313: " %3s %s\0"
314: "The '-#<number>' option may omit the hash char\n\0"
315: " \0"
316: "one %s%s option allowed\n\0"
317: "All arguments are named options.\n\0"
318: "Write failure to output file\0"
319: " - reading file %s\0"
320: "\n"
321: "please send bug reports to: %s\n\0"
322: "\t\t\t\t- may NOT appear - preset only\n\0"
323: "# preset/initialization file\n"
324: "# %s#\n\0"
325: "\n"
326: "The following option preset mechanisms are supported:\n\0"
327: "prohibits these options:\n\0"
328: "Operands and options may be intermixed. They will be reordered.\n\0"
329: "%s%ld to %ld\0"
330: "%sgreater than or equal to %ld\0"
331: "%sIt must lie in one of the ranges:\n\0"
332: "%sIt must be in the range:\n\0"
333: ", or\n\0"
334: "%s error: %s option value ``%s'' is out of range.\n\0"
335: "%s%ld exactly\0"
336: "%sis scalable with a suffix: k/K/m/M/g/G/t/T\n\0"
337: "%sless than or equal to %ld\0"
338: "The --reset-option has not been configured.\n\0"
339: "ERROR: %s option requires the %s option\n\0"
340: " %3s %-14s %s\0"
341: "requires these options:\n\0"
342: " Arg Option-Name Req? Description\n\0"
343: " Flg Arg Option-Name Req? Description\n\0"
344: "-_^\0"
345: "or you may use a numeric representation. Preceding these with a '!' will\n"
346: "clear the bits, specifying 'none' will clear all bits, and 'all' will set them\n"
347: "all. Multiple entries may be passed as an option argument list.\n\0"
348: "%s\0"
349: " \0"
350: "T/F\0"
351: "\n"
352: "%s\n\n"
353: "%s\0"
354: "Fil\0"
355: "KWd\0"
356: "Mbr\0"
357: "Tim\0"
358: "Cpx\0"
359: "no \0"
360: "Num\0"
361: "opt\0"
362: "YES\0"
363: "Str\0"
364: "\t\t\t\t- \0"
365: "\t\t\t\t-- and \0"
366: "\t\t\t\t%s\n\0"
367: " \0"
368: " \0"
369: "\t\t\t\t- may appear up to %d times\n\0"
370: "The valid \"%s\" option keywords are:\n\0";
371:
372:
373: /*
374: * Now, define (and initialize) the structure that contains
375: * the pointers to all these strings.
376: * Aren't you glad you don't maintain this by hand?
377: */
378: usage_text_t option_usage_text = {
379: 142,
380: eng_zGnuBoolArg, eng_zGnuKeyArg, eng_zGnuFileArg, eng_zGnuKeyLArg,
381: eng_zGnuTimeArg, eng_zGnuNumArg, eng_zGnuStrArg,
382: {
383: usage_txt + 0, usage_txt + 27, usage_txt + 79, usage_txt + 125,
384: usage_txt + 224, usage_txt + 260, usage_txt + 310, usage_txt + 343,
385: usage_txt + 434, usage_txt + 493, usage_txt + 543, usage_txt + 547,
386: usage_txt + 574, usage_txt + 623, usage_txt + 651, usage_txt + 688,
387: usage_txt + 713, usage_txt + 739, usage_txt + 779, usage_txt + 916,
388: usage_txt + 964, usage_txt +1018, usage_txt +1031, usage_txt +1039,
389: usage_txt +1081, usage_txt +1105, usage_txt +1145, usage_txt +1160,
390: usage_txt +1190, usage_txt +1216, usage_txt +1229, usage_txt +1243,
391: usage_txt +1290, usage_txt +1296, usage_txt +1399, usage_txt +1411,
392: usage_txt +1462, usage_txt +1491, usage_txt +1542, usage_txt +1576,
393: usage_txt +1617, usage_txt +1640, usage_txt +1666, usage_txt +1697,
394: usage_txt +1711, usage_txt +1726, usage_txt +1757, usage_txt +1784,
395: usage_txt +1890, usage_txt +1896, usage_txt +1902, usage_txt +1909,
396: usage_txt +1920, usage_txt +1946, usage_txt +1972, usage_txt +1980,
397: usage_txt +2016, usage_txt +2067, usage_txt +2123, usage_txt +2157,
398: usage_txt +2195, usage_txt +2260, usage_txt +2303, usage_txt +2338,
399: usage_txt +2379, usage_txt +2420, usage_txt +2460, usage_txt +2487,
400: usage_txt +2554, usage_txt +2602, usage_txt +2635, usage_txt +2660,
401: usage_txt +2708, usage_txt +2743, usage_txt +2781, usage_txt +2808,
402: usage_txt +2857, usage_txt +2862, usage_txt +2880, usage_txt +2915,
403: usage_txt +2959, usage_txt +3013, usage_txt +3059, usage_txt +3108,
404: usage_txt +3161, usage_txt +3169, usage_txt +3217, usage_txt +3219,
405: usage_txt +3244, usage_txt +3278, usage_txt +3307, usage_txt +3326,
406: usage_txt +3360, usage_txt +3396, usage_txt +3434, usage_txt +3490,
407: usage_txt +3516, usage_txt +3582, usage_txt +3595, usage_txt +3626,
408: usage_txt +3663, usage_txt +3691, usage_txt +3697, usage_txt +3749,
409: usage_txt +3763, usage_txt +3809, usage_txt +3837, usage_txt +3882,
410: usage_txt +3924, usage_txt +3938, usage_txt +3963, usage_txt +4003,
411: usage_txt +4046, usage_txt +4050, usage_txt +4269, usage_txt +4272,
412: usage_txt +4279, usage_txt +4283, usage_txt +4291, usage_txt +4295,
413: usage_txt +4299, usage_txt +4303, usage_txt +4307, usage_txt +4311,
414: usage_txt +4315, usage_txt +4319, usage_txt +4323, usage_txt +4327,
415: usage_txt +4331, usage_txt +4338, usage_txt +4350, usage_txt +4358,
416: usage_txt +4362, usage_txt +4365, usage_txt +4398
417: }
418: };
419:
420: #endif /* DO_TRANSLATIONS */
421: #endif /* AUTOOPTS_USAGE_TXT_H_GUARD */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>