diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-01 07:56:51 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-01 07:56:51 +0000 |
commit | a739f593591e6bf00f69bb53033e9d4175e79d72 (patch) | |
tree | f049339cb4122462c8f0174a35cfd086e3018abd /include | |
parent | c274c6fabf8772d9fc94be8d1c1c4dc8dd98babd (diff) | |
download | ruby-a739f593591e6bf00f69bb53033e9d4175e79d72.tar.gz |
* include/ruby/ruby.h (rb_intern): prefix __extnsion__ for
braced-groups within expressions.
* include/ruby/intern.h (rb_usascii_str_new2): ditto.
* include/ruby/intern.h (rb_tainted_str_new2): ditto.
* include/ruby/intern.h (rb_str_new2): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/intern.h | 6 | ||||
-rw-r--r-- | include/ruby/ruby.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 734bdfa7a8..f9d4469f69 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -536,19 +536,19 @@ VALUE rb_str_tmp_new(long); VALUE rb_usascii_str_new(const char*, long); VALUE rb_usascii_str_new2(const char*); #if defined __GNUC__ -#define rb_str_new2(str) ( \ +#define rb_str_new2(str) __extension__ ( \ { \ (__builtin_constant_p(str)) ? \ rb_str_new(str, strlen(str)) : \ rb_str_new2(str); \ }) -#define rb_tainted_str_new2(str) ( \ +#define rb_tainted_str_new2(str) __extension__ ( \ { \ (__builtin_constant_p(str)) ? \ rb_tainted_str_new(str, strlen(str)) : \ rb_tainted_str_new2(str); \ }) -#define rb_usascii_str_new2(str) ( \ +#define rb_usascii_str_new2(str) __extension__ ( \ { \ (__builtin_constant_p(str)) ? \ rb_usascii_str_new(str, strlen(str)) : \ diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index fd3f911326..1c8e44e67b 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -781,7 +781,7 @@ VALUE rb_id2str(ID); * since gcc-2.7.2.3 at least. */ #define rb_intern(str) \ (__builtin_constant_p(str) ? \ - (CONST_ID_CACHE(/**/, str)) : \ + __extension__ (CONST_ID_CACHE(/**/, str)) : \ rb_intern(str)) #endif |