1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-03 13:20:26 +02:00
Commit graph

5705 commits

Author SHA1 Message Date
Martin Grabmüller
417b11b41f * guile-config.in (build-link): Fixed duplicate binding bug
reported by Ralf Mattes.
2001-03-05 14:27:40 +00:00
Martin Grabmüller
c2ab898653 * guile-config.in (build-link): Fixed duplicate binding bug
reported by Ralf Mattes.
2001-03-05 14:26:55 +00:00
Dirk Herrmann
8bc4547c4e * Preserve the original error's stack for re-throwing. 2001-03-05 11:05:02 +00:00
Martin Grabmüller
1dd05fd8aa * 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.
2001-03-05 07:25:56 +00:00
Gary Houston
2772dc1af3 *** empty log message *** 2001-03-04 23:35:21 +00:00
Gary Houston
439006bf6e * 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.
2001-03-04 23:34:16 +00:00
Dirk Herrmann
276dd6775c * Eliminate another couple of calls to scm_wta. 2001-03-04 22:48:13 +00:00
Mikael Djurfeldt
b432fb4b99 * 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.
2001-03-04 20:46:34 +00:00
Mikael Djurfeldt
5e03762c12 * goops.c, goops.h (scm_sys_pre_expand_closure_x): Removed.
(scm_sys_tag_body): Added.
2001-03-04 20:46:04 +00:00
Dirk Herrmann
db4b4ca64f * Eliminate some calls to scm_wta. 2001-03-04 17:09:34 +00:00
Mikael Djurfeldt
cc6c7feea4 * 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.
2001-03-04 05:28:21 +00:00
Mikael Djurfeldt
87e7741df7 * goops.c (scm_sys_pre_expand_closure_x): New procedure. 2001-03-04 05:27:41 +00:00
Marius Vollmer
d19b0aac73 *** empty log message *** 2001-03-03 23:56:28 +00:00
Marius Vollmer
c0ed1605f1 * tests/syntax.test ("let,duplicate bindings", "let*,duplicate
bindings", "letrec,duplicate bindings"): Expect to pass, bug has
been fixed.
2001-03-03 23:54:42 +00:00
Marius Vollmer
185ab0ef10 * eval.c (scm_s_duplicate_bindings): New error message.
(scm_m_letrec1, scm_m_letstar): Check for duplicate bindings.
2001-03-03 23:52:57 +00:00
Mikael Djurfeldt
0109c4bf49 * stack-catch.scm: New file.
* Makefile.am (ice9_sources): Added stack-catch.scm.
2001-03-03 19:43:35 +00:00
Marius Vollmer
97d41e3e07 *** empty log message *** 2001-03-03 17:30:52 +00:00
Marius Vollmer
1c54a87cb2 * tests/syntax.test ("duplicate formals"): New category, move
appropriate tests here.  Expect them to pass.
("empty parentheses"): Expect to pass, bug has been fixed.
2001-03-03 17:29:09 +00:00
Marius Vollmer
14fe4fe9ce *** empty log message *** 2001-03-03 17:25:22 +00:00
Marius Vollmer
d9d39d76e7 Cosmetic cleanups. 2001-03-03 17:24:51 +00:00
Marius Vollmer
2fd945df34 *** empty log message *** 2001-03-03 15:17:05 +00:00
Marius Vollmer
c8e39a6752 * tests/alist.test: Use "'()" instead of "()" in all places
where the empty list is meant.
2001-03-03 15:14:18 +00:00
Marius Vollmer
5280aacabc * eval.h (SCM_EVALIM2): New macro. Use it when a
immediate, literal constant should be evaluated.
* eval.c (scm_s_duplicate_formals): New error message string.
(scm_c_improper_memq): New function.
(scm_m_lambda): Check for duplicate arguments.
(scm_ceval, scm_deval): When executing a body: only cons a new
toplevel environment frame when it is different from the
existing one; use EVALCAR instead of SIDEVAL so that we can properly
check for empty combinations; use SCM_EVALIM2 for the same reason
in the non-toplevel loop.
(nontoplevel_cdrxnoap, nontoplevel_cdrxbegin, nontoplevel_begin):
New labels with the meaning of their non-"nontoplevel" partners,
but they are used when it is known that the body is not evaluated at
top-level.
(scm_apply, scm_dapply): use SCM_EVALIM2 to get proper error
reporting for empty combinations.
2001-03-03 15:10:37 +00:00
Marius Vollmer
bf4aaed27c * boot-9.scm, rdelim.scm: Use "'()" instead of "()" in all places
where the empty list is meant.
2001-03-03 14:58:22 +00:00
Keisuke Nishida
9e6fc585b2 Remove dump facilities. 2001-03-02 23:41:18 +00:00
Martin Grabmüller
eae54bf072 *** empty log message *** 2001-03-02 09:09:06 +00:00
Martin Grabmüller
942e5b9162 * vectors.c (s_scm_vector_p, list->vector, scm_vector)
(scm_vector_ref, scm_vector_set_x, scm_vector_to_list)
	(scm_vector_fill_x), strorder.c (scm_string_equal_p)
	(scm_string_ci_equal_p, scm_string_less_p, scm_string_leq_p)
	(scm_string_gr_p, scm_string_geq_p, scm_string_ci_less_p)
	(scm_string_ci_geq_p), symbols.c (scm_symbol_p)
	(scm_symbol_to_string, scm_string_to_symbol): Changed use of @t{}
	to @code{} as the texinfo manual recommends, converted the
	examples to use a @lisp{}-environment.

	* strports.c (scm_eval_string): Cleaned up the docstring.

	* struct.c (scm_struct_p, scm_struct_vtable_p): Added texinfo
	markup.

	* numbers.c (scm_exact_p, scm_odd_p, scm_even_p)
	(scm_number_to_string, scm_string_to_number, scm_number_p)
	(scm_real_p, scm_integer_p, scm_inexact_p, scm_make_rectangular)
	(scm_make_polar, scm_inexact_to_exact): Added texinfo markup.
	(scm_ash): Added texinfo markup and removed obsolete @refill.
	(scm_gr_p): Corrected comment.
	(scm_gr_p, scm_leq_p, scm_geq_p): Added texinfo markup to (future
	docstring) comments.
	(scm_positive_p, scm_less_p, scm_num_eq_p, scm_real_p)
	(scm_number_p, scm_negative_p, scm_max, scm_min, scm_sum)
	(scm_difference, scm_product, scm_divide, scm_asinh, scm_acosh)
	(scm_atanh, scm_truncate, scm_round, scm_exact_to_inexact)
	(floor, ceiling, $sqrt, $abs, $exp, $log, $sin, $cos, $tan, $asin)
	($acos, $atan, $sinh, $cosh, $tanh, scm_real_part, scm_imag_part)
	(scm_magnitude, scm_angle, scm_abs, scm_quotient, scm_remainder)
	(scm_modulo, scm_gcd, scm_lcm): Added (future docstring) comments.
2001-03-02 09:07:22 +00:00
Dirk Herrmann
08c608e10a * extracted the tests from exceptions.test into eval.test and syntax.test.
* added a few test cases.
2001-03-02 01:38:01 +00:00
Dirk Herrmann
f29b345439 * Moved the number related tests from exceptions.test to numbers.test. 2001-03-01 22:00:02 +00:00
Dirk Herrmann
049fa4495b * Extracted tests from exceptions.test into strings.test and symbols.test.
* Added some tests to strings.test.
2001-03-01 17:57:50 +00:00
Dirk Herrmann
23deee8161 * Minor fixes to error checking macros. 2001-02-28 16:58:12 +00:00
Dirk Herrmann
1b5b19c9a9 * Turn some test's result into XFAIL instead of FAIL. 2001-02-28 13:40:36 +00:00
Dirk Herrmann
ef9709dacc * Moved reader related tests from exceptions.test to reader.test. 2001-02-28 13:17:47 +00:00
Dirk Herrmann
88f9ab70d0 * Removed old system to check for exceptions. 2001-02-28 11:48:18 +00:00
Dirk Herrmann
0bfa4a17a6 * Forgot to commit the changelog for the last change... 2001-02-28 11:46:24 +00:00
Dirk Herrmann
6b4113afc5 * Provide and use new convenience macros to test for exceptions. 2001-02-28 11:25:40 +00:00
Dirk Herrmann
9d372117f6 * Remove redundant test name prefix. 2001-02-28 09:06:10 +00:00
Dirk Herrmann
5c96bc39a4 * Make sure that tests return a boolean value. 2001-02-28 08:41:06 +00:00
Dirk Herrmann
ac6849ffee * Cleaned up export list. 2001-02-27 11:10:07 +00:00
Mikael Djurfeldt
704f4e86cf * boot-9.scm (save-stack): Use `primitive-eval' for stack
cutting.  Makes backtraces work again!  Also added a reference to
save-stack from the place in the repl where the primitive-eval
frame is invoked.
2001-02-27 03:19:36 +00:00
Mikael Djurfeldt
6fe692e911 ports.c, ports.h (scm_c_read, scm_c_write): New functions.
ports.h (SCM_READ_BUFFER_EMPTY_P): New macro.
2001-02-26 03:06:57 +00:00
Keisuke Nishida
aad61af582 Bug fixes. 2001-02-25 19:44:44 +00:00
Keisuke Nishida
4ce31633b4 Add comment for (ice-9 match). 2001-02-25 19:33:02 +00:00
Gary Houston
0df43a35bf *** empty log message *** 2001-02-25 19:22:28 +00:00
Keisuke Nishida
51e7dab66f * Makefile.am (ice9_sources): Added match.scm. 2001-02-25 18:31:57 +00:00
Keisuke Nishida
d1334b5167 Include match.scm. 2001-02-25 18:30:26 +00:00
Keisuke Nishida
e5005373cf News for (ice-9 match). 2001-02-25 18:24:41 +00:00
Keisuke Nishida
c8762438f5 * match.scm: New file. 2001-02-25 18:18:56 +00:00
Neil Jerram
27c3700636 * numbers.c (scm_two_doubles, scm_sys_expt, scm_sys_atan2,
scm_make_polar): Rename arguments `z1' and `z2' to `x' and `y',
	since use of `z' suggests that the arguments may be complex.

	* goops.c (scm_make), numbers.c (scm_sys_expt): Fix docstring
	typos.
2001-02-24 23:46:04 +00:00
Neil Jerram
2069af3835 * Minor docstring updates. 2001-02-23 20:24:15 +00:00