summaryrefslogtreecommitdiff
path: root/src/genjsbind.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2012-09-09 12:23:28 +0100
committerVincent Sanders <vince@kyllikki.org>2012-09-09 12:23:28 +0100
commit640ed1da81d909bb3c2f01a481e7e8d3336f336c (patch)
tree62213942cc809b290f5738fac6379a4d1ddc2acc /src/genjsbind.c
parent03d0a9abbd49e099e4ef522bf60d621b9092ecc5 (diff)
downloadnsgenbind-640ed1da81d909bb3c2f01a481e7e8d3336f336c.tar.gz
nsgenbind-640ed1da81d909bb3c2f01a481e7e8d3336f336c.tar.bz2
split out output geenration
Diffstat (limited to 'src/genjsbind.c')
-rw-r--r--src/genjsbind.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/genjsbind.c b/src/genjsbind.c
index dd5b242..21bf8b1 100644
--- a/src/genjsbind.c
+++ b/src/genjsbind.c
@@ -15,6 +15,7 @@
#include <errno.h>
#include "genjsbind-ast.h"
+#include "jsapi-libdom.h"
#include "options.h"
struct options *options;
@@ -85,13 +86,13 @@ int main(int argc, char **argv)
return 2;
}
- res = genjsbind_parsefile(options->infilename);
+ res = genbind_parsefile(options->infilename);
if (res != 0) {
fprintf(stderr, "Error: parse failed with code %d\n", res);
return res;
}
- res = genjsbind_output(options->outfilename);
+ res = jsapi_libdom_output(options->outfilename);
if (res != 0) {
fprintf(stderr, "Error: output failed with code %d\n", res);
unlink(options->outfilename);