From 7afe8a4e9da86c2e69030ba80f8fb4412d0e1307 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 23 Feb 2009 13:05:06 +0000 Subject: Added mdoclint. `make regress' uses mdoclint --- mdoclint.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 mdoclint.c (limited to 'mdoclint.c') diff --git a/mdoclint.c b/mdoclint.c new file mode 100644 index 00000000..b7247c12 --- /dev/null +++ b/mdoclint.c @@ -0,0 +1,44 @@ + /* $Id: mdoclint.c,v 1.1 2009/02/23 13:05:06 kristaps Exp $ */ +/* + * Copyright (c) 2008 Kristaps Dzonsons + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the + * above copyright notice and this permission notice appear in all + * copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL + * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE + * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL + * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR + * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER + * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + * PERFORMANCE OF THIS SOFTWARE. + */ +#include +#include +#include +#include +#include + +#include "mmain.h" + +int +main(int argc, char *argv[]) +{ + struct mmain *p; + const struct mdoc *mdoc; + + p = mmain_alloc(); + + if ( ! mmain_getopt(p, argc, argv, NULL, NULL, NULL, NULL)) + mmain_exit(p, 1); + + if (NULL == (mdoc = mmain_mdoc(p))) + mmain_exit(p, 1); + + mmain_exit(p, 0); + /* NOTREACHED */ +} + -- cgit v1.2.3-56-ge451