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

98 commits

Author SHA1 Message Date
Marius Vollmer
cb0abacf36 Put `-no-undefined' into LDFLAGS to support linkers
which do not allow unresolved symbols inside shared libraries.
2001-11-02 00:19:42 +00:00
Mikael Djurfeldt
1a179b03b0 * lib.scm: Move module the system directives `export',
`export-syntax', `re-export' and `re-export-syntax' into the
  `define-module' form.  This is the recommended way of exporting
  bindings.

* srfi-2.scm, srfi-4.scm, srfi-8.scm, srfi-9.scm, srfi-10.scm,
srfi-11.scm, srfi-14.scm, srfi-16.scm: Move module the system
directives `export', `export-syntax', `re-export' and
`re-export-syntax' into the `define-module' form.  This is the
recommended way of exporting bindings.

* goops.scm, goops/active-slot.scm, goops/compile.scm,
goops/composite-slot.scm, goops/describe.scm, goops/dispatch.scm,
goops/old-define-method.scm, goops/save.scm, goops/util.scm: Move
module the system directives `export', `export-syntax',
`re-export' and `re-export-syntax' into the `define-module' form.
This is the recommended way of exporting bindings.

* slib.scm (array-indexes): New procedure.
(*features*): Extend.  (Probably some of these options should be
set elsewhere.)  (Thanks to Aubrey Jaffer.)

* and-let-star-compat.scm, and-let-star.scm, calling.scm,
  channel.scm, common-list.scm, debug.scm, debugger.scm,
  expect.scm, hcons.scm, lineio.scm, ls.scm, mapping.scm,
  null.scm, optargs.scm, poe.scm, popen.scm, pretty-print.scm,
  q.scm, r5rs.scm, rdelim.scm, regex.scm, runq.scm, safe-r5rs.scm,
  safe.scm, session.scm, slib.scm, streams.scm, string-fun.scm,
  syncase.scm, threads.scm: Move module the system directives
  `export', `export-syntax', `re-export' and `re-export-syntax'
  into the `define-module' form.  This is the recommended way of
  exporting bindings.
