From 73561cc75ac31e63bcab4b4ebfaf738e4ca225e6 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 28 Aug 2006 23:31:54 +0000 Subject: - pull from busybox_scratch: r15829:15850 Various fixes, cleanups and shrinkage: saves 952 Bytes: text data bss dec hex filename 1087742 15853 790632 1894227 1ce753 ../busybox/busybox.old 1086790 15853 790632 1893275 1ce39b busybox via: # scripts/bloat-o-meter ../busybox/busybox_unstripped.old busybox_unstripped function old new delta ipcrm_main 756 822 +66 getval - 61 +61 maybe_set_utc - 40 +40 udhcpc_main 2896 2912 +16 md5_hash_block 428 437 +9 opt 8 16 +8 qgravechar 106 110 +4 make_bitmap 292 295 +3 inflate_unzip 2056 2059 +3 add_partition 1412 1414 +2 __parsespent 156 158 +2 qrealloc 41 42 +1 format - 1 +1 catv_main 313 314 +1 watch_main 293 292 -1 varunset 81 80 -1 part 1 - -1 check_if_skip 837 836 -1 start_stop_daemon_main 840 837 -3 create_lost_and_found 175 172 -3 supress_non_delimited_lines 4 - -4 static.l 4 - -4 static.c 5 1 -4 bsd_sum_file 237 233 -4 eval2 338 332 -6 arithmetic_common 166 158 -8 cmpfunc 22 5 -17 cksum_main 294 275 -19 cmp_main 465 439 -26 dd_main 1535 1508 -27 rmmod_main 376 333 -43 cut_file 727 644 -83 ipcs_main 3809 3721 -88 cut_main 722 614 -108 date_main 1443 1263 -180 remove_ids 222 - -222 ------------------------------------------------------------------------------ (add/remove: 3/4 grow/shrink: 11/18 up/down: 217/-853) Total: -636 bytes --- include/libbb.h | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) (limited to 'include/libbb.h') diff --git a/include/libbb.h b/include/libbb.h index 3c563a96f..b94586165 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -60,10 +60,6 @@ #define PATH_MAX 256 #endif -#ifdef DMALLOC -#include -#endif - /* Some useful definitions */ #undef FALSE #define FALSE ((int) 0) @@ -211,7 +207,9 @@ extern int bb_fprintf(FILE * __restrict stream, const char * __restrict format, extern int bb_printf(const char * __restrict format, ...) __attribute__ ((format (printf, 1, 2))); -//#warning rename to xferror_filename? +#if ENABLE_NITPICK +#warning rename to xferror_filename? +#endif extern void xferror(FILE *fp, const char *fn); extern void xferror_stdout(void); extern void xfflush_stdout(void); @@ -265,7 +263,9 @@ extern long bb_xgetlarg_bnd_sfx(const char *arg, int base, extern long bb_xgetlarg10_sfx(const char *arg, const struct suffix_mult *suffixes); -//#warning pitchable now? +#if ENABLE_NITPICK +#warning pitchable now? +#endif extern unsigned long bb_xparse_number(const char *numstr, const struct suffix_mult *suffixes); @@ -330,7 +330,9 @@ char *concat_path_file(const char *path, const char *filename); char *concat_subpath_file(const char *path, const char *filename); char *last_char_is(const char *s, int c); -//#warning yuk! +#if ENABLE_NITPICK +#warning yuk! +#endif char *fgets_str(FILE *file, const char *terminating_string); extern int uncompress(int fd_in, int fd_out); @@ -344,7 +346,9 @@ extern int xconnect(struct sockaddr_in *s_addr); extern unsigned short bb_lookup_port(const char *port, const char *protocol, unsigned short default_port); extern void bb_lookup_host(struct sockaddr_in *s_in, const char *host); -//#warning wrap this? +#if ENABLE_NITPICK +#warning wrap this? +#endif char *dirname (char *path); int bb_make_directory (char *path, long mode, int flags); @@ -456,8 +460,10 @@ extern int bb_default_error_retval; # define FB_0 "/dev/fb0" #endif -//#warning put these in .o files +#if ENABLE_NITPICK +#warning put these in .o files +#endif /* The following devices are the same on devfs and non-devfs systems. */ #define CURRENT_TTY "/dev/tty" #define CONSOLE_DEV "/dev/console" @@ -581,4 +587,8 @@ extern const char BB_BANNER[]; #undef isupper #undef isxdigit +#ifdef DMALLOC +#include +#endif + #endif /* __LIBBUSYBOX_H__ */ -- cgit v1.2.3