Lines Matching refs:pos

64 		int ln, const char *p, int *pos)  in mods()  argument
72 while (p[*pos] == ' ' || p[*pos] == '\t') in mods()
73 (*pos)++; in mods()
77 if (strchr(".,-=^_ACLNRSaclnrs", p[*pos]) != NULL) in mods()
82 if ('(' == p[*pos]) { in mods()
83 (*pos)++; in mods()
84 while (p[*pos] && ')' != p[*pos]) in mods()
85 (*pos)++; in mods()
86 if (')' == p[*pos]) { in mods()
87 (*pos)++; in mods()
90 mandoc_msg(MANDOCERR_TBLLAYOUT_PAR, ln, *pos, NULL); in mods()
96 if (isdigit((unsigned char)p[*pos])) { in mods()
97 if ((spacing = strtoul(p + *pos, &endptr, 10)) > 9) in mods()
98 mandoc_msg(MANDOCERR_TBLLAYOUT_SPC, ln, *pos, in mods()
102 *pos = endptr - p; in mods()
106 switch (tolower((unsigned char)p[(*pos)++])) { in mods()
122 mandoc_msg(MANDOCERR_TBLLAYOUT_MOD, ln, *pos, "m"); in mods()
126 if (p[*pos] == '-' || p[*pos] == '+') in mods()
127 (*pos)++; in mods()
128 while (isdigit((unsigned char)p[*pos])) in mods()
129 (*pos)++; in mods()
138 if (p[*pos] == '(') { in mods()
139 (*pos)++; in mods()
141 if (roff_evalnum(ln, p, pos, &isz, 'n', 1) == 0 || in mods()
142 p[*pos] != ')') in mods()
144 ln, *pos, "%s", p + *pos); in mods()
148 (*pos)++; in mods()
152 while (isdigit((unsigned char)p[*pos])) { in mods()
154 cp->width += p[(*pos)++] - '0'; in mods()
158 ln, *pos, "%s", p + *pos); in mods()
172 ln, *pos - 1, NULL); in mods()
176 ln, *pos - 1, "%c", p[*pos - 1]); in mods()
180 while (p[*pos] == ' ' || p[*pos] == '\t') in mods()
181 (*pos)++; in mods()
185 if (p[*pos] == '(') in mods()
189 if (p[*pos] != '\0') in mods()
191 if (strchr(" \t.", p[*pos + isz]) == NULL) in mods()
194 fontesc = mandoc_font(p + *pos, isz); in mods()
200 ln, *pos, "TS %s", p + *pos - 1); in mods()
206 *pos += isz; in mods()
212 int ln, const char *p, int *pos) in cell() argument
219 while (p[*pos] == ' ' || p[*pos] == '\t' || p[*pos] == '|') { in cell()
220 if (p[*pos] == '|') { in cell()
225 ln, *pos, NULL); in cell()
227 (*pos)++; in cell()
231 while (p[*pos] == ' ' || p[*pos] == '\t') in cell()
232 (*pos)++; in cell()
234 if (p[*pos] == '.' || p[*pos] == '\0') in cell()
240 if (tolower((unsigned char)p[*pos]) == keys[i].name) in cell()
245 ln, *pos, "%c", p[*pos]); in cell()
246 (*pos)++; in cell()
255 mandoc_msg(MANDOCERR_TBLLAYOUT_SPAN, ln, *pos, NULL); in cell()
256 else if (rp->last->pos == TBL_CELL_HORIZ || in cell()
257 rp->last->pos == TBL_CELL_DHORIZ) in cell()
258 c = rp->last->pos; in cell()
260 mandoc_msg(MANDOCERR_TBLLAYOUT_DOWN, ln, *pos, NULL); in cell()
262 (*pos)++; in cell()
266 mods(tbl, cell_alloc(tbl, rp, c), ln, p, pos); in cell()
270 tbl_layout(struct tbl_node *tbl, int ln, const char *p, int pos) in tbl_layout() argument
278 while (p[pos] == ' ' || p[pos] == '\t') in tbl_layout()
279 pos++; in tbl_layout()
281 switch (p[pos]) { in tbl_layout()
283 pos++; in tbl_layout()
289 pos++; in tbl_layout()
303 ln, pos, NULL); in tbl_layout()
355 cell(tbl, rp, ln, p, &pos); in tbl_layout()
360 cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, enum tbl_cellt pos) in cell_alloc() argument
367 p->pos = pos; in cell_alloc()