[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.119 and 1.120

version 1.119, 2015/01/13 23:16:12 version 1.120, 2015/01/14 21:27:01
Line 116 
Line 116 
         size_t           isec, i, sz;          size_t           isec, i, sz;
         int              prio, best_prio, synopsis_only;          int              prio, best_prio, synopsis_only;
         char             sec;          char             sec;
         enum mandoclevel rc;          enum mandoclevel rc, rctmp;
         enum outmode     outmode;          enum outmode     outmode;
         int              fd;          int              fd;
         int              show_usage;          int              show_usage;
Line 397 
Line 397 
         }          }
   
         while (argc) {          while (argc) {
                 rc = mparse_open(curp.mp, &fd,                  rctmp = mparse_open(curp.mp, &fd,
                     resp != NULL ? resp->file : *argv);                      resp != NULL ? resp->file : *argv);
                   if (rc < rctmp)
                           rc = rctmp;
   
                 if (fd != -1) {                  if (fd != -1) {
                         if (use_pager && isatty(STDOUT_FILENO))                          if (use_pager && isatty(STDOUT_FILENO))
Line 411 
Line 413 
                                 /* For .so only; ignore failure. */                                  /* For .so only; ignore failure. */
                                 chdir(paths.paths[resp->ipath]);                                  chdir(paths.paths[resp->ipath]);
                                 parse(&curp, fd, resp->file, &rc);                                  parse(&curp, fd, resp->file, &rc);
                         } else                          } else {
                                 rc = passthrough(resp->file, fd,                                  rctmp = passthrough(resp->file, fd,
                                     synopsis_only);                                      synopsis_only);
                                   if (rc < rctmp)
                                           rc = rctmp;
                           }
   
                         if (mparse_wait(curp.mp) != MANDOCLEVEL_OK)                          rctmp = mparse_wait(curp.mp);
                                 rc = MANDOCLEVEL_SYSERR;                          if (rc < rctmp)
                                   rc = rctmp;
   
                         if (argc > 1 && curp.outtype <= OUTT_UTF8)                          if (argc > 1 && curp.outtype <= OUTT_UTF8)
                                 ascii_sepline(curp.outdata);                                  ascii_sepline(curp.outdata);

Legend:
Removed from v.1.119  
changed lines
  Added in v.1.120