Lines Matching +full:1 +full:p1

11  * 1. Redistributions of source code must retain the above copyright
71 asyntax(struct wordent *p1, struct wordent *p2) in asyntax() argument
73 while (p1 != p2) { in asyntax()
74 if (!any(";&\n", p1->word[0])) in asyntax()
75 return asyn0(p1, p2); in asyntax()
76 p1 = p1->next; in asyntax()
82 asyn0(struct wordent *p1, struct wordent *p2) in asyn0() argument
87 for (p = p1; p != p2; p = p->next) in asyn0()
111 if (asyn3(p1, p) != 0) in asyn0()
112 return 1; 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()
141 if (p1->word[0] == '(') { in asyn3()
143 if (p2 == p1) in asyn3()
145 if (p2 == p1->next) in asyn3()
147 return asyn0(p1->next, p2); in asyn3()
149 ap = adrof1(p1->word, &aliases); in asyn3()
152 alhistp = p1->prev; in asyn3()
162 if (p1->word[0] && eq(p1->word, alout.next->word)) { in asyn3()
168 p1 = freenod(p1, redid ? p2 : p1->next); in asyn3()
170 p1->next->prev = alout.prev->prev; in asyn3()
171 alout.prev->prev->next = p1->next; in asyn3()
172 alout.next->prev = p1; in asyn3()
173 p1->next = alout.next; in asyn3()
177 return 1; in asyn3()
181 freenod(struct wordent *p1, struct wordent *p2) in freenod() argument
183 struct wordent *retp = p1->prev; in freenod()
185 while (p1 != p2) { in freenod()
186 xfree(p1->word); in freenod()
187 p1 = p1->next; in freenod()
188 xfree(p1->prev); in freenod()
195 #define P_HERE 1
206 syntax(const struct wordent *p1, const struct wordent *p2, int flags) in syntax() argument
209 while (p1 != p2) in syntax()
210 if (any(";&\n", p1->word[0])) in syntax()
211 p1 = p1->next; 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()
244 if (p->word[1] == '|') in syn0()
256 if (p->word[1] == '&') in syn0()
258 t1 = syn1(p1, p, flags); in syn0()
262 t = xcalloc(1, sizeof(*t)); in syn0()
270 t = xcalloc(1, sizeof(*t)); 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()
313 t = xcalloc(1, sizeof(*t)); in syn1()
315 t->t_dcar = syn1a(p1, p, 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()
351 if (p->word[1] != '|') in syn1a()
354 t = xcalloc(1, sizeof(*t)); in syn1a()
356 t->t_dcar = syn1b(p1, p, 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()
393 if (p->word[1] == '&' && l == 0) { in syn1b()
394 t = xcalloc(1, sizeof(*t)); in syn1b()
396 t->t_dcar = syn2(p1, p, 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()
437 t = xcalloc(1, sizeof(*t)); in syn2()
445 t->t_dcar = syn3(p1, p, f); 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()
479 p = p1; in syn3()
496 specp = 1; in syn3()
504 for (p = p1; p != p2; p = p->next) in syn3()
541 t = xcalloc(1, sizeof(*t)); in syn3()
542 av = xcalloc(n + 1, sizeof(Char **)); in syn3()
550 for (p = p1; p != p2; p = p->next) { in syn3()
572 if (p->word[1] == '>') in syn3()
601 if (p->word[1] == '<') in syn3()