diff options
author | Andy Wingo <wingo@pobox.com> | 2010-11-19 17:08:36 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2010-11-19 17:08:36 +0100 |
commit | 9fe717e23c50680b77860dcb3e30b00184caba4f (patch) | |
tree | 4b14802460ae0239e66efe3d8dfe7ad1b0b0d2ab /libguile/srfi-13.h | |
parent | 402c35ac8115a48ee1fe300eb87b3ed43518be94 (diff) |
fix string-filter and string-delete argument order
* libguile/srfi-13.h:
* libguile/srfi-13.c (scm_string_filter, scm_string_delete): Swap
char_pred and s argument order, to comply with SRFI-13. There is a
back-compat shim that will detect programs that used the old,
erroneous interface, while giving a warning.
* doc/ref/api-data.texi: Update docs.
Diffstat (limited to 'libguile/srfi-13.h')
-rw-r--r-- | libguile/srfi-13.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libguile/srfi-13.h b/libguile/srfi-13.h index 478a55d64..f63239a25 100644 --- a/libguile/srfi-13.h +++ b/libguile/srfi-13.h @@ -3,7 +3,7 @@ /* srfi-13.c --- SRFI-13 procedures for Guile * - * Copyright (C) 2001, 2004, 2006, 2008 Free Software Foundation, Inc. + * Copyright (C) 2001, 2004, 2006, 2008, 2010 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -111,8 +111,8 @@ SCM_API SCM scm_string_xcopy_x (SCM target, SCM tstart, SCM s, SCM sfrom, SCM st SCM_API SCM scm_string_replace (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2); SCM_API SCM scm_string_tokenize (SCM s, SCM token_char, SCM start, SCM end); SCM_API SCM scm_string_split (SCM s, SCM chr); -SCM_API SCM scm_string_filter (SCM s, SCM char_pred, SCM start, SCM end); -SCM_API SCM scm_string_delete (SCM s, SCM char_pred, SCM start, SCM end); +SCM_API SCM scm_string_filter (SCM char_pred, SCM s, SCM start, SCM end); +SCM_API SCM scm_string_delete (SCM char_pred, SCM s, SCM start, SCM end); SCM_INTERNAL void scm_init_srfi_13 (void); SCM_INTERNAL void scm_init_srfi_13_14 (void); |