source: trunk/j/src/org/armedbear/lisp/write-to-string.lisp @ 5311

Last change on this file since 5311 was 5311, checked in by piso, 17 years ago

Initial checkin.

File size: 2.1 KB
Line 
1;;; write-to-string.lisp
2;;;
3;;; Copyright (C) 2004 Peter Graves
4;;; $Id: write-to-string.lisp,v 1.1 2004-01-01 19:38:55 piso Exp $
5;;;
6;;; This program is free software; you can redistribute it and/or
7;;; modify it under the terms of the GNU General Public License
8;;; as published by the Free Software Foundation; either version 2
9;;; of the License, or (at your option) any later version.
10;;;
11;;; This program is distributed in the hope that it will be useful,
12;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with this program; if not, write to the Free Software
18;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19
20(in-package "SYSTEM")
21
22(defun write-to-string (object &key
23                               ((:escape *print-escape*) *print-escape*)
24                               ((:radix *print-radix*) *print-radix*)
25                               ((:base *print-base*) *print-base*)
26                               ((:circle *print-circle*) *print-circle*)
27                               ((:pretty *print-pretty*) *print-pretty*)
28                               ((:level *print-level*) *print-level*)
29                               ((:length *print-length*) *print-length*)
30                               ((:case *print-case*) *print-case*)
31                               ((:array *print-array*) *print-array*)
32                               ((:gensym *print-gensym*) *print-gensym*)
33                               ((:readably *print-readably*) *print-readably*)
34                               ((:right-margin *print-right-margin*)
35                                *print-right-margin*)
36                               ((:miser-width *print-miser-width*)
37                                *print-miser-width*)
38                               ((:lines *print-lines*) *print-lines*)
39                               ((:pprint-dispatch *print-pprint-dispatch*)
40                                *print-pprint-dispatch*))
41  (%write-to-string object))
Note: See TracBrowser for help on using the repository browser.