Thursday, 8 November 2012

nsgenjsbind patch: correct prototype for spidermonkey < 180

diff --git a/src/jsapi-libdom.c b/src/jsapi-libdom.c
index 41491c1..5c918de 100644
--- a/src/jsapi-libdom.c
+++ b/src/jsapi-libdom.c
@@ -383,7 +383,7 @@ output_jsclass(struct binding *binding)

if (binding->mark != NULL) {
fprintf(binding->outfile,
- "static JSBool jsclass_mark(JSTracer *trc, JSObject *obj);\n\n");
+ "static JSAPI_MARKOP(jsclass_mark);\n\n");
}

if (binding->has_private || (binding->finalise != NULL)) {
Hello,

this patch declares the jsclass_mark function correctly for
spidermonkey versions < 180.

Please apply, thanks.

Greets,
Ole

No comments:

Post a Comment