From 7ab9c7ee52db8759d457819f5480378fa3aa97cc Mon Sep 17 00:00:00 2001 From: Erik Andersen Date: Fri, 12 May 2000 19:41:47 +0000 Subject: 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 --- console-tools/loadacm.c | 7 +++++-- console-tools/loadfont.c | 7 +++++-- console-tools/loadkmap.c | 7 +++++-- 3 files changed, 15 insertions(+), 6 deletions(-) (limited to 'console-tools') diff --git a/console-tools/loadacm.c b/console-tools/loadacm.c index 8f69234..cca5406 100644 --- a/console-tools/loadacm.c +++ b/console-tools/loadacm.c @@ -22,8 +22,11 @@ #include #include -static const char loadacm_usage[] = "loadacm\n\n" - "Loads an acm from standard input.\n"; +static const char loadacm_usage[] = "loadacm\n" +#ifndef BB_FEATURE_TRIVIAL_HELP + "\nLoads an acm from standard input.\n" +#endif + ; typedef unsigned short unicode; diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c index 5e1f04d..7eaf40e 100644 --- a/console-tools/loadfont.c +++ b/console-tools/loadfont.c @@ -30,8 +30,11 @@ #define PSF_MAXMODE 0x03 #define PSF_SEPARATOR 0xFFFF -static const char loadfont_usage[] = "loadfont\n\n" - "Loads a console font from standard input.\n"; +static const char loadfont_usage[] = "loadfont\n" +#ifndef BB_FEATURE_TRIVIAL_HELP + "Loads a console font from standard input.\n" +#endif + ; struct psf_header { unsigned char magic1, magic2; /* Magic number */ diff --git a/console-tools/loadkmap.c b/console-tools/loadkmap.c index 75e52e1..99efc51 100644 --- a/console-tools/loadkmap.c +++ b/console-tools/loadkmap.c @@ -29,8 +29,11 @@ #include -static const char loadkmap_usage[] = "loadkmap\n\n" - "Loads a binary keyboard translation table from standard input.\n"; +static const char loadkmap_usage[] = "loadkmap\n" +#ifndef BB_FEATURE_TRIVIAL_HELP + "Loads a binary keyboard translation table from standard input.\n" +#endif + ; int loadkmap_main(int argc, char **argv) -- cgit v1.1