diff options
author | Ludovic Courtès <ludo@gnu.org> | 2023-01-06 17:46:06 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2023-01-14 16:14:17 +0100 |
commit | e441c34f1666921f6b15597c1aa3a50596a129d7 (patch) | |
tree | 8e7a4a443b800118ee034e00d5888a9d9044d7e6 /module/rnrs | |
parent | 54ee636e57dd9416dea3e70be6e60f9bb9a22ebf (diff) | |
download | guile-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.scm | 24 |
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)) |