Elliott Hughes | fc0307d | 2016-02-02 15:26:47 -0800 | [diff] [blame] | 1 | /* +++ GENERATED FILE +++ DO NOT EDIT +++ */ |
| 2 | /*- |
Elliott Hughes | a3c3f96 | 2017-04-12 16:52:30 -0700 | [diff] [blame] | 3 | * Copyright (c) 2013, 2014, 2015, 2017 |
Elliott Hughes | fc0307d | 2016-02-02 15:26:47 -0800 | [diff] [blame] | 4 | * mirabilos <m@mirbsd.org> |
| 5 | * |
| 6 | * Provided that these terms and disclaimer and all copyright notices |
| 7 | * are retained or reproduced in an accompanying document, permission |
| 8 | * is granted to deal in this work without restriction, including un- |
| 9 | * limited rights to use, publicly perform, distribute, sell, modify, |
| 10 | * merge, give away, or sublicence. |
| 11 | * |
| 12 | * This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to |
| 13 | * the utmost extent permitted by applicable law, neither express nor |
| 14 | * implied; without malicious intent or gross negligence. In no event |
| 15 | * may a licensor, author or contributor be held liable for indirect, |
| 16 | * direct, other damage, loss, or other issues arising in any way out |
| 17 | * of dealing in the work, even if advised of the possibility of such |
| 18 | * damage or existence of a defect, except proven that it results out |
| 19 | * of said person's immediate fault when using the work as intended. |
| 20 | */ |
| 21 | |
Elliott Hughes | 737fdce | 2014-08-07 12:59:26 -0700 | [diff] [blame] | 22 | #ifndef SHFLAGS_OPTCS |
| 23 | #if defined(SHFLAGS_DEFNS) |
Elliott Hughes | 4708626 | 2019-03-26 12:34:31 -0700 | [diff] [blame] | 24 | __RCSID("$MirOS: src/bin/mksh/sh_flags.opt,v 1.6 2018/08/10 02:53:39 tg Exp $"); |
Elliott Hughes | 737fdce | 2014-08-07 12:59:26 -0700 | [diff] [blame] | 25 | #elif defined(SHFLAGS_ENUMS) |
| 26 | #define FN(sname,cname,flags,ochar) cname, |
| 27 | #define F0(sname,cname,flags,ochar) cname = 0, |
| 28 | #elif defined(SHFLAGS_ITEMS) |
Elliott Hughes | 96b4363 | 2015-07-17 11:39:41 -0700 | [diff] [blame] | 29 | #define FN(sname,cname,flags,ochar) ((const char *)(&shoptione_ ## cname)) + 2, |
Elliott Hughes | 737fdce | 2014-08-07 12:59:26 -0700 | [diff] [blame] | 30 | #endif |
| 31 | #ifndef F0 |
| 32 | #define F0 FN |
| 33 | #endif |
| 34 | F0("allexport", FEXPORT, OF_ANY, 'a') |
| 35 | #if HAVE_NICE |
| 36 | FN("bgnice", FBGNICE, OF_ANY, 0) |
| 37 | #endif |
| 38 | FN("braceexpand", FBRACEEXPAND, OF_ANY, 0) |
Elliott Hughes | a3c3f96 | 2017-04-12 16:52:30 -0700 | [diff] [blame] | 39 | #ifndef MKSH_NO_CMDLINE_EDITING |
Elliott Hughes | 737fdce | 2014-08-07 12:59:26 -0700 | [diff] [blame] | 40 | FN("emacs", FEMACS, OF_ANY, 0) |
| 41 | #endif |
| 42 | FN("errexit", FERREXIT, OF_ANY, 'e') |
Elliott Hughes | a3c3f96 | 2017-04-12 16:52:30 -0700 | [diff] [blame] | 43 | #ifndef MKSH_NO_CMDLINE_EDITING |
Elliott Hughes | 737fdce | 2014-08-07 12:59:26 -0700 | [diff] [blame] | 44 | FN("gmacs", FGMACS, OF_ANY, 0) |
| 45 | #endif |
| 46 | FN("ignoreeof", FIGNOREEOF, OF_ANY, 0) |
| 47 | FN("inherit-xtrace", FXTRACEREC, OF_ANY, 0) |
| 48 | #ifndef SHFLAGS_NOT_CMD |
| 49 | FN("interactive", FTALKING, OF_CMDLINE, 'i') |
| 50 | #endif |
| 51 | FN("keyword", FKEYWORD, OF_ANY, 'k') |
| 52 | #ifndef SHFLAGS_NOT_CMD |
| 53 | FN("login", FLOGIN, OF_CMDLINE, 'l') |
| 54 | #endif |
| 55 | FN("markdirs", FMARKDIRS, OF_ANY, 'X') |
| 56 | #ifndef MKSH_UNEMPLOYED |
| 57 | FN("monitor", FMONITOR, OF_ANY, 'm') |
| 58 | #endif |
| 59 | FN("noclobber", FNOCLOBBER, OF_ANY, 'C') |
| 60 | FN("noexec", FNOEXEC, OF_ANY, 'n') |
| 61 | FN("noglob", FNOGLOB, OF_ANY, 'f') |
| 62 | FN("nohup", FNOHUP, OF_ANY, 0) |
| 63 | FN("nolog", FNOLOG, OF_ANY, 0) |
| 64 | #ifndef MKSH_UNEMPLOYED |
| 65 | FN("notify", FNOTIFY, OF_ANY, 'b') |
| 66 | #endif |
| 67 | FN("nounset", FNOUNSET, OF_ANY, 'u') |
| 68 | FN("physical", FPHYSICAL, OF_ANY, 0) |
| 69 | FN("pipefail", FPIPEFAIL, OF_ANY, 0) |
| 70 | FN("posix", FPOSIX, OF_ANY, 0) |
| 71 | FN("privileged", FPRIVILEGED, OF_ANY, 'p') |
| 72 | #ifndef SHFLAGS_NOT_CMD |
| 73 | FN("restricted", FRESTRICTED, OF_CMDLINE, 'r') |
| 74 | #endif |
| 75 | FN("sh", FSH, OF_ANY, 0) |
| 76 | #ifndef SHFLAGS_NOT_CMD |
| 77 | FN("stdin", FSTDIN, OF_CMDLINE, 's') |
| 78 | #endif |
| 79 | FN("trackall", FTRACKALL, OF_ANY, 'h') |
Elliott Hughes | 4708626 | 2019-03-26 12:34:31 -0700 | [diff] [blame] | 80 | FN("utf8-mode", FUNNYCODE, OF_ANY, 'U') |
Elliott Hughes | 737fdce | 2014-08-07 12:59:26 -0700 | [diff] [blame] | 81 | FN("verbose", FVERBOSE, OF_ANY, 'v') |
Elliott Hughes | a3c3f96 | 2017-04-12 16:52:30 -0700 | [diff] [blame] | 82 | #ifndef MKSH_NO_CMDLINE_EDITING |
Elliott Hughes | 737fdce | 2014-08-07 12:59:26 -0700 | [diff] [blame] | 83 | FN("vi", FVI, OF_ANY, 0) |
| 84 | #endif |
Elliott Hughes | a3c3f96 | 2017-04-12 16:52:30 -0700 | [diff] [blame] | 85 | #ifndef MKSH_NO_CMDLINE_EDITING |
Elliott Hughes | 737fdce | 2014-08-07 12:59:26 -0700 | [diff] [blame] | 86 | FN("vi-esccomplete", FVIESCCOMPLETE, OF_ANY, 0) |
| 87 | #endif |
Elliott Hughes | a3c3f96 | 2017-04-12 16:52:30 -0700 | [diff] [blame] | 88 | #ifndef MKSH_NO_CMDLINE_EDITING |
Elliott Hughes | 737fdce | 2014-08-07 12:59:26 -0700 | [diff] [blame] | 89 | FN("vi-tabcomplete", FVITABCOMPLETE, OF_ANY, 0) |
| 90 | #endif |
Elliott Hughes | a3c3f96 | 2017-04-12 16:52:30 -0700 | [diff] [blame] | 91 | #ifndef MKSH_NO_CMDLINE_EDITING |
Elliott Hughes | 737fdce | 2014-08-07 12:59:26 -0700 | [diff] [blame] | 92 | FN("viraw", FVIRAW, OF_ANY, 0) |
| 93 | #endif |
| 94 | FN("xtrace", FXTRACE, OF_ANY, 'x') |
| 95 | #ifndef SHFLAGS_NOT_CMD |
| 96 | FN("", FCOMMAND, OF_CMDLINE, 'c') |
| 97 | #endif |
| 98 | FN("", FAS_BUILTIN, OF_INTERNAL, 0) |
| 99 | FN("", FTALKING_I, OF_INTERNAL, 0) |
| 100 | #undef F0 |
| 101 | #undef FN |
| 102 | #undef SHFLAGS_DEFNS |
| 103 | #undef SHFLAGS_ENUMS |
| 104 | #undef SHFLAGS_ITEMS |
| 105 | #else |
| 106 | #ifndef SHFLAGS_NOT_SET |
| 107 | "A:" |
| 108 | #endif |
| 109 | "a" |
| 110 | #ifndef MKSH_UNEMPLOYED |
| 111 | "b" |
| 112 | #endif |
| 113 | "C" |
| 114 | #ifndef SHFLAGS_NOT_CMD |
| 115 | "c" |
| 116 | #endif |
| 117 | "e" |
| 118 | "f" |
| 119 | "h" |
| 120 | #ifndef SHFLAGS_NOT_CMD |
| 121 | "i" |
| 122 | #endif |
| 123 | "k" |
| 124 | #ifndef SHFLAGS_NOT_CMD |
| 125 | "l" |
| 126 | #endif |
| 127 | #ifndef MKSH_UNEMPLOYED |
| 128 | "m" |
| 129 | #endif |
| 130 | "n" |
| 131 | #ifndef SHFLAGS_NOT_CMD |
| 132 | "o:" |
| 133 | #endif |
| 134 | #ifndef SHFLAGS_NOT_SET |
| 135 | "o;" |
| 136 | #endif |
| 137 | "p" |
| 138 | #ifndef SHFLAGS_NOT_CMD |
| 139 | "r" |
| 140 | #endif |
| 141 | #ifndef SHFLAGS_NOT_CMD |
| 142 | "s" |
| 143 | #endif |
| 144 | #ifndef SHFLAGS_NOT_SET |
| 145 | "s" |
| 146 | #endif |
| 147 | #ifndef SHFLAGS_NOT_CMD |
| 148 | "T:" |
| 149 | #endif |
| 150 | "U" |
| 151 | "u" |
| 152 | "v" |
| 153 | "X" |
| 154 | "x" |
| 155 | #undef SHFLAGS_OPTCS |
| 156 | #endif |