From 190d4b0d93599e5b58e773dc6375054c3a6e3dbf Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sun, 20 Mar 2011 23:34:42 +0100 Subject: 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. --- libguile/deprecated.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libguile/deprecated.c') 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, -- cgit v1.2.3