summaryrefslogtreecommitdiffstats
path: root/stream.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-06-22 06:53:56 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-06-22 06:53:56 -0700
commit08b4921e616a17ed8492527c6a89c08ccc33ea35 (patch)
treea67cc7524770d4113125ea643895ae8796bba998 /stream.h
parent26b9e97b65074eeee273bf6dd8ee1958f1128c1e (diff)
downloadtxr-08b4921e616a17ed8492527c6a89c08ccc33ea35.tar.gz
txr-08b4921e616a17ed8492527c6a89c08ccc33ea35.tar.bz2
txr-08b4921e616a17ed8492527c6a89c08ccc33ea35.zip
New functions: long-suffix, short-suffix.
* stream.c (short_suffix, long_suffix): New functions. (stream_init): short-suffix and long-suffix intrinsics registered. * stream.c (short_suffix, long_suffix): Declared. * tests/018/path.tl: New file. * txr.1: Documented. * share/txr/stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'stream.h')
-rw-r--r--stream.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/stream.h b/stream.h
index 4c2f6a0e..30971c8c 100644
--- a/stream.h
+++ b/stream.h
@@ -248,6 +248,8 @@ val abs_path_p(val path);
val pure_rel_path_p(val path);
val base_name(val path, val suff);
val dir_name(val path);
+val short_suffix(val name, val alt_in);
+val long_suffix(val name, val alt_in);
val path_cat(val dir_name, val base_name);
val make_byte_input_stream(val obj);
val iobuf_get(void);