Lines Matching refs:inp
474 static char *make_string(char **inp, int *nonnull);
481 static int parse_stream_outer(struct in_str *inp, int flag);
493 static char **make_list_in(char **inp, char *name);
494 static char *insert_var_value(char *inp);
495 static char *insert_var_value_sub(char *inp, int tag_subst);
3184 static int parse_stream_outer(struct in_str *inp, int flag) argument
3198 inp->promptmode=1;
3199 rcode = parse_stream(&temp, &ctx, inp,
3221 if (inp->peek == file_peek) {
3236 if (inp->__promptme == 0) printf("<INTERRUPT>\n");
3237 inp->__promptme = 1;
3241 inp->p = NULL;
3247 (inp->peek != static_peek || b_peek(inp)));
3518 static char *insert_var_value(char *inp) argument
3520 return insert_var_value_sub(inp, 0);
3523 static char *insert_var_value_sub(char *inp, int tag_subst) argument
3530 while ((p = strchr(inp, SPECIAL_VAR_SYMBOL))) {
3532 if (p != inp) {
3534 len = p - inp;
3536 strncpy((res_str + res_str_len), inp, len);
3539 inp = ++p;
3541 p = strchr(inp, SPECIAL_VAR_SYMBOL);
3544 if ((p1 = lookup_param(inp))) {
3574 inp = ++p;
3578 res_str = xrealloc(res_str, (1 + res_str_len + strlen(inp)));
3579 strcpy((res_str + res_str_len), inp);
3584 return (res_str == NULL) ? inp : res_str;
3587 static char **make_list_in(char **inp, char *name) argument
3597 for (i = 0; inp[i]; i++) {
3598 p3 = insert_var_value(inp[i]);
3621 if (p3 != inp[i]) free(p3);
3632 static char *make_string(char **inp, int *nonnull) argument
3644 for (n = 0; inp[n]; n++) {
3645 p = insert_var_value_sub(inp[n], noeval);
3658 if (p != inp[n]) free(p);