=================================================================== RCS file: /cvs/mandoc/Attic/libmdocml.h,v retrieving revision 1.6 retrieving revision 1.10 diff -u -p -r1.6 -r1.10 --- mandoc/Attic/libmdocml.h 2008/11/23 23:12:47 1.6 +++ mandoc/Attic/libmdocml.h 2008/11/30 21:41:35 1.10 @@ -1,4 +1,4 @@ -/* $Id: libmdocml.h,v 1.6 2008/11/23 23:12:47 kristaps Exp $ */ +/* $Id: libmdocml.h,v 1.10 2008/11/30 21:41:35 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -21,7 +21,7 @@ #include -struct md_params_dummy { +struct md_params_xml { int dummy; }; @@ -30,20 +30,22 @@ struct md_params_html4_strict { }; union md_params { - struct md_params_dummy dummy; + struct md_params_xml xml; struct md_params_html4_strict html4_strict; }; enum md_type { - MD_DUMMY, /* Dummy type echoes input. */ + MD_XML, /* XML. */ MD_HTML4_STRICT /* HTML4.01-strict. */ }; struct md_args { union md_params params;/* Parameters for parser. */ enum md_type type; /* Type of parser. */ - int dbg; /* Debug level. */ -#define MD_DBG_TREE 1 + + int warnings; +#define MD_WARN_ALL (1 << 0) + int verbosity; }; struct md_buf {