From 1a5841b4b10a0e59446df5235c92e679eb3092ef Mon Sep 17 00:00:00 2001 From: cremno Date: Thu, 5 Jun 2014 21:00:47 +0200 Subject: use uppercase US-ASCII ctype macros --- mrbgems/mruby-bin-mirb/tools/mirb/mirb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mrbgems/mruby-bin-mirb/tools/mirb/mirb.c') diff --git a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c index 5c9524161..c742d28fb 100644 --- a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c +++ b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c @@ -258,7 +258,7 @@ check_keyword(const char *buf, const char *word) size_t len = strlen(word); /* skip preceding spaces */ - while (*p && isspace(*p)) { + while (*p && ISSPACE(*p)) { p++; } /* check keyword */ @@ -268,7 +268,7 @@ check_keyword(const char *buf, const char *word) p += len; /* skip trailing spaces */ while (*p) { - if (!isspace(*p)) return 0; + if (!ISSPACE(*p)) return 0; p++; } return 1; -- cgit v1.2.3