summaryrefslogtreecommitdiff
path: root/ruby.h
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-05-18 04:56:27 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-05-18 04:56:27 +0000
commit32dc42cf1a248821df7594047bd3fd7822622b32 (patch)
treeb44992897e705edbaec22a2c5e4aee402c5d5177 /ruby.h
parentec6b316cf26eae7eb36e3f9bce24110319e33e35 (diff)
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.h')
-rw-r--r--ruby.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/ruby.h b/ruby.h
index 3ad9071..e4bc0f7 100644
--- a/ruby.h
+++ b/ruby.h
@@ -31,6 +31,18 @@ extern "C" {
# include <strings.h>
#endif
+#include <stdio.h>
+
+/* need to include <ctype.h> to use these macros */
+#define ISSPACE(c) isspace((unsigned char)(c))
+#define ISUPPER(c) isupper((unsigned char)(c))
+#define ISLOWER(c) islower((unsigned char)(c))
+#define ISPRINT(c) isprint((unsigned char)(c))
+#define ISALNUM(c) isalnum((unsigned char)(c))
+#define ISALPHA(c) isalpha((unsigned char)(c))
+#define ISDIGIT(c) isdigit((unsigned char)(c))
+#define ISXDIGIT(c) isxdigit((unsigned char)(c))
+
#ifndef __STDC__
# define volatile
# ifdef __GNUC__