Sha256: d7b8f4e93b0701bd47218fb93e5fa4f79e2d6d108b0a8e4b72bc41d62ea3681a
Contents?: true
Size: 632 Bytes
Versions: 11
Compression:
Stored size: 632 Bytes
Contents
#if defined(HAVE_RB_IO_T) && \ defined(HAVE_TYPE_STRUCT_RFILE) && \ defined(HAVE_ST_PATHV) /* MRI 1.9 */ static void set_file_path(VALUE io, VALUE path) { rb_io_t *fptr = RFILE(io)->fptr; fptr->pathv = rb_str_new4(path); } #elif defined(HAVE_TYPE_OPENFILE) && \ defined(HAVE_TYPE_STRUCT_RFILE) && \ defined(HAVE_ST_PATH) /* MRI 1.8 */ #include "util.h" static void set_file_path(VALUE io, VALUE path) { OpenFile *fptr = RFILE(io)->fptr; fptr->path = ruby_strdup(RSTRING_PTR(path)); } #else /* Rubinius */ static void set_file_path(VALUE io, VALUE path) { rb_iv_set(io, "@path", rb_str_new4(path)); } #endif
Version data entries
11 entries across 11 versions & 1 rubygems