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 getdata(tbl, tbl->last_span, ln, p, &pos);
137 } else if (p[pos] == '\0') {
145 dat->pos = TBL_DATA_DATA;
148 sz = strlen(p + pos) + strlen(dat->string) + 2;
151 (void)strlcat(dat->string, p + pos, sz);
153 dat->string = mandoc_strdup(p + pos);
155 if (dat->layout->pos == TBL_CELL_DOWN)
157 ln, pos, dat->string);
184 tbl_data(struct tbl_node *tbl, int ln, const char *p, int pos)
198 if (tbl->last_span->pos == TBL_SPAN_DATA) {
202 switch (rp->first->pos) {
205 dp->pos = TBL_SPAN_HORIZ;
209 dp->pos = TBL_SPAN_DHORIZ;
229 dp->pos = TBL_SPAN_HORIZ;
232 dp->pos = TBL_SPAN_DHORIZ;
236 dp->pos = TBL_SPAN_DATA;
238 while (p[pos] != '\0')
239 getdata(tbl, dp, ln, p, &pos);