aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-10-18 03:41:19 +0000
committerYang Tse <yangsita@gmail.com>2006-10-18 03:41:19 +0000
commit71c6335293e4945262ab25b867d59be17ce12819 (patch)
treef88cdec9265c578de856b0cb296fe1cc2eb9cbde /src
parent8c38ea4ebcff4960b531a6f6fbac6b412609c986 (diff)
Move definition of IS*() macros to setup_once.h
Diffstat (limited to 'src')
-rw-r--r--src/setup.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/setup.h b/src/setup.h
index a8f636974..6e0f23a15 100644
--- a/src/setup.h
+++ b/src/setup.h
@@ -184,16 +184,12 @@ int fileno( FILE *stream);
#define strdup(ptr) curlx_strdup(ptr)
#endif
-#ifndef ISSPACE
-/* typecasting craze to avoid negative number inputs to these macros */
-/* copied from lib/setup.h */
-#define ISSPACE(x) (isspace((int)((unsigned char)x)))
-#define ISDIGIT(x) (isdigit((int)((unsigned char)x)))
-#define ISALNUM(x) (isalnum((int)((unsigned char)x)))
-#define ISXDIGIT(x) (isxdigit((int)((unsigned char)x)))
-#define ISGRAPH(x) (isgraph((int)((unsigned char)x)))
-#define ISALPHA(x) (isalpha((int)((unsigned char)x)))
-#define ISPRINT(x) (isprint((int)((unsigned char)x)))
+/*
+ * Include macros and defines that should only be processed once.
+ */
+
+#ifndef __SETUP_ONCE_H
+#include "setup_once.h"
#endif
#endif /* __SRC_CURL_SETUP_H */