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