From 8d4981fcc1c545396df3eac87a3c1a67f3d30038 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Mon, 3 Feb 2020 15:53:56 +0300 Subject: [texo] Abolished dependency on ScriptPP. --- examples/markdown.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'examples/markdown.cpp') diff --git a/examples/markdown.cpp b/examples/markdown.cpp index 75a32ca..648d529 100644 --- a/examples/markdown.cpp +++ b/examples/markdown.cpp @@ -9,10 +9,10 @@ void plain() { fputs(" ---- Markdown to Plain ----\n", stdout); - TexoExporterFile exporter(stdout); + TexoFile exporter(stdout); TexoProducerPlain producer(exporter); TexoImporterMarkdown importer(producer); - FILE * file = fopen("markdown.md", "r"); + FILE *file = fopen("markdown.md", "r"); importer.Put(file); importer.End(); fclose(file); @@ -21,10 +21,10 @@ void plain() void html() { fputs("\n ---- Markdown to HTML ----\n", stdout); - TexoExporterFile exporter(stdout); + TexoFile exporter(stdout); TexoProducerHTML producer(exporter); TexoImporterMarkdown importer(producer); - FILE * file = fopen("markdown.md", "r"); + FILE *file = fopen("markdown.md", "r"); importer.Put(file); importer.End(); fclose(file); @@ -33,10 +33,10 @@ void html() void markdown() { fputs("\n ---- Markdown to Markdown ----\n", stdout); - TexoExporterFile exporter(stdout); + TexoFile exporter(stdout); TexoProducerMarkdown producer(exporter); TexoImporterMarkdown importer(producer); - FILE * file = fopen("markdown.md", "r"); + FILE *file = fopen("markdown.md", "r"); importer.Put(file); importer.End(); fclose(file); @@ -45,15 +45,16 @@ void markdown() void lines() { fputs("\n ---- Markdown to Lines ----\n", stdout); - TexoExporterFile exporter(stdout); + TexoFile exporter(stdout); TexoProducerLines producer(exporter); TexoImporterMarkdown importer(producer); - FILE * file = fopen("markdown.md", "r"); + FILE *file = fopen("markdown.md", "r"); importer.Put(file); importer.End(); fclose(file); } + int main() { plain(); -- cgit v1.2.3