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

389 commits

Author SHA1 Message Date
Gary Houston
d1bc66027e * srfi-14.c (scm_char_set_intersection, scm_char_set_xor): remove
the compulsory cs1 arguments: all args are optional in final spec.
	* srfi-14.h: declarations updated.
2001-07-22 20:17:28 +00:00
Martin Grabmüller
e0e3ab6ec4 * srfi-11.scm, srfi-8.scm: Update copyright notice. 2001-07-19 20:50:18 +00:00
Martin Grabmüller
46a7b46f0c * srfi-11.scm, srfi-8.scm: Update copyright notice. 2001-07-19 20:28:33 +00:00
Martin Grabmüller
4c4185ee95 * srfi-14.c: Okay. Now I got it. Really. This time it's fixed.
Guaranteed. (Maybe)

	* srfi-19.scm: Define `current-time' before exporting it.
2001-07-17 19:41:49 +00:00
Martin Grabmüller
0250dddaa8 * srfi-14.c: Okay. Now I got it. Really. This time it's fixed.
Guaranteed. (Maybe)

	* srfi-19.scm: Define `current-time' before exporting it.
2001-07-17 19:40:29 +00:00
Martin Grabmüller
8ae7ecf74e * srfi-14.c: Fix for bug caused by brain-malfunctioning on my
side.  Bit sets were handled wrong because I couldn't tell bit
	counts from byte counts.  Also, the bit array should be 256 / 8
	bytes long.  Thank you, Gary!

	Removed unnecessary protoype for scm_char_set_copy.
2001-07-17 05:37:25 +00:00
Martin Grabmüller
2671725a65 * srfi-14.c: Fix for bug caused by brain-malfunctioning on my
side.  Bit sets were handled wrong because I couldn't tell bit
	counts from byte counts.  Also, the bit array should be 256 / 8
	bytes long.  Thank you, Gary!

	Removed unnecessary protoype for scm_char_set_copy.
2001-07-17 05:35:51 +00:00
Gary Houston
f47ed23fa2 * srfi-14.scm: export string->char-set!, not string-char-set!.
* srfi-14.c (scm_char_set_ref, scm_char_set_cursor_next,
	scm_end_of_char_set_p): reject negative	cursor values.
	(scm_list_to_char_set, scm_list_to_char_set_x): when reporting
	type error in list component, omit the position (was always 1).
2001-07-16 22:31:56 +00:00
Gary Houston
8b19021c25 * srfi-14.scm: export string->char-set!, not string-char-set!.
* srfi-14.c (scm_char_set_ref, scm_char_set_cursor_next,
	scm_end_of_char_set_p): reject negative	cursor values.
	(scm_list_to_char_set, scm_list_to_char_set_x): when reporting
	type error in list component, omit the position (was always 1).
2001-07-16 22:30:25 +00:00
Martin Grabmüller
139777e5c7 (scm_char_set_map): Bug-fix: char-set-map was modifying the
argument instead of the return value.
2001-07-16 18:51:11 +00:00
Martin Grabmüller
5c8c4411a8 (scm_char_set_map): Bug-fix: char-set-map was modifying the
argument instead of the return value.
2001-07-16 18:50:29 +00:00
Martin Grabmüller
6750a1baac * srfi-14.c: Allocate correct memory size for charsets (32 bytes),
use this value for initializing and comparing charsets.
	(scm_char_set_hash): Use ``better'' hash algorithm which produces
	more values.
2001-07-16 17:02:39 +00:00
Martin Grabmüller
cebf3d62d9 * srfi-14.c: Allocate correct memory size for charsets (32 bytes),
use this value for initializing and comparing charsets.
	(scm_char_set_hash): Use ``better'' hash algorithm which produces
	more values.
2001-07-16 15:47:02 +00:00
Gary Houston
37ca12fb60 (scm_char_set_hash): bug fix: was overrunning the buffer and
calculating based on garbage.
	(scm_char_set_eq, scm_char_set_leq): fix argument number in error
	reporting: wasn't incremented due to macro coding.
	(scm_char_set): report argument number in error reporting: was
	hard coded to 1.  remove a couple of local variables.
2001-07-15 18:55:45 +00:00
Gary Houston
b87f5a8394 (scm_char_set_hash): bug fix: was overrunning the buffer and
calculating based on garbage.
	(scm_char_set_eq, scm_char_set_leq): fix argument number in error
	reporting: wasn't incremented due to macro coding.
	(scm_char_set): report argument number in error reporting: was
	hard coded to 1.  remove a couple of local variables.
2001-07-15 18:54:28 +00:00
Gary Houston
f1a928f435 * srfi-14.c (scm_char_set_hash): recognise 0 instead of #f in the
opt arg to give default bound, as in final spec.  don't allow
	negative bounds.
