diff options
author | Mark Whitley <markw@lineo.com> | 2001-03-08 19:31:12 +0000 |
---|---|---|
committer | Mark Whitley <markw@lineo.com> | 2001-03-08 19:31:12 +0000 |
commit | 7e5291f111733edce3f9cb475af7938c8657f30d (patch) | |
tree | f624bdb0920bee5409383782e1a6a750cc91d6d3 | |
parent | 32f8c170b097fc89f1cbf970846ec3da1a06b20d (diff) | |
download | busybox-w32-7e5291f111733edce3f9cb475af7938c8657f30d.tar.gz busybox-w32-7e5291f111733edce3f9cb475af7938c8657f30d.tar.bz2 busybox-w32-7e5291f111733edce3f9cb475af7938c8657f30d.zip |
Whitespace / formatting / bracket cleanup.
-rw-r--r-- | cmdedit.c | 12 | ||||
-rw-r--r-- | shell/cmdedit.c | 12 |
2 files changed, 14 insertions, 10 deletions
@@ -1007,12 +1007,14 @@ static int find_match(char *matchBuf, int *len_with_quotes) | |||
1007 | /* skip first not quoted '\'' or '"' */ | 1007 | /* skip first not quoted '\'' or '"' */ |
1008 | for (i = 0; int_buf[i] == '\'' || int_buf[i] == '"'; i++); | 1008 | for (i = 0; int_buf[i] == '\'' || int_buf[i] == '"'; i++); |
1009 | /* collapse quote or unquote // or /~ */ | 1009 | /* collapse quote or unquote // or /~ */ |
1010 | while ((int_buf[i] & ~QUOT) == '/' && ( | 1010 | while ((int_buf[i] & ~QUOT) == '/' && |
1011 | (int_buf[i + 1] & ~QUOT) == '/' | 1011 | ((int_buf[i + 1] & ~QUOT) == '/' |
1012 | || (int_buf[i + 1] & ~QUOT) == | 1012 | || (int_buf[i + 1] & ~QUOT) == '~')) { |
1013 | '~')) i++; | 1013 | i++; |
1014 | if (i) | 1014 | } |
1015 | if (i) { | ||
1015 | collapse_pos(0, i); | 1016 | collapse_pos(0, i); |
1017 | } | ||
1016 | 1018 | ||
1017 | /* set only match and destroy quotes */ | 1019 | /* set only match and destroy quotes */ |
1018 | j = 0; | 1020 | j = 0; |
diff --git a/shell/cmdedit.c b/shell/cmdedit.c index 993e83b21..272d22fc0 100644 --- a/shell/cmdedit.c +++ b/shell/cmdedit.c | |||
@@ -1007,12 +1007,14 @@ static int find_match(char *matchBuf, int *len_with_quotes) | |||
1007 | /* skip first not quoted '\'' or '"' */ | 1007 | /* skip first not quoted '\'' or '"' */ |
1008 | for (i = 0; int_buf[i] == '\'' || int_buf[i] == '"'; i++); | 1008 | for (i = 0; int_buf[i] == '\'' || int_buf[i] == '"'; i++); |
1009 | /* collapse quote or unquote // or /~ */ | 1009 | /* collapse quote or unquote // or /~ */ |
1010 | while ((int_buf[i] & ~QUOT) == '/' && ( | 1010 | while ((int_buf[i] & ~QUOT) == '/' && |
1011 | (int_buf[i + 1] & ~QUOT) == '/' | 1011 | ((int_buf[i + 1] & ~QUOT) == '/' |
1012 | || (int_buf[i + 1] & ~QUOT) == | 1012 | || (int_buf[i + 1] & ~QUOT) == '~')) { |
1013 | '~')) i++; | 1013 | i++; |
1014 | if (i) | 1014 | } |
1015 | if (i) { | ||
1015 | collapse_pos(0, i); | 1016 | collapse_pos(0, i); |
1017 | } | ||
1016 | 1018 | ||
1017 | /* set only match and destroy quotes */ | 1019 | /* set only match and destroy quotes */ |
1018 | j = 0; | 1020 | j = 0; |