=================================================================== RCS file: /cvs/mandoc/Attic/libmdocml.h,v retrieving revision 1.3 retrieving revision 1.14 diff -u -p -r1.3 -r1.14 --- mandoc/Attic/libmdocml.h 2008/11/22 20:15:34 1.3 +++ mandoc/Attic/libmdocml.h 2008/12/10 14:42:46 1.14 @@ -1,4 +1,4 @@ -/* $Id: libmdocml.h,v 1.3 2008/11/22 20:15:34 kristaps Exp $ */ +/* $Id: libmdocml.h,v 1.14 2008/12/10 14:42:46 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -21,27 +21,30 @@ #include -struct md_params_dummy { - int dummy; +struct md_params_html { + char *css; + int flags; +#define HTML_CSS_EMBED (1 << 0) }; -struct md_params_html4_strict { - int dummy; -}; - union md_params { - struct md_params_dummy dummy; - struct md_params_html4_strict html4_strict; + struct md_params_html html; }; enum md_type { - MD_DUMMY, /* Dummy type echoes input. */ - MD_HTML4_STRICT /* HTML4.01-strict. */ + MD_XML, /* XML. */ + MD_HTML, /* HTML4.01-strict. */ + MD_NOOP /* Validates only. */ }; struct md_args { union md_params params;/* Parameters for parser. */ enum md_type type; /* Type of parser. */ + + int warnings; +#define MD_WARN_ALL (1 << 0) +#define MD_WARN_ERROR (1 << 1) + int verbosity; }; struct md_buf {