Lines Matching refs:p2
71 asyntax(struct wordent *p1, struct wordent *p2) in asyntax() argument
73 while (p1 != p2) { in asyntax()
75 return asyn0(p1, p2); in asyntax()
82 asyn0(struct wordent *p1, struct wordent *p2) in asyn0() argument
87 for (p = p1; p != p2; p = p->next) in asyn0()
101 if (p->next != p2 && eq(p->next->word, STRand)) in asyn0()
113 return asyntax(p->next, p2); in asyn0()
119 return asyn3(p1, p2); in asyn0()
133 asyn3(struct wordent *p1, struct wordent *p2) in asyn3() argument
139 if (p1 == p2) in asyn3()
142 for (p2 = p2->prev; p2->word[0] != ')'; p2 = p2->prev) in asyn3()
143 if (p2 == p1) in asyn3()
145 if (p2 == p1->next) in asyn3()
147 return asyn0(p1->next, p2); in asyn3()
153 alhistt = p2; in asyn3()
168 p1 = freenod(p1, redid ? p2 : p1->next); in asyn3()
181 freenod(struct wordent *p1, struct wordent *p2) in freenod() argument
185 while (p1 != p2) { in freenod()
190 retp->next = p2; in freenod()
191 p2->prev = retp; in freenod()
206 syntax(const struct wordent *p1, const struct wordent *p2, int flags) in syntax() argument
209 while (p1 != p2) in syntax()
213 return (syn0(p1, p2, flags)); in syntax()
223 syn0(const struct wordent *p1, const struct wordent *p2, int flags) in syn0() argument
230 for (p = p1; p != p2; p = p->next) in syn0()
249 if (p->next != p2 && eq(p->next->word, STRand)) in syn0()
274 t->t_dcdr = syntax(p, p2, flags); in syn0()
280 return (syn1(p1, p2, flags)); in syn0()
291 syn1(const struct wordent *p1, const struct wordent *p2, int flags) in syn1() argument
298 for (p = p1; p != p2; p = p->next) in syn1()
316 t->t_dcdr = syntax(p->next, p2, flags); in syn1()
324 return (syn1a(p1, p2, flags)); in syn1()
333 syn1a(const struct wordent *p1, const struct wordent *p2, int flags) in syn1a() argument
339 for (p = p1; p != p2; p = p->next) in syn1a()
357 t->t_dcdr = syn1a(p->next, p2, flags); in syn1a()
366 return (syn1b(p1, p2, flags)); in syn1a()
375 syn1b(const struct wordent *p1, const struct wordent *p2, int flags) in syn1b() argument
381 for (p = p1; p != p2; p = p->next) in syn1b()
397 t->t_dcdr = syn1b(p->next, p2, flags); in syn1b()
406 return (syn2(p1, p2, flags)); in syn1b()
416 syn2(const struct wordent *p1, const struct wordent *p2, int flags) in syn2() argument
423 for (p = p1; p != p2; p = p->next) in syn2()
440 if (pn != p2 && pn->word[0] == '&') { in syn2()
446 if (pn != p2 && pn->word[0] == '&') in syn2()
448 t->t_dcdr = syn2(p->next, p2, flags | P_IN); in syn2()
454 return (syn3(p1, p2, flags)); in syn2()
468 syn3(const struct wordent *p1, const struct wordent *p2, int flags) in syn3() argument
478 if (p1 != p2) { in syn3()
485 if (p != p2) in syn3()
504 for (p = p1; p != p2; p = p->next) in syn3()
526 if (p->next == p2) in syn3()
545 if (p2->word[0] == ')') in syn3()
550 for (p = p1; p != p2; p = p->next) { in syn3()
574 if (p->next != p2 && eq(p->next->word, STRand)) { in syn3()
581 if (p->next != p2 && eq(p->next->word, STRbang)) in syn3()
583 if (p->next == p2) { in syn3()
603 if (p->next == p2) { in syn3()