diff options
author | Mark Whitley <markw@lineo.com> | 2000-12-05 20:42:48 +0000 |
---|---|---|
committer | Mark Whitley <markw@lineo.com> | 2000-12-05 20:42:48 +0000 |
commit | ab147f608d1215a9208e6d1fe93b6532a707dae4 (patch) | |
tree | f5d539ed3227936085b32e553e4dd0b921f5d402 /busybox.h | |
parent | 26a3adb24490ed4f6b9e8a9a1886846d4f8d90dc (diff) | |
download | busybox-w32-ab147f608d1215a9208e6d1fe93b6532a707dae4.tar.gz busybox-w32-ab147f608d1215a9208e6d1fe93b6532a707dae4.tar.bz2 busybox-w32-ab147f608d1215a9208e6d1fe93b6532a707dae4.zip |
Removed isBlank and isWildCard macros that were totally unused (should anyone
need isBlank, please use isblank() in ctype.h). Converted isDecimal and
isOctal into inline functions. Compiled, tested, worked.
Diffstat (limited to 'busybox.h')
-rw-r--r-- | busybox.h | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -55,11 +55,8 @@ | |||
55 | #define BUF_SIZE 8192 | 55 | #define BUF_SIZE 8192 |
56 | #define EXPAND_ALLOC 1024 | 56 | #define EXPAND_ALLOC 1024 |
57 | 57 | ||
58 | 58 | static inline int isDecimal(ch) { return ((ch >= '0') && (ch <= '9')); } | |
59 | #define isBlank(ch) (((ch) == ' ') || ((ch) == '\t')) | 59 | static inline int isOctal(ch) { return ((ch >= '0') && (ch <= '7')); } |
60 | #define isDecimal(ch) (((ch) >= '0') && ((ch) <= '9')) | ||
61 | #define isOctal(ch) (((ch) >= '0') && ((ch) <= '7')) | ||
62 | #define isWildCard(ch) (((ch) == '*') || ((ch) == '?') || ((ch) == '[')) | ||
63 | 60 | ||
64 | /* Macros for min/max. */ | 61 | /* Macros for min/max. */ |
65 | #ifndef MIN | 62 | #ifndef MIN |