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

Diff for /mandoc/main.c between version 1.313 and 1.314

version 1.313, 2018/12/14 05:18:02 version 1.314, 2018/12/20 21:30:32
Line 510  main(int argc, char *argv[])
Line 510  main(int argc, char *argv[])
                 } else                  } else
                         thisarg = *argv;                          thisarg = *argv;
   
                 mandoc_msg_setinfilename(thisarg);  
                 fd = mparse_open(curp.mp, thisarg);                  fd = mparse_open(curp.mp, thisarg);
                 if (fd != -1) {                  if (fd != -1) {
                         if (use_pager) {                          if (use_pager) {
Line 523  main(int argc, char *argv[])
Line 522  main(int argc, char *argv[])
                                             conf.output.tag : *argv;                                              conf.output.tag : *argv;
                         }                          }
   
                           mandoc_msg_setinfilename(thisarg);
                         if (resp == NULL || resp->form == FORM_SRC)                          if (resp == NULL || resp->form == FORM_SRC)
                                 parse(&curp, fd, thisarg);                                  parse(&curp, fd, thisarg);
                         else                          else
                                 passthrough(resp->file, fd,                                  passthrough(resp->file, fd,
                                     conf.output.synopsisonly);                                      conf.output.synopsisonly);
                           mandoc_msg_setinfilename(NULL);
   
                         if (ferror(stdout)) {                          if (ferror(stdout)) {
                                 if (tag_files != NULL) {                                  if (tag_files != NULL) {
Line 545  main(int argc, char *argv[])
Line 546  main(int argc, char *argv[])
                                         outdata_alloc(&curp);                                          outdata_alloc(&curp);
                                 terminal_sepline(curp.outdata);                                  terminal_sepline(curp.outdata);
                         }                          }
                 }                  } else
                 mandoc_msg_setinfilename(NULL);                          mandoc_msg(MANDOCERR_FILE, 0, 0,
                               "%s", strerror(errno));
   
                 if (curp.wstop && mandoc_msg_getrc() != MANDOCLEVEL_OK)                  if (curp.wstop && mandoc_msg_getrc() != MANDOCLEVEL_OK)
                         break;                          break;

Legend:
Removed from v.1.313  
changed lines
  Added in v.1.314

CVSweb