]> git.sesse.net Git - xml-template/blobdiff - c++0x/passthru.cpp
Tweak C++0x API a bit, to prepare for include. Also, output to stdout instead of...
[xml-template] / c++0x / passthru.cpp
index afc38ec129bc9d8f6a0b3337706efc404fa8847f..28cc2f4873311705e0e2a7192eb20514bb5736a2 100644 (file)
@@ -8,7 +8,8 @@ using namespace std;
 
 int main(int argc, char **argv)
 {
-       unordered_map<string, Directive*> master_map;
-       process_file("../xml/passthru.xml", argv[1], new Substitute(master_map));
+       Substitute master_directive = {};
+       xmlDocPtr doc = process_file("../xml/passthru.xml", &master_directive);
+       output_to_fd_and_free(doc, 1);
        return(0);
 }