src/htable.h: Add missing prototypes
We only generated prototypes for a small subset of all supported functions in the HTABLE_PROTOTYPE macro. Add missing prototypes to allow for accessing corresponding functions if HTABLE_GENERATE is used in a separate compilation unit. This also fixes a couple of compiler warnings seen with "-Wmissing-prototypes". Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
parent
2c77124972
commit
1691d562a3
@ -104,7 +104,11 @@ struct type *next /* To build the bucket chain list. */
|
|||||||
#define HTABLE_PROTOTYPE(name, type) \
|
#define HTABLE_PROTOTYPE(name, type) \
|
||||||
struct type *name##_HTABLE_INSERT(struct name *, struct type *); \
|
struct type *name##_HTABLE_INSERT(struct name *, struct type *); \
|
||||||
struct type *name##_HTABLE_REMOVE(struct name *, struct type *); \
|
struct type *name##_HTABLE_REMOVE(struct name *, struct type *); \
|
||||||
struct type *name##_HTABLE_LOOKUP(struct name *, struct type *);
|
struct type *name##_HTABLE_LOOKUP(struct name *, struct type *); \
|
||||||
|
uint32_t name##_HTABLE_FIND_BKT(struct name *, struct type *); \
|
||||||
|
int name##_HTABLE_CHAIN_LEN(struct name *, uint32_t); \
|
||||||
|
struct type *name##_HTABLE_FIRST_FROM(struct name *, int); \
|
||||||
|
struct type *name##_HTABLE_NEXT(struct name *, struct type *);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Generate function bodies.
|
* Generate function bodies.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user