Lines Matching refs:tmp

797 replace(char **tmp, int c)  in replace()  argument
800 if ((aptr = strrchr(*tmp, c)) == NULL) in replace()
803 el_free(*tmp); in replace()
804 *tmp = aptr; in replace()
821 char *tmp, *search = NULL, *aptr, delim; in _history_expand_command() local
881 tmp = strdup(last_search_match ? last_search_match : ""); in _history_expand_command()
913 tmp = history_arg_extract(start, end, aptr? aptr:ptr); in _history_expand_command()
914 if (tmp == NULL) { in _history_expand_command()
922 tmp = strdup(aptr? aptr:ptr); in _history_expand_command()
928 *result = tmp; in _history_expand_command()
937 if ((aptr = strrchr(tmp, '/')) != NULL) in _history_expand_command()
941 replace(&tmp, '/'); in _history_expand_command()
944 if ((aptr = strrchr(tmp, '.')) != NULL) in _history_expand_command()
948 replace(&tmp, '.'); in _history_expand_command()
969 aptr = _rl_compat_sub(tmp, from, to, g_on); in _history_expand_command()
971 el_free(tmp); in _history_expand_command()
972 tmp = aptr; in _history_expand_command()
979 *result = tmp; in _history_expand_command()
982 el_free(tmp); in _history_expand_command()
996 char *tmp, *result; in history_expand() local
1041 tmp = NULL; in history_expand()
1091 ret = _history_expand_command (str, i, (j - i), &tmp); in history_expand()
1092 if (ret > 0 && tmp) { in history_expand()
1093 len = strlen(tmp); in history_expand()
1094 ADD_STRING(tmp, len, tmp); in history_expand()
1096 if (tmp) { in history_expand()
1097 el_free(tmp); in history_expand()
1098 tmp = NULL; in history_expand()