diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-05-12 19:41:47 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-05-12 19:41:47 +0000 |
commit | 7ab9c7ee52db8759d457819f5480378fa3aa97cc (patch) | |
tree | 37ef0fb8b142a4925b866c7caa5207b71b4ecae6 /util-linux/more.c | |
parent | 3d427ac5efd249dc25dd03deb30520335f68911a (diff) | |
download | busybox-w32-7ab9c7ee52db8759d457819f5480378fa3aa97cc.tar.gz busybox-w32-7ab9c7ee52db8759d457819f5480378fa3aa97cc.tar.bz2 busybox-w32-7ab9c7ee52db8759d457819f5480378fa3aa97cc.zip |
Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP
which lets you compile out most of the "--help" output, saving
up to 17k.
Renamed mnc to nc.
-Erik
Diffstat (limited to 'util-linux/more.c')
-rw-r--r-- | util-linux/more.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/util-linux/more.c b/util-linux/more.c index 30d2757cd..50446861e 100644 --- a/util-linux/more.c +++ b/util-linux/more.c | |||
@@ -30,8 +30,15 @@ | |||
30 | #include <fcntl.h> | 30 | #include <fcntl.h> |
31 | #include <signal.h> | 31 | #include <signal.h> |
32 | #include <sys/ioctl.h> | 32 | #include <sys/ioctl.h> |
33 | #define BB_DECLARE_EXTERN | ||
34 | #define bb_need_help | ||
35 | #include "messages.c" | ||
33 | 36 | ||
34 | static const char more_usage[] = "more [file ...]\n"; | 37 | static const char more_usage[] = "more [FILE ...]\n" |
38 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
39 | "\nMore is a filter for viewing FILE one screenful at a time.\n" | ||
40 | #endif | ||
41 | ; | ||
35 | 42 | ||
36 | /* ED: sparc termios is broken: revert back to old termio handling. */ | 43 | /* ED: sparc termios is broken: revert back to old termio handling. */ |
37 | #ifdef BB_FEATURE_USE_TERMIOS | 44 | #ifdef BB_FEATURE_USE_TERMIOS |
@@ -92,7 +99,7 @@ extern int more_main(int argc, char **argv) | |||
92 | argv++; | 99 | argv++; |
93 | 100 | ||
94 | if (argc > 0 | 101 | if (argc > 0 |
95 | && (strcmp(*argv, "--help") == 0 || strcmp(*argv, "-h") == 0)) { | 102 | && (strcmp(*argv, dash_dash_help) == 0 || strcmp(*argv, "-h") == 0)) { |
96 | usage(more_usage); | 103 | usage(more_usage); |
97 | } | 104 | } |
98 | do { | 105 | do { |