From 8788e248f9978da6708dd1e85d40531bb30d0bb2 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 21 Nov 2013 19:05:23 +0000 Subject: [PATCH] set RSTRING_MODIFIED where appropriate for Rubinius Not yet tested, but it makes sense to do this. --- ext/kgio/accept.c | 3 +++ ext/kgio/read_write.c | 2 ++ ext/kgio/set_file_path.h | 1 + ext/kgio/tryopen.c | 1 + 4 files changed, 7 insertions(+) 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 #ifdef HAVE_RUBY_IO_H # include -- 2.11.4.GIT