Lines Matching refs:aptr

640 	char *tmp, *search = NULL, *aptr;  in _history_expand_command()  local
647 aptr = NULL; in _history_expand_command()
668 if ((aptr = malloc(offs + 1)) == NULL) in _history_expand_command()
670 (void)strncpy(aptr, command, offs); in _history_expand_command()
671 aptr[offs] = '\0'; in _history_expand_command()
682 if (ptr == NULL && aptr == NULL) in _history_expand_command()
686 *result = strdup(aptr ? aptr : ptr); in _history_expand_command()
687 if (aptr) in _history_expand_command()
688 free(aptr); in _history_expand_command()
731 tmp = history_arg_extract(start, end, aptr? aptr:ptr); in _history_expand_command()
735 if (aptr) in _history_expand_command()
736 free(aptr); in _history_expand_command()
740 tmp = strdup(aptr? aptr:ptr); in _history_expand_command()
742 if (aptr) in _history_expand_command()
743 free(aptr); in _history_expand_command()
754 if ((aptr = strrchr(tmp, '/')) != NULL) in _history_expand_command()
755 *aptr = '\0'; in _history_expand_command()
757 if ((aptr = strrchr(tmp, '/')) != NULL) { in _history_expand_command()
758 aptr = strdup(aptr + 1); in _history_expand_command()
760 tmp = aptr; in _history_expand_command()
763 if ((aptr = strrchr(tmp, '.')) != NULL) in _history_expand_command()
764 *aptr = '\0'; in _history_expand_command()
766 if ((aptr = strrchr(tmp, '.')) != NULL) { in _history_expand_command()
767 aptr = strdup(aptr); in _history_expand_command()
769 tmp = aptr; in _history_expand_command()
867 aptr = _rl_compat_sub(tmp, from, to, g_on); in _history_expand_command()
868 if (aptr) { in _history_expand_command()
870 tmp = aptr; in _history_expand_command()