Lines Matching refs:pos
66 arg(struct tbl_node *tbl, int ln, const char *p, int *pos, int key) in arg() argument
70 while (p[*pos] == ' ' || p[*pos] == '\t') in arg()
71 (*pos)++; in arg()
76 if (p[*pos] == '(') { in arg()
77 (*pos)++; in arg()
78 while (p[*pos + len] != ')') in arg()
85 ln, *pos, "%.*s", len, p + *pos); in arg()
91 tbl->opts.tab = p[*pos]; in arg()
99 tbl->opts.decimal = p[*pos]; in arg()
106 mandoc_msg(MANDOCERR_TBLOPT_NOARG, ln, *pos, in arg()
109 mandoc_msg(MANDOCERR_TBLOPT_ARGSZ, ln, *pos, in arg()
112 *pos += len; in arg()
113 if (p[*pos] == ')') in arg()
114 (*pos)++; in arg()
125 int i, pos, len; in tbl_option() local
127 pos = *offs; in tbl_option()
129 while (p[pos] == ' ' || p[pos] == '\t' || p[pos] == ',') in tbl_option()
130 pos++; in tbl_option()
132 if (p[pos] == ';') { in tbl_option()
133 *offs = pos + 1; in tbl_option()
140 while (isalpha((unsigned char)p[pos + len])) in tbl_option()
145 ln, pos, "%c", p[pos]); in tbl_option()
146 pos++; in tbl_option()
154 (strncasecmp(p + pos, keys[i].name, len) || in tbl_option()
160 ln, pos, "%.*s", len, p + pos); in tbl_option()
161 pos += len; in tbl_option()
167 pos += len; in tbl_option()
171 arg(tbl, ln, p, &pos, i); in tbl_option()