summaryrefslogtreecommitdiff
path: root/libguile/deprecated.h
diff options
context:
space:
mode:
authorDaniel Llorens <daniel.llorens@bluewin.ch>2016-11-18 16:23:05 +0100
committerDaniel Llorens <daniel.llorens@bluewin.ch>2016-11-23 13:05:49 +0100
commitfa4a22971a122e30e6b167bfe7ac209d02ffafc4 (patch)
treee89cbfa9d6f5ce3bdae7f1725971cf697e3ced18 /libguile/deprecated.h
parent0bd7562c961223cd70e772bac8b7ae21b34f1aed (diff)
Deprecate scm_from_contiguous_array
scm_from_contiguous_array() was undocumented, unused within Guile, and can be replaced by make-array + array-copy! without requiring contiguity and without loss of performance. * libguile/arrays.c (scm_array_contents): Do not rely on SCM_I_ARRAY_CONTP. * test-suite/tests/arrays.test: Test array-contents with 0-rank array. * libguile/arrays.h: Declare scm_i_shap2ra(), SCM_SET_ARRAY_CONTIGUOUS_FLAG, SCM_CLR_ARRAY_CONTIGUOUS_FLAG so that scm_from_contiguous_array() can keep using them. * libguile/deprecated.c (scm_from_contiguous_array): Move here from arrays.c. * libguile/deprecated.h (scm_from_contiguous_array): Deprecate. * NEWS: Add deprecation notice.
Diffstat (limited to 'libguile/deprecated.h')
-rw-r--r--libguile/deprecated.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libguile/deprecated.h b/libguile/deprecated.h
index 782e84564..69f9e1ef0 100644
--- a/libguile/deprecated.h
+++ b/libguile/deprecated.h
@@ -256,6 +256,16 @@ SCM_DEPRECATED SCM scm_apply_with_dynamic_root (SCM proc, SCM a1,
+/* Deprecated 2016-11-18. Never documented. Unnecessary, since
+ array-copy! already unrolls and does it in more general cases. */
+/* With this also remove SCM_I_ARRAY_FLAG_CONTIGUOUS,
+ SCM_SET_ARRAY_CONTIGUOUS_FLAG, SCM_CLR_ARRAY_CONTIGUOUS_FLAG,
+ scm_i_ra_set_contp, and uses thereof. */
+SCM_DEPRECATED SCM scm_from_contiguous_array (SCM bounds, const SCM *elts,
+ size_t len);
+
+
+
void scm_i_init_deprecated (void);
#endif