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 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
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
case BITSET_TABLE:
return ebitset_bytes (n_bits);
- case BITSET_VARRAY:
+ case BITSET_VECTOR:
return vbitset_bytes (n_bits);
}
}
case BITSET_TABLE:
return ebitset_init (bset, n_bits);
- case BITSET_VARRAY:
+ case BITSET_VECTOR:
return vbitset_init (bset, n_bits);
}
}
/* If no attributes selected, choose a good compromise. */
if (!attr)
- return BITSET_VARRAY;
+ return BITSET_VECTOR;
if (attr & BITSET_SPARSE)
return BITSET_LIST;
if (attr & BITSET_GREEDY)
return BITSET_TABLE;
- return BITSET_VARRAY;
+ return BITSET_VECTOR;
}
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"}
}
break;
- case BITSET_VARRAY:
+ case BITSET_VECTOR:
{
size_t bytes = vbitset_bytes (n_bits);
bset->s.bset = xcalloc (1, bytes);
vbitset_list,
vbitset_list_reverse,
NULL,
- BITSET_VARRAY
+ BITSET_VECTOR
};