ObjFW  Check-in [aa179b6d0a]

Overview
Comment:rootclass->isa->superclass is rootclass.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | runtime
Files: files | file ages | folders
SHA3-256: aa179b6d0a461414cf31fb0cab4452251a084da7e74625e3dcdce8d2a09d2df2
User & Date: js on 2012-03-23 15:42:59
Other Links: branch diff | manifest | tags
Context
2012-04-03
18:30
Make clang happy. check-in: 931a8783ca user: js tags: runtime
2012-03-23
15:42
rootclass->isa->superclass is rootclass. check-in: aa179b6d0a user: js tags: runtime
14:54
Add class_getMethodImplementation(). check-in: 46105d56c7 user: js tags: runtime
Changes

Modified src/runtime/class.m from [16e53b23a5] to [1eef7dbe27].

212
213
214
215
216
217
218
219
220
221
222
223

224
225
226
227
228
229
230
231
232
212
213
214
215
216
217
218





219
220

221
222
223
224
225
226
227







-
-
-
-
-
+

-







			ERROR("Class %s not found, which is the superclass for "
			    "class %s!", superclass, cls->name);

		cls->isa->superclass = cls->superclass->isa;

		add_subclass(cls);
		add_subclass(cls->isa);
	} else if ((superclass = ((struct objc_abi_class*)cls->isa)->superclass)
	    != NULL) {
		if (strcmp(superclass, name))
			abort();

	} else
		cls->isa->superclass = cls;
	}

	objc_update_dtable(cls);
	objc_update_dtable(cls->isa);

	cls->info |= OBJC_CLASS_INFO_INITIALIZED;
	cls->isa->info |= OBJC_CLASS_INFO_INITIALIZED;