summaryrefslogtreecommitdiff
path: root/module/rnrs
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2023-01-06 17:46:06 +0100
committerLudovic Courtès <ludo@gnu.org>2023-01-14 16:14:17 +0100
commite441c34f1666921f6b15597c1aa3a50596a129d7 (patch)
tree8e7a4a443b800118ee034e00d5888a9d9044d7e6 /module/rnrs
parent54ee636e57dd9416dea3e70be6e60f9bb9a22ebf (diff)
downloadguile-e441c34f1666921f6b15597c1aa3a50596a129d7.tar.gz
Add 'bytevector-slice'.
* module/rnrs/bytevectors/gnu.scm: New file. * am/bootstrap.am (SOURCES): Add it. * libguile/bytevectors.c (scm_bytevector_slice): New function. * libguile/bytevectors.h (scm_bytevector_slice): New declaration. * test-suite/tests/bytevectors.test ("bytevector-slice"): New tests. * doc/ref/api-data.texi (Bytevector Slices): New node.
Diffstat (limited to 'module/rnrs')
-rw-r--r--module/rnrs/bytevectors/gnu.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/module/rnrs/bytevectors/gnu.scm b/module/rnrs/bytevectors/gnu.scm
new file mode 100644
index 000000000..3258dfd17
--- /dev/null
+++ b/module/rnrs/bytevectors/gnu.scm
@@ -0,0 +1,24 @@
+;;;; gnu.scm --- GNU extensions to the bytevector API.
+
+;;;; Copyright (C) 2023 Free Software Foundation, Inc.
+;;;;
+;;;; This library is free software; you can redistribute it and/or
+;;;; modify it under the terms of the GNU Lesser General Public
+;;;; License as published by the Free Software Foundation; either
+;;;; version 3 of the License, or (at your option) any later version.
+;;;;
+;;;; This library is distributed in the hope that it will be useful,
+;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+;;;; Lesser General Public License for more details.
+;;;;
+;;;; You should have received a copy of the GNU Lesser General Public
+;;;; License along with this library; if not, write to the Free Software
+;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+(define-module (rnrs bytevectors gnu)
+ #:version (6)
+ #:export (bytevector-slice))
+
+(define bytevector-slice
+ (@@ (rnrs bytevectors) bytevector-slice))