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:
parent
640271c4f4
commit
a9e1d57fc1
3 changed files with 3 additions and 3 deletions
|
@ -54,7 +54,7 @@ template<class DEST, class RET> class RubyValueSource {
|
||||||
|
|
||||||
private:
|
private:
|
||||||
RET convertString(VALUE& value) {
|
RET convertString(VALUE& value) {
|
||||||
std::string stringValue(RSTRING(value)->ptr);
|
std::string stringValue(RSTRING_PTR(value));
|
||||||
return dest.pushString(stringValue);
|
return dest.pushString(stringValue);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -7,7 +7,7 @@ using namespace v8;
|
||||||
|
|
||||||
VALUE v8_str_new(VALUE clazz, VALUE str) {
|
VALUE v8_str_new(VALUE clazz, VALUE str) {
|
||||||
HandleScope handles;
|
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){
|
VALUE v8_str_to_s(VALUE self){
|
||||||
|
|
|
@ -28,7 +28,7 @@ VALUE v8_Template_Set(VALUE self, VALUE name, VALUE value) {
|
||||||
HandleScope handles;
|
HandleScope handles;
|
||||||
Local<Template> tmpl = V8_Ref_Get<Template>(self);
|
Local<Template> tmpl = V8_Ref_Get<Template>(self);
|
||||||
Local<Data> data = V8_Ref_Get<Data>(value);
|
Local<Data> data = V8_Ref_Get<Data>(value);
|
||||||
tmpl->Set(RSTRING(name)->ptr, data);
|
tmpl->Set(RSTRING_PTR(name), data);
|
||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue