diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-21 11:09:40 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-21 11:09:40 +0000 |
commit | 5e34ff29bcc870936ab18172f438a34d042d4e03 (patch) | |
tree | a5e7a528f2f916eb883f1161eadceacdf2dca4be /miscutils/less.c | |
parent | 8b814b4a349e2262c0ad25793b05206a14651ebb (diff) | |
download | busybox-w32-5e34ff29bcc870936ab18172f438a34d042d4e03.tar.gz busybox-w32-5e34ff29bcc870936ab18172f438a34d042d4e03.tar.bz2 busybox-w32-5e34ff29bcc870936ab18172f438a34d042d4e03.zip |
*: mass renaming of USE_XXXX to IF_XXXX
and SKIP_XXXX to IF_NOT_XXXX - the second one was especially
badly named. It was not skipping anything!
Diffstat (limited to 'miscutils/less.c')
-rw-r--r-- | miscutils/less.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/miscutils/less.c b/miscutils/less.c index 27855bbe8..702c4a891 100644 --- a/miscutils/less.c +++ b/miscutils/less.c | |||
@@ -145,7 +145,7 @@ struct globals { | |||
145 | current_file = 1; \ | 145 | current_file = 1; \ |
146 | eof_error = 1; \ | 146 | eof_error = 1; \ |
147 | terminated = 1; \ | 147 | terminated = 1; \ |
148 | USE_FEATURE_LESS_REGEXP(wanted_match = -1;) \ | 148 | IF_FEATURE_LESS_REGEXP(wanted_match = -1;) \ |
149 | } while (0) | 149 | } while (0) |
150 | 150 | ||
151 | /* flines[] are lines read from stdin, each in malloc'ed buffer. | 151 | /* flines[] are lines read from stdin, each in malloc'ed buffer. |
@@ -326,7 +326,7 @@ static void read_lines(void) | |||
326 | if (option_mask32 & FLAG_N) | 326 | if (option_mask32 & FLAG_N) |
327 | w -= 8; | 327 | w -= 8; |
328 | 328 | ||
329 | USE_FEATURE_LESS_REGEXP(again0:) | 329 | IF_FEATURE_LESS_REGEXP(again0:) |
330 | 330 | ||
331 | p = current_line = ((char*)xmalloc(w + 4)) + 4; | 331 | p = current_line = ((char*)xmalloc(w + 4)) + 4; |
332 | max_fline += last_terminated; | 332 | max_fline += last_terminated; |
@@ -1509,7 +1509,7 @@ int less_main(int argc, char **argv) | |||
1509 | /* TODO: -x: do not interpret backspace, -xx: tab also */ | 1509 | /* TODO: -x: do not interpret backspace, -xx: tab also */ |
1510 | /* -xxx: newline also */ | 1510 | /* -xxx: newline also */ |
1511 | /* -w N: assume width N (-xxx -w 32: hex viewer of sorts) */ | 1511 | /* -w N: assume width N (-xxx -w 32: hex viewer of sorts) */ |
1512 | getopt32(argv, "EMmN~I" USE_FEATURE_LESS_DASHCMD("S")); | 1512 | getopt32(argv, "EMmN~I" IF_FEATURE_LESS_DASHCMD("S")); |
1513 | argc -= optind; | 1513 | argc -= optind; |
1514 | argv += optind; | 1514 | argv += optind; |
1515 | num_files = argc; | 1515 | num_files = argc; |