1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-17 21:42:25 +02:00
Commit graph

10148 commits

Author SHA1 Message Date
Kevin Ryde
1ec2078756 (AC_CHECK_FUNCS): Add dirfd. 2006-02-25 21:20:17 +00:00
Kevin Ryde
360a680ee6 *** empty log message *** 2006-02-25 20:59:02 +00:00
Kevin Ryde
f2b7310d44 (opendir etc): Exercise a little. 2006-02-25 20:52:35 +00:00
Kevin Ryde
b39546b95f *** empty log message *** 2006-02-25 20:51:32 +00:00
Kevin Ryde
c39ca281a3 (MY_VALIDATE_SUBSTRING_SPEC_UCOPY): New macro.
(scm_string_compare, scm_string_compare_ci, scm_string_lt,
scm_string_gt, scm_string_le, scm_string_ge, scm_string_ci_lt,
scm_string_ci_gt, scm_string_ci_le, scm_string_ci_ge): In comparisons
use "unsigned char", not signed char.  This ensures comparisons are
the same as `char<?' etc, and is also the same as guile 1.6 did.
Reported by Sven Hartrumpf.
2006-02-25 20:50:02 +00:00
Kevin Ryde
b797324e95 *** empty log message *** 2006-02-25 20:45:53 +00:00
Kevin Ryde
12a14d28c4 (array-set!): Exercise bitvector case, which had been seg faulting. 2006-02-25 20:44:31 +00:00
Kevin Ryde
6ac0ec9692 * tests/strings.test (string<?, string-ci<?, string<=?, string-ci<=?,
string>?, string-ci>?, string>=?, string-ci>=?): Check ordering is the
	same as char<? etc.  Use a define-module to keep private test bits
	private.
	* tests/srfi-13.test (string-compare, string-compare-ci): Ditto.
2006-02-25 20:42:53 +00:00
Kevin Ryde
4c2dc0f0b5 (string<?, string-ci<?, string<=?, string-ci<=?,
string>?, string-ci>?, string>=?, string-ci>=?): Check ordering is the
same as char<? etc.  Use a define-module to keep private test bits
private.
2006-02-25 20:42:13 +00:00
Kevin Ryde
170a4f8c2a *** empty log message *** 2006-02-20 22:39:35 +00:00
Kevin Ryde
c02258027b (format:out-dollar): Use format:out-inf-nan per ~f etc. 2006-02-20 22:16:23 +00:00
Marius Vollmer
f4ee7cbbef *** empty log message *** 2006-02-20 22:04:50 +00:00
Marius Vollmer
6d0972a26a Release 1.8.0. 2006-02-20 21:49:17 +00:00
Marius Vollmer
cbd17f3783 *** empty log message *** 2006-02-20 21:17:59 +00:00
Marius Vollmer
5f25a9a1a7 Test for SCM_HAVE_T_UINT64 instead of
SCM_HAVE_T_INT64.
(scm_i_uniform32, scm_i_uniform32, scm_i_init_rstate): Use
scm_t_uint64 and scm_t_uint32 instead of scm_t_int64 and
scm_t_int32.
2006-02-20 21:17:37 +00:00
Mikael Djurfeldt
4a9f83ff06 Test for SCM_HAVE_T_UINT64 instead of
SCM_HAVE_T_INT64.
(scm_i_uniform32, scm_i_uniform32, scm_i_init_rstate): Use
scm_t_uint64 and scm_t_uint32 instead of scm_t_int64 and
scm_t_int32.
2006-02-19 16:34:51 +00:00
Kevin Ryde
908c45434e *** empty log message *** 2006-02-15 00:40:13 +00:00
Kevin Ryde
0e84f2fea2 2006-02-14 Ludovic Courtès <ludovic.courtes@laas.fr>
* gc-malloc.c (decrease_mtrigger): Make sure SIZE is lower than or
	equal to SCM_MALLOCATED.
2006-02-15 00:38:44 +00:00
Kevin Ryde
a0e39346e2 2006-02-14 Ludovic Courtès <ludovic.courtes@laas.fr>
* strings.c (scm_i_take_stringbufn): Register LEN+1 bytes instead of
	LEN.  Without this, too much collectable memory gets unregistered,
	which results in an underflow of SCM_MALLOCATED in
	`decrease_mtrigger()'.
