]> Savannah Git Hosting - gnulib.git/commitdiff
bitset: rename BITSET_VARRAY as BITSET_VECTOR
authorAkim Demaille <akim.demaille@gmail.com>
Wed, 28 Nov 2018 06:24:29 +0000 (07:24 +0100)
committerAkim Demaille <akim.demaille@gmail.com>
Thu, 29 Nov 2018 04:34:54 +0000 (05:34 +0100)
For consistency with the name of the file.

* doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
* lib/bitset/stats.c, lib/bitset/vector.c
(BITSET_VARRAY): Rename as...
(BITSET_VECTOR): this.

ChangeLog
doc/bitset.texi
lib/bitset.c
lib/bitset/base.h
lib/bitset/stats.c
lib/bitset/vector.c

index aec0ac21b185b7315550bd45f3ecac407d7c4b9d..f3d907d99faa6852fe86a53945c875b1030269fb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
+
+       bitset: rename BITSET_VARRAY as BITSET_VECTOR
+       For consistency with the name of the file.
+       * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
+       * lib/bitset/stats.c, lib/bitset/vector.c
+       (BITSET_VARRAY): Rename as...
+       (BITSET_VECTOR): this.
+
 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
 
        strerror_r-posix: memmove, not memcpy
index 614961b95492c29159135907d0ff6ecd6bf9590b..d624c0952a1923ebb29413408c94a7348df947bb 100644 (file)
@@ -18,7 +18,7 @@ very sparse sets).
 Expandable table of pointers to arrays of bits (variable size, less
 storage for large sparse sets).  Faster than @code{BITSET_LIST} for
 random access.
-@item BITSET_VARRAY
+@item BITSET_VECTOR
 Variable array of bits (variable size, fast for dense bitsets).
 @item BITSET_STATS
 Wrapper bitset for internal use only.  Used for gathering statistics
index 8b8982091367b7761cc9bf7beb536373aea5afc5..0d75fe1a01c4518fb6a30c7a224412aa5b8b4357 100644 (file)
@@ -58,7 +58,7 @@ bitset_bytes (enum bitset_type type, bitset_bindex n_bits)
     case BITSET_TABLE:
       return ebitset_bytes (n_bits);
 
-    case BITSET_VARRAY:
+    case BITSET_VECTOR:
       return vbitset_bytes (n_bits);
     }
 }
@@ -85,7 +85,7 @@ bitset_init (bitset bset, bitset_bindex n_bits, enum bitset_type type)
     case BITSET_TABLE:
       return ebitset_init (bset, n_bits);
 
-    case BITSET_VARRAY:
+    case BITSET_VECTOR:
       return vbitset_init (bset, n_bits);
     }
 }
@@ -109,7 +109,7 @@ bitset_type_choose (bitset_bindex n_bits ATTRIBUTE_UNUSED, unsigned attr)
 
   /* If no attributes selected, choose a good compromise.  */
   if (!attr)
-    return BITSET_VARRAY;
+    return BITSET_VECTOR;
 
   if (attr & BITSET_SPARSE)
     return BITSET_LIST;
@@ -120,7 +120,7 @@ bitset_type_choose (bitset_bindex n_bits ATTRIBUTE_UNUSED, unsigned attr)
   if (attr & BITSET_GREEDY)
     return BITSET_TABLE;
 
-  return BITSET_VARRAY;
+  return BITSET_VECTOR;
 }
 
 
index b974078be5e492aa827a3c3deac56963db243048..ed5bb3baa6eef3b786d96d09f841cb23bddb93ec 100644 (file)
    BITSET_TABLE:  Expandable table of pointers to arrays of bits
                   (variable size, less storage for large sparse sets).
                   Faster than BITSET_LIST for random access.
-   BITSET_VARRAY: Variable array of bits (variable size, fast for
+   BITSET_VECTOR: Variable array of bits (variable size, fast for
                   dense bitsets).
    BITSET_STATS:  Wrapper bitset for internal use only.  Used for gathering
                   statistics and/or better run-time checking.
 */
-enum bitset_type {BITSET_ARRAY, BITSET_LIST, BITSET_TABLE, BITSET_VARRAY,
+enum bitset_type {BITSET_ARRAY, BITSET_LIST, BITSET_TABLE, BITSET_VECTOR,
                   BITSET_TYPE_NUM, BITSET_STATS};
 #define BITSET_TYPE_NAMES {"abitset", "lbitset", "ebitset", "vbitset"}
 
index 4947ffbb50287eb339a942c91734416f9f1c5537..c6e457b1fec9c7a520194e3029b42ebfd0900597 100644 (file)
@@ -716,7 +716,7 @@ bitset_stats_init (bitset bset, bitset_bindex n_bits, enum bitset_type type)
       }
       break;
 
-    case BITSET_VARRAY:
+    case BITSET_VECTOR:
       {
         size_t bytes = vbitset_bytes (n_bits);
         bset->s.bset = xcalloc (1, bytes);
index 75e73450548b52478fce1fb24ff2f87ad0f72a1c..df54ee085bc72e326e48c9d6b8098a466e2733ba 100644 (file)
@@ -966,7 +966,7 @@ struct bitset_vtable vbitset_vtable = {
   vbitset_list,
   vbitset_list_reverse,
   NULL,
-  BITSET_VARRAY
+  BITSET_VECTOR
 };