Han-Wen Nienhuys [Wed, 14 May 2003 11:01:23 +0000 (11:01 +0000)]
(scm_gc_register_collectable_memory): avoid
wrap-around for scm_mtrigger
(scm_gc_register_collectable_memory): abort on overflowing
scm_mallocated().
Kevin Ryde [Mon, 12 May 2003 23:52:53 +0000 (23:52 +0000)]
*** empty log message ***
Kevin Ryde [Mon, 12 May 2003 23:52:17 +0000 (23:52 +0000)]
(=, <, max, min): Add tests of bignum/inf combinations.
Kevin Ryde [Mon, 12 May 2003 23:33:48 +0000 (23:33 +0000)]
Add indexing of srfi numbers, and a couple of procedures not otherwise indexed.
Kevin Ryde [Mon, 12 May 2003 23:22:31 +0000 (23:22 +0000)]
Typo in my last message.
Kevin Ryde [Mon, 12 May 2003 23:21:37 +0000 (23:21 +0000)]
*** empty log message ***
Kevin Ryde [Mon, 12 May 2003 23:16:43 +0000 (23:16 +0000)]
(xmpz_cmp_d): New macro, handling infs if gmp doesn't.
(scm_num_eq_p, scm_less_p, scm_max, scm_min): Use it.
Kevin Ryde [Mon, 12 May 2003 23:05:50 +0000 (23:05 +0000)]
(delete, delete!): Test predicate call arg order.
Kevin Ryde [Mon, 12 May 2003 23:04:23 +0000 (23:04 +0000)]
*** empty log message ***
Kevin Ryde [Mon, 12 May 2003 23:02:01 +0000 (23:02 +0000)]
(delete): Fix predicate arg order to match srfi-1 spec.
Mikael Djurfeldt [Mon, 12 May 2003 20:46:52 +0000 (20:46 +0000)]
* backtrace.c (scm_display_error_message): Introduced fancy
printing with max level 7 and length 10. (Purpose: avoid printing
gigantic objects in error messages.)
* print.c, print.h (scm_i_port_with_print_state): New function.
* print.c (scm_iprin1, scm_printer_apply,
scm_port_with_print_state): Use scm_i_port_with_print_state.
(scm_simple_format): Modified not to destroy print states.
(print_state_mutex): New mutex.
(scm_make_print_state, scm_free_print_state, scm_prin1):
Lock/unlock print_state_mutex.
Mikael Djurfeldt [Mon, 12 May 2003 16:29:45 +0000 (16:29 +0000)]
(SCM_GC8MARKP, SCM_SETGC8MARK, SCM_CLRGC8MARK):
Use current names in definitions.
Kevin Ryde [Sun, 11 May 2003 23:12:45 +0000 (23:12 +0000)]
*** empty log message ***
Kevin Ryde [Sun, 11 May 2003 23:12:18 +0000 (23:12 +0000)]
(CC_FOR_BUILD): Use AC_ARG_VAR.
Kevin Ryde [Sun, 11 May 2003 23:03:57 +0000 (23:03 +0000)]
(SCM_SINGLES): Use AC_CHECK_SIZEOF(float), to
eliminated guess-yes when cross compiling.
Kevin Ryde [Sun, 11 May 2003 22:40:25 +0000 (22:40 +0000)]
*** empty log message ***
Kevin Ryde [Sun, 11 May 2003 22:37:40 +0000 (22:37 +0000)]
(Handling Errors): Fix regexp error key, should
be `regular-expression-syntax'.
Kevin Ryde [Sun, 11 May 2003 22:31:31 +0000 (22:31 +0000)]
(Loading Readline Support, Readline Options):
Index entries for readline functions.
Kevin Ryde [Sun, 11 May 2003 22:26:43 +0000 (22:26 +0000)]
(Guile License): Refer to COPYING.LIB.
Kevin Ryde [Sun, 11 May 2003 22:25:16 +0000 (22:25 +0000)]
*** empty log message ***
Kevin Ryde [Sun, 11 May 2003 22:10:23 +0000 (22:10 +0000)]
(SCM_I_GSC_STACK_GROWS_UP): Fix missing comma in AC_TRY_RUN.
Kevin Ryde [Sat, 10 May 2003 03:59:06 +0000 (03:59 +0000)]
*** empty log message ***
Kevin Ryde [Sat, 10 May 2003 03:58:37 +0000 (03:58 +0000)]
(m): New macro.
Kevin Ryde [Sat, 10 May 2003 01:23:53 +0000 (01:23 +0000)]
*** empty log message ***
Kevin Ryde [Sat, 10 May 2003 01:18:29 +0000 (01:18 +0000)]
(Handling Errors): Index entries for error keys.
Kevin Ryde [Sat, 10 May 2003 01:11:58 +0000 (01:11 +0000)]
(Bitwise Operations): Note negatives are treated as
infinite precision twos complement. Revise `ash' to emphasise this
for right shifts of negatives. Describe integer-length behaviour on
negatives. Add `...' to logand, logior, logxor since they take
multiple parameters.
Kevin Ryde [Sat, 10 May 2003 00:39:32 +0000 (00:39 +0000)]
*** empty log message ***
Kevin Ryde [Sat, 10 May 2003 00:38:24 +0000 (00:38 +0000)]
(file-commentary, find-documentation-in-file): Use
call-with-input-file, to close ports when done.
Kevin Ryde [Sat, 10 May 2003 00:29:48 +0000 (00:29 +0000)]
(Reals and Rationals): Fix typo @result{#f}, and
put @result outside @code.
Kevin Ryde [Sat, 10 May 2003 00:23:50 +0000 (00:23 +0000)]
*** empty log message ***
Kevin Ryde [Sat, 10 May 2003 00:23:00 +0000 (00:23 +0000)]
(gcd): Exercise bignum/inum with a bignum not
fitting a ulong.
Kevin Ryde [Sat, 10 May 2003 00:20:05 +0000 (00:20 +0000)]
(scm_gcd): In bignum/inum, don't pass yy==0 to mpz_gcd_ui
since we're only using the ulong return value, and x might not fit.
Kevin Ryde [Sat, 10 May 2003 00:10:40 +0000 (00:10 +0000)]
(integer-length): Exercise some negatives, in
particular -2^n which is ...11100..00.
Kevin Ryde [Sat, 10 May 2003 00:07:34 +0000 (00:07 +0000)]
(=, <): Add tests involving NaNs.
Kevin Ryde [Sat, 10 May 2003 00:05:51 +0000 (00:05 +0000)]
(scm_integer_length): On negative bignums, adjust
mpz_sizeinbase to account for it looking at absolute value where we
want ones-complement.
Kevin Ryde [Fri, 9 May 2003 23:20:03 +0000 (23:20 +0000)]
*** empty log message ***
Kevin Ryde [Fri, 9 May 2003 23:14:35 +0000 (23:14 +0000)]
(scm_num_eq_p, scm_less_p): Don't pass NaN to mpz_cmp_d.
Kevin Ryde [Fri, 9 May 2003 23:09:30 +0000 (23:09 +0000)]
*** empty log message ***
Kevin Ryde [Fri, 9 May 2003 23:08:57 +0000 (23:08 +0000)]
(Handling Errors): Revise C support section to
get index entries, and clarify parameters. Remove scm_regex_error, no
longer exists and wasn't available to applications.
Kevin Ryde [Fri, 9 May 2003 22:43:00 +0000 (22:43 +0000)]
*** empty log message ***
Kevin Ryde [Fri, 9 May 2003 22:42:00 +0000 (22:42 +0000)]
* tests/srfi-1.test: New file, exercising take and drop.
* Makefile.am (SCM_TESTS): Add it.
Kevin Ryde [Fri, 9 May 2003 22:41:06 +0000 (22:41 +0000)]
New file, exercising take and drop.
Kevin Ryde [Fri, 9 May 2003 22:38:54 +0000 (22:38 +0000)]
(take): Make this an alias for list-head.
(drop): Make this an alias for list-tail.
Kevin Ryde [Thu, 8 May 2003 01:06:59 +0000 (01:06 +0000)]
*** empty log message ***
Kevin Ryde [Thu, 8 May 2003 01:03:51 +0000 (01:03 +0000)]
*** empty log message ***
Kevin Ryde [Thu, 8 May 2003 01:03:25 +0000 (01:03 +0000)]
(Bitwise Operations): Fix lognot to ones-complement.
Kevin Ryde [Thu, 8 May 2003 00:44:27 +0000 (00:44 +0000)]
*** empty log message ***
Kevin Ryde [Thu, 8 May 2003 00:41:16 +0000 (00:41 +0000)]
* slib.texi (JACAL): Fix @ref title.
Add index entries, use @file and @code variously.
Dirk Herrmann [Tue, 6 May 2003 20:17:26 +0000 (20:17 +0000)]
* eval.c, eval.h, read.c, read.h (scm_sym_dot): Moved from eval to
read. This will allow to make the definition in read.c static.
Dirk Herrmann [Tue, 6 May 2003 20:05:04 +0000 (20:05 +0000)]
* eval.c, eval.h, evalext.c, evalext.h (scm_m_undefine): Moved
from evalext to eval. This will allow to make some of the
definitions in eval.c static.
Kevin Ryde [Tue, 6 May 2003 00:37:57 +0000 (00:37 +0000)]
*** empty log message ***
Kevin Ryde [Tue, 6 May 2003 00:30:38 +0000 (00:30 +0000)]
*** empty log message ***
Kevin Ryde [Mon, 5 May 2003 23:09:48 +0000 (23:09 +0000)]
(C level thread interface): Use @deftypefn
not @deftypefun, to get function names (not types) indexed.
Kevin Ryde [Mon, 5 May 2003 23:04:02 +0000 (23:04 +0000)]
(logcount): New tests, exercising some negatives.
Kevin Ryde [Mon, 5 May 2003 23:01:30 +0000 (23:01 +0000)]
(scm_logcount): Use mpz_com, not mpz_neg.
Kevin Ryde [Mon, 5 May 2003 22:59:03 +0000 (22:59 +0000)]
(-): Add test for negative inum subtract bignum.
Kevin Ryde [Mon, 5 May 2003 22:55:46 +0000 (22:55 +0000)]
(scm_difference): In inum - bignum, handle negative inum.
Kevin Ryde [Mon, 5 May 2003 22:52:04 +0000 (22:52 +0000)]
* scheme-options.texi (Build Config): Add index entries for
%guile-build-info keys.
Dirk Herrmann [Sun, 4 May 2003 08:36:56 +0000 (08:36 +0000)]
The purpose of this patch is to make guile's internal memoizers
distinguishable from memoizing macros created on the scheme level
or from user provided primitive memoizing macros. The reason is,
that the internal memoizers are the only ones that are allowed to
transform their scheme input into memoizer byte code, while all
other memoizing macros may only transform scheme code into new
scheme code.
To achieve this, a new macro type 'builtin-macro!' is introduced.
Currently, 'builtin-macro!'s are handled as memoizing macros, but
this will change when the memoizer and executor are separated.
* macros.[ch] (scm_i_makbimacro): New.
* macros.h (SCM_BUILTIN_MACRO_P): New.
* macros.c (macro_print, scm_macro_type): Support builtin-macro!s.
* eval.c, goops.c: All of guile's primitive memoizing macros are
primitive builtin-macros now.
* eval.c (scm_macroexp, SCM_CEVAL): Make sure the primitive
builtin-macros are handled equally to memoizing macros.
Kevin Ryde [Sun, 4 May 2003 01:37:21 +0000 (01:37 +0000)]
*** empty log message ***
Kevin Ryde [Sun, 4 May 2003 00:40:13 +0000 (00:40 +0000)]
(Writing): Add write, revise display.
Marius Vollmer [Sat, 3 May 2003 23:20:21 +0000 (23:20 +0000)]
*** empty log message ***
Marius Vollmer [Sat, 3 May 2003 23:19:51 +0000 (23:19 +0000)]
Doc fix for the usage of num2intergral.
Marius Vollmer [Sat, 3 May 2003 23:18:51 +0000 (23:18 +0000)]
When checking whether readline clears SA_RESTART, let readline read
from "/dev/null". Otherwise, it might be stopped when run in the
background with job control, say. Thanks to Michael Talbot-Wilson!
Kevin Ryde [Sat, 3 May 2003 23:10:11 +0000 (23:10 +0000)]
*** empty log message ***
Kevin Ryde [Sat, 3 May 2003 23:00:53 +0000 (23:00 +0000)]
(Reading): In read-char and peek-char, fix typos "?"
in @rnindex. In port-column, use @: after i.e.
(Writing): In get-print-state, two spaces after full stop.
Kevin Ryde [Sat, 3 May 2003 22:48:47 +0000 (22:48 +0000)]
*** empty log message ***
Kevin Ryde [Sat, 3 May 2003 22:45:49 +0000 (22:45 +0000)]
(Integer Operations): Describe how quotient,
remainder and modulo round their results.
Kevin Ryde [Sat, 3 May 2003 22:39:08 +0000 (22:39 +0000)]
In reduce-right, use @code on "reduce".
Kevin Ryde [Sat, 3 May 2003 22:36:36 +0000 (22:36 +0000)]
(SRFI-1 Fold and Map): Fix typo "... variant of fold", add "f" to fold
call shown.
Kevin Ryde [Sat, 3 May 2003 22:27:14 +0000 (22:27 +0000)]
(SRFI-1 Length Append etc): Add count.
Kevin Ryde [Sat, 3 May 2003 22:24:36 +0000 (22:24 +0000)]
(Processes): Fix typo "hhhh".
Kevin Ryde [Sat, 3 May 2003 22:22:51 +0000 (22:22 +0000)]
Add spaces after some @defun names.
Marius Vollmer [Sat, 3 May 2003 22:10:05 +0000 (22:10 +0000)]
*** empty log message ***
Marius Vollmer [Sat, 3 May 2003 22:09:20 +0000 (22:09 +0000)]
(scm_ithrow): Remove "asm volatile" hack. It used to work around a
bug in GCC 2.95.2 but is now a bug in itself.
Marius Vollmer [Sat, 3 May 2003 21:34:49 +0000 (21:34 +0000)]
*** empty log message ***
Marius Vollmer [Sat, 3 May 2003 21:34:33 +0000 (21:34 +0000)]
(point++n!, point+-n!): Use substring-move! instead of
substring-move-left! or substring-move-right!. Thanks to Kevin Ryde.
Marius Vollmer [Sat, 3 May 2003 21:34:23 +0000 (21:34 +0000)]
(substring-move-left!, substring-move-right!): New.
Marius Vollmer [Sat, 3 May 2003 20:57:40 +0000 (20:57 +0000)]
*** empty log message ***
Marius Vollmer [Sat, 3 May 2003 20:52:53 +0000 (20:52 +0000)]
*** empty log message ***
Marius Vollmer [Sat, 3 May 2003 20:52:31 +0000 (20:52 +0000)]
(display-usage-report): Use keyword->symbol instead of keyword-symbol,
which doesn't exist. Thanks to Kevon Ryde.
Marius Vollmer [Sat, 3 May 2003 20:41:49 +0000 (20:41 +0000)]
*** empty log message ***
Marius Vollmer [Sat, 3 May 2003 20:41:30 +0000 (20:41 +0000)]
(hashq-cons-get-handle): Pass only the expected four arguments to
hashx-get-handle. Thanks to Kevin Ryde!
Marius Vollmer [Sat, 3 May 2003 20:24:37 +0000 (20:24 +0000)]
*** empty log message ***
Marius Vollmer [Sat, 3 May 2003 20:24:22 +0000 (20:24 +0000)]
(make-line-buffering-input-port) Pass 0 as second argument to
string-ref. Thanks to Kevin Ryde!
Marius Vollmer [Sat, 3 May 2003 19:58:55 +0000 (19:58 +0000)]
New. Thanks to Dale P. Smith for pointing us to these tests.
Marius Vollmer [Thu, 1 May 2003 23:14:02 +0000 (23:14 +0000)]
*** empty log message ***
Marius Vollmer [Thu, 1 May 2003 23:11:51 +0000 (23:11 +0000)]
(scm_rstate, scm_rng, SCM_SLOPPY_CONSP, SCM_SLOPPY_NCONSP,
scm_tc7_ssymbol, scm_tc7_msymbol, scm_tcs_symbols): New.
Neil Jerram [Wed, 30 Apr 2003 23:44:07 +0000 (23:44 +0000)]
Indexing improvements in posix.texi.
Marius Vollmer [Wed, 30 Apr 2003 14:51:01 +0000 (14:51 +0000)]
*** empty log message ***
Marius Vollmer [Wed, 30 Apr 2003 14:50:53 +0000 (14:50 +0000)]
(scm_protect_object, scm_unprotect_object, SCM_SETAND_CAR,
SCM_SETOR_CAR, SCM_SET_AND_CDR, SCM_SET_OR_CDR, SCM_FREEP, SCM_NFREEP,
SCM_GC8MARKP, SCM_SETGC8MARK, SCM_CLRGC8MARK, SCM_GCTYP16, SCM_GCCDR,
scm_remember, scm_the_root_module, scm_make_module,
scm_ensure_user_module, scm_load_scheme_module, scm_port,
scm_ptob_descriptor, scm_port_rw_active, scm_close_all_ports_except):
New.
Marius Vollmer [Wed, 30 Apr 2003 14:45:10 +0000 (14:45 +0000)]
*** empty log message ***
Marius Vollmer [Wed, 30 Apr 2003 14:43:10 +0000 (14:43 +0000)]
(scm_c_port_for_each): Added.
Marius Vollmer [Wed, 30 Apr 2003 14:38:53 +0000 (14:38 +0000)]
* ports.c (scm_c_port_for_each): New function, mostly copied from
scm_port_for_each.
(scm_port_for_each): Reimplemented using scm_c_port_for_each.
* ports.h (scm_c_port_for_each): New prototype.
Neil Jerram [Wed, 30 Apr 2003 00:06:33 +0000 (00:06 +0000)]
SRFI 34
Mikael Djurfeldt [Mon, 28 Apr 2003 12:43:45 +0000 (12:43 +0000)]
* eval.c (scm_m_atdispatch): Removed until actually needed. (This
macro was introduced in anticipation of GOOPS method compilation
code.)
* goops.c: Removed binding of @dispatch.
Dirk Herrmann [Mon, 28 Apr 2003 06:05:10 +0000 (06:05 +0000)]
* eval.c, goops.c (@dispatch, @slot-ref, @slot-set!): Move the
instructions that bind the macros on the scheme level back to
goops.c in order to make sure again that the bindings go into the
(oop goops) module and are not visible from the outside.
Dirk Herrmann [Sun, 27 Apr 2003 12:06:48 +0000 (12:06 +0000)]
* eval.c: Non functional change: Separated R5RS and non-R5RS
macros into different sections of the file and ordered the
memoizers alphabetically.
Dirk Herrmann [Sun, 27 Apr 2003 11:06:14 +0000 (11:06 +0000)]
* eval.c (scm_ilookup): Rewritten to improve readability.
Dirk Herrmann [Sun, 27 Apr 2003 10:44:08 +0000 (10:44 +0000)]
* eval.c (scm_i_call_closure_0, call_closure_1, call_closure_2):
Partially reverted patch from 2003-04-23 in oder to find a better
compromise between readability and debuggability.