ruby-changes:55880
From: Nobuyoshi <ko1@a...>
Date: Wed, 29 May 2019 00:07:04 +0900 (JST)
Subject: [ruby-changes:55880] Nobuyoshi Nakada: fb568fe724 (trunk): Added missing predicate macros
https://git.ruby-lang.org/ruby.git/commit/?id=fb568fe724 From fb568fe724b0c8b2582263ed859ad10f0bd90d38 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 28 May 2019 23:46:07 +0900 Subject: Added missing predicate macros diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 86e01f6..e698142 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -2295,6 +2295,9 @@ static inline int rb_toupper(int c) { return rb_islower(c) ? (c&0x5f) : c; } https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L2295 #define ISALPHA(c) rb_isalpha(c) #define ISDIGIT(c) rb_isdigit(c) #define ISXDIGIT(c) rb_isxdigit(c) +#define ISBLANK(c) rb_isblank(c) +#define ISCNTRL(c) rb_iscntrl(c) +#define ISPUNCT(c) rb_ispunct(c) #endif #define TOUPPER(c) rb_toupper(c) #define TOLOWER(c) rb_tolower(c) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/