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
|
static inline uio_bool
|
||||||
CharHashTable_equal(CharHashTable_HashTable *hashTable,
|
CharHashTable_equal(CharHashTable_HashTable *hashTable,
|
||||||
const char *key1, const char *key2) {
|
const char *key1, const char *key2) {
|
||||||
(void) *hashTable;
|
(void) hashTable;
|
||||||
return strcmp(key1, key2) == 0;
|
return strcmp(key1, key2) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline char *
|
static inline char *
|
||||||
CharHashTable_copy(CharHashTable_HashTable *hashTable,
|
CharHashTable_copy(CharHashTable_HashTable *hashTable,
|
||||||
const char *key) {
|
const char *key) {
|
||||||
(void) *hashTable;
|
(void) hashTable;
|
||||||
return uio_strdup(key);
|
return uio_strdup(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
CharHashTable_freeKey(CharHashTable_HashTable *hashTable,
|
CharHashTable_freeKey(CharHashTable_HashTable *hashTable,
|
||||||
char *key) {
|
char *key) {
|
||||||
(void) *hashTable;
|
(void) hashTable;
|
||||||
uio_free(key);
|
uio_free(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -29,8 +29,8 @@ typedef void HASHTABLE_(Value);
|
|||||||
#define CharHashTable_EQUAL CharHashTable_equal
|
#define CharHashTable_EQUAL CharHashTable_equal
|
||||||
#define CharHashTable_COPY CharHashTable_copy
|
#define CharHashTable_COPY CharHashTable_copy
|
||||||
#define CharHashTable_FREEKEY CharHashTable_freeKey
|
#define CharHashTable_FREEKEY CharHashTable_freeKey
|
||||||
#define CharHashTable_FREEVALUE(hashTable, key) \
|
#define CharHashTable_FREEVALUE(hashTable, value) \
|
||||||
((void) (hashTable), (void) (key))
|
((void) (hashTable), (void) (value))
|
||||||
|
|
||||||
#include "hashtable.h"
|
#include "hashtable.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user