diff options
author | Vincent Sanders <vince@kyllikki.org> | 2013-12-21 22:29:42 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-05-16 14:38:56 +0100 |
commit | c25cc0e348a1abf0ee0719cf30515b3cc07f1848 (patch) | |
tree | 08458682835c7d4177ad785f423467e64e51fcc0 /src/jsapi-libdom-property.c | |
parent | abec5defbb553588dce1c317b74570061705f6d0 (diff) | |
download | nsgenbind-c25cc0e348a1abf0ee0719cf30515b3cc07f1848.tar.gz nsgenbind-c25cc0e348a1abf0ee0719cf30515b3cc07f1848.tar.bz2 |
move flag indicating jsapi object for an interface should be a global from api definition to the interface flags
Diffstat (limited to 'src/jsapi-libdom-property.c')
-rw-r--r-- | src/jsapi-libdom-property.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/jsapi-libdom-property.c b/src/jsapi-libdom-property.c index 091b2c6..7e67bae 100644 --- a/src/jsapi-libdom-property.c +++ b/src/jsapi-libdom-property.c @@ -108,7 +108,7 @@ output_property_tinyid_get(struct binding *binding, const char *argname) /******************************** tinyid ********************************/ -static int +static int webidl_property_tinyid_cb(struct webidl_node *node, void *ctx) { struct binding *binding = ctx; @@ -132,7 +132,7 @@ webidl_property_tinyid_cb(struct webidl_node *node, void *ctx) } /* callback to emit implements property spec */ -static int +static int webidl_property_tinyid_implements_cb(struct webidl_node *node, void *ctx) { struct binding *binding = ctx; @@ -211,7 +211,7 @@ output_property_tinyid(struct binding *binding) res = generate_property_tinyid(binding, binding->interface); - fprintf(binding->outfile, + fprintf(binding->outfile, "\tJSAPI_PROP_TINYID_END,\n" "};\n\n"); @@ -386,21 +386,21 @@ static int webidl_property_spec_cb(struct webidl_node *node, void *ctx) * js doesnt provide storage and setter/getter must * perform all GC management. */ - fprintf(binding->outfile, + fprintf(binding->outfile, "\t\t%s,\n" "\t\tJSAPI_PROP_TINYID_%s,\n" - "\t\tJSPROP_SHARED | ", - ident, + "\t\tJSPROP_SHARED | ", + ident, ident); break; case GENBIND_TYPE_TYPE: /* shared property with a type handler */ - fprintf(binding->outfile, + fprintf(binding->outfile, "\t\t%s,\n" "\t\tJSAPI_PROP_TINYID_%s,\n" - "\t\tJSPROP_SHARED | ", - type, + "\t\tJSPROP_SHARED | ", + type, ident); break; @@ -1028,9 +1028,9 @@ generate_property_body(struct binding *binding, const char *interface) /* setter for type handler */ -static int -output_property_type_setter(struct binding *binding, - struct genbind_node *node, +static int +output_property_type_setter(struct binding *binding, + struct genbind_node *node, const char *type) { struct genbind_node *property_node; @@ -1149,7 +1149,7 @@ output_property_body(struct binding *binding) res = generate_property_body(binding, binding->interface); if (res == 0) { - res = genbind_node_for_each_type(binding->binding_list, + res = genbind_node_foreach_type(binding->binding_list, GENBIND_NODE_TYPE_BINDING_PROPERTY, typehandler_property_cb, binding); |