ruby-changes:6250
From: shyouhei <ko1@a...>
Date: Tue, 1 Jul 2008 16:57:08 +0900 (JST)
Subject: [ruby-changes:6250] Ruby:r17763 (trunk): * include/ruby/ruby.h (rb_intern): prefix __extnsion__ for
shyouhei 2008-07-01 16:56:51 +0900 (Tue, 01 Jul 2008)
New Revision: 17763
Modified files:
trunk/ChangeLog
trunk/include/ruby/intern.h
trunk/include/ruby/ruby.h
Log:
* 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.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=17763
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/ruby.h?r1=17763&r2=17762&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=17763&r2=17762&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/intern.h?r1=17763&r2=17762&diff_format=u
Index: include/ruby/intern.h
===================================================================
--- include/ruby/intern.h (revision 17762)
+++ include/ruby/intern.h (revision 17763)
@@ -536,19 +536,19 @@
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)) : \
Index: include/ruby/ruby.h
===================================================================
--- include/ruby/ruby.h (revision 17762)
+++ include/ruby/ruby.h (revision 17763)
@@ -781,7 +781,7 @@
* 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
Index: ChangeLog
===================================================================
--- ChangeLog (revision 17762)
+++ ChangeLog (revision 17763)
@@ -1,3 +1,14 @@
+Tue Jul 1 16:51:35 2008 URABE Shyouhei <shyouhei@r...>
+
+ * 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@r...>
* lib/rubygems/ext/builder.rb (Gem::Ext::Builder.make),
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/