summaryrefslogtreecommitdiff
path: root/libguile/deprecated.c
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2011-03-20 23:34:42 +0100
committerLudovic Courtès <ludo@gnu.org>2011-03-20 23:34:42 +0100
commit190d4b0d93599e5b58e773dc6375054c3a6e3dbf (patch)
tree3feaf151da16529141472853968c14f570b5955a /libguile/deprecated.c
parent95c1cfb550e2e753324c5cc57ef5df90034f072a (diff)
downloadguile-190d4b0d93599e5b58e773dc6375054c3a6e3dbf.tar.gz
Make VM string literals immutable.
* libguile/strings.c (scm_i_make_string, scm_i_make_wide_string): Add `read_only_p' parameter. All callers updated. * libguile/vm-i-loader.c (load_string, load_wide_string): Push read-only strings. * test-suite/tests/strings.test ("literals"): New test prefix.
Diffstat (limited to 'libguile/deprecated.c')
-rw-r--r--libguile/deprecated.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/deprecated.c b/libguile/deprecated.c
index fd23e2dc9..4d6027c35 100644
--- a/libguile/deprecated.c
+++ b/libguile/deprecated.c
@@ -2281,7 +2281,7 @@ scm_allocate_string (size_t len)
{
scm_c_issue_deprecation_warning
("`scm_allocate_string' is deprecated. Use scm_c_make_string instead.");
- return scm_i_make_string (len, NULL);
+ return scm_i_make_string (len, NULL, 0);
}
SCM_DEFINE (scm_make_keyword_from_dash_symbol, "make-keyword-from-dash-symbol", 1, 0, 0,