ObjFW  Diff

Differences From Artifact [02fc494c69]:

To Artifact [6cafb355bb]:


116
117
118
119
120
121
122
123


124
125
126
127
128
129
130
116
117
118
119
120
121
122

123
124
125
126
127
128
129
130
131







-
+
+







#if defined(HAVE_OBJC_ENUMERATIONMUTATION) && defined(OF_OLD_GNU_RUNTIME)
extern void objc_setEnumerationMutationHandler(void(*handler)(id));
#endif

const char*
_NSPrintForDebugger(id object)
{
	return [[object description] cString];
	return [[object description]
	    cStringWithEncoding: OF_STRING_ENCODING_NATIVE];
}

/* References for static linking */
void _references_to_categories_of_OFObject(void)
{
	_OFObject_Serialization_reference = 1;
}
228
229
230
231
232
233
234
235


236
237
238
239
240
241
242
229
230
231
232
233
234
235

236
237
238
239
240
241
242
243
244







-
+
+







+ (Class)class
{
	return self;
}

+ (OFString*)className
{
	return [OFString stringWithCString: class_getName(self)];
	return [OFString stringWithCString: class_getName(self)
				  encoding: OF_STRING_ENCODING_ASCII];
}

+ (BOOL)isSubclassOfClass: (Class)class
{
	Class iter;

	for (iter = self; iter != Nil; iter = class_getSuperclass(iter))
713
714
715
716
717
718
719
720


721
722
723
724
725
726
727
715
716
717
718
719
720
721

722
723
724
725
726
727
728
729
730







-
+
+







- (Class)class
{
	return isa;
}

- (OFString*)className
{
	return [OFString stringWithCString: class_getName(isa)];
	return [OFString stringWithCString: class_getName(isa)
				  encoding: OF_STRING_ENCODING_ASCII];
}

- (BOOL)isKindOfClass: (Class)class
{
	Class iter;

	for (iter = isa; iter != Nil; iter = class_getSuperclass(iter))