Provide our own isdigit macro. saves more than 400 bytes.

This commit is contained in:
Denis Vlasenko
2006-11-27 14:44:18 +00:00
parent d686a045c8
commit 459903bd4e
5 changed files with 13 additions and 11 deletions

View File

@ -666,7 +666,6 @@ extern const char bb_default_login_shell[];
#undef isascii
#undef isblank
#undef iscntrl
#undef isdigit
#undef isgraph
#undef islower
#undef isprint
@ -675,6 +674,11 @@ extern const char bb_default_login_shell[];
#undef isupper
#undef isxdigit
/* This one is more efficient - we save ~400 bytes */
#undef isdigit
#define isdigit(a) ((unsigned)((a) - '0') <= 9)
#ifdef DMALLOC
#include <dmalloc.h>
#endif