summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2006-05-31 15:36:20 +0000
committerBernhard Reutner-Fischer2006-05-31 15:36:20 +0000
commitdac033e98c2e552818fca413528d1f6615ef0be8 (patch)
tree3fcdc370df102e9e287475f095445056a82c31bc
parentf9437aaf5b92766260988e508607e193b0cfa29d (diff)
downloadbusybox-dac033e98c2e552818fca413528d1f6615ef0be8.zip
busybox-dac033e98c2e552818fca413528d1f6615ef0be8.tar.gz
ha! a scratch-buffer! ;)
put the isdigit hack into it to help landley out..
-rw-r--r--patches/woot.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/patches/woot.txt b/patches/woot.txt
index fae077e..22b521e 100644
--- a/patches/woot.txt
+++ b/patches/woot.txt
@@ -1 +1,26 @@
Testing to see if I can rename a file without blanking its history.
+
+That'd be dalias' suggestion..
+
+Mine was #define isdigit(a) (a>='0'&&a<='9'), but i forgot to record the
+exact savings..
+ text data bss dec hex filename
+ 864252 10252 645860 1520364 1732ec busybox_old
+ 863714 10244 645892 1519850 1730ea busybox_unstripped
+
+
+Index: include/libbb.h
+===================================================================
+--- include/libbb.h (revision 15244)
++++ include/libbb.h (working copy)
+@@ -531,4 +531,10 @@
+ #include <dmalloc.h>
+ #endif
+
++#if 1
++#include <ctype.h>
++#define _CTYPE_H 1 /* muahahaha */
++#undef isdigit
++#define isdigit(a) ((unsigned)(a)-'0' < 10)
++#endif
+ #endif /* __LIBBUSYBOX_H__ */