summaryrefslogtreecommitdiff
path: root/src/jsapi-libdom-property.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2012-11-03 13:51:27 +0000
committerVincent Sanders <vince@kyllikki.org>2012-11-03 13:51:27 +0000
commitb24bb6c442566ead09e9e7675aa5631b1eb618dc (patch)
tree04d76edfe6ce8199e7c662d116f2c6e42581cba0 /src/jsapi-libdom-property.c
parentea60a7f1f7f2811bfa14879e345af529e8780e19 (diff)
downloadnsgenbind-b24bb6c442566ead09e9e7675aa5631b1eb618dc.tar.gz
nsgenbind-b24bb6c442566ead09e9e7675aa5631b1eb618dc.tar.bz2
fix list generation indentation to use tabs correctly
Diffstat (limited to 'src/jsapi-libdom-property.c')
-rw-r--r--src/jsapi-libdom-property.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/jsapi-libdom-property.c b/src/jsapi-libdom-property.c
index b5f30b9..e9f7706 100644
--- a/src/jsapi-libdom-property.c
+++ b/src/jsapi-libdom-property.c
@@ -17,6 +17,9 @@
#include "webidl-ast.h"
#include "jsapi-libdom.h"
+#define WARN(msg, args...) fprintf(stderr, "%s: warning:"msg"\n", __func__, ## args);
+
+
static int webidl_property_spec_cb(struct webidl_node *node, void *ctx)
{
struct binding *binding = ctx;
@@ -41,11 +44,11 @@ static int webidl_property_spec_cb(struct webidl_node *node, void *ctx)
} else {
if (webidl_node_getint(modifier_node) == WEBIDL_TYPE_READONLY) {
fprintf(binding->outfile,
- " JSAPI_PS_RO(%s, 0, JSPROP_ENUMERATE | JSPROP_SHARED),\n",
+ "\tJSAPI_PS_RO(%s, 0, JSPROP_ENUMERATE | JSPROP_SHARED),\n",
webidl_node_gettext(ident_node));
} else {
fprintf(binding->outfile,
- " JSAPI_PS(%s, 0, JSPROP_ENUMERATE | JSPROP_SHARED),\n",
+ "\tJSAPI_PS(%s, 0, JSPROP_ENUMERATE | JSPROP_SHARED),\n",
webidl_node_gettext(ident_node));
}
}
@@ -88,7 +91,7 @@ generate_property_spec(struct binding *binding, const char *interface)
while (members_node != NULL) {
- fprintf(binding->outfile," /**** %s ****/\n", interface);
+ fprintf(binding->outfile,"\t/**** %s ****/\n", interface);
/* for each function emit a JSAPI_FS()*/
@@ -135,13 +138,11 @@ output_property_spec(struct binding *binding)
res = generate_property_spec(binding, binding->interface);
- fprintf(binding->outfile, " JSAPI_PS_END\n};\n\n");
+ fprintf(binding->outfile, "\tJSAPI_PS_END\n};\n\n");
return res;
}
-#define WARN(msg, args...) fprintf(stderr, "%s: warning:"msg"\n", __func__, ## args);
-
static int output_return(struct binding *binding,
const char *ident,
struct webidl_node *node)