Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Missed critbit.h (thanks to sfossen for the heads up)
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef CRITBIT_H_ | ||
#define CRITBIT_H_ | ||
|
||
extern "C" { | ||
|
||
typedef struct { | ||
void *root; | ||
} critbit0_tree; | ||
|
||
int critbit0_contains(critbit0_tree *t, const char *u); | ||
int critbit0_insert(critbit0_tree *t, const char *u); | ||
int critbit0_delete(critbit0_tree *t, const char *u); | ||
void critbit0_clear(critbit0_tree *t); | ||
int critbit0_allprefixed(critbit0_tree *t, const char *prefix, | ||
int (*handle) (const char *, void *), void *arg); | ||
|
||
}; | ||
|
||
#endif // CRITBIT_H_ |