[gjs/wip/js24: 18/29] Use c++ types for JS Handle* variables, since the typedefs are removed
- From: Tim Lunn <timl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/wip/js24: 18/29] Use c++ types for JS Handle* variables, since the typedefs are removed
- Date: Tue, 15 Oct 2013 02:14:31 +0000 (UTC)
commit 30754b5bc8165c5c510bf1e719cc972cf841d488
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..75ee461 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::HandleObject obj,
+ JS::HandleId id,
+ JS::MutableHandleValue 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::HandleObject obj,
+ JS::HandleId id,
+ JSBool strict,
+ JS::MutableHandleValue value)
{
Boxed *priv;
GIFieldInfo *field_info;
diff --git a/gi/object.cpp b/gi/object.cpp
index b0bdecb..b22358f 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::HandleObject obj,
+ JS::HandleId id,
+ JS::MutableHandleValue 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::HandleObject obj,
+ JS::HandleId id,
+ JSBool strict,
+ JS::MutableHandleValue value_p)
{
ObjectInstance *priv;
char *name;
diff --git a/gi/param.cpp b/gi/param.cpp
index c906a15..7983d34 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::HandleObject obj,
+ JS::HandleId id,
+ JS::MutableHandleValue value_p)
{
JSBool success;
Param *priv;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]