diff options
author | Mark Whitley | 2000-12-05 20:42:48 +0000 |
---|---|---|
committer | Mark Whitley | 2000-12-05 20:42:48 +0000 |
commit | ab147f608d1215a9208e6d1fe93b6532a707dae4 (patch) | |
tree | f5d539ed3227936085b32e553e4dd0b921f5d402 | |
parent | 26a3adb24490ed4f6b9e8a9a1886846d4f8d90dc (diff) | |
download | busybox-ab147f608d1215a9208e6d1fe93b6532a707dae4.zip busybox-ab147f608d1215a9208e6d1fe93b6532a707dae4.tar.gz |
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.
-rw-r--r-- | busybox.h | 7 | ||||
-rw-r--r-- | include/busybox.h | 7 |
2 files changed, 4 insertions, 10 deletions
@@ -55,11 +55,8 @@ #define BUF_SIZE 8192 #define EXPAND_ALLOC 1024 - -#define isBlank(ch) (((ch) == ' ') || ((ch) == '\t')) -#define isDecimal(ch) (((ch) >= '0') && ((ch) <= '9')) -#define isOctal(ch) (((ch) >= '0') && ((ch) <= '7')) -#define isWildCard(ch) (((ch) == '*') || ((ch) == '?') || ((ch) == '[')) +static inline int isDecimal(ch) { return ((ch >= '0') && (ch <= '9')); } +static inline int isOctal(ch) { return ((ch >= '0') && (ch <= '7')); } /* Macros for min/max. */ #ifndef MIN diff --git a/include/busybox.h b/include/busybox.h index 21c62fa..63f3959 100644 --- a/include/busybox.h +++ b/include/busybox.h @@ -55,11 +55,8 @@ #define BUF_SIZE 8192 #define EXPAND_ALLOC 1024 - -#define isBlank(ch) (((ch) == ' ') || ((ch) == '\t')) -#define isDecimal(ch) (((ch) >= '0') && ((ch) <= '9')) -#define isOctal(ch) (((ch) >= '0') && ((ch) <= '7')) -#define isWildCard(ch) (((ch) == '*') || ((ch) == '?') || ((ch) == '[')) +static inline int isDecimal(ch) { return ((ch >= '0') && (ch <= '9')); } +static inline int isOctal(ch) { return ((ch >= '0') && (ch <= '7')); } /* Macros for min/max. */ #ifndef MIN |