svn commit: trunk/busybox/patches

aldot at busybox.net aldot at busybox.net
Wed May 31 15:36:21 UTC 2006


Author: aldot
Date: 2006-05-31 08:36:20 -0700 (Wed, 31 May 2006)
New Revision: 15249

Log:
ha! a scratch-buffer! ;)
put the isdigit hack into it to help landley out..


Modified:
   trunk/busybox/patches/woot.txt


Changeset:
Modified: trunk/busybox/patches/woot.txt
===================================================================
--- trunk/busybox/patches/woot.txt	2006-05-31 14:12:51 UTC (rev 15248)
+++ trunk/busybox/patches/woot.txt	2006-05-31 15:36:20 UTC (rev 15249)
@@ -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__ */




More information about the busybox-cvs mailing list