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

Diff for /mandoc/read.c between version 1.211 and 1.213

version 1.211, 2019/01/11 17:04:44 version 1.213, 2019/06/03 19:58:02
Line 157  mparse_buf_r(struct mparse *curp, struct buf blk, size
Line 157  mparse_buf_r(struct mparse *curp, struct buf blk, size
         ln.sz = 256;          ln.sz = 256;
         ln.buf = mandoc_malloc(ln.sz);          ln.buf = mandoc_malloc(ln.sz);
         ln.next = NULL;          ln.next = NULL;
         firstln = loop = NULL;          firstln = lastln = loop = NULL;
         lnn = curp->line;          lnn = curp->line;
         pos = 0;          pos = 0;
         inloop = 0;          inloop = 0;
Line 255  mparse_buf_r(struct mparse *curp, struct buf blk, size
Line 255  mparse_buf_r(struct mparse *curp, struct buf blk, size
                 /* XXX Ugly hack to mark the end of the input. */                  /* XXX Ugly hack to mark the end of the input. */
   
                 if (i == blk.sz || blk.buf[i] == '\0') {                  if (i == blk.sz || blk.buf[i] == '\0') {
                           if (pos + 2 > ln.sz)
                                   resize_buf(&ln, 256);
                         ln.buf[pos++] = '\n';                          ln.buf[pos++] = '\n';
                         ln.buf[pos] = '\0';                          ln.buf[pos] = '\0';
                 }                  }

Legend:
Removed from v.1.211  
changed lines
  Added in v.1.213

CVSweb