Lines Matching refs:n2
152 union node *n1, *n2, *n3; in list() local
160 n2 = andor(); in list()
163 if (n2->type == NCMD || n2->type == NPIPE) { in list()
164 n2->ncmd.backgnd = 1; in list()
165 } else if (n2->type == NREDIR) { in list()
166 n2->type = NBACKGND; in list()
170 n3->nredir.n = n2; in list()
172 n2 = n3; in list()
176 n1 = n2; in list()
182 n3->nbinary.ch2 = n2; in list()
222 union node *n1, *n2, *n3; in andor() local
235 n2 = pipeline(); in andor()
239 n3->nbinary.ch2 = n2; in andor()
249 union node *n1, *n2, *pipenode; in pipeline() local
277 n2 = (union node *)stalloc(sizeof (struct nnot)); in pipeline()
278 n2->type = NNOT; in pipeline()
279 n2->nnot.com = n1; in pipeline()
280 return n2; in pipeline()
290 union node *n1, *n2; in command() local
303 *rpp = n2 = redirnode; in command()
304 rpp = &n2->nfile.next; in command()
323 n2 = n1; in command()
325 n2->nif.elsepart = (union node *)stalloc(sizeof (struct nif)); in command()
326 n2 = n2->nif.elsepart; in command()
327 n2->type = NIF; in command()
328 n2->nif.test = list(0); in command()
331 n2->nif.ifpart = list(0); in command()
334 n2->nif.elsepart = list(0); in command()
336 n2->nif.elsepart = NULL; in command()
368 n2 = (union node *)stalloc(sizeof (struct narg)); in command()
369 n2->type = NARG; in command()
370 n2->narg.text = wordtext; in command()
371 n2->narg.backquote = backquotelist; in command()
372 *app = n2; in command()
373 app = &n2->narg.next; in command()
382 n2 = (union node *)stalloc(sizeof (struct narg)); in command()
383 n2->type = NARG; in command()
384 n2->narg.text = argvars; in command()
385 n2->narg.backquote = NULL; in command()
386 n2->narg.next = NULL; in command()
387 n1->nfor.args = n2; in command()
412 n1->ncase.expr = n2 = (union node *)stalloc(sizeof (struct narg)); in command()
413 n2->type = NARG; in command()
414 n2->narg.text = wordtext; in command()
415 n2->narg.backquote = backquotelist; in command()
416 n2->narg.next = NULL; in command()
500 *rpp = n2 = redirnode; in command()
501 rpp = &n2->nfile.next; in command()
508 n2 = (union node *)stalloc(sizeof (struct nredir)); in command()
509 n2->type = NREDIR; in command()
510 n2->nredir.n = n1; in command()
511 n1 = n2; in command()
518 n2 = (union node *)stalloc(sizeof (struct nnot)); in command()
519 n2->type = NNOT; in command()
520 n2->nnot.com = n1; in command()
521 return n2; in command()
533 union node *n = NULL, *n2; in simplecmd() local
595 n2 = (union node *)stalloc(sizeof (struct nnot)); in simplecmd()
596 n2->type = NNOT; in simplecmd()
597 n2->nnot.com = n; in simplecmd()
598 return n2; in simplecmd()