diff options
author | Ludovic Courtès <ludo@gnu.org> | 2011-03-20 23:34:42 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2011-03-20 23:34:42 +0100 |
commit | 190d4b0d93599e5b58e773dc6375054c3a6e3dbf (patch) | |
tree | 3feaf151da16529141472853968c14f570b5955a /libguile/goops.c | |
parent | 95c1cfb550e2e753324c5cc57ef5df90034f072a (diff) | |
download | guile-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/goops.c')
-rw-r--r-- | libguile/goops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/goops.c b/libguile/goops.c index c597044f5..f6102085f 100644 --- a/libguile/goops.c +++ b/libguile/goops.c @@ -670,7 +670,7 @@ SCM_DEFINE (scm_sys_prep_layout_x, "%prep-layout!", 1, 0, 0, SCM_MISC_ERROR ("class object doesn't have enough fields: ~S", scm_list_1 (nfields)); - layout = scm_i_make_string (n, &s); + layout = scm_i_make_string (n, &s, 0); i = 0; while (scm_is_pair (getters_n_setters)) { |