File: [cvsweb.bsd.lv] / mandoc / Attic / mdoclint.c (download)
Revision 1.1, Mon Feb 23 13:05:06 2009 UTC (15 years, 7 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_3_9, VERSION_1_3_8, VERSION_1_3_6, VERSION_1_3_5, VERSION_1_3_15, VERSION_1_3_13, VERSION_1_3_11, VERSION_1_3_10
Added mdoclint.
`make regress' uses mdoclint
|
/* $Id: mdoclint.c,v 1.1 2009/02/23 13:05:06 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
* 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 <assert.h>
#include <err.h>
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#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 */
}