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

Diff for /src/usr.bin/mandoc/read.c between version 1.189 and 1.190

version 1.189, 2020/04/18 20:28:46 version 1.190, 2020/04/24 11:58:02
Line 552 
Line 552 
   
         struct buf       blk;          struct buf       blk;
         struct buf      *save_primary;          struct buf      *save_primary;
         const char      *save_filename;          const char      *save_filename, *cp;
         size_t           offset;          size_t           offset;
         int              save_filenc, save_lineno;          int              save_filenc, save_lineno;
         int              with_mmap;          int              with_mmap;
Line 560 
Line 560 
         if (recursion_depth > 64) {          if (recursion_depth > 64) {
                 mandoc_msg(MANDOCERR_ROFFLOOP, curp->line, 0, NULL);                  mandoc_msg(MANDOCERR_ROFFLOOP, curp->line, 0, NULL);
                 return;                  return;
         }          } else if (recursion_depth == 0 &&
               (cp = strrchr(filename, '.')) != NULL &&
               cp[1] >= '1' && cp[1] <= '9')
                   curp->man->filesec = cp[1];
           else
                   curp->man->filesec = '\0';
   
         if (read_whole_file(curp, fd, &blk, &with_mmap) == -1)          if (read_whole_file(curp, fd, &blk, &with_mmap) == -1)
                 return;                  return;
   

Legend:
Removed from v.1.189  
changed lines
  Added in v.1.190