diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-04-25 07:31:38 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-04-25 07:31:38 -0700 |
commit | 970fafa1b772042deb63358cc943a6579cf0debc (patch) | |
tree | 73bd857c6c283699bc7cf4c68b2a1f92b1dc694b /match.c | |
parent | 751728562ff124ede3386c26925fa06edc8862fd (diff) | |
download | txr-970fafa1b772042deb63358cc943a6579cf0debc.tar.gz txr-970fafa1b772042deb63358cc943a6579cf0debc.tar.bz2 txr-970fafa1b772042deb63358cc943a6579cf0debc.zip |
load/@(load): use path_cat.
* eval.c (load): Use path_cat and dir_name instead of ad hoc
path munging.
* match.c (v_load): Likewise.
Diffstat (limited to 'match.c')
-rw-r--r-- | match.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -4606,9 +4606,7 @@ static val v_load(match_files_ctx *c) { val path = if3(!pure_rel_path_p(target), target, - cat_str(nappend2(sub_list(split_str(parent, lit("/")), - zero, negone), - cons(target, nil)), lit("/"))); + path_cat(dir_name(parent), target)); val stream, name = target; val txr_lisp_p = nil; val ret = nil; |