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.
This commit is contained in:
parent
26a3adb244
commit
ab147f608d
@ -55,11 +55,8 @@
|
|||||||
#define BUF_SIZE 8192
|
#define BUF_SIZE 8192
|
||||||
#define EXPAND_ALLOC 1024
|
#define EXPAND_ALLOC 1024
|
||||||
|
|
||||||
|
static inline int isDecimal(ch) { return ((ch >= '0') && (ch <= '9')); }
|
||||||
#define isBlank(ch) (((ch) == ' ') || ((ch) == '\t'))
|
static inline int isOctal(ch) { return ((ch >= '0') && (ch <= '7')); }
|
||||||
#define isDecimal(ch) (((ch) >= '0') && ((ch) <= '9'))
|
|
||||||
#define isOctal(ch) (((ch) >= '0') && ((ch) <= '7'))
|
|
||||||
#define isWildCard(ch) (((ch) == '*') || ((ch) == '?') || ((ch) == '['))
|
|
||||||
|
|
||||||
/* Macros for min/max. */
|
/* Macros for min/max. */
|
||||||
#ifndef MIN
|
#ifndef MIN
|
||||||
|
@ -55,11 +55,8 @@
|
|||||||
#define BUF_SIZE 8192
|
#define BUF_SIZE 8192
|
||||||
#define EXPAND_ALLOC 1024
|
#define EXPAND_ALLOC 1024
|
||||||
|
|
||||||
|
static inline int isDecimal(ch) { return ((ch >= '0') && (ch <= '9')); }
|
||||||
#define isBlank(ch) (((ch) == ' ') || ((ch) == '\t'))
|
static inline int isOctal(ch) { return ((ch >= '0') && (ch <= '7')); }
|
||||||
#define isDecimal(ch) (((ch) >= '0') && ((ch) <= '9'))
|
|
||||||
#define isOctal(ch) (((ch) >= '0') && ((ch) <= '7'))
|
|
||||||
#define isWildCard(ch) (((ch) == '*') || ((ch) == '?') || ((ch) == '['))
|
|
||||||
|
|
||||||
/* Macros for min/max. */
|
/* Macros for min/max. */
|
||||||
#ifndef MIN
|
#ifndef MIN
|
||||||
|
Loading…
Reference in New Issue
Block a user