diff options
author | Daniel Llorens <daniel.llorens@bluewin.ch> | 2015-02-11 12:58:01 +0100 |
---|---|---|
committer | Daniel Llorens <daniel.llorens@bluewin.ch> | 2016-11-23 11:49:35 +0100 |
commit | 85ac9cce0aa0d50274377244cf73c8776fb36db6 (patch) | |
tree | dab37284c85fc1b2e5ade9a2cacdfa6d4d18176d /libguile/bytevectors.c | |
parent | 4e766795b2412f42a9c71441e6cc0b36d8a4c5dc (diff) | |
download | guile-85ac9cce0aa0d50274377244cf73c8776fb36db6.tar.gz |
Reuse SCM_BYTEVECTOR_TYPED_LENGTH in scm_array_get_handle
* libguile/bytevectors.h (SCM_BYTEVECTOR_TYPE_SIZE,
SCM_BYTEVECTOR_TYPED_LENGTH): Moved from libguile/bytevectors.c.
* libguile/array-handle.c (scm_array_get_handle): Reuse
SCM_BYTEVECTOR_TYPED_LENGTH.
Diffstat (limited to 'libguile/bytevectors.c')
-rw-r--r-- | libguile/bytevectors.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libguile/bytevectors.c b/libguile/bytevectors.c index e426ae3a7..cf247dcd4 100644 --- a/libguile/bytevectors.c +++ b/libguile/bytevectors.c @@ -192,11 +192,6 @@ #define SCM_BYTEVECTOR_SET_PARENT(_bv, _parent) \ SCM_SET_CELL_OBJECT_3 ((_bv), (_parent)) -#define SCM_BYTEVECTOR_TYPE_SIZE(var) \ - (scm_i_array_element_type_sizes[SCM_BYTEVECTOR_ELEMENT_TYPE (var)]/8) -#define SCM_BYTEVECTOR_TYPED_LENGTH(var) \ - (SCM_BYTEVECTOR_LENGTH (var) / SCM_BYTEVECTOR_TYPE_SIZE (var)) - /* The empty bytevector. */ SCM scm_null_bytevector = SCM_UNSPECIFIED; |