2006-02-15 00:36:58 +00:00
Han-Wen Nienhuys
4c7016dc06 Ludovic's patch for scm_t_sweep_statistics. 2006-02-14 11:38:30 +00:00
Marius Vollmer
4deda5735b 1.7.91... 2006-02-13 21:43:49 +00:00
Marius Vollmer
db02fb2bcb (Object Properties): Removed confusing
paragraph about 'name' property.
2006-02-13 21:43:17 +00:00
Marius Vollmer
b712c10755 (Object Properties): Removed confusing
paragraph about 'name' property.
2006-02-13 21:42:41 +00:00
Marius Vollmer
677ad9d214 (scm_eval_body): Use scm_i_dynwind_pthread_mutex_lock
oinstead of scm_dynwind_pthread_mutex_lock so that it works when
configured --without-threads.
(SCM_APPLY, CEVAL): Likewise.  Thanks to Han-Wen Nienhuys!
2006-02-12 22:54:29 +00:00
Marius Vollmer
ba500ec099 Bumped version to 1.7.91. 2006-02-12 15:07:23 +00:00
Marius Vollmer
0ab652a386 Added 2006 to copyright years in every file, as per the new rules. 2006-02-12 13:42:52 +00:00
Marius Vollmer
c3eed9ee87 Fixed typo. 2006-02-12 12:40:58 +00:00
Marius Vollmer
f80187cd4e Fixed typo, use --without-threads instead of --with-threads to
emphasize the default.
2006-02-12 12:38:57 +00:00
Marius Vollmer
1aaa1c171e * deprecated.scm (make-uniform-array): Don't pass the prototype as
the fill value, dimensions->uniform-array will do the right thing
now.  See scm_dimensions_to_uniform_array why we need to be tricky
about the fill value.

* unif.c (scm_dimensions_to_uniform_array): Use the prototype for
filling when the fill parameter is omitted, as documented, but
turn #\nul into 0 since s8 arrays (signified by a #\nul prototype)
can not store characters.
2006-02-12 01:01:46 +00:00
Marius Vollmer
32cace4252 Fixed typo. 2006-02-12 00:57:56 +00:00
Marius Vollmer
bbcade428b * deprecated.scm (make-uniform-array): Don't pass the prototype as
the fill value, dimensions->uniform-array will do the right thing
now.  See scm_dimensions_to_uniform_array why we need to be tricky
about the fill value.

* unif.c (scm_dimensions_to_uniform_array): Use the prototype for
filling when the fill paramater is omitted, as documented, but
turn #\nul into 0 since s8 arrays (signified by a #\nul prototype)
can not store characters.
2006-02-12 00:57:14 +00:00
Neil Jerram
d7c6575f3f (scm_c_make_socket_address): Pass address_size pointer
on to scm_fill_sockaddr call.
2006-02-09 14:27:05 +00:00
Neil Jerram
58b1ceaf5c (scm_c_make_socket_address): Pass address_size pointer
on to scm_fill_sockaddr call.
2006-02-09 14:08:12 +00:00
Kevin Ryde
1a5e18b5ef *** empty log message *** 2006-02-07 00:09:41 +00:00
Kevin Ryde
9595f0019b (pure-funcq): New tests. 2006-02-07 00:08:22 +00:00
Kevin Ryde
4f09cd6df6 *** empty log message *** 2006-02-07 00:04:36 +00:00
Kevin Ryde
6cf755c27c (Compiled Code Installation): Revise, in particular
@libdir@ needs to go via the makefile.
2006-02-07 00:02:48 +00:00
Kevin Ryde
689596d425 *** empty log message *** 2006-02-06 20:43:27 +00:00
Marius Vollmer
349b48f9a9 Bumped versions for 1.9 series. 2006-02-05 22:57:57 +00:00
Marius Vollmer
31a4ff3e3d (Basic Generic Function Creation): Added blurb about
merge-generics duplicates handler from NEWS-
2006-02-05 22:57:34 +00:00
Marius Vollmer
2a0d4b5559 * configure.in: Removed --enable-arrays option. 2006-02-05 22:56:51 +00:00
Marius Vollmer
0f24e75b73 * GUILE-VERSION: Bumped versions for 1.9 series.
* srfi-1.scm, srfi-60.scm: Updated versions in library name to
match GUILE-VERSION.
2006-02-05 22:56:34 +00:00
Marius Vollmer
31741c4464 Bumped versions for 1.8. 2006-02-05 22:50:05 +00:00
Marius Vollmer
c98f12f1a5 Branched for 1.8 series.
* GUILE-VERSION: Bumped version numbers.

	* configure.in: Removed --enable-arrays option.

	* srfi-1.scm, srfi-60.scm: Updated versions in library name to
	match GUILE-VERSION.

	* goops.texi (Basic Generic Function Creation): Added blurb about
	merge-generics duplicates handler from NEWS-
