diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-05-02 15:28:46 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-05-02 15:28:46 -0700 |
commit | de3082638e204aae1fa63a390967cbef082304bb (patch) | |
tree | 8a5042ec0e1ce6d4cc1a353f471ebe5d55d7432b /stream.h | |
parent | ffe87454b93115be056a5ec99dd8300dafa9eb18 (diff) | |
download | txr-de3082638e204aae1fa63a390967cbef082304bb.tar.gz txr-de3082638e204aae1fa63a390967cbef082304bb.tar.bz2 txr-de3082638e204aae1fa63a390967cbef082304bb.zip |
New function: portable-abs-path-p.
* share/txr/stdlib/doc-syms.tl: Updated.
* stream.c (portable_abs_path_p): New function, exact copy of
old abs_path_p.
(abs_path_p): Rewritten to be specific to host platform. No
Windows-drive-like prefixes are checked on POSIX.
(stream_init): Register new function. Register abs-path-p
conditionally based on 258 compatibility.
* stream.h (portable_abs_path_p): Declared.
* txr.1: Documented, with compat notes.
Diffstat (limited to 'stream.h')
-rw-r--r-- | stream.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -241,6 +241,7 @@ val catenated_stream_p(val obj); val catenated_stream_push(val new_stream, val cat_stream); val remove_path(val path, val throw_on_error); val rename_path(val from, val to); +val portable_abs_path_p(val path); val abs_path_p(val path); val pure_rel_path_p(val path); val base_name(val path, val suff); |