noporpoise / jelly-hash Goto Github PK
View Code? Open in Web Editor NEWLow memory multithreaded hash table
Low memory multithreaded hash table
I'm getting below error while comple example:
c -Wall -Wextra -O3 -o jellyTest jellyTest.c num_format.c -lpthread -lm
jellyTest.c: In function ‘main’:
jellyTest.c:24:24: error: incompatible type for argument 1 of ‘jelly_hash_find’
hpos = jelly_hash_find(jhash, in, 1, &inserted);
^
In file included from jellyTest.c:11:0:
jellyhash.h:421:20: note: expected ‘JellyHash * {aka struct *}’ but argument is of type ‘JellyHash {aka struct }’
static inline HKey jelly_hash_find(JellyHash *jh, const char *key,
^
jellyTest.c:28:24: error: incompatible type for argument 1 of ‘jelly_hash_find’
hpos = jelly_hash_find(jhash, in, 0, &inserted);
^
In file included from jellyTest.c:11:0:
jellyhash.h:421:20: note: expected ‘JellyHash * {aka struct *}’ but argument is of type ‘JellyHash {aka struct }’
static inline HKey jelly_hash_find(JellyHash *jh, const char *key,
^
jellyTest.c:30:20: error: incompatible type for argument 1 of ‘jelly_hash_get_key’
jelly_hash_get_key(jhash, hpos, out); // get value for key
^
In file included from jellyTest.c:11:0:
jellyhash.h:548:20: note: expected ‘const JellyHash * {aka const struct *}’ but argument is of type ‘JellyHash {aka struct }’
static inline void jelly_hash_get_key(const JellyHash *jh, HKey loc, char *key)
^
Makefile:14: recipe for target 'jellyTest' failed
make: *** [jellyTest] Error 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.