summaryrefslogtreecommitdiff
path: root/editors/awk.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2017-08-22 14:56:12 +0100
committerRon Yorston <rmy@pobox.com>2017-08-22 14:56:12 +0100
commitce9af1cc5ea23f754587448cf35b5120c77bfeef (patch)
tree69e5eaba5e75ab909ed92d5045393471b8ff3c13 /editors/awk.c
parentc170026700eabb10147dd848c45c06995b43a32e (diff)
parente837a0dbbebf4229306df98fe9ee3b9bb30630c4 (diff)
downloadbusybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.tar.gz
busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.tar.bz2
busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'editors/awk.c')
-rw-r--r--editors/awk.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/editors/awk.c b/editors/awk.c
index 56688d72c..2fc7d6102 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -70,7 +70,11 @@
70#endif 70#endif
71 71
72 72
73#define OPTSTR_AWK \ 73/* "+": stop on first non-option:
74 * $ awk 'BEGIN { for(i=1; i<ARGC; ++i) { print i ": " ARGV[i] }}' -argz
75 * 1: -argz
76 */
77#define OPTSTR_AWK "+" \
74 "F:v:*f:*" \ 78 "F:v:*f:*" \
75 IF_FEATURE_AWK_GNU_EXTENSIONS("e:*") \ 79 IF_FEATURE_AWK_GNU_EXTENSIONS("e:*") \
76 "W:" 80 "W:"
@@ -230,7 +234,7 @@ typedef struct tsplitter_s {
230 */ 234 */
231#define TC_LENGTH (1 << 20) 235#define TC_LENGTH (1 << 20)
232#define TC_GETLINE (1 << 21) 236#define TC_GETLINE (1 << 21)
233#define TC_FUNCDECL (1 << 22) /* `function' `func' */ 237#define TC_FUNCDECL (1 << 22) /* 'function' 'func' */
234#define TC_BEGIN (1 << 23) 238#define TC_BEGIN (1 << 23)
235#define TC_END (1 << 24) 239#define TC_END (1 << 24)
236#define TC_EOF (1 << 25) 240#define TC_EOF (1 << 25)