mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Rename CreateInterfaceObject to create_interface_object.
This commit is contained in:
parent
38baa130d8
commit
47cd2d7eb4
1 changed files with 9 additions and 8 deletions
|
@ -203,9 +203,9 @@ pub fn do_create_interface_objects(cx: *mut JSContext, global: *mut JSObject,
|
||||||
match constructor {
|
match constructor {
|
||||||
Some((native, name, nargs)) => {
|
Some((native, name, nargs)) => {
|
||||||
let s = CString::from_slice(name.as_bytes());
|
let s = CString::from_slice(name.as_bytes());
|
||||||
CreateInterfaceObject(cx, global, receiver,
|
create_interface_object(cx, global, receiver,
|
||||||
native, nargs, proto,
|
native, nargs, proto,
|
||||||
members, s.as_ptr())
|
members, s.as_ptr())
|
||||||
},
|
},
|
||||||
None => (),
|
None => (),
|
||||||
}
|
}
|
||||||
|
@ -215,11 +215,12 @@ pub fn do_create_interface_objects(cx: *mut JSContext, global: *mut JSObject,
|
||||||
|
|
||||||
/// Creates the *interface object*.
|
/// Creates the *interface object*.
|
||||||
/// Fails on JSAPI failure.
|
/// Fails on JSAPI failure.
|
||||||
fn CreateInterfaceObject(cx: *mut JSContext, global: *mut JSObject, receiver: *mut JSObject,
|
fn create_interface_object(cx: *mut JSContext, global: *mut JSObject,
|
||||||
constructorNative: NonNullJSNative,
|
receiver: *mut JSObject,
|
||||||
ctorNargs: u32, proto: *mut JSObject,
|
constructorNative: NonNullJSNative,
|
||||||
members: &'static NativeProperties,
|
ctorNargs: u32, proto: *mut JSObject,
|
||||||
name: *const libc::c_char) {
|
members: &'static NativeProperties,
|
||||||
|
name: *const libc::c_char) {
|
||||||
unsafe {
|
unsafe {
|
||||||
let fun = JS_NewFunction(cx, Some(constructorNative), ctorNargs,
|
let fun = JS_NewFunction(cx, Some(constructorNative), ctorNargs,
|
||||||
JSFUN_CONSTRUCTOR, global, name);
|
JSFUN_CONSTRUCTOR, global, name);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue