diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2019-11-13 19:16:21 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2019-11-13 19:16:21 +0300 |
commit | a45cb537ab82f13f29f1bc33dd8bf998b3fb9c9b (patch) | |
tree | 1b9473f7f27221a5de56bb51edacd5be9a61a6b9 /examples | |
parent | ed7a63015c1583d5544ac18bbaccaedc95f3e5e3 (diff) | |
download | texo-a45cb537ab82f13f29f1bc33dd8bf998b3fb9c9b.tar texo-a45cb537ab82f13f29f1bc33dd8bf998b3fb9c9b.tar.xz texo-a45cb537ab82f13f29f1bc33dd8bf998b3fb9c9b.zip |
Cosmetical changes.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/lines.cpp | 26 | ||||
-rw-r--r-- | examples/markdown.cpp | 28 | ||||
-rw-r--r-- | examples/plain.cpp | 26 |
3 files changed, 40 insertions, 40 deletions
diff --git a/examples/lines.cpp b/examples/lines.cpp index 7c46a6e..96da19a 100644 --- a/examples/lines.cpp +++ b/examples/lines.cpp @@ -1,18 +1,18 @@ -#include <stdio.h> +#include <file.hpp> #include <html.hpp> -#include <plain.hpp> #include <lines.hpp> #include <markdown.hpp> -#include <file.hpp> +#include <plain.hpp> +#include <stdio.h> void plain() { fputs(" ---- Lines to Plain ----\n", stdout); - TexoExporterFile exporter(stdout); + TexoExporterFile exporter(stdout); TexoProducerPlain producer(exporter); TexoImporterLines importer(producer); - FILE *file = fopen("lines.txt", "r"); + FILE * file = fopen("lines.txt", "r"); importer.Put(file); importer.End(); fclose(file); @@ -21,10 +21,10 @@ void plain() void html() { fputs("\n ---- Lines to HTML ----\n", stdout); - TexoExporterFile exporter(stdout); - TexoProducerHTML producer(exporter); + TexoExporterFile exporter(stdout); + TexoProducerHTML producer(exporter); TexoImporterLines importer(producer); - FILE *file = fopen("lines.txt", "r"); + FILE * file = fopen("lines.txt", "r"); importer.Put(file); importer.End(); fclose(file); @@ -33,10 +33,10 @@ void html() void markdown() { fputs("\n ---- Lines to Markdown ----\n", stdout); - TexoExporterFile exporter(stdout); + TexoExporterFile exporter(stdout); TexoProducerMarkdown producer(exporter); - TexoImporterLines importer(producer); - FILE *file = fopen("lines.txt", "r"); + TexoImporterLines importer(producer); + FILE * file = fopen("lines.txt", "r"); importer.Put(file); importer.End(); fclose(file); @@ -45,10 +45,10 @@ void markdown() void lines() { fputs("\n ---- Lines to Lines ----\n", stdout); - TexoExporterFile exporter(stdout); + TexoExporterFile exporter(stdout); TexoProducerLines producer(exporter); TexoImporterLines importer(producer); - FILE *file = fopen("lines.txt", "r"); + FILE * file = fopen("lines.txt", "r"); importer.Put(file); importer.End(); fclose(file); diff --git a/examples/markdown.cpp b/examples/markdown.cpp index c1677f3..75a32ca 100644 --- a/examples/markdown.cpp +++ b/examples/markdown.cpp @@ -1,18 +1,18 @@ -#include <stdio.h> +#include <file.hpp> #include <html.hpp> -#include <plain.hpp> #include <lines.hpp> #include <markdown.hpp> -#include <file.hpp> +#include <plain.hpp> +#include <stdio.h> void plain() { fputs(" ---- Markdown to Plain ----\n", stdout); - TexoExporterFile exporter(stdout); - TexoProducerPlain producer(exporter); + TexoExporterFile 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); - TexoProducerHTML producer(exporter); + TexoExporterFile 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); + TexoExporterFile 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,10 +45,10 @@ void markdown() void lines() { fputs("\n ---- Markdown to Lines ----\n", stdout); - TexoExporterFile exporter(stdout); - TexoProducerLines producer(exporter); + TexoExporterFile 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); diff --git a/examples/plain.cpp b/examples/plain.cpp index bf48472..71648cc 100644 --- a/examples/plain.cpp +++ b/examples/plain.cpp @@ -1,18 +1,18 @@ -#include <stdio.h> +#include <file.hpp> #include <html.hpp> -#include <plain.hpp> #include <lines.hpp> #include <markdown.hpp> -#include <file.hpp> +#include <plain.hpp> +#include <stdio.h> void plain() { fputs(" ---- Plain to Plain ----\n", stdout); - TexoExporterFile exporter(stdout); + TexoExporterFile exporter(stdout); TexoProducerPlain producer(exporter); TexoImporterPlain importer(producer); - FILE *file = fopen("plain.txt", "r"); + FILE * file = fopen("plain.txt", "r"); importer.Put(file); importer.End(); fclose(file); @@ -21,10 +21,10 @@ void plain() void html() { fputs("\n ---- Plain to HTML ----\n", stdout); - TexoExporterFile exporter(stdout); - TexoProducerHTML producer(exporter); + TexoExporterFile exporter(stdout); + TexoProducerHTML producer(exporter); TexoImporterPlain importer(producer); - FILE *file = fopen("plain.txt", "r"); + FILE * file = fopen("plain.txt", "r"); importer.Put(file); importer.End(); fclose(file); @@ -33,10 +33,10 @@ void html() void markdown() { fputs("\n ---- Plain to Markdown ----\n", stdout); - TexoExporterFile exporter(stdout); + TexoExporterFile exporter(stdout); TexoProducerMarkdown producer(exporter); - TexoImporterPlain importer(producer); - FILE *file = fopen("plain.txt", "r"); + TexoImporterPlain importer(producer); + FILE * file = fopen("plain.txt", "r"); importer.Put(file); importer.End(); fclose(file); @@ -45,10 +45,10 @@ void markdown() void lines() { fputs("\n ---- Plain to Lines ----\n", stdout); - TexoExporterFile exporter(stdout); + TexoExporterFile exporter(stdout); TexoProducerLines producer(exporter); TexoImporterPlain importer(producer); - FILE *file = fopen("plain.txt", "r"); + FILE * file = fopen("plain.txt", "r"); importer.Put(file); importer.End(); fclose(file); |