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

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

version 1.83, 2021/09/28 17:06:59 version 1.84, 2021/10/17 20:48:28
Line 149  tblcalc(struct rofftbl *tbl, const struct tbl_span *sp
Line 149  tblcalc(struct rofftbl *tbl, const struct tbl_span *sp
                  * to data cells in the data section.                   * to data cells in the data section.
                  */                   */
   
                 gp = &first_group;  
                 for (dp = sp->first; dp != NULL; dp = dp->next) {                  for (dp = sp->first; dp != NULL; dp = dp->next) {
                         icol = dp->layout->col;                          icol = dp->layout->col;
                         while (maxcol < icol + dp->hspans)                          while (maxcol < icol + dp->hspans)
Line 190  tblcalc(struct rofftbl *tbl, const struct tbl_span *sp
Line 189  tblcalc(struct rofftbl *tbl, const struct tbl_span *sp
                                 continue;                                  continue;
   
                         /*                          /*
                          * Build an ordered, singly linked list                           * Build a singly linked list
                          * of all groups of columns joined by spans,                           * of all groups of columns joined by spans,
                          * recording the minimum width for each group.                           * recording the minimum width for each group.
                          */                           */
   
                         while (*gp != NULL && ((*gp)->startcol < icol ||                          gp = &first_group;
                             (*gp)->endcol < icol + dp->hspans))                          while (*gp != NULL && ((*gp)->startcol != icol ||
                               (*gp)->endcol != icol + dp->hspans))
                                 gp = &(*gp)->next;                                  gp = &(*gp)->next;
                         if (*gp == NULL || (*gp)->startcol > icol ||                          if (*gp == NULL) {
                             (*gp)->endcol > icol + dp->hspans) {  
                                 g = mandoc_malloc(sizeof(*g));                                  g = mandoc_malloc(sizeof(*g));
                                 g->next = *gp;                                  g->next = *gp;
                                 g->wanted = width;                                  g->wanted = width;
Line 554  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.83  
changed lines
  Added in v.1.84

CVSweb