summaryrefslogtreecommitdiff
path: root/libguile/generalized-arrays.h
diff options
context:
space:
mode:
authorDaniel Llorens <daniel.llorens@bluewin.ch>2015-02-09 12:11:52 +0100
committerDaniel Llorens <daniel.llorens@bluewin.ch>2016-11-23 11:49:35 +0100
commit4e766795b2412f42a9c71441e6cc0b36d8a4c5dc (patch)
treed88c43b4d11a633d4088c1df31f9892aebb3daa8 /libguile/generalized-arrays.h
parentd236d4d33fdab83127a4d72c2b561649a5c46b6c (diff)
downloadguile-4e766795b2412f42a9c71441e6cc0b36d8a4c5dc.tar.gz
Avoid unneeded internal use of array handles
* libguile/arrays.c (scm_shared_array_root): Adopt uniform check order. (scm_shared_array_offset, scm_shared_array_increments): Use the array fields directly just as scm_shared_array_root does. (scm_c_array_rank): Moved from libguile/generalized-arrays.c. Don't use array handles, but follow the same type check sequence as the other array functions (shared-array-root, etc). (scm_array_rank): Moved from libguile/generalized-arrays.h. * libguile/arrays.h: Move prototypes here. * test-suite/tests/arrays.test: Tests for shared-array-offset, shared-array-increments.
Diffstat (limited to 'libguile/generalized-arrays.h')
-rw-r--r--libguile/generalized-arrays.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/libguile/generalized-arrays.h b/libguile/generalized-arrays.h
index dfdb8bd03..cfa69051b 100644
--- a/libguile/generalized-arrays.h
+++ b/libguile/generalized-arrays.h
@@ -41,9 +41,6 @@ SCM_INTERNAL SCM scm_array_p_2 (SCM);
SCM_API int scm_is_typed_array (SCM obj, SCM type);
SCM_API SCM scm_typed_array_p (SCM v, SCM type);
-SCM_API size_t scm_c_array_rank (SCM ra);
-SCM_API SCM scm_array_rank (SCM ra);
-
SCM_API size_t scm_c_array_length (SCM ra);
SCM_API SCM scm_array_length (SCM ra);