version 1.21, 2015/01/27 05:20:30 |
version 1.22, 2015/01/28 15:02:25 |
|
|
} |
} |
|
|
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] == '}') { |
|
|
} |
} |
|
|
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 |
|
|
|
|
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); |
} |
} |