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

Diff for /mandoc/main.c between version 1.163 and 1.165

version 1.163, 2011/05/20 15:51:18 version 1.165, 2011/10/06 22:29:12
Line 46  enum outt {
Line 46  enum outt {
         OUTT_LOCALE,    /* -Tlocale */          OUTT_LOCALE,    /* -Tlocale */
         OUTT_UTF8,      /* -Tutf8 */          OUTT_UTF8,      /* -Tutf8 */
         OUTT_TREE,      /* -Ttree */          OUTT_TREE,      /* -Ttree */
           OUTT_MAN,       /* -Tman */
         OUTT_HTML,      /* -Thtml */          OUTT_HTML,      /* -Thtml */
         OUTT_XHTML,     /* -Txhtml */          OUTT_XHTML,     /* -Txhtml */
         OUTT_LINT,      /* -Tlint */          OUTT_LINT,      /* -Tlint */
Line 126  main(int argc, char *argv[])
Line 127  main(int argc, char *argv[])
   
         curp.mp = mparse_alloc(type, curp.wlevel, mmsg, &curp);          curp.mp = mparse_alloc(type, curp.wlevel, mmsg, &curp);
   
           /*
            * Conditionally start up the lookaside buffer before parsing.
            */
           if (OUTT_MAN == curp.outtype)
                   mparse_keep(curp.mp);
   
         argc -= optind;          argc -= optind;
         argv += optind;          argv += optind;
   
Line 249  parse(struct curparse *curp, int fd, 
Line 256  parse(struct curparse *curp, int fd, 
                         curp->outman = tree_man;                          curp->outman = tree_man;
                         curp->outmdoc = tree_mdoc;                          curp->outmdoc = tree_mdoc;
                         break;                          break;
                   case (OUTT_MAN):
                           curp->outmdoc = man_mdoc;
                           curp->outman = man_man;
                           break;
                 case (OUTT_PDF):                  case (OUTT_PDF):
                         /* FALLTHROUGH */                          /* FALLTHROUGH */
                 case (OUTT_ASCII):                  case (OUTT_ASCII):
Line 312  toptions(struct curparse *curp, char *arg)
Line 323  toptions(struct curparse *curp, char *arg)
                 curp->wlevel  = MANDOCLEVEL_WARNING;                  curp->wlevel  = MANDOCLEVEL_WARNING;
         } else if (0 == strcmp(arg, "tree"))          } else if (0 == strcmp(arg, "tree"))
                 curp->outtype = OUTT_TREE;                  curp->outtype = OUTT_TREE;
           else if (0 == strcmp(arg, "man"))
                   curp->outtype = OUTT_MAN;
         else if (0 == strcmp(arg, "html"))          else if (0 == strcmp(arg, "html"))
                 curp->outtype = OUTT_HTML;                  curp->outtype = OUTT_HTML;
         else if (0 == strcmp(arg, "utf8"))          else if (0 == strcmp(arg, "utf8"))

Legend:
Removed from v.1.163  
changed lines
  Added in v.1.165

CVSweb