projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add wizard mark. Add configuration file. Move some conf to its file.
[bertos.git]
/
bertos
/
struct
/
hashtable.h
diff --git
a/bertos/struct/hashtable.h
b/bertos/struct/hashtable.h
index 363241e3d14f7de589e51a99bb5bb879c23a59da..9a102a8a9ce9a35327540f94be9470f45159e66f 100644
(file)
--- a/
bertos/struct/hashtable.h
+++ b/
bertos/struct/hashtable.h
@@
-30,6
+30,8
@@
* Copyright 2004 Giovanni Bajo
* -->
*
* Copyright 2004 Giovanni Bajo
* -->
*
+ * \author Giovanni Bajo <rasky@develer.com>
+ *
* \brief Portable hash table
*
* This file implements a portable hash table, with the following features:
* \brief Portable hash table
*
* This file implements a portable hash table, with the following features:
@@
-48,23
+50,19
@@
* a marker for a free node, so it is invalid to store a NULL pointer in the table
* with \c ht_insert().
*
* a marker for a free node, so it is invalid to store a NULL pointer in the table
* with \c ht_insert().
*
- *
\version $Id$
- *
\author Giovanni Bajo <rasky@develer.com>
+ *
$WIZ$ module_name = "hashtable"
+ *
$WIZ$ module_configuration = "bertos/cfg/cfg_hashtable.h"
*/
#ifndef STRUCT_HASHTABLE_H
#define STRUCT_HASHTABLE_H
*/
#ifndef STRUCT_HASHTABLE_H
#define STRUCT_HASHTABLE_H
+#include "cfg/cfg_hashtable.h"
+
#include <cfg/compiler.h>
#include <cfg/macros.h>
#include <cfg/debug.h>
#include <cfg/compiler.h>
#include <cfg/macros.h>
#include <cfg/debug.h>
-/**
- * Enable/disable support to declare special hash tables which maintain a copy of
- * the key internally instead of relying on the hook to extract it from the data.
- */
-#define CONFIG_HT_OPTIONAL_INTERNAL_KEY 1
-
/// Maximum length of the internal key (use (2^n)-1 for slight speedup)
#define INTERNAL_KEY_MAX_LENGTH 15
/// Maximum length of the internal key (use (2^n)-1 for slight speedup)
#define INTERNAL_KEY_MAX_LENGTH 15
@@
-151,7
+149,7
@@
typedef struct
* \param ht Hash table declared with \c DECLARE_HASHTABLE
*
* \note This function must be called before using the hash table. Optionally,
* \param ht Hash table declared with \c DECLARE_HASHTABLE
*
* \note This function must be called before using the hash table. Optionally,
- * it can be called later in the program to clear the hash table,
+ * it can be called later in the program to clear the hash table,
* removing all its elements.
*/
void ht_init(struct HashTable* ht);
* removing all its elements.
*/
void ht_init(struct HashTable* ht);