Annotation of mandoc/mdoclint.c, Revision 1.1
1.1 ! kristaps 1: /* $Id: mdoctree.c,v 1.4 2009/02/23 12:45:19 kristaps Exp $ */
! 2: /*
! 3: * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
! 4: *
! 5: * Permission to use, copy, modify, and distribute this software for any
! 6: * purpose with or without fee is hereby granted, provided that the
! 7: * above copyright notice and this permission notice appear in all
! 8: * copies.
! 9: *
! 10: * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
! 11: * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
! 12: * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
! 13: * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
! 14: * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
! 15: * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
! 16: * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
! 17: * PERFORMANCE OF THIS SOFTWARE.
! 18: */
! 19: #include <assert.h>
! 20: #include <err.h>
! 21: #include <getopt.h>
! 22: #include <stdio.h>
! 23: #include <stdlib.h>
! 24:
! 25: #include "mmain.h"
! 26:
! 27: int
! 28: main(int argc, char *argv[])
! 29: {
! 30: struct mmain *p;
! 31: const struct mdoc *mdoc;
! 32:
! 33: p = mmain_alloc();
! 34:
! 35: if ( ! mmain_getopt(p, argc, argv, NULL, NULL, NULL, NULL))
! 36: mmain_exit(p, 1);
! 37:
! 38: if (NULL == (mdoc = mmain_mdoc(p)))
! 39: mmain_exit(p, 1);
! 40:
! 41: mmain_exit(p, 0);
! 42: /* NOTREACHED */
! 43: }
! 44:
CVSweb