mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-04-26 03:10:35 -07:00
pathname_translations: use ecl_assqlp instead of @assoc
ecl_assqlp is sufficient and does not require argument parsing at runtime. host is always checked to be a string, so the ecl_assoc test EQUAL will have the same effect as the previously checked STRING-EQUAL.
This commit is contained in:
parent
f948001dee
commit
2b52fe3ecb
1 changed files with 2 additions and 2 deletions
|
|
@ -525,7 +525,7 @@ ecl_logical_hostname_p(cl_object host)
|
|||
{
|
||||
if (!ecl_stringp(host))
|
||||
return FALSE;
|
||||
return !Null(@assoc(4, host, cl_core.pathname_translations, @':test', @'string-equal'));
|
||||
return !Null(ecl_assqlp(host, cl_core.pathname_translations));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -1559,7 +1559,7 @@ coerce_to_from_pathname(cl_object x, cl_object host)
|
|||
FEerror("Wrong host syntax ~S", 1, host);
|
||||
}
|
||||
/* Find its translation list */
|
||||
pair = @assoc(4, host, cl_core.pathname_translations, @':test', @'string-equal');
|
||||
pair = ecl_assqlp(host, cl_core.pathname_translations);
|
||||
if (set == OBJNULL) {
|
||||
@(return ((pair == ECL_NIL)? ECL_NIL : CADR(pair)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue