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

Diff for /mandoc/read.c between version 1.144 and 1.147

version 1.144, 2015/10/13 22:59:54 version 1.147, 2016/01/08 02:13:39
Line 26 
Line 26 
   
 #include <assert.h>  #include <assert.h>
 #include <ctype.h>  #include <ctype.h>
   #if HAVE_ERR
 #include <err.h>  #include <err.h>
   #endif
 #include <errno.h>  #include <errno.h>
 #include <fcntl.h>  #include <fcntl.h>
 #include <stdarg.h>  #include <stdarg.h>
Line 215  static const char * const mandocerrs[MANDOCERR_MAX] = 
Line 217  static const char * const mandocerrs[MANDOCERR_MAX] = 
         /* related to request and macro arguments */          /* related to request and macro arguments */
         "escaped character not allowed in a name",          "escaped character not allowed in a name",
         "NOT IMPLEMENTED: Bd -file",          "NOT IMPLEMENTED: Bd -file",
           "skipping display without arguments",
         "missing list type, using -item",          "missing list type, using -item",
         "missing manual name, using \"\"",          "missing manual name, using \"\"",
         "uname(3) system call failed, using UNKNOWN",          "uname(3) system call failed, using UNKNOWN",
Line 539  rerun:
Line 542  rerun:
                         if (mparse_open(curp, &fd, ln.buf + of) ==                          if (mparse_open(curp, &fd, ln.buf + of) ==
                             MANDOCLEVEL_OK) {                              MANDOCLEVEL_OK) {
                                 mparse_readfd(curp, fd, ln.buf + of);                                  mparse_readfd(curp, fd, ln.buf + of);
                                   close(fd);
                                 curp->file = save_file;                                  curp->file = save_file;
                         } else {                          } else {
                                 curp->file = save_file;                                  curp->file = save_file;
Line 770  mparse_readfd(struct mparse *curp, int fd, const char 
Line 774  mparse_readfd(struct mparse *curp, int fd, const char 
 #endif  #endif
                         free(blk.buf);                          free(blk.buf);
         }          }
   
         if (fd != STDIN_FILENO && close(fd) == -1)  
                 perror(file);  
   
         return curp->file_status;          return curp->file_status;
 }  }
   

Legend:
Removed from v.1.144  
changed lines
  Added in v.1.147

CVSweb