compilation errors corrected and license updated to MOZILLA PUBLIC LICENSE

This commit is contained in:
fc_botelho
2006-04-27 17:30:19 +00:00
parent 9eccc3d4e5
commit 09ef0957fc
10 changed files with 425 additions and 319 deletions

View File

@@ -1,6 +1,6 @@
#include <cmph.h>
#include <stdio.h>
#include <string.h>
// Create minimal perfect hash function from in-disk keys using BMZ algorithm
int main(int argc, char **argv)
{

View File

@@ -1,5 +1,5 @@
#include <cmph.h>
#include <string.h>
// Create minimal perfect hash function from in-memory vector
int main(int argc, char **argv)
{
@@ -8,7 +8,7 @@ int main(int argc, char **argv)
"ffffffffff", "gggggggggg", "hhhhhhhhhh", "iiiiiiiiii", "jjjjjjjjjj"};
unsigned int nkeys = 10;
// Source of keys
cmph_io_adapter_t *source = cmph_io_vector_adapter(vector, nkeys);
cmph_io_adapter_t *source = cmph_io_vector_adapter((char **)vector, nkeys);
//Create minimal perfect hash function using the default (chm) algorithm.
cmph_config_t *config = cmph_config_new(source);