ObjFW  Check-in [9f68bba7cd]

Overview
Comment:Fix -[makeObjectsPerformSelector:] and friends.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9f68bba7cd5ca74805c3c9f49d4d775ce77cfd3447acff7b924816686e975342
User & Date: js on 2011-04-03 17:04:53
Other Links: manifest | tags
Context
2011-04-03
18:49
Use __BIGGEST_ALIGNMENT__ if available. check-in: 03f5fe299c user: js tags: trunk
17:04
Fix -[makeObjectsPerformSelector:] and friends. check-in: 9f68bba7cd user: js tags: trunk
17:02
Fix -[performSelector:] and friends. check-in: 3398436156 user: js tags: trunk
Changes

Modified src/OFArray.m from [25e8cbc1c1] to [77dedbc50e].

423
424
425
426
427
428
429

430
431
432
433
434
435
436
437
438
439

440
441
442
443
444
445
446
447

- (void)makeObjectsPerformSelector: (SEL)selector
{
	id *objs = [array cArray];
	size_t i, count = [array count];

	for (i = 0; i < count; i++)

		((void(*)())[objs[i] methodForSelector: selector])();
}

- (void)makeObjectsPerformSelector: (SEL)selector
			withObject: (id)obj
{
	id *objs = [array cArray];
	size_t i, count = [array count];

	for (i = 0; i < count; i++)

		((void(*)(id))[objs[i] methodForSelector: selector])(obj);
}

- (int)countByEnumeratingWithState: (of_fast_enumeration_state_t*)state
			   objects: (id*)objects
			     count: (int)count_
{
	size_t count = [array count];







>
|









>
|







423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449

- (void)makeObjectsPerformSelector: (SEL)selector
{
	id *objs = [array cArray];
	size_t i, count = [array count];

	for (i = 0; i < count; i++)
		((void(*)(id, SEL))[objs[i]
		    methodForSelector: selector])(objs[i], selector);
}

- (void)makeObjectsPerformSelector: (SEL)selector
			withObject: (id)obj
{
	id *objs = [array cArray];
	size_t i, count = [array count];

	for (i = 0; i < count; i++)
		((void(*)(id, SEL, id))[objs[i]
		    methodForSelector: selector])(objs[i], selector, obj);
}

- (int)countByEnumeratingWithState: (of_fast_enumeration_state_t*)state
			   objects: (id*)objects
			     count: (int)count_
{
	size_t count = [array count];