зеркало из https://github.com/github/ruby.git
* include/ruby/ruby.h (NUM2CHR): prefix __extension__ for
braced-groups within expressions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
ab4e003969
Коммит
632aa7a0fc
|
@ -1,3 +1,8 @@
|
|||
Wed Nov 4 15:50:16 2009 URABE Shyouhei <shyouhei@ruby-lang.org>
|
||||
|
||||
* include/ruby/ruby.h (NUM2CHR): prefix __extension__ for
|
||||
braced-groups within expressions.
|
||||
|
||||
Wed Nov 4 15:46:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ruby.c (set_{internal,external}_encoding_once): fixed typos.
|
||||
|
|
|
@ -962,7 +962,7 @@ ULONG2NUM(unsigned long v)
|
|||
#define NUM2CHR_internal(x) (((TYPE(x) == T_STRING)&&(RSTRING_LEN(x)>=1))?\
|
||||
RSTRING_PTR(x)[0]:(char)(NUM2INT(x)&0xff))
|
||||
#ifdef __GNUC__
|
||||
# define NUM2CHR(x) ({VALUE num2chr_x = (x); NUM2CHR_internal(num2chr_x);})
|
||||
# define NUM2CHR(x) __extension__ ({VALUE num2chr_x = (x); NUM2CHR_internal(num2chr_x);})
|
||||
#else
|
||||
static inline char
|
||||
NUM2CHR(VALUE x)
|
||||
|
|
Загрузка…
Ссылка в новой задаче