2001-07-15 15:20:31 +00:00
Gary Houston
396f36cdbf * srfi-14.c (scm_char_set_hash): recognise 0 instead of #f in the
opt arg to give default bound, as in final spec.  don't allow
	negative bounds.
2001-07-15 15:16:31 +00:00
Marius Vollmer
ee8099b2d9 *** empty log message *** 2001-07-12 23:32:58 +00:00
Marius Vollmer
577776e109 (and-let*): Use re-export-syntax' instead of export-syntax'. 2001-07-12 23:32:18 +00:00
Marius Vollmer
22647fef9f *** empty log message *** 2001-07-12 23:28:53 +00:00
Marius Vollmer
cc259e57b1 (and-let*): Use re-export-syntax' instead of export-syntax'. 2001-07-12 23:28:03 +00:00
Gary Houston
88151d3284 (s_scm_char_set_leq): similarly, (char-set<=) should return #t.
take a single "rest" argument.
2001-07-11 22:01:37 +00:00
Gary Houston
be390de2ba (s_scm_char_set_leq): similarly, (char-set<=) should return #t.
take a single "rest" argument.
2001-07-11 22:00:52 +00:00
Gary Houston
2545bd29ee * srfi-14.c (s_scm_char_set_eq): bug fix: (char-set=) should
return #t instead of giving wrong-number-of-arguments . take a
	single "rest" argument.  use memcmp instead of a loop to compare
	the values.
	srfi-14.h: update the declaration.
2001-07-11 20:49:05 +00:00
Gary Houston
dd84cd4d1f * srfi-14.c (s_scm_char_set_eq): bug fix: (char-set=) should
return #t instead of giving wrong-number-of-arguments . take a
	single "rest" argument.  use memcmp instead of a loop to compare
	the values.
	srfi-14.h: update the declaration.
2001-07-11 20:47:07 +00:00
Martin Grabmüller
ccffec9318 * README: Cleanup. 2001-07-09 19:14:39 +00:00
Martin Grabmüller
ee85583a37 2001-07-09 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
* README: Cleanup.
2001-07-09 19:12:27 +00:00
Gary Houston
99f59e93b5 * srfi-1.scm (iota, map, for-each, list-index, member, delete,
delete!, assoc): roll back the previous change.  instead place
	dummy definitions in a deprecated block at the beginning as in
	srfi-13.scm.
2001-07-06 21:10:47 +00:00
Rob Browning
0d6209aa9e *** empty log message *** 2001-07-06 14:00:21 +00:00
Rob Browning
b4d2a48e9d * srfi-19.scm (priv:locale-reader): don't need open-output-string. 2001-07-06 14:00:13 +00:00
Gary Houston
6d52dbf2ef (map-in-order): defined and exported, to support lists of unequal
length.
2001-07-03 20:18:39 +00:00
Gary Houston
26c22ea816 *** empty log message *** 2001-07-03 18:55:28 +00:00
Gary Houston
fc183bc85b * srfi-1.scm (iota, map, for-each, list-index, member, delete,
delete!, assoc): don't export until the new bindings have been
	created.  otherwise "export" thinks they are being re-exported and
	a deprecation warning is produced.
2001-07-03 18:54:43 +00:00
Martin Grabmüller
e800aa0482 * srfi-1.scm (list-tabulate): Do not go into infinite loop for
invalid arguments.  Same fix for several other procedures (do not
	use zero?, use <= 0).
2001-07-03 16:19:23 +00:00
Martin Grabmüller
018adcae03 * srfi-1.scm (list-tabulate): Do not go into infinite loop for
invalid arguments.
2001-07-03 15:35:08 +00:00
Martin Grabmüller
cef248dd61 * srfi-1.scm: Replaced calls to `map' in several procedures to
calls to `map1'.
	(map, for-each): New procedures, extended from R5RS.
2001-07-02 17:50:28 +00:00
Martin Grabmüller
2c4df45186 * srfi-4.c: Minor cleanups.
* srfi-14.c (scm_char_set_fold, scm_char_set_unfold)
	(scm_char_set_unfold_x, scm_char_set_for_each)
	(scm_char_set_map, scm_char_set_filter)
	(scm_char_set_filter_x, scm_char_set_count)
	(scm_char_set_every, scm_char_set_any): Replace calls to
	scm_apply() with the corresponding scm_call_N() functions.

	* srfi-14.c (scm_char_set_ref, scm_char_set_cursor_next)
	(scm_char_set_unfold, scm_char_set_unfold_x)
	(scm_char_set_map, scm_char_set_diff_plus_intersection)
	(scm_char_set_diff_plus_intersection_x): Replace deprecated macros
	SCM_LISTN with calls to scm_list_N().

	* srfi-13.c (scm_string_tabulate, scm_string_map)
	(scm_string_map_x, scm_string_unfold)
	(scm_string_unfold_right): Replace deprecated macros SCM_LISTN
	with calls to scm_list_N().

	* srfi-13.c (scm_string_any, scm_string_every),
	(scm_string_tabulate, scm_string_trim),
	(scm_string_trim_right, scm_string_trim_both),
	(scm_string_compare, scm_string_compare_ci),
	(scm_string_indexS, scm_string_index_right),
	(scm_string_skip, scm_string_skip_right, scm_string_count),
	(scm_string_map, scm_string_map_x, scm_string_fold),
	(scm_string_fold_right, scm_string_unfold),
	(scm_string_unfold_right, scm_string_for_each),
	(scm_string_filter, scm_string_delete): Replace calls to
	scm_apply() with the corresponding scm_call_N() functions.
