Make `(srfi srfi-35)' visible through `cond-expand'.
authorLudovic Courtès <ludo@gnu.org>
Sat, 26 Apr 2008 19:09:40 +0000 (21:09 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sat, 26 Apr 2008 19:09:40 +0000 (21:09 +0200)
NEWS
srfi/ChangeLog
srfi/srfi-35.scm
test-suite/ChangeLog
test-suite/tests/srfi-35.test

diff --git a/NEWS b/NEWS
index 5cd1b74..f45d0ae 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -69,6 +69,7 @@ would trigger an unbound variable error for `match:andmap'.
 Previously, parsing short option names of argument-less options would
 lead to a stack overflow.
 
+** `(srfi srfi-35)' is now visible through `cond-expand'
 ** Fixed type-checking for the second argument of `eval'
 ** Fixed `struct-ref' and `struct-set!' on "light structs"
 ** Honor struct field access rights in GOOPS
index f431f6e..d93ac82 100644 (file)
@@ -1,3 +1,7 @@
+2008-04-26  Ludovic Courtès  <ludo@gnu.org>
+
+       * srfi-35.scm: Provide `srfi-35' through `cond-expand-provide'.
+
 2008-04-26  Ludovic Courtès  <ludo@gnu.org>
 
        * Makefile.am (srfi_DATA): Add `srfi-88.scm'.
index c9e25ce..2035466 100644 (file)
@@ -1,6 +1,6 @@
 ;;; srfi-35.scm --- Conditions
 
-;; Copyright (C) 2007 Free Software Foundation, Inc.
+;; Copyright (C) 2007, 2008 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
@@ -37,6 +37,8 @@
             &serious serious-condition?
             &error error?))
 
+(cond-expand-provide (current-module) '(srfi-35))
+
 \f
 ;;;
 ;;; Condition types.
index 3c8987c..f3c075c 100644 (file)
@@ -1,3 +1,7 @@
+2008-04-26  Ludovic Courtès  <ludo@gnu.org>
+
+       * tests/srfi-35.test (cond-expand): New test.
+
 2008-04-26  Ludovic Courtès  <ludo@gnu.org>
 
        * Makefile.am (SCM_TESTS): Add `tests/srfi-88.test'.
index ec7a104..83efd61 100644 (file)
@@ -1,7 +1,7 @@
 ;;;; srfi-35.test --- Test suite for SRFI-35               -*- Scheme -*-
 ;;;; Ludovic Courtès <ludo@gnu.org>
 ;;;;
-;;;;   Copyright (C) 2007 Free Software Foundation, Inc.
+;;;;   Copyright (C) 2007, 2008 Free Software Foundation, Inc.
 ;;;;
 ;;;; This program is free software; you can redistribute it and/or modify
 ;;;; it under the terms of the GNU General Public License as published by
   :use-module (srfi srfi-35))
 
 \f
+(with-test-prefix "cond-expand"
+  (pass-if "srfi-35"
+    (cond-expand (srfi-35 #t)
+                 (else    #f))))
+
+\f
 (with-test-prefix "condition types"
   (pass-if "&condition"
     (condition-type? &condition))
   (pass-if "(c2-b v5)"
     (equal? (c2-b v5) "b2")))
 
+
+;;; Local Variables:
+;;; coding: latin-1
+;;; End: