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

Diff for /mandoc/Attic/mdoctree.c between version 1.6 and 1.8

version 1.6, 2009/03/08 14:01:46 version 1.8, 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 32  int
Line 32  int
 main(int argc, char *argv[])  main(int argc, char *argv[])
 {  {
         struct mmain      *p;          struct mmain      *p;
         int                c;  
         const struct mdoc *mdoc;          const struct mdoc *mdoc;
           int                c;
           char              *in;
   
         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;
           if ((argc -= c) > 0)
                   in = *argv++;
           else
                   in = "-";
   
           if (NULL == (mdoc = mmain_mdoc(p, in)))
                 mmain_exit(p, 1);                  mmain_exit(p, 1);
   
         doprint(mdoc_node(mdoc), 0);          doprint(mdoc_node(mdoc), 0);

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.8

CVSweb