diff options
author | Marius Vollmer <mvo@zagadka.de> | 2004-08-10 14:08:02 +0000 |
---|---|---|
committer | Marius Vollmer <mvo@zagadka.de> | 2004-08-10 14:08:02 +0000 |
commit | 7f9994d90437cfdaf6d733b9c3b050d66326f3bb (patch) | |
tree | 8f3e66daaf6b5651e0ebf9988b2083de548308cc /libguile/deprecation.c | |
parent | 02573e4c7a10dee980618c93f4902887b225433c (diff) | |
download | guile-7f9994d90437cfdaf6d733b9c3b050d66326f3bb.tar.gz |
* stime.c, socket.c, simpos.c, procs.c, posix.c, ports.c,
net_db.c, fports.c, filesys.c, eval.c, deprecation.c, dynl.c:
Replaced uses of SCM_STRING_CHARS with proper uses of
scm_to_locale_string. Replaced SCM_STRINGP with scm_is_string.
Replaced scm_mem2string with scm_from_locale_string.
* simpos.c, posix.c (allocate_string_pointers, environ_list_to_c):
Removed, replaced all uses with scm_i_allocate_string_pointers.
Diffstat (limited to 'libguile/deprecation.c')
-rw-r--r-- | libguile/deprecation.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libguile/deprecation.c b/libguile/deprecation.c index 2c7d2a413..3d4852a2f 100644 --- a/libguile/deprecation.c +++ b/libguile/deprecation.c @@ -105,6 +105,7 @@ SCM_DEFINE(scm_issue_deprecation_warning, { SCM nl = scm_str2string ("\n"); SCM msgs_nl = SCM_EOL; + char *c_msgs; while (SCM_CONSP (msgs)) { if (msgs_nl != SCM_EOL) @@ -113,8 +114,9 @@ SCM_DEFINE(scm_issue_deprecation_warning, msgs = SCM_CDR (msgs); } msgs_nl = scm_string_append (scm_reverse_x (msgs_nl, SCM_EOL)); - scm_c_issue_deprecation_warning (SCM_STRING_CHARS (msgs_nl)); - scm_remember_upto_here_1 (msgs_nl); + c_msgs = scm_to_locale_string (msgs_nl); + scm_c_issue_deprecation_warning (c_msgs); + free (c_msgs); } return SCM_UNSPECIFIED; } |