Lines Matching defs:new
209 // new = string to expand
211 // delete = append new allocations to this so they can be freed later
213 static void expand_arg(struct sh_arg *arg, char *new, unsigned flags,
218 arg->v[arg->c++] = new;
222 char *s = word, *new = 0;
235 return new;
326 // redirection setup in the parent process. Open new filehandles
393 // second entry in this rd[] pair is new fd to dup2() after vfork(),
585 // start new quote context?
731 // Nope, new segment
777 // Is this a new pipeline segment?
816 // stop at EOL, else continue with new pipeline segment for )
876 // When waiting for { it must be next symbol, but can be on a new line.
898 // start of a new block?
922 // Did we start a new statement?
976 // advance past <<< arguments (stored as here documents, but no new input)
1040 } *blk = 0, *new;
1082 // Starting a new block?
1096 // It's a new block we're running, save context and add it to the stack.
1097 new = xzalloc(sizeof(*blk));
1098 new->next = blk;
1099 blk = new;
1218 while ((new = xgetline(ff, 0))) {
1219 if ((prompt = parse_line(new, &scratch))<0) break;
1220 free(new);
1241 char *new;
1267 if (!(new = xgetline(f ? f : stdin, 0))) break;
1269 // TODO if (!isspace(*new)) add_to_history(line);
1272 prompt = parse_line(new, &scratch);
1280 free(new);