From eb174c9f572f45695f3da6fe1aff37d1c793e9fa Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 22 Jan 2013 18:56:01 +0000 Subject: change property mactro usage to reflect spidermonkey calling types --- src/jsapi-libdom-property.c | 8 ++++---- src/jsapi-libdom.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/jsapi-libdom-property.c b/src/jsapi-libdom-property.c index 6bb695a..ae1aed3 100644 --- a/src/jsapi-libdom-property.c +++ b/src/jsapi-libdom-property.c @@ -698,7 +698,7 @@ static int output_property_getter(struct binding *binding, struct genbind_node *property_node; fprintf(binding->outfile, - "static JSBool JSAPI_PROP_GETTER(%s, JSContext *cx, JSObject *obj, jsval *vp)\n" + "static JSBool JSAPI_PROP(%s_get, JSContext *cx, JSObject *obj, jsval *vp)\n" "{\n", ident); @@ -770,7 +770,7 @@ static int output_property_setter(struct binding *binding, fprintf(binding->outfile, - "static JSBool JSAPI_PROP_SETTER(%s, JSContext *cx, JSObject *obj, jsval *vp)\n", + "static JSBool JSAPI_STRICTPROP(%s_set, JSContext *cx, JSObject *obj, jsval *vp)\n", ident); fprintf(binding->outfile, @@ -913,7 +913,7 @@ output_property_type_setter(struct binding *binding, fprintf(binding->outfile, "static JSBool\n" - "JSAPI_PROP_SETTER(%s, JSContext *cx, JSObject *obj, jsval *vp)\n" + "JSAPI_STRICTPROP(%s_set, JSContext *cx, JSObject *obj, jsval *vp)\n" "{\n", type); @@ -950,7 +950,7 @@ static int output_property_type_getter(struct binding *binding, struct genbind_n node = node;/* currently unused */ fprintf(binding->outfile, - "static JSBool JSAPI_PROP_GETTER(%s, JSContext *cx, JSObject *obj, jsval *vp)\n" + "static JSBool JSAPI_PROP(%s_get, JSContext *cx, JSObject *obj, jsval *vp)\n" "{\n", type); diff --git a/src/jsapi-libdom.c b/src/jsapi-libdom.c index c21f63e..29994b6 100644 --- a/src/jsapi-libdom.c +++ b/src/jsapi-libdom.c @@ -517,25 +517,25 @@ output_jsclass(struct binding *binding) /* forward declare add property */ if (binding->addproperty != NULL) { fprintf(binding->outfile, - "static JSBool JSAPI_PROP_DEFAULT(add, JSContext *cx, JSObject *obj, jsval *vp);\n\n"); + "static JSBool JSAPI_PROP(add, JSContext *cx, JSObject *obj, jsval *vp);\n\n"); } /* forward declare del property */ if (binding->delproperty != NULL) { fprintf(binding->outfile, - "static JSBool JSAPI_PROP_DEFAULT(del, JSContext *cx, JSObject *obj, jsval *vp);\n\n"); + "static JSBool JSAPI_PROP(del, JSContext *cx, JSObject *obj, jsval *vp);\n\n"); } /* forward declare get property */ if (binding->getproperty != NULL) { fprintf(binding->outfile, - "static JSBool JSAPI_PROP_DEFAULT(get, JSContext *cx, JSObject *obj, jsval *vp);\n\n"); + "static JSBool JSAPI_PROP(get, JSContext *cx, JSObject *obj, jsval *vp);\n\n"); } /* forward declare set property */ if (binding->setproperty != NULL) { fprintf(binding->outfile, - "static JSBool JSAPI_PROP_DEFAULT(set, JSContext *cx, JSObject *obj, jsval *vp);\n\n"); + "static JSBool JSAPI_STRICTPROP(set, JSContext *cx, JSObject *obj, jsval *vp);\n\n"); } /* forward declare the enumerate */ -- cgit v1.2.3