#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <stdint.h>
#include "intset.h"
#include "zmalloc.h"
}
/* Delete integer from intset */
-intset *intsetDelete(intset *is, int64_t value, uint8_t *success) {
+intset *intsetRemove(intset *is, int64_t value, uint8_t *success) {
uint8_t valenc = INTSET_VALUE_ENCODING(value);
uint32_t pos;
if (success) *success = 0;
assert(intsetFind(is,v1));
v2 = rand() % 0xfff;
- is = intsetDelete(is,v2,NULL);
+ is = intsetRemove(is,v2,NULL);
assert(!intsetFind(is,v2));
}
checkConsistency(is);
#ifndef __INTSET_H
#define __INTSET_H
+#include <stdint.h>
typedef struct intset {
uint32_t encoding;
intset *intsetNew(void);
intset *intsetAdd(intset *is, int64_t value, uint8_t *success);
-intset *intsetDelete(intset *is, int64_t value, uint8_t *success);
+intset *intsetRemove(intset *is, int64_t value, uint8_t *success);
uint8_t intsetFind(intset *is, int64_t value);
int64_t intsetRandom(intset *is);