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

Diff for /mandoc/main.c between version 1.214 and 1.215

version 1.214, 2015/01/14 21:27:17 version 1.215, 2015/01/15 04:26:39
Line 176  main(int argc, char *argv[])
Line 176  main(int argc, char *argv[])
   
         memset(&curp, 0, sizeof(struct curparse));          memset(&curp, 0, sizeof(struct curparse));
         curp.outtype = OUTT_LOCALE;          curp.outtype = OUTT_LOCALE;
         curp.wlevel  = MANDOCLEVEL_FATAL;          curp.wlevel  = MANDOCLEVEL_BADARG;
         options = MPARSE_SO | MPARSE_UTF8 | MPARSE_LATIN1;          options = MPARSE_SO | MPARSE_UTF8 | MPARSE_LATIN1;
         defos = NULL;          defos = NULL;
   
Line 647  parse(struct curparse *curp, int fd, const char *file,
Line 647  parse(struct curparse *curp, int fd, const char *file,
   
         rc = mparse_readfd(curp->mp, fd, file);          rc = mparse_readfd(curp->mp, fd, file);
   
         /* Stop immediately if the parse has failed. */  
   
         if (MANDOCLEVEL_FATAL <= rc)  
                 goto cleanup;  
   
         /*          /*
          * With -Wstop and warnings or errors of at least the requested           * With -Wstop and warnings or errors of at least the requested
          * level, do not produce output.           * level, do not produce output.
Line 913  woptions(struct curparse *curp, char *arg)
Line 908  woptions(struct curparse *curp, char *arg)
                         curp->wlevel = MANDOCLEVEL_ERROR;                          curp->wlevel = MANDOCLEVEL_ERROR;
                         break;                          break;
                 case 4:                  case 4:
                         curp->wlevel = MANDOCLEVEL_FATAL;                          curp->wlevel = MANDOCLEVEL_BADARG;
                         break;                          break;
                 default:                  default:
                         fprintf(stderr, "%s: -W %s: Bad argument\n",                          fprintf(stderr, "%s: -W %s: Bad argument\n",

Legend:
Removed from v.1.214  
changed lines
  Added in v.1.215

CVSweb