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

Diff for /mandoc/read.c between version 1.206 and 1.208

version 1.206, 2018/12/14 05:18:03 version 1.208, 2018/12/20 21:30:32
Line 372  rerun:
Line 372  rerun:
                                 mparse_readfd(curp, fd, ln.buf + of);                                  mparse_readfd(curp, fd, ln.buf + of);
                                 close(fd);                                  close(fd);
                         } else {                          } else {
                                 mandoc_msg(MANDOCERR_SO_FAIL, curp->line,                                  mandoc_msg(MANDOCERR_SO_FAIL,
                                     pos, ".so %s", ln.buf + of);                                      curp->line, of, ".so %s: %s",
                                       ln.buf + of, strerror(errno));
                                 ln.sz = mandoc_asprintf(&cp,                                  ln.sz = mandoc_asprintf(&cp,
                                     ".sp\nSee the file %s.\n.sp",                                      ".sp\nSee the file %s.\n.sp",
                                     ln.buf + of);                                      ln.buf + of);
Line 633  mparse_open(struct mparse *curp, const char *file)
Line 634  mparse_open(struct mparse *curp, const char *file)
   
         /* Neither worked, give up. */          /* Neither worked, give up. */
   
         mandoc_msg(MANDOCERR_FILE, 0, 0, "%s", strerror(errno));  
         return -1;          return -1;
 }  }
   
Line 647  mparse_alloc(int options, enum mandoc_os os_e, const c
Line 647  mparse_alloc(int options, enum mandoc_os os_e, const c
         curp->options = options;          curp->options = options;
         curp->os_s = os_s;          curp->os_s = os_s;
   
         curp->roff = roff_alloc(curp, options);          curp->roff = roff_alloc(options);
         curp->man = roff_man_alloc(curp->roff, curp, curp->os_s,          curp->man = roff_man_alloc(curp->roff, curp->os_s,
                 curp->options & MPARSE_QUICK ? 1 : 0);                  curp->options & MPARSE_QUICK ? 1 : 0);
         if (curp->options & MPARSE_MDOC) {          if (curp->options & MPARSE_MDOC) {
                 curp->man->macroset = MACROSET_MDOC;                  curp->man->macroset = MACROSET_MDOC;

Legend:
Removed from v.1.206  
changed lines
  Added in v.1.208

CVSweb