2001-06-28 16:39:00 +00:00
Martin Grabmüller
71ca65d982 * Makefile.am: Added SRFI-4 files in various places.
* srfi-4.c, srfi-4.h, srfi-4.scm: New files implementing SRFI-4.
2001-06-27 13:18:40 +00:00
Dirk Herrmann
3628462791 * Deprecated scm_makfromstr and added scm_mem2string as a replacement.
* Eliminated some potential gc problems.
* Eliminated some signedness problems.
* Minor changes.
2001-06-26 10:59:34 +00:00
Marius Vollmer
f65811137e *** empty log message *** 2001-06-25 01:07:36 +00:00
Marius Vollmer
ad4bc8c2ba Use re-export-syntax' to correctly re-export receive'. 2001-06-25 01:07:04 +00:00
Marius Vollmer
d0e06238b4 *** empty log message *** 2001-06-18 18:31:14 +00:00
Marius Vollmer
4549ba4ac6 The SRFI-19 implementation was completely broken. Already the
reference implementation did not handle DST and time zones properly
and relied on non-R5RS-isms like passing reals to `quotient'.  For
Guile, some additional fixes were needed because of the incomplete
numeric tower implementation.  See also srfi-19.test.

* srfi-19.scm (date-zone-offset): Fixed typo in export clause.
(add-duration): Renamed from priv:add-duration.
(priv:time-normalize!): Handle fractional nanoseconds; remove
duplicate definition.  (priv:current-time-tai): Fixed typo.  (time=?,
time<=?): Fixed typos.  (time-tai->time-utc, time-utc->time-tai,
time-utc->time-monotonic): Use make-time-unnormalized instead of
make-time when uninitialized time fields are used.
(set-date-nanosecond!, set-date-second!, set-date-minute!,
set-date-hour!, set-date-day!, set-date-month!, set-date-year!,
set-date-zone-offset!): Define.  (priv:local-tz-offset): Take an extra
argument in order to handle DST effects.  (time-utc->date,
time-tai->date, time-monotonic->date): Handle the changed signature of
priv:local-tz-offset. Don't pass non-integer arguments to quotient
(non-R5RS, not supported by Guile).  (date->time-utc): Ensure that
seconds in a date structure are always exact integers.  Handle DST
properly.  (current-date, julian-day->date,
modified-julian-day->date): Handle the changed signature of
priv:local-tz-offset.  (julian-day->time-utc): Reverted earlier
inexact->exact hack; make-time now handles inexact arguments.
(priv:locale-print-time-zone): At least print the numerical time zone.
(priv:integer-reader): Fixed named let iteration.
(priv:read-directives): Use set-date-month! instead of
priv:set-date-month! etc.  (string->date): Handle DST properly.
2001-06-18 18:30:58 +00:00
Marius Vollmer
0f002b27a3 *** empty log message *** 2001-06-14 18:26:43 +00:00
Marius Vollmer
3d968b4e8b Prevent `export' from re-exporting core bindings. 2001-06-14 18:23:28 +00:00
Dirk Herrmann
e81d98ec2d * Introduce SCM_UNUSED and mark unused function parameters.
* Introduce SCM_DEBUG_PAIR_ACCESSES.
* Extend the possibilities of SCM_DEBUG_CELL_ACCESSES.
2001-06-07 21:12:19 +00:00
Martin Grabmüller
563058efbe * srfi-1.scm (fold, fold-pair): Fixed a buggy call to apply.
(delete-duplicates): Now the first occurrence of an element is
	retained, as required.
	(member, assoc): Fixed wrong order of equality predicate
	application.
2001-06-07 17:54:40 +00:00
Martin Grabmüller
e9680547d3 * README: Update.
* srfi-1.scm: New file.
2001-06-07 04:27:37 +00:00
Marius Vollmer
f480396be5 *** empty log message *** 2001-06-03 23:34:08 +00:00
Martin Grabmüller
dd22a80ac6 * srfi-14.scm, srfi-13.scm: Use `load-extension' for loading the
shared library.
2001-05-31 18:22:54 +00:00