Kevin Ryde
994f151dc3
(scm_string_split): Compare char/char in scan. Mixing an
...
unsigned int SCM_CHAR and a char string meant an 8-bit char was never
matched.
2005-06-05 21:10:13 +00:00
Marius Vollmer
92205699d0
The FSF has a new address.
2005-05-23 19:57:22 +00:00
Neil Jerram
5a6d139b35
* unif.c (scm_i_read_array): Declare rank as ssize_t, to guarantee
...
that it is signed.
* strports.c (st_resize_port): Add unsigned char cast.
(scm_mkstrport): Make read/write_buf cast unsigned.
* srfi-13.c (string_titlecase_x): Add unsigned char cast.
* rdelim.c (scm_read_line): Initialize slen.
* load.c (scm_search_path): Remove weird >=1, and add
parentheses to clarify conditions.
* hash.c (scm_hasher): Add const unsigned char cast.
* gh_data.c (gh_chars2byvect): Add scm_t_int8 cast.
2005-05-12 06:39:50 +00:00
Kevin Ryde
57d9803440
(scm_string_concatenate, scm_string_concatenate_shared):
...
Validate list argument, scm_string_append and scm_string_append_shared
don't do that to their rest argument (in a normal build).
2005-04-10 22:14:15 +00:00
Marius Vollmer
69d2000d93
Docstring updates.
2005-03-04 17:55:49 +00:00
Kevin Ryde
fdc6aebfaf
(string-any, string-every): Use a scheme
...
wrapper around the C code so for the final call to the predicate
procedure is a tail call, per SRFI-13 spec.
2004-12-14 00:21:25 +00:00
Marius Vollmer
d2e53ed6f8
*** empty log message ***
2004-09-22 17:41:37 +00:00
Marius Vollmer
4a310f1c92
(scm_string_contains, scm_string_contains_ci): Reworded logic a bit so
...
that #f is returned immediately when s1 is too short to contain s2.
2004-09-22 15:03:17 +00:00
Marius Vollmer
1a82a4606c
(scm_string_any, scm_string_every,
...
scm_string_tabulate, string_upcase_x, string_down_case_x,
string_titlecase_x, string_reverse_x, scm_string_tokenize): Use
size_t instead of int for indices into strings. Make sure that no
over- or underflow occurs. Thanks to Andreas Vögele!
(scm_xsubstring, scm_string_xcopy_x): Use ints for 'extended'
indices, which can also be negative.
2004-09-20 22:50:31 +00:00
Han-Wen Nienhuys
adba74f3a6
2004-09-13 Jan Nieuwenhuizen <janneke@gnu.org>
...
* srfi-13.c (scm_string_contains, s_scm_string_contains_ci):
Bugfix: when subtracting unsigned values, make sure that result
does not wrap.
2004-09-14 21:10:56 +00:00
Marius Vollmer
616775edb7
(scm_string_trim_right, scm_string_xcopy_x): Correctly use size_t for
...
some locals instead of int.
2004-09-07 13:48:49 +00:00
Marius Vollmer
3731fc6718
* srfi-13.c: First cut at thread-safeness and proper use of
...
scm_i_string_chars et al. Copious scm_remember_upto_heres have
been inserted. Made sure that no internal string pointer is used
across a SCM_TICK or a possible GC.
2004-08-25 16:04:09 +00:00
Marius Vollmer
2562032b61
(scm_string_rindex): Export to Scheme, as it has always been.
2004-08-25 13:42:04 +00:00
Marius Vollmer
63181a97f5
* srfi-13.c, srfi-13.h, srfi-14.c, srfi-14.h: New files.
...
* strop.h, strop.c: Removed, they are now empty.
* Makefile.am: Updated for new and removed files.
2004-08-24 22:12:08 +00:00