[BACK]Return to mdoclint.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/Attic/mdoclint.c between version 1.2 and 1.4

version 1.2, 2009/03/06 14:13:47 version 1.4, 2009/03/16 23:37:28
Line 1 
Line 1 
         /* $Id$ */  /* $Id$ */
 /*  /*
  * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>   * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the   * purpose with or without fee is hereby granted, provided that the
Line 29  main(int argc, char *argv[])
Line 29  main(int argc, char *argv[])
 {  {
         struct mmain    *p;          struct mmain    *p;
         int              c;          int              c;
         const struct mdoc *mdoc;  
   
         p = mmain_alloc();          p = mmain_alloc();
   
         c = mmain_getopt(p, argc, argv, NULL, NULL, NULL, NULL);          c = mmain_getopt(p, argc, argv, NULL,
         if (1 != c)                          "[infile...]", NULL, NULL, NULL);
                 mmain_exit(p, -1 == c ? 1 : 0);  
   
         if (NULL == (mdoc = mmain_mdoc(p)))          argv += c;
                 mmain_exit(p, 1);          if (0 == (argc -= c))
                   mmain_exit(p, NULL != mmain_mdoc(p, "-"));
   
           while (c-- > 0) {
                   if (NULL == mmain_mdoc(p, *argv++))
                           mmain_exit(p, 1);
                   mmain_reset(p);
           }
   
         mmain_exit(p, 0);          mmain_exit(p, 0);
         /* NOTREACHED */          /* NOTREACHED */

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

CVSweb