ObjFW  Check-in [da7db4d68c]

Overview
Comment:Minor style fixes
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: da7db4d68cf69ea81034c22526284eae7aeabffd6906ee27570c62e847c7e18a
User & Date: js on 2023-06-19 19:22:50
Other Links: manifest | tags
Context
2023-06-20
18:35
Only set AUTO{CONF,MAKE}_VERSION on OpenBSD check-in: 9de73dcb86 user: js tags: trunk
2023-06-19
19:22
Minor style fixes check-in: da7db4d68c user: js tags: trunk
2023-06-18
14:29
+[OFSystemInfo networkInterfaces]: MAC on *BSD check-in: 8bb7b534a8 user: js tags: trunk
Changes

Modified src/OFObject.m from [6fb92dcbb6] to [e705635cfb].

466
467
468
469
470
471
472
473
474

475
476

477
478
479
480
481
482
483
466
467
468
469
470
471
472


473


474
475
476
477
478
479
480
481







-
-
+
-
-
+







+ (bool)instancesRespondToSelector: (SEL)selector
{
	return class_respondsToSelector(self, selector);
}

+ (bool)conformsToProtocol: (Protocol *)protocol
{
	Class c;

	for (Class iter = self; iter != Nil; iter = class_getSuperclass(iter))
	for (c = self; c != Nil; c = class_getSuperclass(c))
		if (class_conformsToProtocol(c, protocol))
		if (class_conformsToProtocol(iter, protocol))
			return true;

	return false;
}

+ (IMP)instanceMethodForSelector: (SEL)selector
{
571
572
573
574
575
576
577
578

579
580
581
582
583

584
585
586
587
588
589
590
569
570
571
572
573
574
575

576
577
578
579
580

581
582
583
584
585
586
587
588







-
+




-
+







	}

	[self inheritMethodsFromClass: superclass];
}

+ (bool)resolveClassMethod: (SEL)selector
{
	return NO;
	return false;
}

+ (bool)resolveInstanceMethod: (SEL)selector
{
	return NO;
	return false;
}

- (instancetype)init
{
	return self;
}

Modified src/runtime/class.m from [b47c784fc5] to [13704fc982].

54
55
56
57
58
59
60
61

62
63
64
65
66
67
68

69
70
71
72
73
74
75
54
55
56
57
58
59
60

61
62
63
64
65
66
67

68
69
70
71
72
73
74
75







-
+






-
+







class_registerAlias_np(Class class, const char *name)
{
	objc_globalMutex_lock();

	if (classes == NULL) {
		objc_globalMutex_unlock();

		return NO;
		return false;
	}

	objc_hashtable_set(classes, name, (Class)((uintptr_t)class | 1));

	objc_globalMutex_unlock();

	return YES;
	return true;
}

static void
registerSelectors(Class class)
{
	struct objc_method_list *iter;
	unsigned int i;