X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=c%2B%2B0x%2Fpassthru.cpp;h=28cc2f4873311705e0e2a7192eb20514bb5736a2;hb=ad45bc892752571fec46b21564e4683c074f1d46;hp=afc38ec129bc9d8f6a0b3337706efc404fa8847f;hpb=e80f2b44f155a6d93d1485657c4cd2008e06f5ad;p=xml-template diff --git a/c++0x/passthru.cpp b/c++0x/passthru.cpp index afc38ec..28cc2f4 100644 --- a/c++0x/passthru.cpp +++ b/c++0x/passthru.cpp @@ -8,7 +8,8 @@ using namespace std; int main(int argc, char **argv) { - unordered_map 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); }