summaryrefslogtreecommitdiff
path: root/examples/plain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/plain.cpp')
-rw-r--r--examples/plain.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/examples/plain.cpp b/examples/plain.cpp
index 71648cc..b64c4b1 100644
--- a/examples/plain.cpp
+++ b/examples/plain.cpp
@@ -9,10 +9,10 @@
void plain()
{
fputs(" ---- Plain to Plain ----\n", stdout);
- TexoExporterFile exporter(stdout);
+ TexoFile 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);
+ TexoFile 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);
+ TexoFile exporter(stdout);
TexoProducerMarkdown producer(exporter);
TexoImporterPlain importer(producer);
- FILE * file = fopen("plain.txt", "r");
+ FILE *file = fopen("plain.txt", "r");
importer.Put(file);
importer.End();
fclose(file);
@@ -45,15 +45,16 @@ void markdown()
void lines()
{
fputs("\n ---- Plain to Lines ----\n", stdout);
- TexoExporterFile exporter(stdout);
+ TexoFile 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);
}
+
int main()
{
plain();