summaryrefslogtreecommitdiff
path: root/libguile/gc-malloc.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2009-07-18 13:46:29 +0200
committerAndy Wingo <wingo@pobox.com>2009-07-19 15:15:44 +0200
commitf332089ed43761440a2a8c272ee61a709b38cc24 (patch)
treed0ae07ba983db2899f06e78845bf17af4c0674d7 /libguile/gc-malloc.c
parentac8ed3db31769d7ede5e75fba1697e8dde55fae4 (diff)
downloadguile-f332089ed43761440a2a8c272ee61a709b38cc24.tar.gz
bytevector inlinedness indicated by flag, not length
* libguile/bytevectors.h (SCM_BYTEVECTOR_INLINE_P): Change to check a flag instead of checking the length of the bytevector. * libguile/bytevectors.c (make_bytevector_from_buffer): Handle the len <= inline threshold case as well. Set the inline flag as appropriate. (make_bytevector): Updat the inline flag as appropriate. (scm_c_take_bytevector): Just dispatch to make_bytevector_from_buffer. (scm_i_shrink_bytevector): Update the inline flag as appropriate. Update the length when shrinking an already-inlined vector. (STRING_TO_UTF): Fix some indentation.
Diffstat (limited to 'libguile/gc-malloc.c')
0 files changed, 0 insertions, 0 deletions