Some simple C++ modernizations before I make bitvec RAII.
This commit is contained in:
@ -3,13 +3,13 @@
|
||||
|
||||
#include "d_size.h"
|
||||
|
||||
#define BVEC_TYPE uchar_t
|
||||
#define BVEC_SIZE sizeof(BVEC_TYPE)
|
||||
using BVEC_TYPE= uchar_t;
|
||||
constexpr auto BVEC_SIZE= sizeof(BVEC_TYPE);
|
||||
|
||||
typedef struct {
|
||||
struct bitvec_t {
|
||||
BVEC_TYPE *vec;
|
||||
int len; /* number of bits [1 based] */
|
||||
} bitvec_t;
|
||||
};
|
||||
|
||||
|
||||
extern "C" {
|
||||
|
||||
Reference in New Issue
Block a user