[BACK]Return to tbl_data.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/tbl_data.c between version 1.21 and 1.22

version 1.21, 2015/01/27 05:20:30 version 1.22, 2015/01/28 15:02:25
Line 136 
Line 136 
 }  }
   
 int  int
 tbl_cdata(struct tbl_node *tbl, int ln, const char *p)  tbl_cdata(struct tbl_node *tbl, int ln, const char *p, int pos)
 {  {
         struct tbl_dat  *dat;          struct tbl_dat  *dat;
         size_t           sz;          size_t           sz;
         int              pos;  
   
         pos = 0;  
   
         dat = tbl->last_span->last;          dat = tbl->last_span->last;
   
         if (p[pos] == 'T' && p[pos + 1] == '}') {          if (p[pos] == 'T' && p[pos + 1] == '}') {
Line 202 
Line 199 
 }  }
   
 void  void
 tbl_data(struct tbl_node *tbl, int ln, const char *p)  tbl_data(struct tbl_node *tbl, int ln, const char *p, int pos)
 {  {
         struct tbl_span *dp;          struct tbl_span *dp;
         struct tbl_row  *rp;          struct tbl_row  *rp;
         int              pos;  
   
         /*          /*
          * Choose a layout row: take the one following the last parsed           * Choose a layout row: take the one following the last parsed
Line 257 
Line 253 
   
         dp->pos = TBL_SPAN_DATA;          dp->pos = TBL_SPAN_DATA;
   
         pos = 0;  
         while ('\0' != p[pos])          while ('\0' != p[pos])
                 getdata(tbl, dp, ln, p, &pos);                  getdata(tbl, dp, ln, p, &pos);
 }  }

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22