mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
c274c6fabf
commit
a739f59359
3 changed files with 15 additions and 4 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
||||||
|
Tue Jul 1 16:51:35 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
Tue Jul 1 15:01:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Tue Jul 1 15:01:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* lib/rubygems/ext/builder.rb (Gem::Ext::Builder.make),
|
* lib/rubygems/ext/builder.rb (Gem::Ext::Builder.make),
|
||||||
|
|
|
@ -536,19 +536,19 @@ VALUE rb_str_tmp_new(long);
|
||||||
VALUE rb_usascii_str_new(const char*, long);
|
VALUE rb_usascii_str_new(const char*, long);
|
||||||
VALUE rb_usascii_str_new2(const char*);
|
VALUE rb_usascii_str_new2(const char*);
|
||||||
#if defined __GNUC__
|
#if defined __GNUC__
|
||||||
#define rb_str_new2(str) ( \
|
#define rb_str_new2(str) __extension__ ( \
|
||||||
{ \
|
{ \
|
||||||
(__builtin_constant_p(str)) ? \
|
(__builtin_constant_p(str)) ? \
|
||||||
rb_str_new(str, strlen(str)) : \
|
rb_str_new(str, strlen(str)) : \
|
||||||
rb_str_new2(str); \
|
rb_str_new2(str); \
|
||||||
})
|
})
|
||||||
#define rb_tainted_str_new2(str) ( \
|
#define rb_tainted_str_new2(str) __extension__ ( \
|
||||||
{ \
|
{ \
|
||||||
(__builtin_constant_p(str)) ? \
|
(__builtin_constant_p(str)) ? \
|
||||||
rb_tainted_str_new(str, strlen(str)) : \
|
rb_tainted_str_new(str, strlen(str)) : \
|
||||||
rb_tainted_str_new2(str); \
|
rb_tainted_str_new2(str); \
|
||||||
})
|
})
|
||||||
#define rb_usascii_str_new2(str) ( \
|
#define rb_usascii_str_new2(str) __extension__ ( \
|
||||||
{ \
|
{ \
|
||||||
(__builtin_constant_p(str)) ? \
|
(__builtin_constant_p(str)) ? \
|
||||||
rb_usascii_str_new(str, strlen(str)) : \
|
rb_usascii_str_new(str, strlen(str)) : \
|
||||||
|
|
|
@ -781,7 +781,7 @@ VALUE rb_id2str(ID);
|
||||||
* since gcc-2.7.2.3 at least. */
|
* since gcc-2.7.2.3 at least. */
|
||||||
#define rb_intern(str) \
|
#define rb_intern(str) \
|
||||||
(__builtin_constant_p(str) ? \
|
(__builtin_constant_p(str) ? \
|
||||||
(CONST_ID_CACHE(/**/, str)) : \
|
__extension__ (CONST_ID_CACHE(/**/, str)) : \
|
||||||
rb_intern(str))
|
rb_intern(str))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue