56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
static bool
equal(void *value1, void *value2)
{
return [(id)value1 isEqual: (id)value2];
}
static of_map_table_functions_t keyFunctions = {
.retain = copy,
.release = release,
.hash = hash,
.equal = equal
};
static of_map_table_functions_t valueFunctions = {
.retain = retain,
.release = release,
.hash = hash,
.equal = equal
};
@implementation OFDictionary_hashtable
|
|
|
|
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
static bool
equal(void *value1, void *value2)
{
return [(id)value1 isEqual: (id)value2];
}
static const of_map_table_functions_t keyFunctions = {
.retain = copy,
.release = release,
.hash = hash,
.equal = equal
};
static const of_map_table_functions_t valueFunctions = {
.retain = retain,
.release = release,
.hash = hash,
.equal = equal
};
@implementation OFDictionary_hashtable
|