[BACK]Return to main.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/main.c between version 1.216 and 1.217

version 1.216, 2018/12/14 05:17:45 version 1.217, 2018/12/20 21:27:51
Line 480 
Line 480 
                 } 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 493 
Line 492 
                                             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 515 
Line 516 
                                         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.216  
changed lines
  Added in v.1.217