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

Diff for /mandoc/out.c between version 1.84 and 1.85

version 1.84, 2021/10/17 20:48:28 version 1.85, 2021/10/17 21:05:54
Line 247  tblcalc(struct rofftbl *tbl, const struct tbl_span *sp
Line 247  tblcalc(struct rofftbl *tbl, const struct tbl_span *sp
                                 done = 1;                                  done = 1;
                                 break;                                  break;
                         } else                          } else
                                 (*gp)->wanted -= width;                                  g->wanted -= width;
                 }                  }
                 if (done) {                  if (done) {
                         *gp = g->next;                          *gp = g->next;
                         free(g);                          free(g);
                 } else                  } else
                         gp = &(*gp)->next;                          gp = &g->next;
         }          }
   
         colwidth = mandoc_reallocarray(NULL, maxcol + 1, sizeof(*colwidth));          colwidth = mandoc_reallocarray(NULL, maxcol + 1, sizeof(*colwidth));
Line 326  tblcalc(struct rofftbl *tbl, const struct tbl_span *sp
Line 326  tblcalc(struct rofftbl *tbl, const struct tbl_span *sp
                                 *gp = g->next;                                  *gp = g->next;
                                 free(g);                                  free(g);
                         } else                          } else
                                 gp = &(*gp)->next;                                  gp = &g->next;
                 }                  }
         }          }
         free(colwidth);          free(colwidth);
Line 553  tblcalc_number(struct rofftbl *tbl, struct roffcol *co
Line 553  tblcalc_number(struct rofftbl *tbl, struct roffcol *co
                 col->nwidth = totsz;                  col->nwidth = totsz;
         if (col->nwidth > col->width)          if (col->nwidth > col->width)
                 col->width = col->nwidth;                  col->width = col->nwidth;
         fprintf(stderr, "N=%zu D=%zu I=%zu T=%zu %s\n",  
             col->nwidth, col->decimal, intsz, totsz, dp->string);  
         return totsz;          return totsz;
 }  }

Legend:
Removed from v.1.84  
changed lines
  Added in v.1.85

CVSweb