Lines Matching defs:tbl
40 getdata(struct tbl_node *tbl, struct tbl_span *dp,
59 mandoc_msg(MANDOCERR_TBLDATA_EXTRA, tbl->parse,
84 while (p[*pos] && p[*pos] != tbl->opts.tab)
94 tbl->part = TBL_PART_CDATA;
119 tbl->parse, ln, sv, dat->string);
123 tbl_cdata(struct tbl_node *tbl, int ln, const char *p, int pos)
128 dat = tbl->last_span->last;
132 if (p[pos] == tbl->opts.tab) {
133 tbl->part = TBL_PART_DATA;
135 getdata(tbl, tbl->last_span, ln, p, &pos);
138 tbl->part = TBL_PART_DATA;
156 mandoc_msg(MANDOCERR_TBLDATA_SPAN, tbl->parse,
163 newspan(struct tbl_node *tbl, int line, struct tbl_row *rp)
169 dp->opts = &tbl->opts;
171 dp->prev = tbl->last_span;
174 tbl->first_span = dp;
175 tbl->current_span = NULL;
178 tbl->last_span = dp;
184 tbl_data(struct tbl_node *tbl, int ln, const char *p, int pos)
197 if (tbl->last_span != NULL) {
198 if (tbl->last_span->pos == TBL_SPAN_DATA) {
199 for (rp = tbl->last_span->layout->next;
204 dp = newspan(tbl, ln, rp);
208 dp = newspan(tbl, ln, rp);
217 rp = tbl->last_span->layout;
220 rp = tbl->last_span->layout;
222 rp = tbl->first_row;
226 dp = newspan(tbl, ln, rp);
239 getdata(tbl, dp, ln, p, &pos);