Lines Matching defs:pos

65 		int ln, const char *p, int *pos)
71 while (p[*pos] == ' ' || p[*pos] == '\t')
72 (*pos)++;
76 if (strchr(".,-=^_ACLNRSaclnrs", p[*pos]) != NULL)
81 if ('(' == p[*pos]) {
82 (*pos)++;
83 while (p[*pos] && ')' != p[*pos])
84 (*pos)++;
85 if (')' == p[*pos]) {
86 (*pos)++;
89 mandoc_msg(MANDOCERR_TBLLAYOUT_PAR, ln, *pos, NULL);
95 if (isdigit((unsigned char)p[*pos])) {
96 cp->spacing = strtoull(p + *pos, &endptr, 10);
97 *pos = endptr - p;
101 switch (tolower((unsigned char)p[(*pos)++])) {
117 mandoc_msg(MANDOCERR_TBLLAYOUT_MOD, ln, *pos, "m");
121 if (p[*pos] == '-' || p[*pos] == '+')
122 (*pos)++;
123 while (isdigit((unsigned char)p[*pos]))
124 (*pos)++;
134 if (p[*pos] == '(') {
135 (*pos)++;
136 while (p[*pos + sz] != '\0' && p[*pos + sz] != ')')
139 while (isdigit((unsigned char)p[*pos + sz]))
143 cp->wstr = mandoc_strndup(p + *pos, sz);
144 *pos += sz;
145 if (p[*pos] == ')')
146 (*pos)++;
160 ln, *pos - 1, NULL);
164 ln, *pos - 1, "%c", p[*pos - 1]);
170 if (p[*pos] == '(')
175 if (p[*pos] == '\0' || (p[*pos + 1] != ' ' && p[*pos + 1] != '.')) {
177 ln, *pos, "TS %s", p + *pos - 1);
178 if (p[*pos] != '\0')
179 (*pos)++;
180 if (p[*pos] != '\0')
181 (*pos)++;
185 switch (p[(*pos)++]) {
199 ln, *pos - 1, "TS f%c", p[*pos - 1]);
206 int ln, const char *p, int *pos)
213 while (p[*pos] == ' ' || p[*pos] == '\t' || p[*pos] == '|') {
214 if (p[*pos] == '|') {
219 ln, *pos, NULL);
221 (*pos)++;
225 while (p[*pos] == ' ' || p[*pos] == '\t')
226 (*pos)++;
228 if (p[*pos] == '.' || p[*pos] == '\0')
234 if (tolower((unsigned char)p[*pos]) == keys[i].name)
239 ln, *pos, "%c", p[*pos]);
240 (*pos)++;
249 mandoc_msg(MANDOCERR_TBLLAYOUT_SPAN, ln, *pos, NULL);
250 else if (rp->last->pos == TBL_CELL_HORIZ ||
251 rp->last->pos == TBL_CELL_DHORIZ)
252 c = rp->last->pos;
254 mandoc_msg(MANDOCERR_TBLLAYOUT_DOWN, ln, *pos, NULL);
256 (*pos)++;
260 mods(tbl, cell_alloc(tbl, rp, c), ln, p, pos);
264 tbl_layout(struct tbl_node *tbl, int ln, const char *p, int pos)
272 while (p[pos] == ' ' || p[pos] == '\t')
273 pos++;
275 switch (p[pos]) {
277 pos++;
283 pos++;
297 ln, pos, NULL);
349 cell(tbl, rp, ln, p, &pos);
354 cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, enum tbl_cellt pos)
360 p->pos = pos;