summaryrefslogtreecommitdiff
path: root/libguile/array-handle.c
diff options
context:
space:
mode:
authorDaniel Llorens <daniel.llorens@bluewin.ch>2015-02-10 17:21:29 +0100
committerDaniel Llorens <daniel.llorens@bluewin.ch>2016-07-11 09:11:50 +0200
commit212c5b0f299660bddd1c0b2c9645b453be72b4ee (patch)
treecb079720422319775fb8671a239bfaa5a25ceac1 /libguile/array-handle.c
parentc557ff68ec84bc29caff45ca71dfe7fc07979059 (diff)
downloadguile-212c5b0f299660bddd1c0b2c9645b453be72b4ee.tar.gz
Unuse array 'contiguous' flag
SCM_I_ARRAY_FLAG_CONTIGUOUS (arrays.h) was set by all array-creating functions (make-typed-array, transpose-array, make-shared-array) but it was only used by array-contents, which needed to traverse the dimensions anyway. * libguile/arrays.c (scm_make_typed_array, scm_from_contiguous_typed_array): don't set the contiguous flag. (scm_transpose_array, scm_make_shared_array): don't call scm_i_ra_set_contp. (scm_array_contents): inline scm_i_ra_set_contp() here. Adopt uniform type check order. Remove redundant comments. (scm_i_ra_set_contp): remove. * libguile/arrays.h: note. * test-suite/tests/arrays.test: test array-contents with rank 0 array.
Diffstat (limited to 'libguile/array-handle.c')
0 files changed, 0 insertions, 0 deletions