usage-txt.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  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 August 8, 2009 at 10:14:43 AM by AutoGen 5.9.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 130
  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. #ifndef AUTOOPTS_USAGE_TXT_H_GUARD
  30. #define AUTOOPTS_USAGE_TXT_H_GUARD 1
  31. #undef cch_t
  32. #define cch_t char const
  33. /*
  34. * One structure to hold all the pointers to all the stringlets.
  35. */
  36. typedef struct {
  37. int field_ct;
  38. char* utpz_GnuBoolArg;
  39. char* utpz_GnuKeyArg;
  40. char* utpz_GnuFileArg;
  41. char* utpz_GnuKeyLArg;
  42. char* utpz_GnuTimeArg;
  43. char* utpz_GnuNumArg;
  44. char* utpz_GnuStrArg;
  45. cch_t* apz_str[ 123 ];
  46. } usage_text_t;
  47. /*
  48. * Declare the global structure with all the pointers to translated
  49. * strings. This is then used by the usage generation procedure.
  50. */
  51. extern usage_text_t option_usage_text;
  52. #if defined(AUTOOPTS_INTERNAL) /* DEFINE ALL THE STRINGS = = = = = */
  53. /*
  54. * Provide a mapping from a short name to fields in this structure.
  55. */
  56. #define zAO_Bad (option_usage_text.apz_str[ 0])
  57. #define zAO_Big (option_usage_text.apz_str[ 1])
  58. #define zAO_Err (option_usage_text.apz_str[ 2])
  59. #define zAO_Sml (option_usage_text.apz_str[ 3])
  60. #define zAO_Ver (option_usage_text.apz_str[ 4])
  61. #define zAO_Woops (option_usage_text.apz_str[ 5])
  62. #define zAll (option_usage_text.apz_str[ 6])
  63. #define zAlt (option_usage_text.apz_str[ 7])
  64. #define zAmbigKey (option_usage_text.apz_str[ 8])
  65. #define zAmbigOptStr (option_usage_text.apz_str[ 9])
  66. #define zArgsMust (option_usage_text.apz_str[ 10])
  67. #define zAtMost (option_usage_text.apz_str[ 11])
  68. #define zAuto (option_usage_text.apz_str[ 12])
  69. #define zBadPipe (option_usage_text.apz_str[ 13])
  70. #define zBadVerArg (option_usage_text.apz_str[ 14])
  71. #define zCantFmt (option_usage_text.apz_str[ 15])
  72. #define zCantSave (option_usage_text.apz_str[ 16])
  73. #define zDefaultOpt (option_usage_text.apz_str[ 17])
  74. #define zDis (option_usage_text.apz_str[ 18])
  75. #define zEnab (option_usage_text.apz_str[ 19])
  76. #define zEquiv (option_usage_text.apz_str[ 20])
  77. #define zErrOnly (option_usage_text.apz_str[ 21])
  78. #define zExamineFmt (option_usage_text.apz_str[ 22])
  79. #define zFiveSpaces (option_usage_text.apz_str[ 23])
  80. #define zFlagOkay (option_usage_text.apz_str[ 24])
  81. #define zFmtFmt (option_usage_text.apz_str[ 25])
  82. #define zForkFail (option_usage_text.apz_str[ 26])
  83. #define zFSErrOptLoad (option_usage_text.apz_str[ 27])
  84. #define zFSErrReadFile (option_usage_text.apz_str[ 28])
  85. #define zFSOptError (option_usage_text.apz_str[ 29])
  86. #define zFSOptErrMayExist (option_usage_text.apz_str[ 30])
  87. #define zFSOptErrMustExist (option_usage_text.apz_str[ 31])
  88. #define zFSOptErrNoExist (option_usage_text.apz_str[ 32])
  89. #define zFSOptErrOpen (option_usage_text.apz_str[ 33])
  90. #define zFSOptErrFopen (option_usage_text.apz_str[ 34])
  91. #define zFileCannotExist (option_usage_text.apz_str[ 35])
  92. #define zFileMustExist (option_usage_text.apz_str[ 36])
  93. #define zGenshell (option_usage_text.apz_str[ 37])
  94. #define zGnuBoolArg (option_usage_text.utpz_GnuBoolArg)
  95. #define zGnuBreak (option_usage_text.apz_str[ 38])
  96. #define zGnuKeyArg (option_usage_text.utpz_GnuKeyArg)
  97. #define zGnuFileArg (option_usage_text.utpz_GnuFileArg)
  98. #define zGnuKeyLArg (option_usage_text.utpz_GnuKeyLArg)
  99. #define zGnuTimeArg (option_usage_text.utpz_GnuTimeArg)
  100. #define zGnuNestArg (option_usage_text.apz_str[ 39])
  101. #define zGnuNumArg (option_usage_text.utpz_GnuNumArg)
  102. #define zGnuOptArg (option_usage_text.apz_str[ 40])
  103. #define zGnuOptFmt (option_usage_text.apz_str[ 41])
  104. #define zGnuStrArg (option_usage_text.utpz_GnuStrArg)
  105. #define zIllOptChr (option_usage_text.apz_str[ 42])
  106. #define zIllOptStr (option_usage_text.apz_str[ 43])
  107. #define zIllegal (option_usage_text.apz_str[ 44])
  108. #define zIntRange (option_usage_text.apz_str[ 45])
  109. #define zInvalOptDesc (option_usage_text.apz_str[ 46])
  110. #define zLowerBits (option_usage_text.apz_str[ 47])
  111. #define zMembers (option_usage_text.apz_str[ 48])
  112. #define zMisArg (option_usage_text.apz_str[ 49])
  113. #define zMultiEquiv (option_usage_text.apz_str[ 50])
  114. #define zMust (option_usage_text.apz_str[ 51])
  115. #define zNeedOne (option_usage_text.apz_str[ 52])
  116. #define zNoArg (option_usage_text.apz_str[ 53])
  117. #define zNoArgs (option_usage_text.apz_str[ 54])
  118. #define zNoCreat (option_usage_text.apz_str[ 55])
  119. #define zNoFlags (option_usage_text.apz_str[ 56])
  120. #define zNoKey (option_usage_text.apz_str[ 57])
  121. #define zNoLim (option_usage_text.apz_str[ 58])
  122. #define zNoPreset (option_usage_text.apz_str[ 59])
  123. #define zNoResetArg (option_usage_text.apz_str[ 60])
  124. #define zNoRq_NoShrtTtl (option_usage_text.apz_str[ 61])
  125. #define zNoRq_ShrtTtl (option_usage_text.apz_str[ 62])
  126. #define zNoStat (option_usage_text.apz_str[ 63])
  127. #define zNoState (option_usage_text.apz_str[ 64])
  128. #define zNone (option_usage_text.apz_str[ 65])
  129. #define zNotDef (option_usage_text.apz_str[ 66])
  130. #define zNotCmdOpt (option_usage_text.apz_str[ 67])
  131. #define zNotEnough (option_usage_text.apz_str[ 68])
  132. #define zNotFile (option_usage_text.apz_str[ 69])
  133. #define zNotNumber (option_usage_text.apz_str[ 70])
  134. #define zNrmOptFmt (option_usage_text.apz_str[ 71])
  135. #define zNumberOpt (option_usage_text.apz_str[ 72])
  136. #define zOneSpace (option_usage_text.apz_str[ 73])
  137. #define zOnlyOne (option_usage_text.apz_str[ 74])
  138. #define zOptsOnly (option_usage_text.apz_str[ 75])
  139. #define zPathFmt (option_usage_text.apz_str[ 76])
  140. #define zPlsSendBugs (option_usage_text.apz_str[ 77])
  141. #define zPreset (option_usage_text.apz_str[ 78])
  142. #define zPresetFile (option_usage_text.apz_str[ 79])
  143. #define zPresetIntro (option_usage_text.apz_str[ 80])
  144. #define zProg (option_usage_text.apz_str[ 81])
  145. #define zProhib (option_usage_text.apz_str[ 82])
  146. #define zReorder (option_usage_text.apz_str[ 83])
  147. #define zRange (option_usage_text.apz_str[ 84])
  148. #define zRangeAbove (option_usage_text.apz_str[ 85])
  149. #define zRangeLie (option_usage_text.apz_str[ 86])
  150. #define zRangeBadLie (option_usage_text.apz_str[ 87])
  151. #define zRangeOnly (option_usage_text.apz_str[ 88])
  152. #define zRangeOr (option_usage_text.apz_str[ 89])
  153. #define zRangeErr (option_usage_text.apz_str[ 90])
  154. #define zRangeExact (option_usage_text.apz_str[ 91])
  155. #define zRangeScaled (option_usage_text.apz_str[ 92])
  156. #define zRangeUpto (option_usage_text.apz_str[ 93])
  157. #define zResetNotConfig (option_usage_text.apz_str[ 94])
  158. #define zReqFmt (option_usage_text.apz_str[ 95])
  159. #define zReqOptFmt (option_usage_text.apz_str[ 96])
  160. #define zReqThese (option_usage_text.apz_str[ 97])
  161. #define zReq_NoShrtTtl (option_usage_text.apz_str[ 98])
  162. #define zReq_ShrtTtl (option_usage_text.apz_str[ 99])
  163. #define zSepChars (option_usage_text.apz_str[100])
  164. #define zSetMemberSettings (option_usage_text.apz_str[101])
  165. #define zShrtGnuOptFmt (option_usage_text.apz_str[102])
  166. #define zSixSpaces (option_usage_text.apz_str[103])
  167. #define zStdBoolArg (option_usage_text.apz_str[104])
  168. #define zStdBreak (option_usage_text.apz_str[105])
  169. #define zStdFileArg (option_usage_text.apz_str[106])
  170. #define zStdKeyArg (option_usage_text.apz_str[107])
  171. #define zStdKeyLArg (option_usage_text.apz_str[108])
  172. #define zStdTimeArg (option_usage_text.apz_str[109])
  173. #define zStdNestArg (option_usage_text.apz_str[110])
  174. #define zStdNoArg (option_usage_text.apz_str[111])
  175. #define zStdNumArg (option_usage_text.apz_str[112])
  176. #define zStdOptArg (option_usage_text.apz_str[113])
  177. #define zStdReqArg (option_usage_text.apz_str[114])
  178. #define zStdStrArg (option_usage_text.apz_str[115])
  179. #define zTabHyp (option_usage_text.apz_str[116])
  180. #define zTabHypAnd (option_usage_text.apz_str[117])
  181. #define zTabout (option_usage_text.apz_str[118])
  182. #define zThreeSpaces (option_usage_text.apz_str[119])
  183. #define zTwoSpaces (option_usage_text.apz_str[120])
  184. #define zUpTo (option_usage_text.apz_str[121])
  185. #define zValidKeys (option_usage_text.apz_str[122])
  186. /*
  187. * First, set up the strings. Some of these are writable. These are all in
  188. * English. This gets compiled into libopts and is distributed here so that
  189. * xgettext (or equivalents) can extract these strings for translation.
  190. */
  191. static char eng_zGnuBoolArg[] = "=T/F";
  192. static char eng_zGnuKeyArg[] = "=KWd";
  193. static char eng_zGnuFileArg[] = "=file";
  194. static char eng_zGnuKeyLArg[] = "=Mbr";
  195. static char eng_zGnuTimeArg[] = "=Tim";
  196. static char eng_zGnuNumArg[] = "=num";
  197. static char eng_zGnuStrArg[] = "=str";
  198. static char const usage_txt[4024] =
  199. "AutoOpts function called without option descriptor\n\0"
  200. "\tThis exceeds the compiled library version: \0"
  201. "Automated Options Processing Error!\n"
  202. "\t%s called AutoOpts function with structure version %d:%d:%d.\n\0"
  203. "\tThis is less than the minimum library version: \0"
  204. "Automated Options version %s\n"
  205. "\tcopyright (c) 1999-2009 by Bruce Korb - all rights reserved\n\0"
  206. "AutoOpts lib error: defaulted to option with optional arg\n\0"
  207. "all\0"
  208. "\t\t\t\t- an alternate for %s\n\0"
  209. "%s error: the keyword `%s' is ambiguous for %s\n\0"
  210. "%s: ambiguous option -- %s\n\0"
  211. "%s: Command line arguments required\n\0"
  212. "%d %s%s options allowed\n\0"
  213. "version and help options:\0"
  214. "Error %d (%s) from the pipe(2) syscall\n\0"
  215. "ERROR: version option argument '%c' invalid. Use:\n"
  216. "\t'v' - version only\n"
  217. "\t'c' - version and copyright\n"
  218. "\t'n' - version and copyright notice\n\0"
  219. "ERROR: %s option conflicts with the %s option\n\0"
  220. "%s(optionSaveState): error: cannot allocate %d bytes\n\0"
  221. "\t\t\t\t- default option for unnamed options\n\0"
  222. "\t\t\t\t- disabled as --%s\n\0"
  223. "\t\t\t\t- enabled by default\n\0"
  224. "-equivalence\0"
  225. "ERROR: only \0"
  226. " - examining environment variables named %s_*\n\0"
  227. " \0"
  228. "Options are specified by doubled hyphens and their name\n"
  229. "or by a single hyphen and the flag character.\n\0"
  230. "%%-%ds %%s\n\0"
  231. "fs error %d (%s) on fork - cannot obtain %s usage\n\0"
  232. "File error %d (%s) opening %s for loading options\n\0"
  233. "fs error %d (%s) reading file %s\n\0"
  234. "fs error %d (%s) on %s %s for option %s\n\0"
  235. "stat-ing for directory\0"
  236. "stat-ing for regular file\0"
  237. "stat-ing for non-existant file\0"
  238. "open-ing file\0"
  239. "fopen-ing file\0"
  240. "\t\t\t\t- file must not pre-exist\n\0"
  241. "\t\t\t\t- file must pre-exist\n\0"
  242. "\n"
  243. "= = = = = = = =\n\n"
  244. "This incarnation of genshell will produce\n"
  245. "a shell script to parse the options for %s:\n\n\0"
  246. "\n"
  247. "%s\n\n\0"
  248. "=Cplx\0"
  249. "[=arg]\0"
  250. "--%2$s%1$s\0"
  251. "%s: illegal option -- %c\n\0"
  252. "%s: illegal option -- %s\n\0"
  253. "illegal\0"
  254. " or an integer from %d through %d\n\0"
  255. "AutoOpts ERROR: invalid option descriptor for %s\n\0"
  256. " or an integer mask with any of the lower %d bits set\n\0"
  257. "\t\t\t\t- is a set membership option\n\0"
  258. "%s: option `%s' requires an argument\n\0"
  259. "Equivalenced option '%s' was equivalenced to both\n"
  260. "\t'%s' and '%s'\0"
  261. "\t\t\t\t- must appear between %d and %d times\n\0"
  262. "ERROR: The %s option is required\n\0"
  263. "%s: option `%s' cannot have an argument\n\0"
  264. "%s: Command line arguments not allowed\n\0"
  265. "error %d (%s) creating %s\n\0"
  266. "Options are specified by single or double hyphens and their name.\n\0"
  267. "%s error: `%s' does not match any %s keywords\n\0"
  268. "\t\t\t\t- may appear multiple times\n\0"
  269. "\t\t\t\t- may not be preset\n\0"
  270. "The 'reset-option' option requires an argument\n\0"
  271. " Arg Option-Name Description\n\0"
  272. " Flg Arg Option-Name Description\n\0"
  273. "error %d (%s) stat-ing %s\n\0"
  274. "%s(optionRestore): error: no saved option state\n\0"
  275. "none\0"
  276. "'%s' not defined\n\0"
  277. "'%s' is not a command line option\n\0"
  278. "ERROR: The %s option must appear %d times\n\0"
  279. "error: cannot load options from non-regular file %s\n\0"
  280. "%s error: `%s' is not a recognizable number\n\0"
  281. " %3s %s\0"
  282. "The '-#<number>' option may omit the hash char\n\0"
  283. " \0"
  284. "one %s%s option allowed\n\0"
  285. "All arguments are named options.\n\0"
  286. " - reading file %s\0"
  287. "\n"
  288. "please send bug reports to: %s\n\0"
  289. "\t\t\t\t- may NOT appear - preset only\n\0"
  290. "# preset/initialization file\n"
  291. "# %s#\n\0"
  292. "\n"
  293. "The following option preset mechanisms are supported:\n\0"
  294. "program\0"
  295. "prohibits these options:\n\0"
  296. "Operands and options may be intermixed. They will be reordered.\n\0"
  297. "%s%ld to %ld\0"
  298. "%sgreater than or equal to %ld\0"
  299. "%sIt must lie in one of the ranges:\n\0"
  300. "%sThis option must lie in one of the ranges:\n\0"
  301. "%sit must be: \0"
  302. ", or\n\0"
  303. "%s error: %s option value ``%s'' is out of range.\n\0"
  304. "%s%ld exactly\0"
  305. "%sis scalable with a suffix: k/K/m/M/g/G/t/T\n\0"
  306. "%sless than or equal to %ld\0"
  307. "The --reset-option has not been configured.\n\0"
  308. "ERROR: %s option requires the %s option\n\0"
  309. " %3s %-14s %s\0"
  310. "requires these options:\n\0"
  311. " Arg Option-Name Req? Description\n\0"
  312. " Flg Arg Option-Name Req? Description\n\0"
  313. "-_^\0"
  314. "or you may use a numeric representation. Preceding these with a '!' will\n"
  315. "clear the bits, specifying 'none' will clear all bits, and 'all' will set them\n"
  316. "all. Multiple entries may be passed as an option argument list.\n\0"
  317. "%s\0"
  318. " \0"
  319. "T/F\0"
  320. "\n"
  321. "%s\n\n"
  322. "%s\0"
  323. "Fil\0"
  324. "KWd\0"
  325. "Mbr\0"
  326. "Tim\0"
  327. "Cpx\0"
  328. "no \0"
  329. "Num\0"
  330. "opt\0"
  331. "YES\0"
  332. "Str\0"
  333. "\t\t\t\t- \0"
  334. "\t\t\t\t-- and \0"
  335. "\t\t\t\t%s\n\0"
  336. " \0"
  337. " \0"
  338. "\t\t\t\t- may appear up to %d times\n\0"
  339. "The valid \"%s\" option keywords are:\n\0";
  340. /*
  341. * Now, define (and initialize) the structure that contains
  342. * the pointers to all these strings.
  343. * Aren't you glad you don't maintain this by hand?
  344. */
  345. usage_text_t option_usage_text = {
  346. 130,
  347. eng_zGnuBoolArg, eng_zGnuKeyArg, eng_zGnuFileArg, eng_zGnuKeyLArg,
  348. eng_zGnuTimeArg, eng_zGnuNumArg, eng_zGnuStrArg,
  349. {
  350. usage_txt + 0, usage_txt + 52, usage_txt + 98, usage_txt + 197,
  351. usage_txt + 247, usage_txt + 338, usage_txt + 397, usage_txt + 401,
  352. usage_txt + 428, usage_txt + 477, usage_txt + 505, usage_txt + 542,
  353. usage_txt + 567, usage_txt + 593, usage_txt + 633, usage_txt + 770,
  354. usage_txt + 818, usage_txt + 872, usage_txt + 914, usage_txt + 938,
  355. usage_txt + 964, usage_txt + 977, usage_txt + 991, usage_txt +1038,
  356. usage_txt +1044, usage_txt +1147, usage_txt +1159, usage_txt +1210,
  357. usage_txt +1261, usage_txt +1295, usage_txt +1336, usage_txt +1359,
  358. usage_txt +1385, usage_txt +1416, usage_txt +1430, usage_txt +1445,
  359. usage_txt +1476, usage_txt +1503, usage_txt +1609, usage_txt +1615,
  360. usage_txt +1621, usage_txt +1628, usage_txt +1639, usage_txt +1665,
  361. usage_txt +1691, usage_txt +1699, usage_txt +1735, usage_txt +1786,
  362. usage_txt +1842, usage_txt +1876, usage_txt +1914, usage_txt +1979,
  363. usage_txt +2022, usage_txt +2057, usage_txt +2098, usage_txt +2138,
  364. usage_txt +2165, usage_txt +2232, usage_txt +2280, usage_txt +2313,
  365. usage_txt +2338, usage_txt +2386, usage_txt +2421, usage_txt +2459,
  366. usage_txt +2486, usage_txt +2535, usage_txt +2540, usage_txt +2558,
  367. usage_txt +2593, usage_txt +2637, usage_txt +2691, usage_txt +2737,
  368. usage_txt +2745, usage_txt +2793, usage_txt +2795, usage_txt +2820,
  369. usage_txt +2854, usage_txt +2873, usage_txt +2907, usage_txt +2943,
  370. usage_txt +2981, usage_txt +3037, usage_txt +3045, usage_txt +3071,
  371. usage_txt +3137, usage_txt +3150, usage_txt +3181, usage_txt +3218,
  372. usage_txt +3264, usage_txt +3280, usage_txt +3286, usage_txt +3338,
  373. usage_txt +3352, usage_txt +3398, usage_txt +3426, usage_txt +3471,
  374. usage_txt +3513, usage_txt +3527, usage_txt +3552, usage_txt +3592,
  375. usage_txt +3635, usage_txt +3639, usage_txt +3858, usage_txt +3861,
  376. usage_txt +3868, usage_txt +3872, usage_txt +3880, usage_txt +3884,
  377. usage_txt +3888, usage_txt +3892, usage_txt +3896, usage_txt +3900,
  378. usage_txt +3904, usage_txt +3908, usage_txt +3912, usage_txt +3916,
  379. usage_txt +3920, usage_txt +3927, usage_txt +3939, usage_txt +3947,
  380. usage_txt +3951, usage_txt +3954, usage_txt +3987
  381. }
  382. };
  383. #endif /* DO_TRANSLATIONS */
  384. #endif /* AUTOOPTS_USAGE_TXT_H_GUARD */