Gitweb links: ...log http://git.netsurf-browser.org/nsgenjsbind.git/shortlog/3d3e27d666c7c35ab95f450c68766a9ba996a485 ...commit http://git.netsurf-browser.org/nsgenjsbind.git/commit/3d3e27d666c7c35ab95f450c68766a9ba996a485 ...tree http://git.netsurf-browser.org/nsgenjsbind.git/tree/3d3e27d666c7c35ab95f450c68766a9ba996a485
The branch, master has been updated via 3d3e27d666c7c35ab95f450c68766a9ba996a485 (commit) from 24d68eb4e19e48c80a44af324499e1e16863e768 (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/3d3e27d666c7c35ab95f450c68766a9ba996a485 commit 3d3e27d666c7c35ab95f450c68766a9ba996a485 Author: Vincent Sanders <vi...@kyllikki.org> Commit: Vincent Sanders <vi...@kyllikki.org> generate macros for adding object to root GC set diff --git a/src/jsapi-libdom.c b/src/jsapi-libdom.c index 476c99e..df36be8 100644 --- a/src/jsapi-libdom.c +++ b/src/jsapi-libdom.c @@ -361,7 +361,7 @@ output_class_new(struct binding *binding) /* root object to stop it being garbage collected */ fprintf(binding->outfile, - "\tif (JS_AddRoot(cx, &newobject) != JS_TRUE) {\n" + "\tif (JSAPI_ADD_OBJECT_ROOT(cx, &newobject) != JS_TRUE) {\n" "\t\tfree(private);\n" "\t\treturn NULL;\n" "\t}\n\n"); @@ -395,7 +395,7 @@ output_class_new(struct binding *binding) /* root object to stop it being garbage collected */ fprintf(binding->outfile, - "\tif (JS_AddRoot(cx, &newobject) != JS_TRUE) {\n" + "\tif (JSAPI_ADD_OBJECT_ROOT(cx, &newobject) != JS_TRUE) {\n" "\t\treturn NULL;\n" "\t}\n\n"); @@ -413,7 +413,7 @@ output_class_new(struct binding *binding) /* unroot object and return it */ fprintf(binding->outfile, - "\tJS_RemoveRoot(cx, &newobject);\n" + "\tJSAPI_REMOVE_OBJECT_ROOT(cx, &newobject);\n" "\n" "\treturn newobject;\n" "}\n"); ----------------------------------------------------------------------- Summary of changes: src/jsapi-libdom.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jsapi-libdom.c b/src/jsapi-libdom.c index 476c99e..df36be8 100644 --- a/src/jsapi-libdom.c +++ b/src/jsapi-libdom.c @@ -361,7 +361,7 @@ output_class_new(struct binding *binding) /* root object to stop it being garbage collected */ fprintf(binding->outfile, - "\tif (JS_AddRoot(cx, &newobject) != JS_TRUE) {\n" + "\tif (JSAPI_ADD_OBJECT_ROOT(cx, &newobject) != JS_TRUE) {\n" "\t\tfree(private);\n" "\t\treturn NULL;\n" "\t}\n\n"); @@ -395,7 +395,7 @@ output_class_new(struct binding *binding) /* root object to stop it being garbage collected */ fprintf(binding->outfile, - "\tif (JS_AddRoot(cx, &newobject) != JS_TRUE) {\n" + "\tif (JSAPI_ADD_OBJECT_ROOT(cx, &newobject) != JS_TRUE) {\n" "\t\treturn NULL;\n" "\t}\n\n"); @@ -413,7 +413,7 @@ output_class_new(struct binding *binding) /* unroot object and return it */ fprintf(binding->outfile, - "\tJS_RemoveRoot(cx, &newobject);\n" + "\tJSAPI_REMOVE_OBJECT_ROOT(cx, &newobject);\n" "\n" "\treturn newobject;\n" "}\n"); -- NetSurf Generator for JavaScript bindings _______________________________________________ netsurf-commits mailing list netsurf-commits@netsurf-browser.org http://vlists.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org