Skip to content
Snippets Groups Projects
Commit 9a940a2e authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

bugfix

Rev: tutorial/wmmltohtml2:1.14
parent bf40fcf7
Branches
Tags
No related merge requests found
......@@ -19,6 +19,7 @@ int main(int argc, string *argv)
mixed *ER=catch {
program output=(program)argv[2];
Wmml->output_format=argv[2];
if (!output) error("can't cast %O to program\n",argv[2]);
object out=output();
if (!out->output) error("%O doesn't have an output method",argv[2]);
......@@ -42,7 +43,7 @@ int main(int argc, string *argv)
werror("Undocumented functions: \n%-#75s\n",(indices(all_constants()) - indices(wmml->index_data))*"\n");
#endif
werror("\nWriting output\n");
output()->output(argv[3],wmml);
out->output(argv[3],wmml);
write("Ok\n");
exit(0);
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment