[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 11/15] module: Add (scheme sort).
From: |
Maxim Cournoyer |
Subject: |
[PATCH v5 11/15] module: Add (scheme sort). |
Date: |
Wed, 29 Nov 2023 16:59:39 -0500 |
* module/scheme/sort.sld: New R7RS library shim for (rnrs sorting).
* am/bootstrap.am (SOURCES): Register it.
* NEWS: Update NEWS.
---
Changes in v5:
- Update NEWS
NEWS | 1 +
am/bootstrap.am | 1 +
module/scheme/sort.sld | 21 +++++++++++++++++++++
3 files changed, 23 insertions(+)
create mode 100644 module/scheme/sort.sld
diff --git a/NEWS b/NEWS
index 45023d9fb..614a2bc7f 100644
--- a/NEWS
+++ b/NEWS
@@ -24,6 +24,7 @@ the compiler reports it as "possibly unused".
** Add (srfi 126), a hash tables library
** Add (srfi 128), a comparators library
** Add (scheme comparator)
+** Add (scheme sort)
* Bug fixes
diff --git a/am/bootstrap.am b/am/bootstrap.am
index 614d56d0d..e0517f69d 100644
--- a/am/bootstrap.am
+++ b/am/bootstrap.am
@@ -289,6 +289,7 @@ SOURCES = \
scheme/r5rs.scm \
scheme/read.scm \
scheme/repl.scm \
+ scheme/sort.sld \
scheme/time.scm \
scheme/write.scm \
\
diff --git a/module/scheme/sort.sld b/module/scheme/sort.sld
new file mode 100644
index 000000000..d8b560d1f
--- /dev/null
+++ b/module/scheme/sort.sld
@@ -0,0 +1,21 @@
+;;; sorting.sld --- R7RS library exposing (rnrs sorting).
+
+;;; 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 program. If not, see
+;;; <http://www.gnu.org/licenses/>.
+
+(define-library (scheme sort)
+ (export list-sort vector-sort vector-sort!)
+ (import (rnrs sorting)))
--
2.41.0
- [PATCH v5 00/15] Add a few new SRFIs, R7RS libraries, Maxim Cournoyer, 2023/11/29
- [PATCH v5 01/15] ice-9: Fix 'include' when used in compilation contexts., Maxim Cournoyer, 2023/11/29
- [PATCH v5 02/15] Use R7RS 'rename' syntax for exports., Maxim Cournoyer, 2023/11/29
- [PATCH v5 03/15] r7rs-libraries: Add support for 'else' clause in cond-expand., Maxim Cournoyer, 2023/11/29
- [PATCH v5 05/15] (scheme base): Support non-negative SRFI integer names in cond-expand., Maxim Cournoyer, 2023/11/29
- [PATCH v5 04/15] r7rs-libraries: Better support R7RS SRFI library names., Maxim Cournoyer, 2023/11/29
- [PATCH v5 07/15] build: Register '.sld' as an alternative extension to '.scm'., Maxim Cournoyer, 2023/11/29
- [PATCH v5 06/15] Share features tested by cond-expand library declarations and expressions., Maxim Cournoyer, 2023/11/29
- [PATCH v5 09/15] module: Add SRFI 128., Maxim Cournoyer, 2023/11/29
- [PATCH v5 08/15] module: Add SRFI 126., Maxim Cournoyer, 2023/11/29
- [PATCH v5 11/15] module: Add (scheme sort).,
Maxim Cournoyer <=
- [PATCH v5 10/15] module: Add (scheme comparator)., Maxim Cournoyer, 2023/11/29
- [PATCH v5 12/15] module: Add SRFI 125., Maxim Cournoyer, 2023/11/29
- [PATCH v5 13/15] module: Add SRFI 151., Maxim Cournoyer, 2023/11/29
- [PATCH v5 14/15] module: Add SRFI 160., Maxim Cournoyer, 2023/11/29
- [PATCH v5 15/15] module: Add SRFI 178., Maxim Cournoyer, 2023/11/29