Lines Matching defs:pos
62 int ln, const char *p, int *pos)
67 while (p[*pos] == ' ' || p[*pos] == '\t')
68 (*pos)++;
72 if (strchr(".,-=^_ACLNRSaclnrs", p[*pos]) != NULL)
77 if ('(' == p[*pos]) {
78 (*pos)++;
79 while (p[*pos] && ')' != p[*pos])
80 (*pos)++;
81 if (')' == p[*pos]) {
82 (*pos)++;
86 ln, *pos, NULL);
92 if (isdigit((unsigned char)p[*pos])) {
93 cp->spacing = strtoull(p + *pos, &endptr, 10);
94 *pos = endptr - p;
98 switch (tolower((unsigned char)p[(*pos)++])) {
115 ln, *pos, "m");
119 if (p[*pos] == '-' || p[*pos] == '+')
120 (*pos)++;
121 while (isdigit((unsigned char)p[*pos]))
122 (*pos)++;
143 tbl->parse, ln, *pos - 1, NULL);
147 ln, *pos - 1, "%c", p[*pos - 1]);
153 if (p[*pos] == '(')
158 if (p[*pos] == '\0' || (p[*pos + 1] != ' ' && p[*pos + 1] != '.')) {
160 ln, *pos, "TS %s", p + *pos - 1);
161 if (p[*pos] != '\0')
162 (*pos)++;
163 if (p[*pos] != '\0')
164 (*pos)++;
168 switch (p[(*pos)++]) {
182 ln, *pos - 1, "TS f%c", p[*pos - 1]);
189 int ln, const char *p, int *pos)
196 while (p[*pos] == ' ' || p[*pos] == '\t' || p[*pos] == '|') {
197 if (p[*pos] == '|') {
202 tbl->parse, ln, *pos, NULL);
204 (*pos)++;
208 while (p[*pos] == ' ' || p[*pos] == '\t')
209 (*pos)++;
211 if (p[*pos] == '.' || p[*pos] == '\0')
217 if (tolower((unsigned char)p[*pos]) == keys[i].name)
222 ln, *pos, "%c", p[*pos]);
223 (*pos)++;
233 tbl->parse, ln, *pos, NULL);
234 else if (rp->last->pos == TBL_CELL_HORIZ ||
235 rp->last->pos == TBL_CELL_DHORIZ)
236 c = rp->last->pos;
239 tbl->parse, ln, *pos, NULL);
241 (*pos)++;
245 mods(tbl, cell_alloc(tbl, rp, c), ln, p, pos);
249 tbl_layout(struct tbl_node *tbl, int ln, const char *p, int pos)
257 while (p[pos] == ' ' || p[pos] == '\t')
258 pos++;
260 switch (p[pos]) {
262 pos++;
268 pos++;
282 tbl->parse, ln, pos, NULL);
332 cell(tbl, rp, ln, p, &pos);
337 cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, enum tbl_cellt pos)
342 p->pos = pos;