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

Diff for /mandoc/demandoc.c between version 1.17 and 1.19

version 1.17, 2015/04/02 22:48:17 version 1.19, 2015/04/18 16:34:25
Line 110  usage(void)
Line 110  usage(void)
 static void  static void
 pmandoc(struct mparse *mp, int fd, const char *fn, int list)  pmandoc(struct mparse *mp, int fd, const char *fn, int list)
 {  {
         struct mdoc     *mdoc;          struct roff_man *man;
         struct man      *man;  
         int              line, col;          int              line, col;
   
         mparse_readfd(mp, fd, fn);          mparse_readfd(mp, fd, fn);
         mparse_result(mp, &mdoc, &man, NULL);          mparse_result(mp, &man, NULL);
         line = 1;          line = 1;
         col = 0;          col = 0;
   
         if (mdoc)          if (man == NULL)
                 pmdoc(mdoc_node(mdoc), &line, &col, list);  
         else if (man)  
                 pman(man_node(man), &line, &col, list);  
         else  
                 return;                  return;
           if (man->macroset == MACROSET_MDOC)
                   pmdoc(mdoc_node(man), &line, &col, list);
           else
                   pman(man_node(man), &line, &col, list);
   
         if ( ! list)          if ( ! list)
                 putchar('\n');                  putchar('\n');

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.19

CVSweb