*** empty log message ***
authorMarius Vollmer <mvo@zagadka.de>
Tue, 11 Jan 2005 00:32:18 +0000 (00:32 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Tue, 11 Jan 2005 00:32:18 +0000 (00:32 +0000)
NEWS
libguile/ChangeLog

diff --git a/NEWS b/NEWS
index 6060aab..6b9ad5a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -834,6 +834,11 @@ Use scm_is_keyword and scm_keyword_to_symbol instead, but note that
 the latter returns the true name of the keyword, not the 'dash name',
 as SCM_KEYWORDSYM used to do.
 
+** A new way to access arrays in a thread-safe and efficient way has
+   been added.
+
+See the manual, node "Accessing Arrays From C".
+
 ** The old uniform vector and bitvector implementations have been
    unceremoniously removed.
 
@@ -863,6 +868,18 @@ The following macros have been removed: SCM_VECTOR_BASE,
 SCM_SET_VECTOR_BASE, SCM_MAKE_VECTOR_TAG, SCM_SET_VECTOR_LENGTH,
 SCM_VELTS_AS_STACKITEMS, SCM_SETVELTS, SCM_GC_WRITABLE_VELTS.
 
+** Some C functions related to arrays have been deprecated.
+
+Migrate according to the following table:
+
+    scm_make_uve        -> scm_make_typed_aray, scm_make_u8vector etc.
+    scm_make_ra         -> scm_make_array
+    scm_shap2ra         -> scm_make_array
+    scm_cvref           -> scm_c_generalized_vector_ref
+    scm_ra_set_contp    -> do not use
+    scm_aind            -> scm_array_handle_pos
+    scm_raprin1         -> scm_display or scm_write
+
 ** SCM_CELL_WORD_LOC has been deprecated.
 
 Use the new macro SCM_CELL_OBJECT_LOC instead, which returns a pointer
index 5cfd066..966c411 100644 (file)
@@ -1,3 +1,23 @@
+2005-01-11  Marius Vollmer  <mvo@zagadka.de>
+
+       * ramap.c: Replace uses of scm_make_ra with scm_i_make_ra.
+       (GVREF, GVSET): New abbreviations.  Use them everywhere instead of
+       scm_c_generalized_vector_ref and scm_cvref, and
+       scm_c_generalized_vector_set_x, respectively.
+       (RVREF, IVDEP, BINARY_ELTS_CODE, BINARY_PAIR_ELTS_CODE,
+       UNARY_ELTS_CODE, UNARY_PAIR_ELTS_CODE): Removed since unused.
+
+       * unif.h, unif.c (indices_to_pos, scm_array_handle_pos): Renamed
+       former to latter and made public.  Changed all uses.
+       (scm_i_make_ra): Made public, changed tag param to enclosed flag.
+       (scm_make_ra): Deprecated, changed all uses to scm_i_make_ra.
+       (scm_i_shap2ra): New internal version of scm_shap2ra.
+       (scm_shap2ra): Deprecated, changed all uses to scm_i_shap2ra.
+       (scm_i_ra_set_contp): New internal version of scm_ra_set_contp.
+       (scm_ra_set_contp): Deprecated, changed all uses to
+       scm_i_ra_set_contp.
+       (scm_cvref, scm_aind, scm_raprin1): Deprecated.
+       
 2005-01-10  Marius Vollmer  <marius.vollmer@uni-dortmund.de>
 
        * eval.c (scm_eval): Added example to docstring.  Thanks to Issac