summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-04-21 11:13:15 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-04-21 11:22:50 +0200
commit1691d562a3bcb8e84a7a88145f99156615021522 (patch)
treed8c9da6a28c421a915322882e9d571dfb1577740 /src
parent2c77124972e0ad5d8f5667bf96dc2f48d266a17a (diff)
downloadcalcurse-1691d562a3bcb8e84a7a88145f99156615021522.zip
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>
Diffstat (limited to 'src')
-rw-r--r--src/htable.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/htable.h b/src/htable.h
index f5772ee..654bf57 100644
--- a/src/htable.h
+++ b/src/htable.h
@@ -104,7 +104,11 @@ struct type *next /* To build the bucket chain list. */
#define HTABLE_PROTOTYPE(name, type) \
struct type *name##_HTABLE_INSERT(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.