usage-txt.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  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 Saturday May 5, 2007 at 12:02:33 PM PDT
  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 113
  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
  17. * modify it under the terms of the GNU Lesser General Public
  18. * License as published by the Free Software Foundation; either
  19. * version 2.1 of the License, or (at your option) any later version.
  20. *
  21. * AutoOpts is distributed in the hope that it will be useful,
  22. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  24. * Lesser General Public License for more details.
  25. *
  26. * You should have received a copy of the GNU Lesser General Public
  27. * License along with AutoOpts. If not, write to:
  28. * The Free Software Foundation, Inc.,
  29. * 51 Franklin Street, Fifth Floor
  30. * Boston, MA 02110-1301, USA.
  31. */
  32. #ifndef AUTOOPTS_USAGE_TXT_H_GUARD
  33. #define AUTOOPTS_USAGE_TXT_H_GUARD
  34. #undef cch_t
  35. #define cch_t char const
  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_GnuKeyLArg;
  44. char* utpz_GnuNumArg;
  45. char* utpz_GnuStrArg;
  46. cch_t* apz_str[ 108 ];
  47. } usage_text_t;
  48. /*
  49. * Declare the global structure with all the pointers to translated
  50. * strings. This is then used by the usage generation procedure.
  51. */
  52. extern usage_text_t option_usage_text;
  53. #if defined(AUTOOPTS_INTERNAL) /* DEFINE ALL THE STRINGS = = = = = */
  54. /*
  55. * Provide a mapping from a short name to fields in this structure.
  56. */
  57. #define zAO_Bad (option_usage_text.apz_str[ 0])
  58. #define zAO_Big (option_usage_text.apz_str[ 1])
  59. #define zAO_Err (option_usage_text.apz_str[ 2])
  60. #define zAO_Sml (option_usage_text.apz_str[ 3])
  61. #define zAll (option_usage_text.apz_str[ 4])
  62. #define zAlt (option_usage_text.apz_str[ 5])
  63. #define zAmbigKey (option_usage_text.apz_str[ 6])
  64. #define zAmbiguous (option_usage_text.apz_str[ 7])
  65. #define zArgsMust (option_usage_text.apz_str[ 8])
  66. #define zAtMost (option_usage_text.apz_str[ 9])
  67. #define zAuto (option_usage_text.apz_str[ 10])
  68. #define zBadPipe (option_usage_text.apz_str[ 11])
  69. #define zBadVerArg (option_usage_text.apz_str[ 12])
  70. #define zCantFmt (option_usage_text.apz_str[ 13])
  71. #define zCantSave (option_usage_text.apz_str[ 14])
  72. #define zDefaultOpt (option_usage_text.apz_str[ 15])
  73. #define zDis (option_usage_text.apz_str[ 16])
  74. #define zEnab (option_usage_text.apz_str[ 17])
  75. #define zEquiv (option_usage_text.apz_str[ 18])
  76. #define zErrOnly (option_usage_text.apz_str[ 19])
  77. #define zExamineFmt (option_usage_text.apz_str[ 20])
  78. #define zFiveSpaces (option_usage_text.apz_str[ 21])
  79. #define zFlagOkay (option_usage_text.apz_str[ 22])
  80. #define zFmtFmt (option_usage_text.apz_str[ 23])
  81. #define zForkFail (option_usage_text.apz_str[ 24])
  82. #define zFSErrOptLoad (option_usage_text.apz_str[ 25])
  83. #define zFSErrReadFile (option_usage_text.apz_str[ 26])
  84. #define zGenshell (option_usage_text.apz_str[ 27])
  85. #define zGnuBoolArg (option_usage_text.utpz_GnuBoolArg)
  86. #define zGnuBreak (option_usage_text.apz_str[ 28])
  87. #define zGnuKeyArg (option_usage_text.utpz_GnuKeyArg)
  88. #define zGnuKeyLArg (option_usage_text.utpz_GnuKeyLArg)
  89. #define zGnuNestArg (option_usage_text.apz_str[ 29])
  90. #define zGnuNumArg (option_usage_text.utpz_GnuNumArg)
  91. #define zGnuOptArg (option_usage_text.apz_str[ 30])
  92. #define zGnuOptFmt (option_usage_text.apz_str[ 31])
  93. #define zGnuStrArg (option_usage_text.utpz_GnuStrArg)
  94. #define zIllOptChr (option_usage_text.apz_str[ 32])
  95. #define zIllOptStr (option_usage_text.apz_str[ 33])
  96. #define zIllegal (option_usage_text.apz_str[ 34])
  97. #define zInvalOptDesc (option_usage_text.apz_str[ 35])
  98. #define zKeyWords (option_usage_text.apz_str[ 36])
  99. #define zLoadCooked (option_usage_text.apz_str[ 37])
  100. #define zLoadKeep (option_usage_text.apz_str[ 38])
  101. #define zLoadType (option_usage_text.apz_str[ 39])
  102. #define zLoadUncooked (option_usage_text.apz_str[ 40])
  103. #define zLtypeInteger (option_usage_text.apz_str[ 41])
  104. #define zLtypeNest (option_usage_text.apz_str[ 42])
  105. #define zLtypeString (option_usage_text.apz_str[ 43])
  106. #define zLtypeBool (option_usage_text.apz_str[ 44])
  107. #define zLtypeKeyword (option_usage_text.apz_str[ 45])
  108. #define zLtypeSetMembership (option_usage_text.apz_str[ 46])
  109. #define zMembers (option_usage_text.apz_str[ 47])
  110. #define zMisArg (option_usage_text.apz_str[ 48])
  111. #define zMultiEquiv (option_usage_text.apz_str[ 49])
  112. #define zMust (option_usage_text.apz_str[ 50])
  113. #define zNeedOne (option_usage_text.apz_str[ 51])
  114. #define zNoArg (option_usage_text.apz_str[ 52])
  115. #define zNoArgs (option_usage_text.apz_str[ 53])
  116. #define zNoCreat (option_usage_text.apz_str[ 54])
  117. #define zNoFlags (option_usage_text.apz_str[ 55])
  118. #define zNoKey (option_usage_text.apz_str[ 56])
  119. #define zNoLim (option_usage_text.apz_str[ 57])
  120. #define zNoPreset (option_usage_text.apz_str[ 58])
  121. #define zNoRq_NoShrtTtl (option_usage_text.apz_str[ 59])
  122. #define zNoRq_ShrtTtl (option_usage_text.apz_str[ 60])
  123. #define zNoStat (option_usage_text.apz_str[ 61])
  124. #define zNoState (option_usage_text.apz_str[ 62])
  125. #define zNone (option_usage_text.apz_str[ 63])
  126. #define zNotDef (option_usage_text.apz_str[ 64])
  127. #define zNotEnough (option_usage_text.apz_str[ 65])
  128. #define zNotFile (option_usage_text.apz_str[ 66])
  129. #define zNotNumber (option_usage_text.apz_str[ 67])
  130. #define zNrmOptFmt (option_usage_text.apz_str[ 68])
  131. #define zNumberOpt (option_usage_text.apz_str[ 69])
  132. #define zOneSpace (option_usage_text.apz_str[ 70])
  133. #define zOnlyOne (option_usage_text.apz_str[ 71])
  134. #define zOptsOnly (option_usage_text.apz_str[ 72])
  135. #define zPathFmt (option_usage_text.apz_str[ 73])
  136. #define zPlsSendBugs (option_usage_text.apz_str[ 74])
  137. #define zPreset (option_usage_text.apz_str[ 75])
  138. #define zPresetFile (option_usage_text.apz_str[ 76])
  139. #define zPresetIntro (option_usage_text.apz_str[ 77])
  140. #define zProg (option_usage_text.apz_str[ 78])
  141. #define zProhib (option_usage_text.apz_str[ 79])
  142. #define zReorder (option_usage_text.apz_str[ 80])
  143. #define zReqFmt (option_usage_text.apz_str[ 81])
  144. #define zReqOptFmt (option_usage_text.apz_str[ 82])
  145. #define zReqThese (option_usage_text.apz_str[ 83])
  146. #define zReq_NoShrtTtl (option_usage_text.apz_str[ 84])
  147. #define zReq_ShrtTtl (option_usage_text.apz_str[ 85])
  148. #define zSepChars (option_usage_text.apz_str[ 86])
  149. #define zSetMembers (option_usage_text.apz_str[ 87])
  150. #define zSetMemberSettings (option_usage_text.apz_str[ 88])
  151. #define zShrtGnuOptFmt (option_usage_text.apz_str[ 89])
  152. #define zSixSpaces (option_usage_text.apz_str[ 90])
  153. #define zStdBoolArg (option_usage_text.apz_str[ 91])
  154. #define zStdBreak (option_usage_text.apz_str[ 92])
  155. #define zStdKeyArg (option_usage_text.apz_str[ 93])
  156. #define zStdKeyLArg (option_usage_text.apz_str[ 94])
  157. #define zStdNestArg (option_usage_text.apz_str[ 95])
  158. #define zStdNoArg (option_usage_text.apz_str[ 96])
  159. #define zStdNumArg (option_usage_text.apz_str[ 97])
  160. #define zStdOptArg (option_usage_text.apz_str[ 98])
  161. #define zStdReqArg (option_usage_text.apz_str[ 99])
  162. #define zStdStrArg (option_usage_text.apz_str[100])
  163. #define zTabHyp (option_usage_text.apz_str[101])
  164. #define zTabHypAnd (option_usage_text.apz_str[102])
  165. #define zTabout (option_usage_text.apz_str[103])
  166. #define zThreeSpaces (option_usage_text.apz_str[104])
  167. #define zTwoSpaces (option_usage_text.apz_str[105])
  168. #define zUpTo (option_usage_text.apz_str[106])
  169. #define zValidKeys (option_usage_text.apz_str[107])
  170. /*
  171. * First, set up the strings. Some of these are writable. These are all in
  172. * English. This gets compiled into libopts and is distributed here so that
  173. * xgettext (or equivalents) can extract these strings for translation.
  174. */
  175. static char eng_zGnuBoolArg[] = "=T/F";
  176. static char eng_zGnuKeyArg[] = "=KWd";
  177. static char eng_zGnuKeyLArg[] = "=Mbr";
  178. static char eng_zGnuNumArg[] = "=num";
  179. static char eng_zGnuStrArg[] = "=str";
  180. static char const usage_txt[3208] =
  181. "AutoOpts function called without option descriptor\n\0"
  182. "\tThis exceeds the compiled library version: \0"
  183. "Automated Options Processing Error!\n"
  184. "\t%s called AutoOpts function with structure version %d:%d:%d.\n\0"
  185. "\tThis is less than the minimum library version: \0"
  186. "all\0"
  187. "\t\t\t\t- an alternate for %s\n\0"
  188. "%s error: the keyword `%s' is ambiguous for %s\n\0"
  189. "ambiguous\0"
  190. "%s: Command line arguments required\n\0"
  191. "%d %s%s options allowed\n\0"
  192. "version and help options:\0"
  193. "Error %d (%s) from the pipe(2) syscall\n\0"
  194. "ERROR: version option argument '%c' invalid. Use:\n"
  195. "\t'v' - version only\n"
  196. "\t'c' - version and copyright\n"
  197. "\t'n' - version and copyright notice\n\0"
  198. "ERROR: %s option conflicts with the %s option\n\0"
  199. "%s(optionSaveState): error: cannot allocate %d bytes\n\0"
  200. "\t\t\t\t- default option for unnamed options\n\0"
  201. "\t\t\t\t- disabled as --%s\n\0"
  202. "\t\t\t\t- enabled by default\n\0"
  203. "-equivalence\0"
  204. "ERROR: only \0"
  205. " - examining environment variables named %s_*\n\0"
  206. " \0"
  207. "Options are specified by doubled hyphens and their name\n"
  208. "or by a single hyphen and the flag character.\n\0"
  209. "%%-%ds %%s\n\0"
  210. "fs error %d (%s) on fork - cannot obtain %s usage\n\0"
  211. "File error %d (%s) opening %s for loading options\n\0"
  212. "fs error %d (%s) reading file %s\n\0"
  213. "\n"
  214. "= = = = = = = =\n\n"
  215. "This incarnation of genshell will produce\n"
  216. "a shell script to parse the options for %s:\n\n\0"
  217. "\n"
  218. "%s\n\n\0"
  219. "=Cplx\0"
  220. "[=arg]\0"
  221. "--%2$s%1$s\0"
  222. "%s: illegal option -- %c\n\0"
  223. "%s: %s option -- %s\n\0"
  224. "illegal\0"
  225. "AutoOpts ERROR: invalid option descriptor for %s\n\0"
  226. "words=\0"
  227. "cooked\0"
  228. "keep\0"
  229. "type=\0"
  230. "uncooked\0"
  231. "integer\0"
  232. "nested\0"
  233. "string\0"
  234. "bool\0"
  235. "keyword\0"
  236. "set\0"
  237. "\t\t\t\t- is a set membership option\n\0"
  238. "%s: option `%s' requires an argument\n\0"
  239. "Equivalenced option '%s' was equivalenced to both\n"
  240. "\t'%s' and '%s'\0"
  241. "\t\t\t\t- must appear between %d and %d times\n\0"
  242. "ERROR: The %s option is required\n\0"
  243. "%s: option `%s' cannot have an argument\n\0"
  244. "%s: Command line arguments not allowed\n\0"
  245. "error %d (%s) creating %s\n\0"
  246. "Options are specified by single or double hyphens and their name.\n\0"
  247. "%s error: `%s' does not match any %s keywords\n\0"
  248. "\t\t\t\t- may appear multiple times\n\0"
  249. "\t\t\t\t- may not be preset\n\0"
  250. " Arg Option-Name Description\n\0"
  251. " Flg Arg Option-Name Description\n\0"
  252. "error %d (%s) stat-ing %s\n\0"
  253. "%s(optionRestore): error: no saved option state\n\0"
  254. "none\0"
  255. "'%s' not defined\n\0"
  256. "ERROR: The %s option must appear %d times\n\0"
  257. "error: cannot load options from non-regular file %s\n\0"
  258. "%s error: `%s' is not a recognizable number\n\0"
  259. " %3s %s\0"
  260. "The '-#<number>' option may omit the hash char\n\0"
  261. " \0"
  262. "one %s%s option allowed\n\0"
  263. "All arguments are named options.\n\0"
  264. " - reading file %s\0"
  265. "\n"
  266. "please send bug reports to: %s\n\0"
  267. "\t\t\t\t- may NOT appear - preset only\n\0"
  268. "# preset/initialization file\n"
  269. "# %s#\n\0"
  270. "\n"
  271. "The following option preset mechanisms are supported:\n\0"
  272. "program\0"
  273. "prohibits these options:\n\0"
  274. "Operands and options may be intermixed. They will be reordered.\n\0"
  275. "ERROR: %s option requires the %s option\n\0"
  276. " %3s %-14s %s\0"
  277. "requires these options:\n\0"
  278. " Arg Option-Name Req? Description\n\0"
  279. " Flg Arg Option-Name Req? Description\n\0"
  280. "-_^\0"
  281. "members=\0"
  282. "or you may use a numeric representation. Preceding these with a '!' will\n"
  283. "clear the bits, specifying 'none' will clear all bits, and 'all' will set them\n"
  284. "all. Multiple entries may be passed as an option argument list.\n\0"
  285. "%s\0"
  286. " \0"
  287. "T/F\0"
  288. "\n"
  289. "%s\n\n"
  290. "%s\0"
  291. "KWd\0"
  292. "Mbr\0"
  293. "Cpx\0"
  294. "no \0"
  295. "Num\0"
  296. "opt\0"
  297. "YES\0"
  298. "Str\0"
  299. "\t\t\t\t- \0"
  300. "\t\t\t\t-- and \0"
  301. "\t\t\t\t%s\n\0"
  302. " \0"
  303. " \0"
  304. "\t\t\t\t- may appear up to %d times\n\0"
  305. "The valid \"%s\" option keywords are:\n\0";
  306. /*
  307. * Now, define (and initialize) the structure that contains
  308. * the pointers to all these strings.
  309. * Aren't you glad you don't maintain this by hand?
  310. */
  311. usage_text_t option_usage_text = {
  312. 113,
  313. eng_zGnuBoolArg, eng_zGnuKeyArg, eng_zGnuKeyLArg, eng_zGnuNumArg,
  314. eng_zGnuStrArg,
  315. {
  316. usage_txt + 0, usage_txt + 52, usage_txt + 98, usage_txt + 197,
  317. usage_txt + 247, usage_txt + 251, usage_txt + 278, usage_txt + 327,
  318. usage_txt + 337, usage_txt + 374, usage_txt + 399, usage_txt + 425,
  319. usage_txt + 465, usage_txt + 602, usage_txt + 650, usage_txt + 704,
  320. usage_txt + 746, usage_txt + 770, usage_txt + 796, usage_txt + 809,
  321. usage_txt + 823, usage_txt + 870, usage_txt + 876, usage_txt + 979,
  322. usage_txt + 991, usage_txt +1042, usage_txt +1093, usage_txt +1127,
  323. usage_txt +1233, usage_txt +1239, usage_txt +1245, usage_txt +1252,
  324. usage_txt +1263, usage_txt +1289, usage_txt +1310, usage_txt +1318,
  325. usage_txt +1369, usage_txt +1376, usage_txt +1383, usage_txt +1388,
  326. usage_txt +1394, usage_txt +1403, usage_txt +1411, usage_txt +1418,
  327. usage_txt +1425, usage_txt +1430, usage_txt +1438, usage_txt +1442,
  328. usage_txt +1476, usage_txt +1514, usage_txt +1579, usage_txt +1622,
  329. usage_txt +1657, usage_txt +1698, usage_txt +1738, usage_txt +1765,
  330. usage_txt +1832, usage_txt +1880, usage_txt +1913, usage_txt +1938,
  331. usage_txt +1973, usage_txt +2011, usage_txt +2038, usage_txt +2087,
  332. usage_txt +2092, usage_txt +2110, usage_txt +2154, usage_txt +2208,
  333. usage_txt +2254, usage_txt +2262, usage_txt +2310, usage_txt +2312,
  334. usage_txt +2337, usage_txt +2371, usage_txt +2390, usage_txt +2424,
  335. usage_txt +2460, usage_txt +2498, usage_txt +2554, usage_txt +2562,
  336. usage_txt +2588, usage_txt +2654, usage_txt +2696, usage_txt +2710,
  337. usage_txt +2735, usage_txt +2775, usage_txt +2818, usage_txt +2822,
  338. usage_txt +2831, usage_txt +3050, usage_txt +3053, usage_txt +3060,
  339. usage_txt +3064, usage_txt +3072, usage_txt +3076, usage_txt +3080,
  340. usage_txt +3084, usage_txt +3088, usage_txt +3092, usage_txt +3096,
  341. usage_txt +3100, usage_txt +3104, usage_txt +3111, usage_txt +3123,
  342. usage_txt +3131, usage_txt +3135, usage_txt +3138, usage_txt +3171
  343. }
  344. };
  345. #endif /* DO_TRANSLATIONS */
  346. #endif /* AUTOOPTS_USAGE_TXT_H_GUARD */