[前][次][番号順一覧][スレッド一覧]

ruby-changes:40406

From: hsbt <ko1@a...>
Date: Sun, 8 Nov 2015 14:01:50 +0900 (JST)
Subject: [ruby-changes:40406] hsbt:r52487 (trunk): * ext/psych/psych_emitter.c: bakcport 5bd7744 from tenderlove/psych.

hsbt	2015-11-08 14:01:33 +0900 (Sun, 08 Nov 2015)

  New Revision: 52487

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52487

  Log:
    * ext/psych/psych_emitter.c: bakcport 5bd7744 from tenderlove/psych.
      support backword compatibility of Ruby 2.0

  Modified files:
    trunk/ChangeLog
    trunk/ext/psych/psych_emitter.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52486)
+++ ChangeLog	(revision 52487)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Nov  8 14:01:22 2015  SHIBATA Hiroshi  <hsbt@r...>
+
+	* ext/psych/psych_emitter.c: bakcport 5bd7744 from tenderlove/psych.
+	  support backword compatibility of Ruby 2.0
+
 Sun Nov  8 10:55:10 2015  Anton Davydov  <antondavydov.o@g...>
 
 	* io.c (rb_io_gets_m): Update IO#gets doc for characters more than
Index: ext/psych/psych_emitter.c
===================================================================
--- ext/psych/psych_emitter.c	(revision 52486)
+++ ext/psych/psych_emitter.c	(revision 52487)
@@ -1,5 +1,12 @@ https://github.com/ruby/ruby/blob/trunk/ext/psych/psych_emitter.c#L1
 #include <psych.h>
 
+#if !defined(RARRAY_CONST_PTR)
+#define RARRAY_CONST_PTR(s) (const VALUE *)RARRAY_PTR(s)
+#endif
+#if !defined(RARRAY_AREF)
+#define RARRAY_AREF(a, i) RARRAY_CONST_PTR(a)[i]
+#endif
+
 VALUE cPsychEmitter;
 static ID id_write;
 static ID id_line_width;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]