aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-05 20:42:48 +0000
committermarkw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-05 20:42:48 +0000
commit8cef3856449656f06c84d19795a7b883e1bbeb15 (patch)
treef5d539ed3227936085b32e553e4dd0b921f5d402
parentf2b389f876b256074eb89c3cb0e9d02b3aeabaec (diff)
downloadbusybox-w32-8cef3856449656f06c84d19795a7b883e1bbeb15.tar.gz
busybox-w32-8cef3856449656f06c84d19795a7b883e1bbeb15.tar.bz2
busybox-w32-8cef3856449656f06c84d19795a7b883e1bbeb15.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. git-svn-id: svn://busybox.net/trunk/busybox@1382 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--busybox.h7
-rw-r--r--include/busybox.h7
2 files changed, 4 insertions, 10 deletions
diff --git a/busybox.h b/busybox.h
index 21c62faac..63f39590f 100644
--- a/busybox.h
+++ b/busybox.h
@@ -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 58static inline int isDecimal(ch) { return ((ch >= '0') && (ch <= '9')); }
59#define isBlank(ch) (((ch) == ' ') || ((ch) == '\t')) 59static 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
diff --git a/include/busybox.h b/include/busybox.h
index 21c62faac..63f39590f 100644
--- a/include/busybox.h
+++ b/include/busybox.h
@@ -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 58static inline int isDecimal(ch) { return ((ch >= '0') && (ch <= '9')); }
59#define isBlank(ch) (((ch) == ' ') || ((ch) == '\t')) 59static 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