Lines Matching refs:aptr

675 	char *tmp, *search = NULL, *aptr;  in _history_expand_command()  local
682 aptr = NULL; in _history_expand_command()
703 if ((aptr = el_malloc((offs + 1) * sizeof(*aptr))) in _history_expand_command()
706 (void)strncpy(aptr, command, offs); in _history_expand_command()
707 aptr[offs] = '\0'; in _history_expand_command()
718 if (ptr == NULL && aptr == NULL) in _history_expand_command()
722 *result = strdup(aptr ? aptr : ptr); in _history_expand_command()
723 if (aptr) in _history_expand_command()
724 el_free(aptr); in _history_expand_command()
767 tmp = history_arg_extract(start, end, aptr? aptr:ptr); in _history_expand_command()
771 if (aptr) in _history_expand_command()
772 el_free(aptr); in _history_expand_command()
776 tmp = strdup(aptr? aptr:ptr); in _history_expand_command()
778 if (aptr) in _history_expand_command()
779 el_free(aptr); in _history_expand_command()
790 if ((aptr = strrchr(tmp, '/')) != NULL) in _history_expand_command()
791 *aptr = '\0'; in _history_expand_command()
793 if ((aptr = strrchr(tmp, '/')) != NULL) { in _history_expand_command()
794 aptr = strdup(aptr + 1); in _history_expand_command()
796 tmp = aptr; in _history_expand_command()
799 if ((aptr = strrchr(tmp, '.')) != NULL) in _history_expand_command()
800 *aptr = '\0'; in _history_expand_command()
802 if ((aptr = strrchr(tmp, '.')) != NULL) { in _history_expand_command()
803 aptr = strdup(aptr); in _history_expand_command()
805 tmp = aptr; in _history_expand_command()
903 aptr = _rl_compat_sub(tmp, from, to, g_on); in _history_expand_command()
904 if (aptr) { in _history_expand_command()
906 tmp = aptr; in _history_expand_command()