1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 04:10:18 +02:00
Commit graph

25 commits

Author SHA1 Message Date
Marius Vollmer
a6b3219e85 (format:obj->str): Simplified considerably by using
object->string or display instead of implementing our own printer.
Handle format:read-proof here.  Unreadable objects are recognized
by their "#<" prefix instead of by being unknown to the custom
printer (which would treat keywords as unprintable, for example).
(format:iobj->str): Removed.
2004-10-18 15:26:41 +00:00
Kevin Ryde
301cf4e61c (format:out): Ignore excess arguments, per common lisp. 2004-09-01 23:33:16 +00:00
Kevin Ryde
260ffd6118 (format:out-num-padded): Print "+" on 0 under @ modifier. 2004-09-01 23:17:11 +00:00
Kevin Ryde
a0dbcd9cc3 2004-05-25 Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>
* format.scm: Remove the arbitrary limit of 100 iterations for the
	~{...~} control structure.
2004-07-19 00:43:37 +00:00
Marius Vollmer
093d2ca9af (format): Rewritten as a big letrec to make it reentrant. No mutex is
necessary.  Thanks to Clinton Ebadi!
2003-09-15 13:37:50 +00:00
Marius Vollmer
8da867bfc6 (format:error): Use 'format:format' instead of
'format' since the latter will lock the mutex again that we have
already locked.
(format:format-work): Flag multiple '#' as an error.
2003-09-12 15:14:25 +00:00
Marius Vollmer
552ae44cde (format:out-substr): Update the column counter correctly. This fixes
the behavior of ~T (tabbing) after ~F, for instance.  Thanks to
Matthias Koeppe!
2003-03-19 18:29:04 +00:00
Mikael Djurfeldt
f595ccfefc * srfi-1.scm (iota map for-each map-in-order list-index member
delete delete! assoc): Marked as replacements.

* goops.scm (define-extended-generics): New syntax.
(<class> <operator-class> <entity-class> <entity>): Marked as
replacements.

* boot-9.scm (module-override!, make-mutable-parameter,
lookup-duplicates-handlers, default-module-duplicates-handler):
New functions.
(process-duplicates): Don't call duplicates handlers for duplicate
bindings of the same variable.
(process-define-module): Process #:replace.
(compile-interface-spec, resolve-interface): Process #:prefix.

* format.scm (format): Marked as replacement.

* threads.scm (future, future-ref): Marked as replacements.
2003-03-10 23:18:05 +00:00
Marius Vollmer
b3a0f5c3a2 (format): Use 'monitor' properly. Not the definition
needs to be restricted, the actual function needs to be.
2002-11-07 13:45:53 +00:00
Marius Vollmer
d02655f717 (format): Wrap a monitor around format:format since it is not
thread-safe.
2002-11-03 19:14:08 +00:00
Marius Vollmer
a0c39db327 (format:out-inf-nan): New.
(format:out-fixed, format:out-expon, format:out-general): Use it
to print infs and nans.
2002-05-09 19:37:37 +00:00
Marius Vollmer
e23028a580 (format:fn-max): Increase to 400 so ~f and ~g can print long real
numbers with large positive and negative exponents.
2002-05-08 20:00:59 +00:00
Marius Vollmer
4dd9ecedf7 (string-index, list-head): Removed, we already these in the core. 2001-11-27 22:36:21 +00:00
Dirk Herrmann
8c494e9973 * Removed lots of deprecated stuff. 2001-08-31 14:42:31 +00:00
Marius Vollmer
3cc34e16be Use (ice-9 and-let-star).
(format:out): Initialize format:output-col with current column of
`port', if it has one.  Else leave it alone.  Thanks to Matthias
Köppe!
2001-06-09 18:14:36 +00:00
Marius Vollmer
9a7d04c37c Added kluge at top that keeps `export' from
re-exporting the `format' variable of the `(guile)' module.
2001-06-04 22:09:39 +00:00
Marius Vollmer
b337528fb5 * Makefile.am (ice9_sources): Added "pretty-print.scm".
* pretty-print.scm: New file, copied from SLIB.
* format.scm: Autoload `pretty-print'.
2001-05-25 00:15:32 +00:00
Marius Vollmer
296ff5e78b Merged from mvo-vcell-cleanup-1-branch. 2001-05-15 14:59:42 +00:00
Mikael Djurfeldt
a510a7d8d5 * format.scm (format:obj->str): Made tail-recursive. (Thanks to
Matthias Köppe.)
2000-08-14 15:40:03 +00:00
Mikael Djurfeldt
186cf94654 * format.scm (format:obj->str): Handle circular references. Also,
print improper lists with (x y . z) syntax rather than as
individual pairs.  (This code should probably be integrated into C
level facilities.  It is currently terribly slow.)
2000-04-04 11:40:39 +00:00
Mikael Djurfeldt
1af9072d73 * format.scm (format): Reintroduce (define format format:format)
so that the binding in the public interface of the module will be OK.
2000-02-11 04:48:07 +00:00
Greg J. Badros
14469b7c69 * format.scm: Use (variable-set! (builtin-variable 'format)) to
re-define format to be format:format (instead of just define,
which interacts poorly with the module system).  Thanks to Shuji
Narazaki for this change.
2000-01-20 20:58:30 +00:00
Jim Blandy
8a7391cd1a * format.scm (format:format-work): Use #\tab and #\page instead of
slib:form-feed and slib:tab.  (Thanks to Ceri Storey.)

* format.scm (format:abort): Call error, not slib:error.
1999-09-11 17:51:09 +00:00
Jim Blandy
9c792b5df0 * string-case.scm: Removed; functions moved to libguile/strop.c
(which could be dynamically linked in the future anyway).
* format.scm: Don't bother importing (ice-9 string-case).
1999-05-09 08:21:28 +00:00
Jim Blandy
7da43e4123 * format.scm: New file, brought in from SLIB, with the following
changes:
(format:format): If the first argument is the format string, stick
a #f on the front of it, so it is now a valid CL format argument
list.  This is easier than changing everyplace else (like the
error formatter) that expects it to be in CL form.  The other
clause which explicitly tests for this case is now dead code.
(format:format-work): Allow `@' and `:' in either order, as per
modern CL behavior.
(format:num->cardinal): Don't assume that an elseless if returns
'() when the condition is false.
1999-05-02 17:27:20 +00:00