summaryrefslogtreecommitdiff
path: root/m4/inet_ntop.m4
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-11-15 19:34:38 +0100
committerLudovic Courtès <ludo@gnu.org>2009-11-16 09:23:45 +0100
commit3fe87cf7aff396d7bd993aa009f48eb8afd6c1cd (patch)
treea27750be21b5bc418e564b4a665a804bf46c3729 /m4/inet_ntop.m4
parentc4daa519107798d06ae96d2f69dc211fc57cc8a3 (diff)
downloadguile-3fe87cf7aff396d7bd993aa009f48eb8afd6c1cd.tar.gz
Re-add an indirection in bytevectors.
The intent is to allow for mmap(3) bindings and to actually reuse user-provided buffers in `scm_c_take_bytevector ()'. * libguile/bytevectors.h (SCM_BYTEVECTOR_HEADER_SIZE): Increment. (SCM_BYTEVECTOR_CONTENTS): Take the pointer from the second word. (SCM_BYTEVECTOR_CONTIGUOUS_P): New macro. (SCM_BYTEVECTOR_ELEMENT_TYPE): Adjust to live alongside the CONTIGUOUS flag. * libguile/bytevectors.c (SCM_BYTEVECTOR_SET_CONTENTS, SCM_BYTEVECTOR_SET_CONTIGUOUS_P): New macros. (SCM_BYTEVECTOR_SET_ELEMENT_TYPE): Adjust. (SCM_BYTEVECTOR_TYPED_LENGTH): Properly parenthesize. (make_bytevector): Adjust to new bytevector header. (make_bytevector_from_buffer): Reuse CONTENTS. (scm_c_shrink_bytevector): Differentiate between contiguous and non-contiguous bytevectors.
Diffstat (limited to 'm4/inet_ntop.m4')
0 files changed, 0 insertions, 0 deletions