2006-02-05 22:49:28 +00:00
cvs2svn
dda1922695 This commit was manufactured by cvs2svn to create branch
'branch_release-1-8'.
2006-02-04 15:57:18 +00:00
Neil Jerram
2328328f85 * boot-9.scm (try-module-autoload): Make sure that module code is
loaded with the default reader (current-reader #f).  Thanks to
Ludovic Courtès for pointing this problem out.
2006-02-04 15:57:16 +00:00
Neil Jerram
26beee1e74 19 new test cases.
(throw-test): New macro for testing catches and throw handlers.
2006-02-04 14:36:43 +00:00
Neil Jerram
43e01b1ee3 * throw.h (scm_c_catch, scm_c_with_throw_handler,
scm_catch_with_pre_unwind_handler, scm_with_throw_handler): New.

* throw.c (SCM_JBPREUNWIND, SCM_SETJBPREUNWIND): New.
(struct pre_unwind_data): New, replaces struct lazy_catch.
(scm_c_catch): New, replaces scm_internal_catch as the primary
catch API for C code; adds pre-unwind handler support.
(scm_internal_catch): Now just a wrapper for scm_c_catch, for back
compatibility.
(tc16_pre_unwind_data, pre_unwind_data_print,
make_pre_unwind_data, SCM_PRE_UNWIND_DATA_P): Renamed from
"lazy_catch" equivalents.
(scm_c_with_throw_handler): New, replaces scm_internal_lazy_catch
as the primary C API for a "lazy" catch.
(scm_internal_lazy_catch): Now just a wrapper for
scm_c_with_throw_handler, for back compatibility.
(scm_catch_with_pre_unwind_handler): Renamed from scm_catch; adds
pre-unwind handler support.
(scm_catch): Now just a wrapper for
scm_catch_with_pre_unwind_handler, for back compatibility.
(scm_with_throw_handler): New.
(scm_lazy_catch): Update comment to say that the handler can
return, and what happens if it does.
(toggle_pre_unwind_running): New.
(scm_ithrow): When identifying the throw target, take running
flags into account.  In general, change naming of things from
"lazy_catch" to "pre_unwind".  When throwing to a throw handler,
don't unwind the dynamic context first.  Add dynwind framing to
manage the running flag of a throw handler.  If a lazy catch or
throw handler returns, rethrow the same exception again.  Add
pre-unwind support to the normal catch case (SCM_JMPBUFP).

* root.c (scm_internal_cwdr): Add NULL args to
scm_i_with_continuation_barrier call.

* dynwind.c: Change comment mentioning lazy-catch to mention
pre-unwind data and throw handler also.

* continuations.h (scm_i_with_continuation_barrier): Add
pre-unwind handler args.

* continuations.c (scm_i_with_continuation_barrier): Add
pre-unwind handler args, and pass on to scm_c_catch (changed from
scm_internal_catch).
(c_handler): Remove scm_handle_by_message_noexit call.
(scm_c_with_continuation_barrier): Call
scm_i_with_continuation_barrier with scm_handle_by_message_noexit
as the pre-unwind handler.
(scm_handler): Remove scm_handle_by_message_noexit call.
(s_scm_with_continuation_barrier): Call
scm_i_with_continuation_barrier with scm_handle_by_message_noexit
as the pre-unwind handler.
2006-02-04 14:36:24 +00:00
Neil Jerram
56658166b2 * stack-catch.scm (stack-catch): Use catch pre-unwind handler
instead of lazy-catch.

* boot-9.scm (error-catching-loop): Use catch pre-unwind handler
instead of lazy-catch.
2006-02-04 14:36:06 +00:00
Neil Jerram
7b4c914e49 (Throw Handlers): New node.
(Throw): Moved to after the Lazy Catch node.
(Catch): Enhance to cover the optional pre-unwind handler, and new
APIs scm_c_catch, scm_catch_with_pre_unwind_handler.
(Lazy Catch): Describe relationship to with-throw-handler.
Document that the handler may return, and what happens if it does.
(Throw): Mention that a throw can be handled by a throw handler as
well as by a catch.
2006-02-04 14:35:53 +00:00