nsgenjsbind: branch master updated. 6182a17c63737e57581685a2cd37f6e49e9ebd8a

NetSurf Browser Project (Commit Mailer) no-reply at netsurf-browser.org
Fri Nov 2 11:02:51 GMT 2012


Gitweb links:

...log http://git.netsurf-browser.org/nsgenjsbind.git/shortlog/6182a17c63737e57581685a2cd37f6e49e9ebd8a
...commit http://git.netsurf-browser.org/nsgenjsbind.git/commit/6182a17c63737e57581685a2cd37f6e49e9ebd8a
...tree http://git.netsurf-browser.org/nsgenjsbind.git/tree/6182a17c63737e57581685a2cd37f6e49e9ebd8a

The branch, master has been updated
       via  6182a17c63737e57581685a2cd37f6e49e9ebd8a (commit)
      from  8779ca25c44286b956ac604549d55c7d1661619e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff http://git.netsurf-browser.org/nsgenjsbind.git/commitdiff/6182a17c63737e57581685a2cd37f6e49e9ebd8a
commit 6182a17c63737e57581685a2cd37f6e49e9ebd8a
Author: Vincent Sanders <vince at kyllikki.org>
Commit: Vincent Sanders <vince at kyllikki.org>

    use teh correct return value setting macros in native operation calls

diff --git a/src/jsapi-libdom-operator.c b/src/jsapi-libdom-operator.c
index a20f377..1155108 100644
--- a/src/jsapi-libdom-operator.c
+++ b/src/jsapi-libdom-operator.c
@@ -159,7 +159,7 @@ static int output_return(struct binding *binding,
 	case WEBIDL_TYPE_USER:
 		/* User type are represented with jsobject */
 		fprintf(binding->outfile,
-			"\tJS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(%s));\n",
+			"\tJSAPI_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(%s));\n",
 			ident);
 
 		break;
@@ -167,7 +167,7 @@ static int output_return(struct binding *binding,
 	case WEBIDL_TYPE_BOOL:
 		/* JSBool */
 		fprintf(binding->outfile,
-			"\tJS_SET_RVAL(cx, vp, BOOLEAN_TO_JSVAL(%s));\n",
+			"\tJSAPI_SET_RVAL(cx, vp, BOOLEAN_TO_JSVAL(%s));\n",
 			ident);
 
 		break;
@@ -184,7 +184,7 @@ static int output_return(struct binding *binding,
 	case WEBIDL_TYPE_DOUBLE:
 		/* double */
 		fprintf(binding->outfile,
-			"\tJS_SET_RVAL(cx, vp, DOUBLE_TO_JSVAL(%s));\n",
+			"\tJSAPI_SET_RVAL(cx, vp, DOUBLE_TO_JSVAL(%s));\n",
 			ident);
 		break;
 
@@ -199,14 +199,14 @@ static int output_return(struct binding *binding,
 	case WEBIDL_TYPE_LONG:
 		/* int32_t  */
 		fprintf(binding->outfile,
-			"\tJS_SET_RVAL(cx, vp, INT_TO_JSVAL(%s));\n",
+			"\tJSAPI_SET_RVAL(cx, vp, INT_TO_JSVAL(%s));\n",
 			ident);
 		break;
 
 	case WEBIDL_TYPE_STRING:
 		/* JSString * */
 		fprintf(binding->outfile,
-			"\tJS_SET_RVAL(cx, vp, STRING_TO_JSVAL(%s));\n",
+			"\tJSAPI_SET_RVAL(cx, vp, STRING_TO_JSVAL(%s));\n",
 			ident);
 		break;
 
@@ -217,7 +217,7 @@ static int output_return(struct binding *binding,
 	case WEBIDL_TYPE_OBJECT:
 		/* JSObject * */
 		fprintf(binding->outfile,
-			"\tJS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(%s));\n",
+			"\tJSAPI_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(%s));\n",
 			ident);
 		break;
 


-----------------------------------------------------------------------

Summary of changes:
 src/jsapi-libdom-operator.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/jsapi-libdom-operator.c b/src/jsapi-libdom-operator.c
index a20f377..1155108 100644
--- a/src/jsapi-libdom-operator.c
+++ b/src/jsapi-libdom-operator.c
@@ -159,7 +159,7 @@ static int output_return(struct binding *binding,
 	case WEBIDL_TYPE_USER:
 		/* User type are represented with jsobject */
 		fprintf(binding->outfile,
-			"\tJS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(%s));\n",
+			"\tJSAPI_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(%s));\n",
 			ident);
 
 		break;
@@ -167,7 +167,7 @@ static int output_return(struct binding *binding,
 	case WEBIDL_TYPE_BOOL:
 		/* JSBool */
 		fprintf(binding->outfile,
-			"\tJS_SET_RVAL(cx, vp, BOOLEAN_TO_JSVAL(%s));\n",
+			"\tJSAPI_SET_RVAL(cx, vp, BOOLEAN_TO_JSVAL(%s));\n",
 			ident);
 
 		break;
@@ -184,7 +184,7 @@ static int output_return(struct binding *binding,
 	case WEBIDL_TYPE_DOUBLE:
 		/* double */
 		fprintf(binding->outfile,
-			"\tJS_SET_RVAL(cx, vp, DOUBLE_TO_JSVAL(%s));\n",
+			"\tJSAPI_SET_RVAL(cx, vp, DOUBLE_TO_JSVAL(%s));\n",
 			ident);
 		break;
 
@@ -199,14 +199,14 @@ static int output_return(struct binding *binding,
 	case WEBIDL_TYPE_LONG:
 		/* int32_t  */
 		fprintf(binding->outfile,
-			"\tJS_SET_RVAL(cx, vp, INT_TO_JSVAL(%s));\n",
+			"\tJSAPI_SET_RVAL(cx, vp, INT_TO_JSVAL(%s));\n",
 			ident);
 		break;
 
 	case WEBIDL_TYPE_STRING:
 		/* JSString * */
 		fprintf(binding->outfile,
-			"\tJS_SET_RVAL(cx, vp, STRING_TO_JSVAL(%s));\n",
+			"\tJSAPI_SET_RVAL(cx, vp, STRING_TO_JSVAL(%s));\n",
 			ident);
 		break;
 
@@ -217,7 +217,7 @@ static int output_return(struct binding *binding,
 	case WEBIDL_TYPE_OBJECT:
 		/* JSObject * */
 		fprintf(binding->outfile,
-			"\tJS_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(%s));\n",
+			"\tJSAPI_SET_RVAL(cx, vp, OBJECT_TO_JSVAL(%s));\n",
 			ident);
 		break;
 


-- 
NetSurf Generator for JavaScript bindings



More information about the netsurf-commits mailing list