[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.7

version 1.6, 2009/03/08 14:01:46 version 1.7, 2009/03/15 07:08:53
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.7

CVSweb