summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
diff options
context:
space:
mode:
authorcremno <[email protected]>2014-06-05 21:00:47 +0200
committercremno <[email protected]>2014-06-05 21:00:47 +0200
commit1a5841b4b10a0e59446df5235c92e679eb3092ef (patch)
treedf5a65d6587a68bc25519bad64e90c5614329b90 /mrbgems
parentf9f864d4dd7f3f4213cabe5f8a4e427a03120461 (diff)
downloadmruby-1a5841b4b10a0e59446df5235c92e679eb3092ef.tar.gz
mruby-1a5841b4b10a0e59446df5235c92e679eb3092ef.zip
use uppercase US-ASCII ctype macros
Diffstat (limited to 'mrbgems')
-rw-r--r--mrbgems/mruby-bin-mirb/tools/mirb/mirb.c4
1 files changed, 2 insertions, 2 deletions
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;