diff options
author | Ludovic Courtes <ludovic.courtes@laas.fr> | 2006-04-02 21:04:30 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2008-09-05 00:46:07 +0200 |
commit | c812243ba15a9d13bb6f1876892e7a1efea9bf4e (patch) | |
tree | f98d42018d65072f7542cae879f2ee45925a9e35 /libguile/strings.c | |
parent | 26224b3f5d795e523e921ec32ffec424893ea035 (diff) | |
download | guile-c812243ba15a9d13bb6f1876892e7a1efea9bf4e.tar.gz |
Small fixes. Gets to the REPL and `abort ()'s soon after.
* libguile/inline.h (scm_cell): Re-added comment about the assignment
order of CAR/CDR.
* libguile/srcprop.c (scm_make_srcprops): Use `scm_gc_malloc ()' instead
of `malloc' + `scm_gc_register_collectable_memory ()'.
* libguile/threads.c (guilify_self_1): Likewise.
(guilify_self_2): Likewise.
* libguile/strings.c (make_stringbuf): Use `GC_MALLOC_ATOMIC ()' instead
of `scm_gc_malloc ()'.
git-archimport-id: lcourtes@laas.fr--2005-libre/guile-core--boehm-gc--1.9--patch-2
Diffstat (limited to 'libguile/strings.c')
-rw-r--r-- | libguile/strings.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libguile/strings.c b/libguile/strings.c index 947bcb498..1640e17bc 100644 --- a/libguile/strings.c +++ b/libguile/strings.c @@ -115,7 +115,8 @@ make_stringbuf (size_t len) } else { - char *mem = scm_gc_malloc (len+1, "string"); + /* FIXME: Create an `scm_gc' equivalent to `GC_MALLOC_ATOMIC ()'. */ + char *mem = GC_MALLOC_ATOMIC (len + 1);/* scm_gc_malloc (len+1, "string"); */ mem[len] = '\0'; return scm_double_cell (STRINGBUF_TAG, (scm_t_bits) mem, (scm_t_bits) len, (scm_t_bits) 0); |