aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 @@
#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 21c62faac..63f39590f 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