summaryrefslogtreecommitdiffstats
path: root/stream.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-05-02 15:28:46 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-05-02 15:28:46 -0700
commitde3082638e204aae1fa63a390967cbef082304bb (patch)
tree8a5042ec0e1ce6d4cc1a353f471ebe5d55d7432b /stream.h
parentffe87454b93115be056a5ec99dd8300dafa9eb18 (diff)
downloadtxr-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/stream.h b/stream.h
index 9a1e9d4e..6d84f7a0 100644
--- a/stream.h
+++ b/stream.h
@@ -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);