Lines Matching defs:pos
65 arg(struct tbl_node *tbl, int ln, const char *p, int *pos, int key)
69 while (p[*pos] == ' ' || p[*pos] == '\t')
70 (*pos)++;
75 if (p[*pos] == '(') {
76 (*pos)++;
77 while (p[*pos + len] != ')')
84 ln, *pos, "%.*s", len, p + *pos);
90 tbl->opts.tab = p[*pos];
98 tbl->opts.decimal = p[*pos];
106 tbl->parse, ln, *pos, keys[key].name);
109 tbl->parse, ln, *pos, "%s want %d have %d",
112 *pos += len;
113 if (p[*pos] == ')')
114 (*pos)++;
125 int i, pos, len;
127 pos = *offs;
129 while (p[pos] == ' ' || p[pos] == '\t' || p[pos] == ',')
130 pos++;
132 if (p[pos] == ';') {
133 *offs = pos + 1;
140 while (isalpha((unsigned char)p[pos + len]))
145 tbl->parse, ln, pos, "%c", p[pos]);
146 pos++;
154 (strncasecmp(p + pos, keys[i].name, len) ||
160 ln, pos, "%.*s", len, p + pos);
161 pos += len;
167 pos += len;
171 arg(tbl, ln, p, &pos, i);