ObjFW  Diff

Differences From Artifact [20660be952]:

To Artifact [120ac4ff9d]:


44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59

static bool
obj_equal(const void *obj1, const void *obj2)
{
	return (obj1 == obj2);
}

static void __attribute__((__constructor__))
init(void)
{
	hashtable = objc_hashtable_new(obj_hash, obj_equal, 2);

#ifdef OF_HAVE_THREADS
	if (!of_spinlock_new(&spinlock))
		OBJC_ERROR("Failed to create spinlock!")
#endif







|
<







44
45
46
47
48
49
50
51

52
53
54
55
56
57
58

static bool
obj_equal(const void *obj1, const void *obj2)
{
	return (obj1 == obj2);
}

OF_CONSTRUCTOR()

{
	hashtable = objc_hashtable_new(obj_hash, obj_equal, 2);

#ifdef OF_HAVE_THREADS
	if (!of_spinlock_new(&spinlock))
		OBJC_ERROR("Failed to create spinlock!")
#endif