From a9e1d57fc16e49455e7d0b9b056b0504d1534d36 Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Thu, 11 Feb 2010 17:14:47 -0600 Subject: [PATCH] compile level fixes for 1.9 --- ext/v8/convert_ruby.h | 2 +- ext/v8/v8_str.cpp | 2 +- ext/v8/v8_template.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/v8/convert_ruby.h b/ext/v8/convert_ruby.h index 594263a..a7418cc 100644 --- a/ext/v8/convert_ruby.h +++ b/ext/v8/convert_ruby.h @@ -54,7 +54,7 @@ template class RubyValueSource { private: RET convertString(VALUE& value) { - std::string stringValue(RSTRING(value)->ptr); + std::string stringValue(RSTRING_PTR(value)); return dest.pushString(stringValue); } }; diff --git a/ext/v8/v8_str.cpp b/ext/v8/v8_str.cpp index 2f1b554..faf5d14 100644 --- a/ext/v8/v8_str.cpp +++ b/ext/v8/v8_str.cpp @@ -7,7 +7,7 @@ using namespace v8; VALUE v8_str_new(VALUE clazz, VALUE str) { HandleScope handles; - return V8_Ref_Create(clazz, String::New(RSTRING(str)->ptr)); + return V8_Ref_Create(clazz, String::New(RSTRING_PTR(str))); } VALUE v8_str_to_s(VALUE self){ diff --git a/ext/v8/v8_template.cpp b/ext/v8/v8_template.cpp index 3ef286d..96bb04c 100644 --- a/ext/v8/v8_template.cpp +++ b/ext/v8/v8_template.cpp @@ -28,7 +28,7 @@ VALUE v8_Template_Set(VALUE self, VALUE name, VALUE value) { HandleScope handles; Local