usage-txt.h 16 KB

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