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

Diff for /mandoc/tbl_layout.c between version 1.30 and 1.31

version 1.30, 2014/11/25 21:41:47 version 1.31, 2015/01/14 22:44:55
Line 299  cell(struct tbl_node *tbl, struct tbl_row *rp,
Line 299  cell(struct tbl_node *tbl, struct tbl_row *rp,
         return(mods(tbl, cell_alloc(tbl, rp, c, vert), ln, p, pos));          return(mods(tbl, cell_alloc(tbl, rp, c, vert), ln, p, pos));
 }  }
   
 int  void
 tbl_layout(struct tbl_node *tbl, int ln, const char *p)  tbl_layout(struct tbl_node *tbl, int ln, const char *p)
 {  {
         struct tbl_row  *rp;          struct tbl_row  *rp;
Line 320  tbl_layout(struct tbl_node *tbl, int ln, const char *p
Line 320  tbl_layout(struct tbl_node *tbl, int ln, const char *p
                         rp = NULL;                          rp = NULL;
                         continue;                          continue;
                 case '\0':  /* Next row on next input line. */                  case '\0':  /* Next row on next input line. */
                         return(1);                          return;
                 case '.':  /* End of layout. */                  case '.':  /* End of layout. */
                         pos++;                          pos++;
                         tbl->part = TBL_PART_DATA;                          tbl->part = TBL_PART_DATA;
                         if (tbl->first_row != NULL)                          if (tbl->first_row != NULL)
                                 return(1);                                  return;
                         mandoc_msg(MANDOCERR_TBLNOLAYOUT,                          mandoc_msg(MANDOCERR_TBLNOLAYOUT,
                             tbl->parse, ln, pos, NULL);                              tbl->parse, ln, pos, NULL);
                         rp = mandoc_calloc(1, sizeof(*rp));                          rp = mandoc_calloc(1, sizeof(*rp));
                         cell_alloc(tbl, rp, TBL_CELL_LEFT, 0);                          cell_alloc(tbl, rp, TBL_CELL_LEFT, 0);
                         tbl->first_row = tbl->last_row = rp;                          tbl->first_row = tbl->last_row = rp;
                         return(1);                          return;
                 default:  /* Cell. */                  default:  /* Cell. */
                         break;                          break;
                 }                  }
Line 345  tbl_layout(struct tbl_node *tbl, int ln, const char *p
Line 345  tbl_layout(struct tbl_node *tbl, int ln, const char *p
                         tbl->last_row = rp;                          tbl->last_row = rp;
                 }                  }
                 if ( ! cell(tbl, rp, ln, p, &pos))                  if ( ! cell(tbl, rp, ln, p, &pos))
                         return(1);                          return;
         }          }
 }  }
   

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

CVSweb