#define OK 0 /* ditto on success */
#define DONE 1 /* trinary logic */
#define ALL ""
-#define Nbby 8 /* number of bits/byte */
#define MAXARGS 1000 /* max arguments to exec */
#define NFOLDERS 1000 /* max folder arguments on command line */
* constants in the code below must also be changed to a 1 that's at
* least as wide as the new type.
*/
-#ifndef Nbby
-# define Nbby 8
-#endif
-#define BVEC_WORD(vec, max) ((max) / (sizeof *vec->bits * Nbby))
-#define BVEC_OFFSET(vec, max) ((max) % (sizeof *vec->bits * Nbby))
+#define BVEC_WORD(vec, max) ((max) / (sizeof *vec->bits * CHAR_BIT))
+#define BVEC_OFFSET(vec, max) ((max) % (sizeof *vec->bits * CHAR_BIT))
#define BVEC_BYTES(vec, n) \
((BVEC_WORD (vec, n) + (BVEC_OFFSET (vec, n) == 0 ? 0 : 1)) * \
sizeof *vec->bits)
bytes = BVEC_BYTES (vec, init_size ? init_size : VEC_INIT_SIZE);
vec->bits = mh_xcalloc (1, bytes);
- vec->maxsize = bytes * Nbby;
+ vec->maxsize = bytes * CHAR_BIT;
return vec;
}