Lines Matching refs:pos

164 static void doinsert(struct parse *p, sop op, sopno opnd, sopno pos);
165 static void dofwd(struct parse *p, sopno pos, sopno value);
200 #define INSERT(op, pos) doinsert(p, (sop)(op), HERE()-(pos)+1, pos) argument
201 #define AHEAD(pos) dofwd(p, pos, HERE()-(pos)) argument
202 #define ASTERN(sop, pos) EMIT(sop, HERE()-pos) argument
399 sopno pos; in p_ere_exp() local
410 pos = HERE(); in p_ere_exp()
496 INSERT(OPLUS_, pos); in p_ere_exp()
497 ASTERN(O_PLUS, pos); in p_ere_exp()
498 INSERT(OQUEST_, pos); in p_ere_exp()
499 ASTERN(O_QUEST, pos); in p_ere_exp()
502 INSERT(OPLUS_, pos); in p_ere_exp()
503 ASTERN(O_PLUS, pos); in p_ere_exp()
507 INSERT(OCH_, pos); /* offset slightly wrong */ in p_ere_exp()
508 ASTERN(OOR1, pos); /* this one's right */ in p_ere_exp()
509 AHEAD(pos); /* fix the OCH_ */ in p_ere_exp()
524 repeat(p, pos, count, count2, 0); in p_ere_exp()
623 sopno pos, i; in p_simp_re() local
629 pos = HERE(); /* repetion op, if any, covers from here */ in p_simp_re()
705 INSERT(OPLUS_, pos); in p_simp_re()
706 ASTERN(O_PLUS, pos); in p_simp_re()
707 INSERT(OQUEST_, pos); in p_simp_re()
708 ASTERN(O_QUEST, pos); in p_simp_re()
719 repeat(p, pos, count, count2, 0); in p_simp_re()
1707 sopno pos) in doinsert() argument
1725 assert(pos > 0); in doinsert()
1727 if (p->pbegin[i] >= pos) { in doinsert()
1730 if (p->pend[i] >= pos) { in doinsert()
1735 memmove(&p->strip[pos+1], &p->strip[pos], (HERE()-pos-1)*sizeof(sop)); in doinsert()
1736 p->strip[pos] = s; in doinsert()
1746 sopno pos, in dofwd() argument
1757 p->strip[pos] = (sop)(OP(p->strip[pos]) | value); in dofwd()