* tests/syntax.test ("duplicate formals"): New category, move
[bpt/guile.git] / ice-9 / r5rs.scm
CommitLineData
affb914f
MD
1;;;; Copyright (C) 2000 Free Software Foundation, Inc.
2;;;;
3;;;; This program is free software; you can redistribute it and/or modify
4;;;; it under the terms of the GNU General Public License as published by
5;;;; the Free Software Foundation; either version 2, or (at your option)
6;;;; any later version.
7;;;;
8;;;; This program is distributed in the hope that it will be useful,
9;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
10;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11;;;; GNU General Public License for more details.
12;;;;
13;;;; You should have received a copy of the GNU General Public License
14;;;; along with this software; see the file COPYING. If not, write to
15;;;; the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
16;;;; Boston, MA 02111-1307 USA
17;;;;
18\f
19;;;; R5RS bindings
20
21(define-module (ice-9 r5rs))
22
23(module-use! %module-public-interface (resolve-interface '(ice-9 safe-r5rs)))
24
25(export scheme-report-environment
26 interaction-environment
27
28 call-with-input-file call-with-output-file
29 with-input-from-file with-output-to-file
30 open-input-file open-output-file
31 close-input-port close-output-port
32
33 load
34 ;;transcript-on
35 ;;transcript-off
36 )
37
38(define scheme-report-interface %module-public-interface)
39
40(define (scheme-report-environment n)
41 (if (not (= n 5))
42 (scm-error 'misc-error 'scheme-report-environment
43 "~A is not a valid version"
44 (list n)
45 '()))
46 scheme-report-interface)