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

Diff for /texi2mdoc/main.c between version 1.50 and 1.52

version 1.50, 2015/02/26 10:41:30 version 1.52, 2015/02/28 00:03:20
Line 614  doignblock(struct texi *p, enum texicmd cmd, size_t *p
Line 614  doignblock(struct texi *p, enum texicmd cmd, size_t *p
          * Thus, we keep track of scopes for matching "end" blocks.           * Thus, we keep track of scopes for matching "end" blocks.
          */           */
         while (stack > 0 && *pos < BUFSZ(p)) {          while (stack > 0 && *pos < BUFSZ(p)) {
                 if (stack > 10)                  if (stack > 64)
                         abort();                          texierr(p, "run-away nested stack?");
                 endt = memmem(&BUF(p)[*pos], BUFSZ(p) - *pos, end, esz);                  endt = memmem(&BUF(p)[*pos], BUFSZ(p) - *pos, end, esz);
                 startt = memmem(&BUF(p)[*pos], BUFSZ(p) - *pos, start, ssz);                  startt = memmem(&BUF(p)[*pos], BUFSZ(p) - *pos, start, ssz);
                 if (NULL == endt) {                  if (NULL == endt) {
Line 728  doverb(struct texi *p, enum texicmd cmd, size_t *pos)
Line 728  doverb(struct texi *p, enum texicmd cmd, size_t *pos)
                         break;                          break;
                 advance(p, pos);                  advance(p, pos);
         }          }
         if (*pos == BUFSZ(p) - 1)          if (*pos >= BUFSZ(p) - 1)
                 return;                  return;
         texiputbuf(p, start, *pos);          texiputbuf(p, start, *pos);
   

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.52

CVSweb