From ac4bc07079be4963163734d67749697140f23b4b Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 3 Dec 2008 14:39:59 +0000 Subject: Abstract ml/mlg/html/xml. --- libmdocml.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'libmdocml.c') diff --git a/libmdocml.c b/libmdocml.c index 7cf6c079..ba4e850f 100644 --- a/libmdocml.c +++ b/libmdocml.c @@ -139,8 +139,8 @@ md_run_leave(const struct md_args *args, struct md_mbuf *mbuf, /* Run exiters. */ switch (args->type) { - case (MD_HTML4_STRICT): - if ( ! md_exit_html4_strict(data, -1 == c ? 0 : 1)) + case (MD_HTML): + if ( ! md_exit_html(data, -1 == c ? 0 : 1)) c = -1; break; default: @@ -172,8 +172,8 @@ md_run_enter(const struct md_args *args, struct md_mbuf *mbuf, /* Function ptrs to line-parsers. */ switch (args->type) { - case (MD_HTML4_STRICT): - fp = md_line_html4_strict; + case (MD_HTML): + fp = md_line_html; break; default: fp = md_line_xml; @@ -242,9 +242,8 @@ md_run(const struct md_args *args, /* Run initialisers. */ switch (args->type) { - case (MD_HTML4_STRICT): - data = md_init_html4_strict - (args, &mbuf, &rbuf); + case (MD_HTML): + data = md_init_html(args, &mbuf, &rbuf); break; default: data = md_init_xml(args, &mbuf, &rbuf); -- cgit