summaryrefslogtreecommitdiff
path: root/libguile/deprecated.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2020-04-12 22:17:22 +0200
committerAndy Wingo <wingo@pobox.com>2020-04-12 22:17:22 +0200
commitcae74359decc1a9d28c7892c7344512178eeac2e (patch)
tree72984b9ae43c5aa79ad285caedbda6f83091cdb2 /libguile/deprecated.h
parent24a34074ef8fd91c111ed9987375f25925f69e26 (diff)
downloadguile-cae74359decc1a9d28c7892c7344512178eeac2e.tar.gz
Replace bit-count with bitvector-count
The old name was wonky and had bad argument order. * NEWS: Add entry. * doc/ref/api-data.texi (Bit Vectors): Update. * libguile/bitvectors.h: * libguile/bitvectors.c (VALIDATE_BITVECTOR): New helper. (scm_bitvector_count): New function. * libguile/deprecated.h: * libguile/deprecated.c (scm_bit_count): Deprecate. * module/ice-9/sandbox.scm (bitvector-bindings): Replace bit-count with bitvector-count. * module/srfi/srfi-60.scm: No need to #:replace bit-count. * module/system/vm/frame.scm (available-bindings): Use bitvector-count. * test-suite/tests/bitvectors.test ("bitvector-count"): Add test.
Diffstat (limited to 'libguile/deprecated.h')
-rw-r--r--libguile/deprecated.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libguile/deprecated.h b/libguile/deprecated.h
index fb8854326..3bdef4ab4 100644
--- a/libguile/deprecated.h
+++ b/libguile/deprecated.h
@@ -115,6 +115,7 @@ typedef struct scm_thread scm_i_thread SCM_DEPRECATED_TYPE;
SCM_DEPRECATED char* scm_find_executable (const char *name);
+SCM_DEPRECATED SCM scm_bit_count (SCM item, SCM seq);
SCM_DEPRECATED SCM scm_istr2bve (SCM str);
void scm_i_init_deprecated (void);