[gjs/wip/js24] Use c++ types for JS Handle* variables, since the typedefs are removed



commit 835594af3fdf0e2188cbf1a2c2fbe37011be8b1f
Author: Tim Lunn <tim feathertop org>
Date:   Sat Sep 28 12:16:48 2013 +1000

    Use c++ types for JS Handle* variables, since the typedefs are removed

 gi/boxed.cpp  |   18 +++++++++---------
 gi/object.cpp |   18 +++++++++---------
 gi/param.cpp  |    8 ++++----
 3 files changed, 22 insertions(+), 22 deletions(-)
---
diff --git a/gi/boxed.cpp b/gi/boxed.cpp
index 39cde9f..0775ed9 100644
--- a/gi/boxed.cpp
+++ b/gi/boxed.cpp
@@ -628,10 +628,10 @@ get_nested_interface_object (JSContext   *context,
 }
 
 static JSBool
-boxed_field_getter (JSContext            *context,
-                    JSHandleObject        obj,
-                    JSHandleId            id,
-                    JSMutableHandleValue  value)
+boxed_field_getter (JSContext                    *context,
+                    JS::Handle<JSObject*>         obj,
+                    JS::Handle<jsid>              id,
+                    JS::MutableHandle<JS::Value>  value)
 {
     Boxed *priv;
     GIFieldInfo *field_info;
@@ -808,11 +808,11 @@ out:
 }
 
 static JSBool
-boxed_field_setter (JSContext            *context,
-                    JSHandleObject        obj,
-                    JSHandleId            id,
-                    JSBool                strict,
-                    JSMutableHandleValue  value)
+boxed_field_setter (JSContext                    *context,
+                    JS::Handle<JSObject*>         obj,
+                    JS::Handle<jsid>              id,
+                    JSBool                        strict,
+                    JS::MutableHandle<JS::Value>  value)
 {
     Boxed *priv;
     GIFieldInfo *field_info;
diff --git a/gi/object.cpp b/gi/object.cpp
index abdc0c1..8feb1ce 100644
--- a/gi/object.cpp
+++ b/gi/object.cpp
@@ -249,10 +249,10 @@ proto_priv_from_js(JSContext *context,
  * Return value is JS_FALSE on OOM/exception.
  */
 static JSBool
-object_instance_get_prop(JSContext            *context,
-                         JSHandleObject        obj,
-                         JSHandleId            id,
-                         JSMutableHandleValue  value_p)
+object_instance_get_prop(JSContext                    *context,
+                         JS::Handle<JSObject*>         obj,
+                         JS::Handle<jsid>              id,
+                         JS::MutableHandle<JS::Value>  value_p)
 {
     ObjectInstance *priv;
     char *name;
@@ -318,11 +318,11 @@ object_instance_get_prop(JSContext            *context,
  * be set. Return value is JS_FALSE on OOM/exception.
  */
 static JSBool
-object_instance_set_prop(JSContext            *context,
-                         JSHandleObject        obj,
-                         JSHandleId            id,
-                         JSBool                strict,
-                         JSMutableHandleValue  value_p)
+object_instance_set_prop(JSContext                    *context,
+                         JS::Handle<JSObject*>         obj,
+                         JS::Handle<jsid>              id,
+                         JSBool                        strict,
+                         JS::MutableHandle<JS::Value>  value_p)
 {
     ObjectInstance *priv;
     char *name;
diff --git a/gi/param.cpp b/gi/param.cpp
index 9b93869..0d5b207 100644
--- a/gi/param.cpp
+++ b/gi/param.cpp
@@ -68,10 +68,10 @@ find_field_info(GIObjectInfo *info,
  * Return value is JS_FALSE on OOM/exception.
  */
 static JSBool
-param_get_prop(JSContext            *context,
-               JSHandleObject        obj,
-               JSHandleId            id,
-               JSMutableHandleValue  value_p)
+param_get_prop(JSContext                    *context,
+               JS::Handle<JSObject*>         obj,
+               JS::Handle<jsid>              id,
+               JS::MutableHandle<JS::Value>  value_p)
 {
     JSBool success;
     Param *priv;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]