Dirk Herrmann [Wed, 24 Mar 2004 01:21:50 +0000 (01:21 +0000)]
* libguile/eval.c: Separated some definitions relevant for execution
from the memoization part of the file.
(copy_tree): New static function
(scm_copy_tree): Rewritten to fix two kinds or bugs: First, cyclic
structures are detected now and will lead to an exception instead
of forcing guile to run in an endless loop, using up all the
system's memory. Second, arrays in the cdr of an improper list
are now copied. See the new test cases in eval.test.
* test-suite/tests/eval.test: Added tests which reflect the recent
fixes to copy-tree.
Dirk Herrmann [Wed, 24 Mar 2004 00:49:07 +0000 (00:49 +0000)]
* posix.c (scm_gethostname): Make sure len is initialised before
it is used. Restructured to (hopefully) represent possible
configurations more clearly in the code. Added unwind handler.
Kevin Ryde [Tue, 23 Mar 2004 00:23:54 +0000 (00:23 +0000)]
*** empty log message ***
Kevin Ryde [Mon, 22 Mar 2004 23:48:52 +0000 (23:48 +0000)]
*** empty log message ***
Kevin Ryde [Mon, 22 Mar 2004 23:45:35 +0000 (23:45 +0000)]
(AC_CHECK_FUNCS): Add sysconf.
(AC_CHECK_HEADERS): Add netdb.h and sys/param.h.
Kevin Ryde [Mon, 22 Mar 2004 23:41:30 +0000 (23:41 +0000)]
(scm_gethostname): Use sysconf(_SC_HOST_NAME_MAX) and/or
MAXHOSTNAMELEN when available.
Kevin Ryde [Mon, 22 Mar 2004 23:31:30 +0000 (23:31 +0000)]
*** empty log message ***
Kevin Ryde [Mon, 22 Mar 2004 23:30:49 +0000 (23:30 +0000)]
*** empty log message ***
Kevin Ryde [Mon, 22 Mar 2004 23:30:08 +0000 (23:30 +0000)]
(Reals and Rationals): Typo in `rationalize'.
Kevin Ryde [Mon, 22 Mar 2004 23:27:46 +0000 (23:27 +0000)]
(circular-list): Rewrite using set-cdr!, no need to copy parameter list.
Marius Vollmer [Sun, 21 Mar 2004 02:12:49 +0000 (02:12 +0000)]
Don't ignore .cvsigore
Marius Vollmer [Sun, 21 Mar 2004 02:03:02 +0000 (02:03 +0000)]
*** empty log message ***
Marius Vollmer [Sun, 21 Mar 2004 02:02:08 +0000 (02:02 +0000)]
(skip_scsh_block_comment): Also recognize '\r' as a line terminator.
Rewritten the logic as a state machine, I must have been doing too
much VHDL lately...
Marius Vollmer [Sun, 21 Mar 2004 00:30:12 +0000 (00:30 +0000)]
(scm_ceval, scm_deval): Explicitely evaluate ports to themselves.
Thanks to Han-Wen Nienhuys!
Marius Vollmer [Sat, 20 Mar 2004 23:55:03 +0000 (23:55 +0000)]
Changed docstrings so that they no longer talk about returning
'pointers' to something.
Han-Wen Nienhuys [Sat, 20 Mar 2004 23:37:52 +0000 (23:37 +0000)]
* gc.c: remove set_debug_cell_accesses! when
SCM_DEBUG_CELL_ACCESSES is not defined. Scheme source code should
use (if (defined? 'set-debug-cell-accesses!) .. ) to switch on
debugging conditionally.
Kevin Ryde [Sat, 20 Mar 2004 23:22:17 +0000 (23:22 +0000)]
*** empty log message ***
Kevin Ryde [Sat, 20 Mar 2004 23:18:06 +0000 (23:18 +0000)]
(scm_gmtime): Use gmtime_r when available, for thread safety.
Kevin Ryde [Sat, 20 Mar 2004 23:14:35 +0000 (23:14 +0000)]
*** empty log message ***
Kevin Ryde [Sat, 20 Mar 2004 23:13:48 +0000 (23:13 +0000)]
(AC_CHECK_FUNCS): Add gmtime_r.
Kevin Ryde [Fri, 19 Mar 2004 23:17:59 +0000 (23:17 +0000)]
*** empty log message ***
Kevin Ryde [Fri, 19 Mar 2004 23:17:00 +0000 (23:17 +0000)]
* posix.c (scm_gethostname): Preserve errno across free() call.
Han-Wen Nienhuys [Thu, 18 Mar 2004 00:19:52 +0000 (00:19 +0000)]
(sweep_card): use SCM_GC_SET_CELL_WORD for setting
free cells.
Kevin Ryde [Sat, 13 Mar 2004 23:34:13 +0000 (23:34 +0000)]
*** empty log message ***
Kevin Ryde [Sat, 13 Mar 2004 23:32:16 +0000 (23:32 +0000)]
Define _GNU_SOURCE for strptime prototype from glibc. Use
HAVE_DECL_STRPTIME for when to give own strptime prototype.
Kevin Ryde [Sat, 13 Mar 2004 23:31:15 +0000 (23:31 +0000)]
(strptime): Use #define _GNU_SOURCE to get the
prototype from glibc, use AC_CHECK_DECLS rather than AC_EGREP_HEADER.
Neil Jerram [Wed, 10 Mar 2004 10:14:13 +0000 (10:14 +0000)]
Document removal of guileint.
Neil Jerram [Wed, 10 Mar 2004 10:09:33 +0000 (10:09 +0000)]
Remove guileint files.
Kevin Ryde [Sat, 6 Mar 2004 22:43:45 +0000 (22:43 +0000)]
*** empty log message ***
Kevin Ryde [Sat, 6 Mar 2004 22:41:26 +0000 (22:41 +0000)]
(scm_gmtime): Return bd_time->tm_zone when available, rather than "GMT" always.
(filltime): Make zname parameter "const".
Kevin Ryde [Wed, 3 Mar 2004 22:15:19 +0000 (22:15 +0000)]
*** empty log message ***
Kevin Ryde [Wed, 3 Mar 2004 21:46:43 +0000 (21:46 +0000)]
(SRFI-26): New section.
Mikael Djurfeldt [Wed, 3 Mar 2004 16:53:15 +0000 (16:53 +0000)]
(scm_c_scm2thread): New function.
Kevin Ryde [Sat, 28 Feb 2004 23:22:12 +0000 (23:22 +0000)]
*** empty log message ***
Kevin Ryde [Sat, 28 Feb 2004 23:07:56 +0000 (23:07 +0000)]
(execl, execlp, execle): Exercise errors where
program not found. [But disabled, due to problems with threading.]
Kevin Ryde [Sat, 28 Feb 2004 21:38:37 +0000 (21:38 +0000)]
*** empty log message ***
Kevin Ryde [Sat, 28 Feb 2004 21:37:41 +0000 (21:37 +0000)]
(execl, execlp, execle): Exercise errors where program not found.
Kevin Ryde [Sat, 28 Feb 2004 20:11:14 +0000 (20:11 +0000)]
*** empty log message ***
Kevin Ryde [Sat, 28 Feb 2004 20:08:08 +0000 (20:08 +0000)]
(AC_CHECK_FUNCS): Add DINFINITY and DQNAN.
Kevin Ryde [Sat, 28 Feb 2004 20:03:18 +0000 (20:03 +0000)]
Use AC_COPYRIGHT and AH_TOP to get copyright notice
into generated configure and config.h.in.
Kevin Ryde [Sat, 28 Feb 2004 20:01:13 +0000 (20:01 +0000)]
(guile_ieee_init): Use C99 INFINITY and NAN when
available. Test HAVE_DINFINITY and HAVE_DQNAN for those globals, in
particular don't assume "defined (__alpha__) && ! defined (linux)"
means OSF. Remove "SCO" code, which was not really SCO specific and
which John W. Eaton advises should be long past being needed.
Kevin Ryde [Sat, 28 Feb 2004 19:16:26 +0000 (19:16 +0000)]
(scm_execl, scm_execlp, scm_execle): Avoid memory leak under error throw.
Neil Jerram [Wed, 25 Feb 2004 19:11:33 +0000 (19:11 +0000)]
*** empty log message ***
Neil Jerram [Wed, 25 Feb 2004 19:10:07 +0000 (19:10 +0000)]
* gds-client.scm (handle-instruction-1): In `eval' protocol, catch
and report read errors nicely.
* gds.el (gds-display-buffers): Don't select the GDS window.
Kevin Ryde [Mon, 23 Feb 2004 22:59:20 +0000 (22:59 +0000)]
*** empty log message ***
Kevin Ryde [Mon, 23 Feb 2004 22:05:37 +0000 (22:05 +0000)]
(scm_cuserid): Use a private result buffer, for thread safe.
Neil Jerram [Sun, 22 Feb 2004 11:11:17 +0000 (11:11 +0000)]
* gds-tutorial.txt, gds-problems.txt: New files.
Kevin Ryde [Sat, 21 Feb 2004 22:04:42 +0000 (22:04 +0000)]
*** empty log message ***
Kevin Ryde [Sat, 21 Feb 2004 22:03:57 +0000 (22:03 +0000)]
(max, min): Exercise some complex num cases.
Kevin Ryde [Sat, 21 Feb 2004 21:59:34 +0000 (21:59 +0000)]
*** empty log message ***
Kevin Ryde [Sat, 21 Feb 2004 21:58:30 +0000 (21:58 +0000)]
(scm_max, scm_min): For one arg, dispatch to generic for
complex, same as for two args. (Handle only inum, big, real, frac).
Kevin Ryde [Sat, 21 Feb 2004 21:21:29 +0000 (21:21 +0000)]
*** empty log message ***
Neil Jerram [Sat, 21 Feb 2004 14:53:07 +0000 (14:53 +0000)]
* gds.el: Add requirements: cl, comint, info.
(gds-guile-program): New.
(gds-start): When starting or restarting, kill captive if it
exists. Use gds-guile-program instead of just "guile".
(gds-mode): Use widget minor mode.
(gds-client-ref): New optional client arg.
(gds-update-buffers): Don't call widget-setup.
(gds-heading-face): New.
(gds-insert-interaction): Various prettifications.
(gds-heading-insert): New.
(gds-choose-client): Check that numbers in client and gds-client
are still valid.
(gds-eval-expression, gds-apropos): Remove text properties from
expression to evaluate.
(gds-mode-map): Don't set widget-mode-map as parent.
(gds-start-captive): Use gds-guile-program instead of just
"guile".
* gds-client.scm (install-breakpoints): Bugfix: avoid null lists
in traversal.
(eval-thread, gds-eval): Where expression has multiple parts,
modify output to say which part is being evaluated.
Kevin Ryde [Sat, 21 Feb 2004 00:10:47 +0000 (00:10 +0000)]
(NUM2FLOAT): Expand isfinite to !xisinf, as per previous change to numbers.c.
Kevin Ryde [Fri, 20 Feb 2004 23:24:27 +0000 (23:24 +0000)]
*** empty log message ***
Kevin Ryde [Fri, 20 Feb 2004 23:20:15 +0000 (23:20 +0000)]
Add copyright year 2002, which appears in the ChangeLog.
Kevin Ryde [Fri, 20 Feb 2004 23:19:03 +0000 (23:19 +0000)]
Add a copyright year.
Kevin Ryde [Fri, 20 Feb 2004 23:18:10 +0000 (23:18 +0000)]
(scm_crypt): Use new HAVE_CRYPT.
(<crypt.h>): Remove HAVE_LIBCRYPT condition.
Kevin Ryde [Fri, 20 Feb 2004 23:16:57 +0000 (23:16 +0000)]
(crypt): Test with AC_SEARCH_LIBS, for the benefit of
HP-UX. Define HAVE_CRYPT rather than HAVE_LIBCRYPT. Reported by
Andreas Voegele.
Kevin Ryde [Fri, 20 Feb 2004 23:05:51 +0000 (23:05 +0000)]
*** empty log message ***
Kevin Ryde [Fri, 20 Feb 2004 23:04:04 +0000 (23:04 +0000)]
(Expression Syntax): Add findex entries for
quote and quasiquote no longer using @deffn.
Neil Jerram [Fri, 20 Feb 2004 22:04:24 +0000 (22:04 +0000)]
* list.c (scm_list_n): Add #if SCM_DEBUG_CELL_ACCESSES_P around
validation.
* read.c (scm_lreadparen): Removed.
(scm_lreadparen1): Renamed scm_i_lreadparen.
Han-Wen Nienhuys [Fri, 20 Feb 2004 21:15:56 +0000 (21:15 +0000)]
(scm_list_n): check validate non-immediate arguments;
this will catch forgotten a SCM_UNDEFINED.
Marius Vollmer [Fri, 20 Feb 2004 17:15:06 +0000 (17:15 +0000)]
*** empty log message ***
Marius Vollmer [Fri, 20 Feb 2004 17:14:41 +0000 (17:14 +0000)]
(Expression Syntax): Turned syntax description into a table, @deffn is
not really up to the task.
Marius Vollmer [Wed, 18 Feb 2004 22:32:08 +0000 (22:32 +0000)]
*** empty log message ***
Marius Vollmer [Wed, 18 Feb 2004 22:29:45 +0000 (22:29 +0000)]
(top-repl): Make the (guile-user) module use the (ice-9 r5rs) module.
Marius Vollmer [Wed, 18 Feb 2004 21:16:01 +0000 (21:16 +0000)]
*** empty log message ***
Marius Vollmer [Wed, 18 Feb 2004 21:14:35 +0000 (21:14 +0000)]
* gc.h (scm_gc_cells_collected): Removed duplicated declaration.
Thanks to Bill Schottstaedt!
* socket.h (scm_gethost): Removed prototype it is already in
"net_db.h". Thanks to Bill Schottstaedt!
Marius Vollmer [Wed, 18 Feb 2004 20:08:48 +0000 (20:08 +0000)]
*** empty log message ***
Marius Vollmer [Wed, 18 Feb 2004 20:07:19 +0000 (20:07 +0000)]
* guile.texi: Replaced list of authors with "The Guile
Developers".
* preface.texi (Contributors to the Manual): New section.
Marius Vollmer [Wed, 18 Feb 2004 20:01:57 +0000 (20:01 +0000)]
(Expression Syntax): Use an empty name for the function call syntax
definition. Otherwise, TeX complains about unbalanced parenthesis.
Marius Vollmer [Wed, 18 Feb 2004 19:29:40 +0000 (19:29 +0000)]
*** empty log message ***
Marius Vollmer [Wed, 18 Feb 2004 19:29:16 +0000 (19:29 +0000)]
Added copyright notice of Michael Stoll, who probably wrote the
original CLISP code.
Kevin Ryde [Wed, 18 Feb 2004 00:43:09 +0000 (00:43 +0000)]
*** empty log message ***
Kevin Ryde [Wed, 18 Feb 2004 00:42:32 +0000 (00:42 +0000)]
(SRFI-9): Revise for detail and clarity. Don't
use ":foo" for example type name, since that depends on the keyword
reading option.
Kevin Ryde [Wed, 18 Feb 2004 00:38:39 +0000 (00:38 +0000)]
(Expression Syntax): Fill section with
function calling etc, and quote and quasiquote.
Kevin Ryde [Wed, 18 Feb 2004 00:30:37 +0000 (00:30 +0000)]
*** empty log message ***
Kevin Ryde [Wed, 18 Feb 2004 00:29:16 +0000 (00:29 +0000)]
(=): Exercise frac+real and frac+complex.
Kevin Ryde [Wed, 18 Feb 2004 00:28:41 +0000 (00:28 +0000)]
Remove 1/3 == 1.0/3.0, not true.
Kevin Ryde [Wed, 18 Feb 2004 00:25:39 +0000 (00:25 +0000)]
(INTEGRAL2BIG): WORDS_BIGENDIAN not right for word
order parameter to mpz_import, in fact with just one word there's no
order to worry about at all.
Kevin Ryde [Wed, 18 Feb 2004 00:22:28 +0000 (00:22 +0000)]
(scm_shell_usage): Print to stdout for --help, per GNU standard.
Kevin Ryde [Wed, 18 Feb 2004 00:21:11 +0000 (00:21 +0000)]
(scm_num_eq_p): For real==frac, complex==frac, frac==real
and frac==complex, make an exact comparison rather than converting
with fraction2double.
Kevin Ryde [Wed, 18 Feb 2004 00:20:08 +0000 (00:20 +0000)]
(environ): Use _NSGetEnviron in Darwin
shared library, since environ is not directly available there.
Kevin Ryde [Wed, 18 Feb 2004 00:11:34 +0000 (00:11 +0000)]
*** empty log message ***
Kevin Ryde [Wed, 18 Feb 2004 00:06:10 +0000 (00:06 +0000)]
(AC_CHECK_HEADERS): Add crt_externs.h.
(AC_CHECK_FUNCS): Add _NSGetEnviron.
Kevin Ryde [Tue, 17 Feb 2004 23:37:06 +0000 (23:37 +0000)]
(scm_localtime, scm_gmtime, scm_mktime): Provide a default
errno EINVAL in case localtime and gmtime don't set it.
(scm_mktime, scm_strptime): Forcibly use errno EINVAL for our
SCM_SYSERROR, since mktime and strptime generally don't set errno.
Kevin Ryde [Tue, 17 Feb 2004 23:27:27 +0000 (23:27 +0000)]
*** empty log message ***
Marius Vollmer [Tue, 17 Feb 2004 21:39:21 +0000 (21:39 +0000)]
*** empty log message ***
Marius Vollmer [Tue, 17 Feb 2004 21:39:10 +0000 (21:39 +0000)]
(SCM_TESTS): Added test/fractions.test.
Marius Vollmer [Tue, 17 Feb 2004 21:37:47 +0000 (21:37 +0000)]
Added GPL terms.
Marius Vollmer [Tue, 17 Feb 2004 21:18:53 +0000 (21:18 +0000)]
Added LGPL terms.
Kevin Ryde [Mon, 16 Feb 2004 00:51:17 +0000 (00:51 +0000)]
*** empty log message ***
Kevin Ryde [Mon, 16 Feb 2004 00:50:23 +0000 (00:50 +0000)]
Add a copyright year.
Kevin Ryde [Mon, 16 Feb 2004 00:45:55 +0000 (00:45 +0000)]
(scm_done_malloc, scm_done_free): Allow negative sizes,
which were permitted in the past for these.
Kevin Ryde [Mon, 16 Feb 2004 00:03:44 +0000 (00:03 +0000)]
*** empty log message ***
Kevin Ryde [Sun, 15 Feb 2004 23:49:20 +0000 (23:49 +0000)]
(scm_shell_usage): Print bug-guile email address, as per
GNU standard. Reported by Han-Wen Nienhuys.
Kevin Ryde [Sun, 15 Feb 2004 23:44:15 +0000 (23:44 +0000)]
*** empty log message ***
Mikael Djurfeldt [Sun, 15 Feb 2004 22:07:33 +0000 (22:07 +0000)]
(Hash Table Reference): Wrote a new entry
for hash-for-each-handle.
Kevin Ryde [Sun, 15 Feb 2004 21:51:00 +0000 (21:51 +0000)]
*** empty log message ***