ObjFW  Check-in [5d729d9ba0]

Overview
Comment:Add a few more const
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 5d729d9ba0afe2a0ded0f78a599fb48d90ce2e564d5e5d183cb7bff5b90f496a
User & Date: js on 2015-04-14 19:46:01
Other Links: manifest | tags
Context
2015-04-20
20:46
Add tests for OFKernelEventObserver check-in: d4a1b1966d user: js tags: trunk
2015-04-14
19:46
Add a few more const check-in: 5d729d9ba0 user: js tags: trunk
19:34
OFKernelEventObserver*.m: Minor cleanup check-in: 5924cc3a92 user: js tags: trunk
Changes

Modified src/OFDictionary_hashtable.m from [bb3cc5cb8b] to [69f9af36bb].

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

Modified src/OFSet_hashtable.m from [e4af892b40] to [2849e8c8c1].

48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68

static bool
equal(void *value1, void *value2)
{
	return [(id)value1 isEqual: (id)value2];
}

static of_map_table_functions_t keyFunctions = {
	.retain = retain,
	.release = release,
	.hash = hash,
	.equal = equal
};
static of_map_table_functions_t valueFunctions = { 0 };

@implementation OFSet_hashtable
- init
{
	return [self initWithCapacity: 0];
}








|





|







48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68

static bool
equal(void *value1, void *value2)
{
	return [(id)value1 isEqual: (id)value2];
}

static const of_map_table_functions_t keyFunctions = {
	.retain = retain,
	.release = release,
	.hash = hash,
	.equal = equal
};
static const of_map_table_functions_t valueFunctions = { 0 };

@implementation OFSet_hashtable
- init
{
	return [self initWithCapacity: 0];
}