Keisuke Nishida [Sat, 17 Mar 2001 10:04:23 +0000 (10:04 +0000)]
** New module (ice-9 time)
Keisuke Nishida [Sat, 17 Mar 2001 10:01:01 +0000 (10:01 +0000)]
* time.scm: New file.
Dirk Herrmann [Sat, 17 Mar 2001 02:53:09 +0000 (02:53 +0000)]
* Removed old (unused and uninstalled) file oldprint.scm.
Martin Grabmüller [Fri, 16 Mar 2001 17:00:21 +0000 (17:00 +0000)]
* scheme-data.texi (Arithmetic): Documented the arithmetic
procedures.
(Integer Operations): Added documentation.
(Comparison): Added documentation.
(Complex): Added documentation.
(Symbols and Variables): Comment out `builtin-bindings', which is
removed according to NEWS.
(Pairs): Added documentation.
* scheme-io.texi: Added R5RS index entries for all R5RS
procedures.
(File Ports): New docs for `call-with-input-file',
`call-with-output-file', `with-input-from-file',
`with-output-to-file', `with-error-to-file'.
* scheme-control.texi, scheme-utility.texi,
* scheme-procedures.texi: Added R5RS index entries for all R5RS
procedures.
* scheme-evaluation.texi (Fly Evaluation): Added documentation for
`apply'. Added R5RS index entries for all R5RS procedures.
* scheme-data.texi: Added R5RS index entries for all R5RS
procedures. Removed R5RS index entries for `ass{q,v,occ}-set!'.
Removed explicit entries into the function entries. They are
automagic.
(Vectors): Added documentation for `make-vector', `vector-ref' and
`vector-set!'.
Martin Grabmüller [Fri, 16 Mar 2001 10:00:17 +0000 (10:00 +0000)]
* list.c (scm_list, scm_cons_star, scm_null_p, scm_list_p),
(scm_length, scm_append, scm_reverse, scm_list_ref),
(scm_memq, scm_memv, scm_member, scm_delv_x, scm_delete_x),
(scm_delq, scm_delv, scm_delete, scm_delq1_x, scm_delv1_x),
(scm_delete1_x), gc.c (scm_map_free_list),
(scm_free_list_length), hash.c (scm_hashq, scm_hashv),
(scm_hash), hashtab.c (scm_hashq_ref, scm_hashq_set_x),
(scm_hashq_remove_x, scm_hashv_ref, scm_hashv_set_x),
(scm_hashv_remove_x, scm_hash_ref, scm_hash_set_x),
(scm_hash_remove_x), ports.c (scm_pt_size, scm_pt_member), print.c
(scm_current_pstate), scmsigs.c (scm_usleep), goops.c
(scm_get_keyword, scm_sys_compute_slots): Added texinfo markup.
* weaks.c (scm_weak_vector_p, scm_weak_key_hash_table_p),
(scm_weak_value_hash_table_p, scm_doubly_weak_hash_table_p),
rdelim.c (scm_read_delimited_x), strop.c (scm_string_index),
symbols.c (scm_symbol_interned_p), numbers.c
(scm_string_to_number), ports.c (scm_port_p): Corrected texinfo
markup.
Martin Grabmüller [Fri, 16 Mar 2001 08:37:37 +0000 (08:37 +0000)]
* modules: New directory.
* modules/module-layout.text: New file.
Keisuke Nishida [Fri, 16 Mar 2001 05:12:02 +0000 (05:12 +0000)]
Deprecated macro SCM_CONST_LONG.
Keisuke Nishida [Fri, 16 Mar 2001 05:11:34 +0000 (05:11 +0000)]
* snarf.h (SCM_CONST_LONG): Deprecated.
* tag.c (CONST_INUM): New macro. Use it to define scm_utag_*.
Marius Vollmer [Thu, 15 Mar 2001 20:04:56 +0000 (20:04 +0000)]
*** empty log message ***
Marius Vollmer [Thu, 15 Mar 2001 20:04:41 +0000 (20:04 +0000)]
* numbers.c (scm_num2ulong): Check that a bignum is positive
before looking at the magnitude. Correctly check for overflow
during conversion.
(scm_num2long_long): Likewise.
(scm_num2ulong_long): New.
(ULONG_LONG_MAX): Define if not already defined.
* numbers.h: (scm_num2ulong_long): New prototype.
Marius Vollmer [Thu, 15 Mar 2001 19:21:51 +0000 (19:21 +0000)]
* numbers.c (scm_num2ulong): Check that a bignum is positive
before looking at the magnitude. Correctly check for overflow
during conversion.
Martin Grabmüller [Thu, 15 Mar 2001 11:39:01 +0000 (11:39 +0000)]
Document new procedures
open-input-string
open-output-string
get-output-string
Martin Grabmüller [Thu, 15 Mar 2001 11:24:45 +0000 (11:24 +0000)]
* validate.h (SCM_VALIDATE_OPOUTSTRPORT): New macro.
* strports.h (SCM_STRPORTP, SCM_OPSTRPORTP, SCM_OPINSTRPORTP),
(SCM_OPOUTSTRPORTP): New predicate macros.
(scm_open_input_string, scm_open_output_string),
(scm_get_output_string): New prototypes.
* strports.c (scm_open_input_string, scm_open_output_string),
(scm_get_output_string): New procedures (SRFI-6 compliant).
Made scm_tc16_strport non-static.
Dirk Herrmann [Thu, 15 Mar 2001 09:50:20 +0000 (09:50 +0000)]
* Removed unused object parameter from SCM_ASSYNT.
Dirk Herrmann [Thu, 15 Mar 2001 00:42:10 +0000 (00:42 +0000)]
* Use const specifier in function signature of gh_ints2scm.
Martin Grabmüller [Wed, 14 Mar 2001 10:02:12 +0000 (10:02 +0000)]
* gh_data.c (gh_scm2chars, gh_scm2shorts, gh_scm2longs),
(gh_scm2floats, gh_scm2doubles): Check for malloc() returning NULL
in various places.
(gh_scm2newstr, gh_symbol2newstr): Change call to
scm_must_malloc() to malloc(), because user-free()able memory is
allocated.
* gc.c: Added declaration of `scm_debug_check_freelist'.
Martin Grabmüller [Tue, 13 Mar 2001 08:02:02 +0000 (08:02 +0000)]
* ports.c (scm_port_mode): Changed `mode' array size to 4,
avoiding buffer overflow.
Keisuke Nishida [Tue, 13 Mar 2001 05:59:42 +0000 (05:59 +0000)]
(scm_object_to_string): Takes an optional argument.
Keisuke Nishida [Tue, 13 Mar 2001 05:49:19 +0000 (05:49 +0000)]
* guile-c.el (guile-c-window-configuration): New variable.
(guile-c-edit-docstring, guile-c-edit-finish):
Save/restore window-configuration.
Keisuke Nishida [Tue, 13 Mar 2001 02:14:12 +0000 (02:14 +0000)]
Use FUNC_NAME.
Keisuke Nishida [Tue, 13 Mar 2001 02:11:20 +0000 (02:11 +0000)]
Add check-guile.
Keisuke Nishida [Tue, 13 Mar 2001 02:09:57 +0000 (02:09 +0000)]
* strports.c (scm_object_to_string): New procedure.
(scm_strprint_obj): Deprecated.
Keisuke Nishida [Tue, 13 Mar 2001 01:56:47 +0000 (01:56 +0000)]
* guile-c.el (guile-c-deprecate-region): New command.
Mikael Djurfeldt [Mon, 12 Mar 2001 15:03:17 +0000 (15:03 +0000)]
* arrays.scm (make-array): Added quote in front of ().
Dirk Herrmann [Mon, 12 Mar 2001 14:34:44 +0000 (14:34 +0000)]
* Cleaned up uses and definition of SCM_ASSYNT.
Keisuke Nishida [Mon, 12 Mar 2001 12:23:55 +0000 (12:23 +0000)]
* common-list.scm (count-if): New procedure.
Martin Grabmüller [Mon, 12 Mar 2001 07:08:46 +0000 (07:08 +0000)]
* load.c (scm_primitive_load, scm_primitive_load_path),
(scm_sys_search_load_path): Corrected docstrings (file ->
filename).
* eval.c (scm_force): Added texinfo markup to docstring.
(scm_promise_p): Renamed parameter to `obj' to match docstring.
* debug-malloc.c: Reinserted #include <stdio.h>.
Keisuke Nishida [Mon, 12 Mar 2001 02:46:13 +0000 (02:46 +0000)]
*** empty log message ***
Marius Vollmer [Mon, 12 Mar 2001 00:52:43 +0000 (00:52 +0000)]
*** empty log message ***
Marius Vollmer [Mon, 12 Mar 2001 00:50:08 +0000 (00:50 +0000)]
* intro.texi: Changed to reflect current practice better. Added
stuff about writing Guile Extensions (aka dynamically loaded
shared libraries).
Keisuke Nishida [Sun, 11 Mar 2001 23:57:16 +0000 (23:57 +0000)]
Split up.
Keisuke Nishida [Sun, 11 Mar 2001 23:47:16 +0000 (23:47 +0000)]
* list.c (s_scm_reverse_x): Use SCM_VALIDATE_LIST.
Dirk Herrmann [Sun, 11 Mar 2001 23:31:58 +0000 (23:31 +0000)]
* Added a new test case plus minor improvements.
Keisuke Nishida [Sun, 11 Mar 2001 19:59:42 +0000 (19:59 +0000)]
* guile-c.el: New file.
Keisuke Nishida [Sun, 11 Mar 2001 19:59:10 +0000 (19:59 +0000)]
New file.
Keisuke Nishida [Sun, 11 Mar 2001 09:44:08 +0000 (09:44 +0000)]
Use SCM_LISTn instead of scm_listify.
Mikael Djurfeldt [Sat, 10 Mar 2001 16:56:09 +0000 (16:56 +0000)]
* _scm.h: Removed #include <errno.h>.
* error.c, net_db.c, putenv.c, stime.c: Removed declaration of
errno variable (can be a macro on some systems, for example when
using linux libc with threads).
* error.c, filesys.c, gc.c, ioext.c, iselect.c, net_db.c, ports.c,
posix.c, print.c, putenv.c, scmsigs.c, script.c, simpos.c, smob.c,
socket.c, srcprop.c, stime.c, strop.c, unif.c, vports.c: Added
#include <errno.h> in these 20 out of 100 files.
Neil Jerram [Sat, 10 Mar 2001 14:07:19 +0000 (14:07 +0000)]
Make (ice-9 buffered-input) more general
Gary Houston [Sat, 10 Mar 2001 10:30:16 +0000 (10:30 +0000)]
* socket.c: add a definition of SUN_LEN (from glibc) for when it's
not already defined.
Mikael Djurfeldt [Sat, 10 Mar 2001 03:13:12 +0000 (03:13 +0000)]
*** empty log message ***
Mikael Djurfeldt [Sat, 10 Mar 2001 03:09:50 +0000 (03:09 +0000)]
* goops.scm (define-method): Only accept new syntax.
* goops/old-define-method.scm: New file.
* goops.scm, goops/save.scm, goops/composite-slot.scm,
goops/active-slot.scm: Use new method syntax.
Mikael Djurfeldt [Sat, 10 Mar 2001 03:09:07 +0000 (03:09 +0000)]
* coop.c: Inserted #include <stdio.h>.
* iselect.c: Reinserted #include <stdio.h>.
Mikael Djurfeldt [Sat, 10 Mar 2001 03:08:28 +0000 (03:08 +0000)]
* goops.texi (VERSION): Bumped to version 0.3.
* goops-tutorial.texi, goops.texi: Updated to reflext new
define-method syntax.
Keisuke Nishida [Sat, 10 Mar 2001 02:16:12 +0000 (02:16 +0000)]
* match.scm: Don't export defstruct. Use (unquote defstruct) instead.
Marius Vollmer [Sat, 10 Mar 2001 01:07:44 +0000 (01:07 +0000)]
*** empty log message ***
Marius Vollmer [Sat, 10 Mar 2001 01:07:06 +0000 (01:07 +0000)]
* posix.c: Replaced `#define' of __USE_XOPEN right before
including unistd.h with a define of _GNU_SOURCE at the very top of
the file.
Keisuke Nishida [Fri, 9 Mar 2001 23:33:41 +0000 (23:33 +0000)]
Remove #include <stdio.h>. Add #include <string.h>.
Keisuke Nishida [Fri, 9 Mar 2001 23:31:55 +0000 (23:31 +0000)]
* readline.c: Add #include <stdio.h>
Mikael Djurfeldt [Fri, 9 Mar 2001 21:47:52 +0000 (21:47 +0000)]
* Makefile.am (psyntax.pp): Added rule for producing psyntax.pp.
Martin Grabmüller [Fri, 9 Mar 2001 12:09:17 +0000 (12:09 +0000)]
(scm_gethostname): Set initial name length to 256 for
Solaris.
Martin Grabmüller [Fri, 9 Mar 2001 12:08:43 +0000 (12:08 +0000)]
* posix.c (scm_gethostname): Set initial name length to 256 for
Solaris.
Martin Grabmüller [Fri, 9 Mar 2001 10:03:47 +0000 (10:03 +0000)]
Added some new posix functions:
(scm_crypt, scm_chroot, scm_getlogin, scm_cuserid),
(scm_getpriority, scm_setpriority, scm_getpass, scm_flock),
(scm_sethostname, scm_gethostname): New procedures.
Martin Grabmüller [Fri, 9 Mar 2001 09:44:26 +0000 (09:44 +0000)]
* tests/syntax.test ("let*"): Changed the `duplicate bindings'
test, dups are allowed in `let*' and are now expected to pass.
Neil Jerram [Fri, 9 Mar 2001 09:35:13 +0000 (09:35 +0000)]
Move doc files into guile-core distribution (7)
Neil Jerram [Fri, 9 Mar 2001 09:20:46 +0000 (09:20 +0000)]
Move doc files into guile-core distribution (6)
Neil Jerram [Fri, 9 Mar 2001 08:53:15 +0000 (08:53 +0000)]
Move doc files into guile-core distribution (4)
Neil Jerram [Fri, 9 Mar 2001 08:42:37 +0000 (08:42 +0000)]
Move doc files into guile-core distribution (3)
Neil Jerram [Fri, 9 Mar 2001 08:28:57 +0000 (08:28 +0000)]
Move doc files into guile-core distribution (2)
Neil Jerram [Fri, 9 Mar 2001 08:22:00 +0000 (08:22 +0000)]
Move doc files into guile-core distribution (1)
Neil Jerram [Fri, 9 Mar 2001 08:16:16 +0000 (08:16 +0000)]
Removed texinfo.tex
Neil Jerram [Fri, 9 Mar 2001 08:09:48 +0000 (08:09 +0000)]
* Removed old copy of data-rep.texi.
Keisuke Nishida [Fri, 9 Mar 2001 05:16:05 +0000 (05:16 +0000)]
* match.scm: export defstruct.
Neil Jerram [Fri, 9 Mar 2001 00:21:27 +0000 (00:21 +0000)]
* Docstring fixes.
Mikael Djurfeldt [Thu, 8 Mar 2001 19:36:35 +0000 (19:36 +0000)]
*** empty log message ***
Mikael Djurfeldt [Thu, 8 Mar 2001 19:34:41 +0000 (19:34 +0000)]
* ramap.c (racp): Removed optimization which caused array copying
to fail if the two arrays shared storage. Re-inserted the IVDEP
macros removed in the change of 2000-03-09. (Don't really have a
complete grasp of what they are for, but they seem to be necessary
on Crays. This needs testing!) Thanks to Miroslav Silovic.
Mikael Djurfeldt [Thu, 8 Mar 2001 18:14:33 +0000 (18:14 +0000)]
* hash.c (scm_string_hash): Don't downcase characters.
Mikael Djurfeldt [Thu, 8 Mar 2001 18:06:46 +0000 (18:06 +0000)]
*** empty log message ***
Mikael Djurfeldt [Thu, 8 Mar 2001 18:05:39 +0000 (18:05 +0000)]
* psyntax.ss: Added FSF copyright notice. Added a notice of
changes in order to comply with paragraph 2a of the GPL.
Mikael Djurfeldt [Thu, 8 Mar 2001 02:49:34 +0000 (02:49 +0000)]
*** empty log message ***
Mikael Djurfeldt [Thu, 8 Mar 2001 02:46:38 +0000 (02:46 +0000)]
* symbols.c, symbols.h (scm_sys_symbols): New function GUILE_DEBUG
function.
Mikael Djurfeldt [Thu, 8 Mar 2001 02:45:39 +0000 (02:45 +0000)]
* coop-threads.c: Fixed change of 2001-03-06.
Mikael Djurfeldt [Thu, 8 Mar 2001 02:43:20 +0000 (02:43 +0000)]
* guile-config.in (build-link): Really reverted the change of
2001-03-05.
Mikael Djurfeldt [Thu, 8 Mar 2001 02:06:02 +0000 (02:06 +0000)]
Removed some junk
Neil Jerram [Wed, 7 Mar 2001 23:03:37 +0000 (23:03 +0000)]
* Don't set continuation flag for leading whitespace.
Keisuke Nishida [Wed, 7 Mar 2001 06:06:16 +0000 (06:06 +0000)]
fix problems with gcc-2.96.
Dirk Herrmann [Tue, 6 Mar 2001 13:27:33 +0000 (13:27 +0000)]
* The last patch has introduced a bad-bindings bug. Since it was
unnecessary anyway, I simply reverted it.
Dirk Herrmann [Tue, 6 Mar 2001 01:22:37 +0000 (01:22 +0000)]
* Remove uses of SCM_ASSERT that may result in error messages different
from wrong-type-arg errors.
Dirk Herrmann [Tue, 6 Mar 2001 01:00:18 +0000 (01:00 +0000)]
* Don't include libguile/dump.h any more.
Neil Jerram [Mon, 5 Mar 2001 23:52:09 +0000 (23:52 +0000)]
* Use "'()" instead of "()" in optargs.scm.
Neil Jerram [Mon, 5 Mar 2001 23:12:57 +0000 (23:12 +0000)]
* New module (ice-9 buffered-input); use it in (ice-9 readline).
Mikael Djurfeldt [Mon, 5 Mar 2001 18:54:55 +0000 (18:54 +0000)]
* eval.c (scm_m_letstar): Removed check for duplicate bindings.
Duplicate bindings are OK in a let* since a let* is semantically
equivalent to a nested set of let:s.
Martin Grabmüller [Mon, 5 Mar 2001 14:27:40 +0000 (14:27 +0000)]
* guile-config.in (build-link): Fixed duplicate binding bug
reported by Ralf Mattes.
Martin Grabmüller [Mon, 5 Mar 2001 14:26:55 +0000 (14:26 +0000)]
* guile-config.in (build-link): Fixed duplicate binding bug
reported by Ralf Mattes.
Dirk Herrmann [Mon, 5 Mar 2001 11:05:02 +0000 (11:05 +0000)]
* Preserve the original error's stack for re-throwing.
Martin Grabmüller [Mon, 5 Mar 2001 07:25:56 +0000 (07:25 +0000)]
* print.c (scm_print_options): Fixed texinfo in docstring.
* net_db.c (scm_getserv, scm_getproto, scm_getnet): Return #f if
the underlying functions getservent, getprotoent or getnetent
return NULL instead of signalling an error.
Gary Houston [Sun, 4 Mar 2001 23:35:21 +0000 (23:35 +0000)]
*** empty log message ***
Gary Houston [Sun, 4 Mar 2001 23:34:16 +0000 (23:34 +0000)]
* socket.c (scm_fill_sockaddr): don't allow buffer overflows when
taking an unexpectedly large filename for an AF_UNIX socket from
bind/connect/sendto (thanks to Martin Grabmueller).
* socket.c (scm_sock_fd_to_port, SCM_SOCK_FD_TO_PORT): removed the
former and adjusted the latter.
(scm_socket, scm_socketpair): cosmetic changes.
(scm_getsockopt, scm_setsockopt): declare optlen as int, not
size_t as socklen_t substitute. don't restrict args/return values
to INUM: allow full range of int or size_t.
(scm_fill_sockaddr): check arguments before allocating memory, to
avoid leakage. use malloc, not scm_must_malloc.
(scm_connect, scm_bind, scm_sendto): use int, not size_t as socklen_t
substitute. free the sockaddr structure before throwing an error.
(scm_init_add_buffer): procedure removed, together with its static
buffer scm_addr_buffer, which wouldn't be thread safe. instead,
define a macro MAX_ADDR_SIZE and declare the buffer where needed.
(scm_accept, scm_getpeername, scm_getsockname, scm_recvfrom,
scm_sendto): use a local buffer instead of scm_addr_buffer.
adjust for new SCM_SOCK_FD_TO_PORT. use int for address size,
not size_t.
(scm_recvfrom): set addr->sa_family to AF_UNSPEC before the recvfrom
call to detect whether recvfrom could be bothered to set the address.
(scm_init_socket): don't call scm_init_addr_buffer.
Dirk Herrmann [Sun, 4 Mar 2001 22:48:13 +0000 (22:48 +0000)]
* Eliminate another couple of calls to scm_wta.
Mikael Djurfeldt [Sun, 4 Mar 2001 20:46:34 +0000 (20:46 +0000)]
* goops/compile.scm (compile-method): Tag method closure for body
expansion.
* goops.scm (change-object-class): Quote empty list constants.
(method): Reverted previous change (enclosing body);
Quote empty list.
(initialize <method>): Supply `dummy-procedure' as default instead
of creating a new closure.
* goops/internal.scm: Re-export (oop goops) without copying
bindings.
Mikael Djurfeldt [Sun, 4 Mar 2001 20:46:04 +0000 (20:46 +0000)]
* goops.c, goops.h (scm_sys_pre_expand_closure_x): Removed.
(scm_sys_tag_body): Added.
Dirk Herrmann [Sun, 4 Mar 2001 17:09:34 +0000 (17:09 +0000)]
* Eliminate some calls to scm_wta.
Mikael Djurfeldt [Sun, 4 Mar 2001 05:28:21 +0000 (05:28 +0000)]
* goops.scm (change-object-class): Quote empty list constants.
(method): Reverted previous change (enclosing body);
Quote empty list.
(initialize <method>): Pre-expand the method closure.
Mikael Djurfeldt [Sun, 4 Mar 2001 05:27:41 +0000 (05:27 +0000)]
* goops.c (scm_sys_pre_expand_closure_x): New procedure.
Marius Vollmer [Sat, 3 Mar 2001 23:56:28 +0000 (23:56 +0000)]
*** empty log message ***
Marius Vollmer [Sat, 3 Mar 2001 23:54:42 +0000 (23:54 +0000)]
* tests/syntax.test ("let,duplicate bindings", "let*,duplicate
bindings", "letrec,duplicate bindings"): Expect to pass, bug has
been fixed.
Marius Vollmer [Sat, 3 Mar 2001 23:52:57 +0000 (23:52 +0000)]
* eval.c (scm_s_duplicate_bindings): New error message.
(scm_m_letrec1, scm_m_letstar): Check for duplicate bindings.
Mikael Djurfeldt [Sat, 3 Mar 2001 19:43:35 +0000 (19:43 +0000)]
* stack-catch.scm: New file.
* Makefile.am (ice9_sources): Added stack-catch.scm.
Marius Vollmer [Sat, 3 Mar 2001 17:30:52 +0000 (17:30 +0000)]
*** empty log message ***
Marius Vollmer [Sat, 3 Mar 2001 17:29:09 +0000 (17:29 +0000)]
* tests/syntax.test ("duplicate formals"): New category, move
appropriate tests here. Expect them to pass.
("empty parentheses"): Expect to pass, bug has been fixed.
Marius Vollmer [Sat, 3 Mar 2001 17:25:22 +0000 (17:25 +0000)]
*** empty log message ***