version 1.34, 2015/01/27 05:21:45 |
version 1.35, 2015/01/28 15:03:45 |
Line 138 getdata(struct tbl_node *tbl, struct tbl_span *dp, |
|
Line 138 getdata(struct tbl_node *tbl, struct tbl_span *dp, |
|
} |
} |
|
|
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 204 newspan(struct tbl_node *tbl, int line, struct tbl_row |
|
Line 201 newspan(struct tbl_node *tbl, int line, struct tbl_row |
|
} |
} |
|
|
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 259 tbl_data(struct tbl_node *tbl, int ln, const char *p) |
|
Line 255 tbl_data(struct tbl_node *tbl, int ln, const char *p) |
|
|
|
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); |
} |
} |