1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

compile level fixes for 1.9

This commit is contained in:
Charles Lowell 2010-02-11 17:14:47 -06:00
parent 640271c4f4
commit a9e1d57fc1
3 changed files with 3 additions and 3 deletions

View file

@ -54,7 +54,7 @@ template<class DEST, class RET> class RubyValueSource {
private:
RET convertString(VALUE& value) {
std::string stringValue(RSTRING(value)->ptr);
std::string stringValue(RSTRING_PTR(value));
return dest.pushString(stringValue);
}
};

View file

@ -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){

View file

@ -28,7 +28,7 @@ VALUE v8_Template_Set(VALUE self, VALUE name, VALUE value) {
HandleScope handles;
Local<Template> tmpl = V8_Ref_Get<Template>(self);
Local<Data> data = V8_Ref_Get<Data>(value);
tmpl->Set(RSTRING(name)->ptr, data);
tmpl->Set(RSTRING_PTR(name), data);
return Qnil;
}