about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-11-21 19:05:23 +0000
committerEric Wong <normalperson@yhbt.net>2014-02-04 01:43:02 +0000
commit8788e248f9978da6708dd1e85d40531bb30d0bb2 (patch)
tree90390bc155514ecc176d431cdf1443e1e6dc116f
parent7a49e4df0a8f23594a83f21f2fd54955dcb6a0fc (diff)
downloadkgio-8788e248f9978da6708dd1e85d40531bb30d0bb2.tar.gz
Not yet tested, but it makes sense to do this.
-rw-r--r--ext/kgio/accept.c3
-rw-r--r--ext/kgio/read_write.c2
-rw-r--r--ext/kgio/set_file_path.h1
-rw-r--r--ext/kgio/tryopen.c1
4 files changed, 7 insertions, 0 deletions
diff --git a/ext/kgio/accept.c b/ext/kgio/accept.c
index 911e169..eb40f32 100644
--- a/ext/kgio/accept.c
+++ b/ext/kgio/accept.c
@@ -1,3 +1,6 @@
+/* ref: rubinius b2811f260de16d1e972462e27852470364608de5 */
+#define RSTRING_MODIFIED 1
+
 #include "kgio.h"
 #include "missing_accept4.h"
 #include "sock_for_fd.h"
diff --git a/ext/kgio/read_write.c b/ext/kgio/read_write.c
index fcb48bb..5e92c32 100644
--- a/ext/kgio/read_write.c
+++ b/ext/kgio/read_write.c
@@ -1,3 +1,5 @@
+/* ref: rubinius b2811f260de16d1e972462e27852470364608de5 */
+#define RSTRING_MODIFIED 1
 #include "kgio.h"
 #include "my_fileno.h"
 #include "nonblock.h"
diff --git a/ext/kgio/set_file_path.h b/ext/kgio/set_file_path.h
index 50fd338..46603f1 100644
--- a/ext/kgio/set_file_path.h
+++ b/ext/kgio/set_file_path.h
@@ -1,3 +1,4 @@
+/* We do not modify RSTRING in this file, so RSTRING_MODIFIED is not needed */
 #if defined(HAVE_RB_IO_T) && \
     defined(HAVE_TYPE_STRUCT_RFILE) && \
     defined(HAVE_ST_PATHV)
diff --git a/ext/kgio/tryopen.c b/ext/kgio/tryopen.c
index 5889294..1d097c7 100644
--- a/ext/kgio/tryopen.c
+++ b/ext/kgio/tryopen.c
@@ -1,3 +1,4 @@
+/* We do not modify RSTRING in this file, so RSTRING_MODIFIED is not needed */
 #include <ruby.h>
 #ifdef HAVE_RUBY_IO_H
 #  include <ruby/io.h>