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

125 commits

Author SHA1 Message Date
Marius Vollmer
65f5dbae9a (s_scm_string_tokenize): Only take character sets as the second arg.
Collect characters belonging to this set into tokens (as specified by
the SRFI), instead of splitting at these characters.  Default to an
equivalent of char-set:graphic instead of everything-but-whitespace.
Thanks to Matthias Koeppe!
2002-04-26 19:16:38 +00:00
Rob Browning
cec1f414cc *** empty log message *** 2002-04-09 17:27:46 +00:00
Rob Browning
852b06e2f4 * srfi-4.scm: hack around dynamic-link problems by
using painfully explicit lib names.
2002-04-09 17:27:35 +00:00
Rob Browning
667f6c2fbd * srfi-14.scm: hack around dynamic-link problems by
using painfully explicit lib names.
2002-04-09 17:27:28 +00:00
Rob Browning
a2174d4286 * srfi-13.scm: hack around dynamic-link problems by
using painfully explicit lib names.
2002-04-09 17:27:22 +00:00
Rob Browning
87cf132b41 * Makefile.am: hack around dynamic-link problems by
using painfully explicit lib names.
2002-04-09 17:26:37 +00:00
Rob Browning
0b829ad07e * .cvsignore: add *.c.clean.c. 2002-04-02 01:41:13 +00:00
Thien-Thi Nguyen
96d1f6eb64 *** empty log message *** 2002-03-28 01:53:18 +00:00
Thien-Thi Nguyen
3e676b6f82 Update copyright.
Point to manual in commentary; nfc.
2002-03-28 01:52:37 +00:00
Marius Vollmer
aa377eff24 *** empty log message *** 2002-03-20 20:57:19 +00:00
Marius Vollmer
fa378b0d11 (.c.x): Pass "-o $@" to guile-snarf. 2002-03-20 20:55:57 +00:00
Thien-Thi Nguyen
8cdec0abaf *** empty log message *** 2002-03-14 05:34:52 +00:00
Thien-Thi Nguyen
9557bb80f5 (snarfcppopts): New var.
(.c.x): Use $(snarfcppopts). Rework guile-snarf usage.
2002-03-14 05:34:15 +00:00
Thien-Thi Nguyen
19570609ad Retire inclusion guard macro SCM_MAGIC_SNARFER. 2002-03-14 05:32:48 +00:00
Marius Vollmer
1b74237d4f *** empty log message *** 2002-03-11 17:56:45 +00:00
Marius Vollmer
c8af4705e0 (string_titlecase_x): Treat characters as unsigned so that 8-bit chars
work.  Thanks to David Pirotte!
2002-03-11 17:56:39 +00:00
Rob Browning
4f84577b87 *** empty log message *** 2002-03-01 18:22:17 +00:00
Rob Browning
30c8d27024 * Makefile.am (libguile_srfi_srfi_4_la_LDFLAGS): use
@LIBGUILE_SRFI_SRFI_4_INTERFACE@.
(libguile_srfi_srfi_13_14_la_LDFLAGS): use
@LIBGUILE_SRFI_SRFI_13_14_INTERFACE@.
2002-02-25 04:42:49 +00:00
Neil Jerram
071867c1e6 * Fix date-week-number bug in srfi-19.scm. 2002-02-23 22:18:09 +00:00
Neil Jerram
0f6e56f7e2 * Fix two typos that crept in with the scm_X_t to scm_t_X rename.
* Partial fix for date-week-number bug.
2002-02-22 23:04:15 +00:00
Thien-Thi Nguyen
25216b3f51 *** empty log message *** 2002-02-09 06:03:43 +00:00
Thien-Thi Nguyen
40e3f30ea5 (AUTOMAKE_OPTIONS): Replace "foreign" with "gnu". 2002-02-09 06:03:00 +00:00
Thien-Thi Nguyen
56c733dc53 *** empty log message *** 2002-01-21 21:35:02 +00:00
Thien-Thi Nguyen
cd246d3d16 (count1, take-while): Rewrite to be tail-recursive.
Thanks to Panagiotis Vossos.
2002-01-21 21:34:19 +00:00
Thien-Thi Nguyen
c2b8405784 *** empty log message *** 2002-01-21 21:03:35 +00:00
Thien-Thi Nguyen
5353d6447a (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): replaced with a tail-recursive version.
(remove): implement using filter, to make it tail-recursive.
2002-01-21 21:01:23 +00:00
Thien-Thi Nguyen
bff1310124 *** empty log message *** 2002-01-21 01:20:45 +00:00
Thien-Thi Nguyen
4e5b0337f2 (map1): Rewrite to be tail-recursive.
Thanks to Panagiotis Vossos for the bug report.
2002-01-21 01:19:30 +00:00
Neil Jerram
39d2ee3ba5 * Miscellaneous doc and docstring fixes. 2001-11-14 00:02:59 +00:00
Thien-Thi Nguyen
5b927f092b *** empty log message *** 2001-11-06 22:25:17 +00:00
Thien-Thi Nguyen
b49dde84fa (time-monotonic->time-monotonic): Spurious; remove from exports. 2001-11-06 22:24:20 +00:00
Thien-Thi Nguyen
4558e398fe *** empty log message *** 2001-10-31 18:37:08 +00:00
Thien-Thi Nguyen
6cd036ce4f (scm_string_to_char_set, scm_string_to_char_set_x): Use `size_t'
instead of deprecated `scm_sizet'.
2001-10-31 18:34:38 +00:00
Mikael Djurfeldt
7338fb2827 * 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.
2001-10-18 19:43:07 +00:00
Mikael Djurfeldt
7bed0fdaf0 * srfi-19.scm (priv:split-real): Inserted missing call to
inexact->exact.
2001-09-22 21:15:40 +00:00
Rob Browning
2f3b3004fb *** empty log message *** 2001-09-21 17:52:07 +00:00
Rob Browning
437424988d * 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:48:50 +00:00
Rob Browning
f477475abd * srfi-14.h (SCM_CHARSET_GET): need 1L, not just 1 in "<<". 2001-09-21 17:48:35 +00:00
Thien-Thi Nguyen
f4f1c79032 *** empty log message *** 2001-08-25 19:07:24 +00:00
Thien-Thi Nguyen
f1454a13dc (add-duration): Fix bug: Call `add-duration!' w/ two args.
Thanks to Alex Shinn.
2001-08-25 19:06:09 +00:00
Thien-Thi Nguyen
dfcbae095d *** empty log message *** 2001-08-24 22:16:40 +00:00
Thien-Thi Nguyen
ad9a257283 (string-for-each-index): New exported proc. 2001-08-24 22:13:26 +00:00
Thien-Thi Nguyen
9a6b38abe1 (scm_string_for_each): Reverse order of first 2 args.
(scm_string_for_each_index): New func.

Thanks to Alex Shinn.
2001-08-24 22:12:45 +00:00
Thien-Thi Nguyen
24205ce1cd (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 22:10:29 +00:00
Thien-Thi Nguyen
691365f22a *** empty log message *** 2001-08-23 19:09:08 +00:00
Thien-Thi Nguyen
fd8a9f4b35 (string-map): Swapped order of string and proc args to
conform with the srfi.  (Thanks to Alex Shinn.)
2001-08-23 19:02:41 +00:00
Gary Houston
aaf41af6d5 * 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:50:30 +00:00
Gary Houston
3eb5076d65 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:22:07 +00:00
Gary Houston
714dd5fadf (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:03:47 +00:00
Gary Houston
a6ec2a3cef * 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:19:12 +00:00