ObjFW  Diff

Differences From Artifact [8ff7710d2c]:

  • File src/objc_properties.m — part of check-in [36c4b260aa] at 2011-03-11 16:47:48 on branch trunk — Get rid of warnings when using latest clang. (user: js size: 2543)

To Artifact [363b73e7b0]:

  • File src/objc_properties.m — part of check-in [c02e48e140] at 2011-04-12 14:51:47 on branch trunk — Use void in declarations when we take no parameters. (user: js size: 2547)

24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# import "threading.h"
# define NUM_SPINLOCKS 8	/* needs to be a power of 2 */
# define SPINLOCK_HASH(p) ((uintptr_t)p >> 4) & (NUM_SPINLOCKS - 1)
static of_spinlock_t spinlocks[NUM_SPINLOCKS];
#endif

BOOL
objc_properties_init()
{
#ifdef OF_THREADS
	size_t i;

	for (i = 0; i < NUM_SPINLOCKS; i++)
		if (!of_spinlock_new(&spinlocks[i]))
			return NO;







|







24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# import "threading.h"
# define NUM_SPINLOCKS 8	/* needs to be a power of 2 */
# define SPINLOCK_HASH(p) ((uintptr_t)p >> 4) & (NUM_SPINLOCKS - 1)
static of_spinlock_t spinlocks[NUM_SPINLOCKS];
#endif

BOOL
objc_properties_init(void)
{
#ifdef OF_THREADS
	size_t i;

	for (i = 0; i < NUM_SPINLOCKS; i++)
		if (!of_spinlock_new(&spinlocks[i]))
			return NO;