usage-txt.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  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 Wednesday December 31, 2008 at 07:07:15 PM PST
  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 128
  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[ 121 ];
  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 zAll (option_usage_text.apz_str[ 5])
  62. #define zAlt (option_usage_text.apz_str[ 6])
  63. #define zAmbigKey (option_usage_text.apz_str[ 7])
  64. #define zAmbigOptStr (option_usage_text.apz_str[ 8])
  65. #define zArgsMust (option_usage_text.apz_str[ 9])
  66. #define zAtMost (option_usage_text.apz_str[ 10])
  67. #define zAuto (option_usage_text.apz_str[ 11])
  68. #define zBadPipe (option_usage_text.apz_str[ 12])
  69. #define zBadVerArg (option_usage_text.apz_str[ 13])
  70. #define zCantFmt (option_usage_text.apz_str[ 14])
  71. #define zCantSave (option_usage_text.apz_str[ 15])
  72. #define zDefaultOpt (option_usage_text.apz_str[ 16])
  73. #define zDis (option_usage_text.apz_str[ 17])
  74. #define zEnab (option_usage_text.apz_str[ 18])
  75. #define zEquiv (option_usage_text.apz_str[ 19])
  76. #define zErrOnly (option_usage_text.apz_str[ 20])
  77. #define zExamineFmt (option_usage_text.apz_str[ 21])
  78. #define zFiveSpaces (option_usage_text.apz_str[ 22])
  79. #define zFlagOkay (option_usage_text.apz_str[ 23])
  80. #define zFmtFmt (option_usage_text.apz_str[ 24])
  81. #define zForkFail (option_usage_text.apz_str[ 25])
  82. #define zFSErrOptLoad (option_usage_text.apz_str[ 26])
  83. #define zFSErrReadFile (option_usage_text.apz_str[ 27])
  84. #define zFSOptError (option_usage_text.apz_str[ 28])
  85. #define zFSOptErrMayExist (option_usage_text.apz_str[ 29])
  86. #define zFSOptErrMustExist (option_usage_text.apz_str[ 30])
  87. #define zFSOptErrNoExist (option_usage_text.apz_str[ 31])
  88. #define zFSOptErrOpen (option_usage_text.apz_str[ 32])
  89. #define zFSOptErrFopen (option_usage_text.apz_str[ 33])
  90. #define zFileCannotExist (option_usage_text.apz_str[ 34])
  91. #define zFileMustExist (option_usage_text.apz_str[ 35])
  92. #define zGenshell (option_usage_text.apz_str[ 36])
  93. #define zGnuBoolArg (option_usage_text.utpz_GnuBoolArg)
  94. #define zGnuBreak (option_usage_text.apz_str[ 37])
  95. #define zGnuKeyArg (option_usage_text.utpz_GnuKeyArg)
  96. #define zGnuFileArg (option_usage_text.utpz_GnuFileArg)
  97. #define zGnuKeyLArg (option_usage_text.utpz_GnuKeyLArg)
  98. #define zGnuTimeArg (option_usage_text.utpz_GnuTimeArg)
  99. #define zGnuNestArg (option_usage_text.apz_str[ 38])
  100. #define zGnuNumArg (option_usage_text.utpz_GnuNumArg)
  101. #define zGnuOptArg (option_usage_text.apz_str[ 39])
  102. #define zGnuOptFmt (option_usage_text.apz_str[ 40])
  103. #define zGnuStrArg (option_usage_text.utpz_GnuStrArg)
  104. #define zIllOptChr (option_usage_text.apz_str[ 41])
  105. #define zIllOptStr (option_usage_text.apz_str[ 42])
  106. #define zIllegal (option_usage_text.apz_str[ 43])
  107. #define zIntRange (option_usage_text.apz_str[ 44])
  108. #define zInvalOptDesc (option_usage_text.apz_str[ 45])
  109. #define zLowerBits (option_usage_text.apz_str[ 46])
  110. #define zMembers (option_usage_text.apz_str[ 47])
  111. #define zMisArg (option_usage_text.apz_str[ 48])
  112. #define zMultiEquiv (option_usage_text.apz_str[ 49])
  113. #define zMust (option_usage_text.apz_str[ 50])
  114. #define zNeedOne (option_usage_text.apz_str[ 51])
  115. #define zNoArg (option_usage_text.apz_str[ 52])
  116. #define zNoArgs (option_usage_text.apz_str[ 53])
  117. #define zNoCreat (option_usage_text.apz_str[ 54])
  118. #define zNoFlags (option_usage_text.apz_str[ 55])
  119. #define zNoKey (option_usage_text.apz_str[ 56])
  120. #define zNoLim (option_usage_text.apz_str[ 57])
  121. #define zNoPreset (option_usage_text.apz_str[ 58])
  122. #define zNoResetArg (option_usage_text.apz_str[ 59])
  123. #define zNoRq_NoShrtTtl (option_usage_text.apz_str[ 60])
  124. #define zNoRq_ShrtTtl (option_usage_text.apz_str[ 61])
  125. #define zNoStat (option_usage_text.apz_str[ 62])
  126. #define zNoState (option_usage_text.apz_str[ 63])
  127. #define zNone (option_usage_text.apz_str[ 64])
  128. #define zNotDef (option_usage_text.apz_str[ 65])
  129. #define zNotEnough (option_usage_text.apz_str[ 66])
  130. #define zNotFile (option_usage_text.apz_str[ 67])
  131. #define zNotNumber (option_usage_text.apz_str[ 68])
  132. #define zNrmOptFmt (option_usage_text.apz_str[ 69])
  133. #define zNumberOpt (option_usage_text.apz_str[ 70])
  134. #define zOneSpace (option_usage_text.apz_str[ 71])
  135. #define zOnlyOne (option_usage_text.apz_str[ 72])
  136. #define zOptsOnly (option_usage_text.apz_str[ 73])
  137. #define zPathFmt (option_usage_text.apz_str[ 74])
  138. #define zPlsSendBugs (option_usage_text.apz_str[ 75])
  139. #define zPreset (option_usage_text.apz_str[ 76])
  140. #define zPresetFile (option_usage_text.apz_str[ 77])
  141. #define zPresetIntro (option_usage_text.apz_str[ 78])
  142. #define zProg (option_usage_text.apz_str[ 79])
  143. #define zProhib (option_usage_text.apz_str[ 80])
  144. #define zReorder (option_usage_text.apz_str[ 81])
  145. #define zRange (option_usage_text.apz_str[ 82])
  146. #define zRangeAbove (option_usage_text.apz_str[ 83])
  147. #define zRangeLie (option_usage_text.apz_str[ 84])
  148. #define zRangeBadLie (option_usage_text.apz_str[ 85])
  149. #define zRangeOnly (option_usage_text.apz_str[ 86])
  150. #define zRangeOr (option_usage_text.apz_str[ 87])
  151. #define zRangeErr (option_usage_text.apz_str[ 88])
  152. #define zRangeExact (option_usage_text.apz_str[ 89])
  153. #define zRangeScaled (option_usage_text.apz_str[ 90])
  154. #define zRangeUpto (option_usage_text.apz_str[ 91])
  155. #define zResetNotConfig (option_usage_text.apz_str[ 92])
  156. #define zReqFmt (option_usage_text.apz_str[ 93])
  157. #define zReqOptFmt (option_usage_text.apz_str[ 94])
  158. #define zReqThese (option_usage_text.apz_str[ 95])
  159. #define zReq_NoShrtTtl (option_usage_text.apz_str[ 96])
  160. #define zReq_ShrtTtl (option_usage_text.apz_str[ 97])
  161. #define zSepChars (option_usage_text.apz_str[ 98])
  162. #define zSetMemberSettings (option_usage_text.apz_str[ 99])
  163. #define zShrtGnuOptFmt (option_usage_text.apz_str[100])
  164. #define zSixSpaces (option_usage_text.apz_str[101])
  165. #define zStdBoolArg (option_usage_text.apz_str[102])
  166. #define zStdBreak (option_usage_text.apz_str[103])
  167. #define zStdFileArg (option_usage_text.apz_str[104])
  168. #define zStdKeyArg (option_usage_text.apz_str[105])
  169. #define zStdKeyLArg (option_usage_text.apz_str[106])
  170. #define zStdTimeArg (option_usage_text.apz_str[107])
  171. #define zStdNestArg (option_usage_text.apz_str[108])
  172. #define zStdNoArg (option_usage_text.apz_str[109])
  173. #define zStdNumArg (option_usage_text.apz_str[110])
  174. #define zStdOptArg (option_usage_text.apz_str[111])
  175. #define zStdReqArg (option_usage_text.apz_str[112])
  176. #define zStdStrArg (option_usage_text.apz_str[113])
  177. #define zTabHyp (option_usage_text.apz_str[114])
  178. #define zTabHypAnd (option_usage_text.apz_str[115])
  179. #define zTabout (option_usage_text.apz_str[116])
  180. #define zThreeSpaces (option_usage_text.apz_str[117])
  181. #define zTwoSpaces (option_usage_text.apz_str[118])
  182. #define zUpTo (option_usage_text.apz_str[119])
  183. #define zValidKeys (option_usage_text.apz_str[120])
  184. /*
  185. * First, set up the strings. Some of these are writable. These are all in
  186. * English. This gets compiled into libopts and is distributed here so that
  187. * xgettext (or equivalents) can extract these strings for translation.
  188. */
  189. static char eng_zGnuBoolArg[] = "=T/F";
  190. static char eng_zGnuKeyArg[] = "=KWd";
  191. static char eng_zGnuFileArg[] = "=file";
  192. static char eng_zGnuKeyLArg[] = "=Mbr";
  193. static char eng_zGnuTimeArg[] = "=Tim";
  194. static char eng_zGnuNumArg[] = "=num";
  195. static char eng_zGnuStrArg[] = "=str";
  196. static char const usage_txt[3927] =
  197. "AutoOpts function called without option descriptor\n\0"
  198. "\tThis exceeds the compiled library version: \0"
  199. "Automated Options Processing Error!\n"
  200. "\t%s called AutoOpts function with structure version %d:%d:%d.\n\0"
  201. "\tThis is less than the minimum library version: \0"
  202. "Automated Options version %s\n"
  203. "\tcopyright (c) 1999-2008 Bruce Korb - all rights reserved\n\0"
  204. "all\0"
  205. "\t\t\t\t- an alternate for %s\n\0"
  206. "%s error: the keyword `%s' is ambiguous for %s\n\0"
  207. "%s: ambiguous option -- %s\n\0"
  208. "%s: Command line arguments required\n\0"
  209. "%d %s%s options allowed\n\0"
  210. "version and help options:\0"
  211. "Error %d (%s) from the pipe(2) syscall\n\0"
  212. "ERROR: version option argument '%c' invalid. Use:\n"
  213. "\t'v' - version only\n"
  214. "\t'c' - version and copyright\n"
  215. "\t'n' - version and copyright notice\n\0"
  216. "ERROR: %s option conflicts with the %s option\n\0"
  217. "%s(optionSaveState): error: cannot allocate %d bytes\n\0"
  218. "\t\t\t\t- default option for unnamed options\n\0"
  219. "\t\t\t\t- disabled as --%s\n\0"
  220. "\t\t\t\t- enabled by default\n\0"
  221. "-equivalence\0"
  222. "ERROR: only \0"
  223. " - examining environment variables named %s_*\n\0"
  224. " \0"
  225. "Options are specified by doubled hyphens and their name\n"
  226. "or by a single hyphen and the flag character.\n\0"
  227. "%%-%ds %%s\n\0"
  228. "fs error %d (%s) on fork - cannot obtain %s usage\n\0"
  229. "File error %d (%s) opening %s for loading options\n\0"
  230. "fs error %d (%s) reading file %s\n\0"
  231. "fs error %d (%s) on %s %s for option %s\n\0"
  232. "stat-ing for directory\0"
  233. "stat-ing for regular file\0"
  234. "stat-ing for non-existant file\0"
  235. "open-ing file\0"
  236. "fopen-ing file\0"
  237. "\t\t\t\t- file must not pre-exist\n\0"
  238. "\t\t\t\t- file must pre-exist\n\0"
  239. "\n"
  240. "= = = = = = = =\n\n"
  241. "This incarnation of genshell will produce\n"
  242. "a shell script to parse the options for %s:\n\n\0"
  243. "\n"
  244. "%s\n\n\0"
  245. "=Cplx\0"
  246. "[=arg]\0"
  247. "--%2$s%1$s\0"
  248. "%s: illegal option -- %c\n\0"
  249. "%s: illegal option -- %s\n\0"
  250. "illegal\0"
  251. " or an integer from %d through %d\n\0"
  252. "AutoOpts ERROR: invalid option descriptor for %s\n\0"
  253. " or an integer mask with any of the lower %d bits set\n\0"
  254. "\t\t\t\t- is a set membership option\n\0"
  255. "%s: option `%s' requires an argument\n\0"
  256. "Equivalenced option '%s' was equivalenced to both\n"
  257. "\t'%s' and '%s'\0"
  258. "\t\t\t\t- must appear between %d and %d times\n\0"
  259. "ERROR: The %s option is required\n\0"
  260. "%s: option `%s' cannot have an argument\n\0"
  261. "%s: Command line arguments not allowed\n\0"
  262. "error %d (%s) creating %s\n\0"
  263. "Options are specified by single or double hyphens and their name.\n\0"
  264. "%s error: `%s' does not match any %s keywords\n\0"
  265. "\t\t\t\t- may appear multiple times\n\0"
  266. "\t\t\t\t- may not be preset\n\0"
  267. "The 'reset-option' option requires an argument\n\0"
  268. " Arg Option-Name Description\n\0"
  269. " Flg Arg Option-Name Description\n\0"
  270. "error %d (%s) stat-ing %s\n\0"
  271. "%s(optionRestore): error: no saved option state\n\0"
  272. "none\0"
  273. "'%s' not defined\n\0"
  274. "ERROR: The %s option must appear %d times\n\0"
  275. "error: cannot load options from non-regular file %s\n\0"
  276. "%s error: `%s' is not a recognizable number\n\0"
  277. " %3s %s\0"
  278. "The '-#<number>' option may omit the hash char\n\0"
  279. " \0"
  280. "one %s%s option allowed\n\0"
  281. "All arguments are named options.\n\0"
  282. " - reading file %s\0"
  283. "\n"
  284. "please send bug reports to: %s\n\0"
  285. "\t\t\t\t- may NOT appear - preset only\n\0"
  286. "# preset/initialization file\n"
  287. "# %s#\n\0"
  288. "\n"
  289. "The following option preset mechanisms are supported:\n\0"
  290. "program\0"
  291. "prohibits these options:\n\0"
  292. "Operands and options may be intermixed. They will be reordered.\n\0"
  293. "%s%ld to %ld\0"
  294. "%sgreater than or equal to %ld\0"
  295. "%sIt must lie in one of the ranges:\n\0"
  296. "%sThis option must lie in one of the ranges:\n\0"
  297. "%sit must be: \0"
  298. ", or\n\0"
  299. "%s error: %s option value ``%s'' is out of range.\n\0"
  300. "%s%ld exactly\0"
  301. "%sis scalable with a suffix: k/K/m/M/g/G/t/T\n\0"
  302. "%sless than or equal to %ld\0"
  303. "The --reset-option has not been configured.\n\0"
  304. "ERROR: %s option requires the %s option\n\0"
  305. " %3s %-14s %s\0"
  306. "requires these options:\n\0"
  307. " Arg Option-Name Req? Description\n\0"
  308. " Flg Arg Option-Name Req? Description\n\0"
  309. "-_^\0"
  310. "or you may use a numeric representation. Preceding these with a '!' will\n"
  311. "clear the bits, specifying 'none' will clear all bits, and 'all' will set them\n"
  312. "all. Multiple entries may be passed as an option argument list.\n\0"
  313. "%s\0"
  314. " \0"
  315. "T/F\0"
  316. "\n"
  317. "%s\n\n"
  318. "%s\0"
  319. "Fil\0"
  320. "KWd\0"
  321. "Mbr\0"
  322. "Tim\0"
  323. "Cpx\0"
  324. "no \0"
  325. "Num\0"
  326. "opt\0"
  327. "YES\0"
  328. "Str\0"
  329. "\t\t\t\t- \0"
  330. "\t\t\t\t-- and \0"
  331. "\t\t\t\t%s\n\0"
  332. " \0"
  333. " \0"
  334. "\t\t\t\t- may appear up to %d times\n\0"
  335. "The valid \"%s\" option keywords are:\n\0";
  336. /*
  337. * Now, define (and initialize) the structure that contains
  338. * the pointers to all these strings.
  339. * Aren't you glad you don't maintain this by hand?
  340. */
  341. usage_text_t option_usage_text = {
  342. 128,
  343. eng_zGnuBoolArg, eng_zGnuKeyArg, eng_zGnuFileArg, eng_zGnuKeyLArg,
  344. eng_zGnuTimeArg, eng_zGnuNumArg, eng_zGnuStrArg,
  345. {
  346. usage_txt + 0, usage_txt + 52, usage_txt + 98, usage_txt + 197,
  347. usage_txt + 247, usage_txt + 335, usage_txt + 339, usage_txt + 366,
  348. usage_txt + 415, usage_txt + 443, usage_txt + 480, usage_txt + 505,
  349. usage_txt + 531, usage_txt + 571, usage_txt + 708, usage_txt + 756,
  350. usage_txt + 810, usage_txt + 852, usage_txt + 876, usage_txt + 902,
  351. usage_txt + 915, usage_txt + 929, usage_txt + 976, usage_txt + 982,
  352. usage_txt +1085, usage_txt +1097, usage_txt +1148, usage_txt +1199,
  353. usage_txt +1233, usage_txt +1274, usage_txt +1297, usage_txt +1323,
  354. usage_txt +1354, usage_txt +1368, usage_txt +1383, usage_txt +1414,
  355. usage_txt +1441, usage_txt +1547, usage_txt +1553, usage_txt +1559,
  356. usage_txt +1566, usage_txt +1577, usage_txt +1603, usage_txt +1629,
  357. usage_txt +1637, usage_txt +1673, usage_txt +1724, usage_txt +1780,
  358. usage_txt +1814, usage_txt +1852, usage_txt +1917, usage_txt +1960,
  359. usage_txt +1995, usage_txt +2036, usage_txt +2076, usage_txt +2103,
  360. usage_txt +2170, usage_txt +2218, usage_txt +2251, usage_txt +2276,
  361. usage_txt +2324, usage_txt +2359, usage_txt +2397, usage_txt +2424,
  362. usage_txt +2473, usage_txt +2478, usage_txt +2496, usage_txt +2540,
  363. usage_txt +2594, usage_txt +2640, usage_txt +2648, usage_txt +2696,
  364. usage_txt +2698, usage_txt +2723, usage_txt +2757, usage_txt +2776,
  365. usage_txt +2810, usage_txt +2846, usage_txt +2884, usage_txt +2940,
  366. usage_txt +2948, usage_txt +2974, usage_txt +3040, usage_txt +3053,
  367. usage_txt +3084, usage_txt +3121, usage_txt +3167, usage_txt +3183,
  368. usage_txt +3189, usage_txt +3241, usage_txt +3255, usage_txt +3301,
  369. usage_txt +3329, usage_txt +3374, usage_txt +3416, usage_txt +3430,
  370. usage_txt +3455, usage_txt +3495, usage_txt +3538, usage_txt +3542,
  371. usage_txt +3761, usage_txt +3764, usage_txt +3771, usage_txt +3775,
  372. usage_txt +3783, usage_txt +3787, usage_txt +3791, usage_txt +3795,
  373. usage_txt +3799, usage_txt +3803, usage_txt +3807, usage_txt +3811,
  374. usage_txt +3815, usage_txt +3819, usage_txt +3823, usage_txt +3830,
  375. usage_txt +3842, usage_txt +3850, usage_txt +3854, usage_txt +3857,
  376. usage_txt +3890
  377. }
  378. };
  379. #endif /* DO_TRANSLATIONS */
  380. #endif /* AUTOOPTS_USAGE_TXT_H_GUARD */