Lines Matching refs:inp
475 static char *make_string(char **inp, int *nonnull);
482 static int parse_stream_outer(struct in_str *inp, int flag);
494 static char **make_list_in(char **inp, char *name);
495 static char *insert_var_value(char *inp);
496 static char *insert_var_value_sub(char *inp, int tag_subst);
3185 static int parse_stream_outer(struct in_str *inp, int flag) argument
3199 inp->promptmode=1;
3200 rcode = parse_stream(&temp, &ctx, inp,
3222 if (inp->peek == file_peek) {
3237 if (inp->__promptme == 0) printf("<INTERRUPT>\n");
3238 inp->__promptme = 1;
3242 inp->p = NULL;
3248 (inp->peek != static_peek || b_peek(inp)));
3519 static char *insert_var_value(char *inp) argument
3521 return insert_var_value_sub(inp, 0);
3524 static char *insert_var_value_sub(char *inp, int tag_subst) argument
3531 while ((p = strchr(inp, SPECIAL_VAR_SYMBOL))) {
3533 if (p != inp) {
3535 len = p - inp;
3537 strncpy((res_str + res_str_len), inp, len);
3540 inp = ++p;
3542 p = strchr(inp, SPECIAL_VAR_SYMBOL);
3545 if ((p1 = lookup_param(inp))) {
3575 inp = ++p;
3579 res_str = xrealloc(res_str, (1 + res_str_len + strlen(inp)));
3580 strcpy((res_str + res_str_len), inp);
3585 return (res_str == NULL) ? inp : res_str;
3588 static char **make_list_in(char **inp, char *name) argument
3598 for (i = 0; inp[i]; i++) {
3599 p3 = insert_var_value(inp[i]);
3622 if (p3 != inp[i]) free(p3);
3633 static char *make_string(char **inp, int *nonnull) argument
3645 for (n = 0; inp[n]; n++) {
3646 p = insert_var_value_sub(inp[n], noeval);
3659 if (p != inp[n]) free(p);