2001-10-21 09:49:19 +00:00
Mikael Djurfeldt
b21cccf315 * srfi-19.scm (priv:split-real): Inserted missing call to
inexact->exact.
2001-09-22 21:17:31 +00:00
Rob Browning
0b073f0f14 *** empty log message *** 2001-09-21 17:58:04 +00:00
Rob Browning
cc0ce1e764 * srfi-14.c (SCM_CHARSET_SET): need 1L, not just 1 in "<<".
(scm_char_set_hash): val needs to be long, not just unsigned.
(scm_char_set): need 1L, not just 1 in "<<".
(scm_list_to_char_set): need 1L, not just 1 in "<<".
(scm_list_to_char_set_x): need 1L, not just 1 in "<<".
(scm_list_to_char_set_x): FUNC_NAME was wrong - added a _x.
(scm_string_to_char_set): string length var needed to be
scm_sizet, not int.
(scm_string_to_char_set): need 1L, not just 1 in "<<".
(scm_string_to_char_set_x): string length var needed to be
scm_sizet, not int.
(scm_string_to_char_set_x): need 1L, not just 1 in "<<".
(scm_char_set_filter): need 1L, not just 1 in "<<".
(scm_char_set_filter_x): need 1L, not just 1 in "<<".
(scm_ucs_range_to_char_set): need 1L, not just 1 in "<<".
(scm_ucs_range_to_char_set_x): need 1L, not just 1 in "<<".
(scm_char_set_adjoin): need 1L, not just 1 in "<<".
(scm_char_set_delete): need 1L, not just 1 in "<<".
(scm_char_set_adjoin_x): need 1L, not just 1 in "<<".
(scm_char_set_delete_x): need 1L, not just 1 in "<<".
2001-09-21 17:55:07 +00:00
Rob Browning
3a868e486c * srfi-14.h (SCM_CHARSET_GET): need 1L, not just 1 in "<<". 2001-09-21 17:54:56 +00:00
Gary Houston
6ddd941279 2001-09-12 Gary Houston <ghouston@arglist.com>
* srfi-1.scm (filter): change "caller" to "filter" in check-arg-type.
2001-09-12 19:15:33 +00:00
Dirk Herrmann
8c494e9973 * Removed lots of deprecated stuff. 2001-08-31 14:42:31 +00:00
Thien-Thi Nguyen
fa5a8c00ec *** empty log message *** 2001-08-25 19:05:07 +00:00
Thien-Thi Nguyen
afb47f6d45 (add-duration): Fix bug: Call `add-duration!' w/ two args.
Thanks to Alex Shinn.
2001-08-25 18:40:11 +00:00
Marius Vollmer
b573e74455 *** empty log message *** 2001-08-25 16:12:28 +00:00
Marius Vollmer
3307df9557 (AUTOMAKE_OPTIONS): Change "foreign" to "gnu". 2001-08-25 16:05:04 +00:00
Thien-Thi Nguyen
e9313ed7f8 *** empty log message *** 2001-08-24 22:07:20 +00:00
Thien-Thi Nguyen
4cf7528804 (string-for-each-index): New exported proc. 2001-08-24 22:00:45 +00:00
Thien-Thi Nguyen
0f21643339 (scm_string_for_each): Reverse order of first 2 args.
(scm_string_for_each_index): New func.

Thanks to Alex Shinn.
2001-08-24 21:59:50 +00:00
Thien-Thi Nguyen
8c67d05cef (scm_string_map, scm_string_map_x,
scm_string_for_each): Reverse order of first two args.
(scm_string_for_each_index): New proc.

Thanks to Alex Shinn.
2001-08-24 21:57:52 +00:00
Mikael Djurfeldt
80fdeb4e5a * tests/srfi-13.test (string-map): Swapped order of string and
proc args to conform with the srfi.  (Thanks to Alex Shinn.)

* srfi-13.c (string-map): Swapped order of string and proc args to
conform with the srfi.  (Thanks to Alex Shinn.)
2001-08-22 12:00:06 +00:00
Gary Houston
5753f02f67 * srfi-1.scm (check-arg-type, non-negative-integer?): a couple of new
internal definitions.
	(list-tabulate, iota): check for bad arguments that otherwise
	give weird output.
	(filter): check for proper list, to avoid infinite recursion on
	a circular list.
2001-08-05 10:12:37 +00:00
Gary Houston
848458d990 * srfi-1.scm (filter): replaced with a tail-recursive version.
(remove): implement using filter, to make it tail-recursive.
2001-08-04 18:37:08 +00:00
Gary Houston
9be745030e * srfi-14.c (scm_char_set_diff_plus_intersection): wasn't correctly
accounting for the (char-set-union cs2...) in the spec.  i.e.,
	(char-set-diff+intersection a) -> copy-of-a, empty-set
	and the following are equivalent:
	(char-set-diff+intersection a (char-set #\a) (char-set #\b))
	(char-set-diff+intersection a (char-set #\a #\b))

	(scm_char_set_xor_x): disabled the side-effecting code, since it
	gives inconsistent results to scm_char_set_xor for the case
	(char-set-xor! a a a).

	(scm_char_set_diff_plus_intersection_x): added cs2 argument, since
	two arguments are compulsory in final spec.  also similar changes
	as for scm_char_set_diff_plus_intersection.
	* srfi-14.h (scm_char_set_diff_plus_intersection_x): added cs2.
2001-07-31 21:42:24 +00:00
Gary Houston
d95744e986 Reverse the n-ary logxor change. The behaviour is weird in a set
context, but consistent with logxor and scsh.  Maybe it should get
     the benefit of the doubt.
2001-07-22 23:21:03 +00:00
Gary Houston
42b54c05a9 (scm_char_set_xor): bug fix: characters should only be included if
they occur in exactly one argument, but were included if they
	occured an odd number of times >= 3, e.g, in (char-set-xor a a a)
	where a is (char-set #\a).  fix it with a "mask" array.
2001-07-22 22:01:50 +00:00
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
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
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
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
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
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
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
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
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
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
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