aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-27 14:44:18 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-27 14:44:18 +0000
commitf9cc9081205c29917da34460395b6da2dc4c4567 (patch)
tree8dd4e8a4db28561fad1dcaeabee936a3aad7187c /include/libbb.h
parent278809224505ecc8bbef7b9a86982bf35b46e719 (diff)
downloadbusybox-w32-f9cc9081205c29917da34460395b6da2dc4c4567.tar.gz
busybox-w32-f9cc9081205c29917da34460395b6da2dc4c4567.tar.bz2
busybox-w32-f9cc9081205c29917da34460395b6da2dc4c4567.zip
Provide our own isdigit macro. saves more than 400 bytes.
git-svn-id: svn://busybox.net/trunk/busybox@16685 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 63748c85d..baab74878 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -666,7 +666,6 @@ extern const char bb_default_login_shell[];
666#undef isascii 666#undef isascii
667#undef isblank 667#undef isblank
668#undef iscntrl 668#undef iscntrl
669#undef isdigit
670#undef isgraph 669#undef isgraph
671#undef islower 670#undef islower
672#undef isprint 671#undef isprint
@@ -675,6 +674,11 @@ extern const char bb_default_login_shell[];
675#undef isupper 674#undef isupper
676#undef isxdigit 675#undef isxdigit
677 676
677/* This one is more efficient - we save ~400 bytes */
678#undef isdigit
679#define isdigit(a) ((unsigned)((a) - '0') <= 9)
680
681
678#ifdef DMALLOC 682#ifdef DMALLOC
679#include <dmalloc.h> 683#include <dmalloc.h>
680#endif 684#endif