Lines Matching defs:pos

41 		int ln, const char *p, int *pos)
50 while (cp != NULL && cp->pos == TBL_CELL_SPAN)
60 ln, *pos, p + *pos);
62 while (p[*pos])
63 (*pos)++;
69 dat->pos = TBL_DATA_NONE;
72 if (cp->pos == TBL_CELL_SPAN)
83 sv = *pos;
84 while (p[*pos] && p[*pos] != tbl->opts.tab)
85 (*pos)++;
93 if (*pos - sv == 2 && p[sv] == 'T' && p[sv + 1] == '{') {
98 dat->string = mandoc_strndup(p + sv, *pos - sv);
100 if (p[*pos])
101 (*pos)++;
104 dat->pos = TBL_DATA_HORIZ;
106 dat->pos = TBL_DATA_DHORIZ;
108 dat->pos = TBL_DATA_NHORIZ;
110 dat->pos = TBL_DATA_NDHORIZ;
112 dat->pos = TBL_DATA_DATA;
114 if ((dat->layout->pos == TBL_CELL_HORIZ ||
115 dat->layout->pos == TBL_CELL_DHORIZ ||
116 dat->layout->pos == TBL_CELL_DOWN) &&
117 dat->pos == TBL_DATA_DATA && *dat->string != '\0')
123 tbl_cdata(struct tbl_node *tbl, int ln, const char *p, int pos)
130 if (p[pos] == 'T' && p[pos + 1] == '}') {
131 pos += 2;
132 if (p[pos] == tbl->opts.tab) {
134 pos++;
135 while (p[pos] != '\0')
136 getdata(tbl, tbl->last_span, ln, p, &pos);
138 } else if (p[pos] == '\0') {
146 dat->pos = TBL_DATA_DATA;
149 sz = strlen(p + pos) + strlen(dat->string) + 2;
152 (void)strlcat(dat->string, p + pos, sz);
154 dat->string = mandoc_strdup(p + pos);
156 if (dat->layout->pos == TBL_CELL_DOWN)
158 ln, pos, dat->string);
185 tbl_data(struct tbl_node *tbl, int ln, const char *p, int pos)
199 if (tbl->last_span->pos == TBL_SPAN_DATA) {
203 switch (rp->first->pos) {
206 dp->pos = TBL_SPAN_HORIZ;
210 dp->pos = TBL_SPAN_DHORIZ;
230 dp->pos = TBL_SPAN_HORIZ;
233 dp->pos = TBL_SPAN_DHORIZ;
237 dp->pos = TBL_SPAN_DATA;
239 while (p[pos] != '\0')
240 getdata(tbl, dp, ln, p, &pos);