A few superficial fixes.
This commit is contained in:
@@ -56,21 +56,21 @@ CharHashTable_hash(CharHashTable_HashTable *hashTable, const char *key) {
|
||||
static inline uio_bool
|
||||
CharHashTable_equal(CharHashTable_HashTable *hashTable,
|
||||
const char *key1, const char *key2) {
|
||||
(void) *hashTable;
|
||||
(void) hashTable;
|
||||
return strcmp(key1, key2) == 0;
|
||||
}
|
||||
|
||||
static inline char *
|
||||
CharHashTable_copy(CharHashTable_HashTable *hashTable,
|
||||
const char *key) {
|
||||
(void) *hashTable;
|
||||
(void) hashTable;
|
||||
return uio_strdup(key);
|
||||
}
|
||||
|
||||
static inline void
|
||||
CharHashTable_freeKey(CharHashTable_HashTable *hashTable,
|
||||
char *key) {
|
||||
(void) *hashTable;
|
||||
(void) hashTable;
|
||||
uio_free(key);
|
||||
}
|
||||
|
||||
|
||||
@@ -29,8 +29,8 @@ typedef void HASHTABLE_(Value);
|
||||
#define CharHashTable_EQUAL CharHashTable_equal
|
||||
#define CharHashTable_COPY CharHashTable_copy
|
||||
#define CharHashTable_FREEKEY CharHashTable_freeKey
|
||||
#define CharHashTable_FREEVALUE(hashTable, key) \
|
||||
((void) (hashTable), (void) (key))
|
||||
#define CharHashTable_FREEVALUE(hashTable, value) \
|
||||
((void) (hashTable), (void) (value))
|
||||
|
||||
#include "hashtable.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user