=================================================================== RCS file: /cvs/mandoc/Attic/libmdocml.h,v retrieving revision 1.7 retrieving revision 1.9 diff -u -p -r1.7 -r1.9 --- mandoc/Attic/libmdocml.h 2008/11/25 12:14:02 1.7 +++ mandoc/Attic/libmdocml.h 2008/11/28 11:21:12 1.9 @@ -1,4 +1,4 @@ -/* $Id: libmdocml.h,v 1.7 2008/11/25 12:14:02 kristaps Exp $ */ +/* $Id: libmdocml.h,v 1.9 2008/11/28 11:21:12 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -21,7 +21,7 @@ #include -struct md_params_dummy { +struct md_params_valid { int dummy; }; @@ -30,18 +30,22 @@ struct md_params_html4_strict { }; union md_params { - struct md_params_dummy dummy; + struct md_params_valid valid; struct md_params_html4_strict html4_strict; }; enum md_type { - MD_DUMMY, /* Dummy type echoes input. */ + MD_VALID, /* Validate input only. */ MD_HTML4_STRICT /* HTML4.01-strict. */ }; 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) + int verbosity; }; struct md_buf {