From 7b09f265c1deb12c9e6778c4d92473d66fc5406b Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Wed, 16 Oct 2019 19:34:47 +0300 Subject: [texo] Starting rewriting... --- example/filter_html.cpp | 17 ----------------- example/makefile | 24 ------------------------ example/plain_to_html.cpp | 21 --------------------- 3 files changed, 62 deletions(-) delete mode 100644 example/filter_html.cpp delete mode 100644 example/makefile delete mode 100644 example/plain_to_html.cpp (limited to 'example') diff --git a/example/filter_html.cpp b/example/filter_html.cpp deleted file mode 100644 index a1957c3..0000000 --- a/example/filter_html.cpp +++ /dev/null @@ -1,17 +0,0 @@ -#include -#include -#include - -int main() -{ - TexoFileExporter exporter(stdout); - TexoHTMLProducer producer(exporter); - TexoHTMLImporter importer(producer); - importer.PutStr( - "

\n" - "Some br:
\n" - "

And paragraphs work well too...

\n" - "You can use some

witchcraft.\n" - ); - return 0; -} diff --git a/example/makefile b/example/makefile deleted file mode 100644 index 39d4db7..0000000 --- a/example/makefile +++ /dev/null @@ -1,24 +0,0 @@ -# Uncomment following to enable debug mode: -# DEBUG = yes - -CC = g++ -EXAMPLES = plain_to_html filter_html - -CFLAGS = -Wall -ifeq '$(DEBUG)' 'yes' -CFLAGS += -g -O0 -else -CFLAGS += -O3 -endif - -INCLUDE = -I ../src -LFLAGS = -L.. -ltexo - - -default: $(EXAMPLES) - -%: %.cpp - $(CC) $(CFLAGS) $(INCLUDE) $< $(LFLAGS) -o $@ - -clean: - rm -f $(EXAMPLES) diff --git a/example/plain_to_html.cpp b/example/plain_to_html.cpp deleted file mode 100644 index 9a81652..0000000 --- a/example/plain_to_html.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include -#include -#include -#include - - -int main() -{ - TexoFileExporter exporter(stdout); - TexoHTMLProducer producer(exporter); - TexoPlainImporter importer(producer); - importer.PutStr( - "I am a little cute line. \n" - "I am another and that's fine. \n" - "But I am as long as a pine,\n" - "so lets drink a glass of wine.\n\n" - "Second paragraph was started here. \n" - "Take your bananas and go home, seer.\n" - ); - return 0; -} -- cgit v1.2.3