diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-08-17 19:12:51 +0200 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-08-17 19:12:51 +0200 |
commit | e8d19a2821bfd15bcbe8d17f6564439c1673cbf7 (patch) | |
tree | 4ee0523aabdf146967a12761c5050bd74bba917c /src/nsgenbind.c | |
parent | 40cd6a199d8a5f92f71c5638f4da021a779e7a5c (diff) | |
download | nsgenbind-e8d19a2821bfd15bcbe8d17f6564439c1673cbf7.tar.gz nsgenbind-e8d19a2821bfd15bcbe8d17f6564439c1673cbf7.tar.bz2 |
rename interface map to be intermediate representation
The interface map is now completely inapropriately named and is in
fact now an intermediate representation of the webidl and bindings
kept in a sorted order.
Diffstat (limited to 'src/nsgenbind.c')
-rw-r--r-- | src/nsgenbind.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/nsgenbind.c b/src/nsgenbind.c index 9558b95..135c5c0 100644 --- a/src/nsgenbind.c +++ b/src/nsgenbind.c @@ -17,7 +17,7 @@ #include "options.h" #include "nsgenbind-ast.h" #include "webidl-ast.h" -#include "interface-map.h" +#include "ir.h" #include "jsapi-libdom.h" #include "duk-libdom.h" @@ -192,7 +192,7 @@ int main(int argc, char **argv) int res; struct genbind_node *genbind_root = NULL; struct webidl_node *webidl_root = NULL; - struct interface_map *interface_map = NULL; + struct ir *ir = NULL; enum bindingtype_e bindingtype; options = process_cmdline(argc, argv); @@ -225,20 +225,20 @@ int main(int argc, char **argv) /* debug dump of web idl AST */ webidl_dump_ast(webidl_root); - /* generate map of WebIDL interfaces sorted by inheritance */ - res = interface_map_new(genbind_root, webidl_root, &interface_map); + /* generate intermediate representation */ + res = ir_new(genbind_root, webidl_root, &ir); if (res != 0) { return 5; } - /* dump the interface mapping */ - interface_map_dump(interface_map); - interface_map_dumpdot(interface_map); + /* dump the intermediate representation */ + ir_dump(ir); + ir_dumpdot(ir); /* generate binding */ switch (bindingtype) { case BINDINGTYPE_DUK_LIBDOM: - res = duk_libdom_output(interface_map); + res = duk_libdom_output(ir); break; default: |