mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
Version 1.7.0
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16751 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
39bcf00683
commit
9a0532fde6
7 changed files with 77 additions and 44 deletions
|
@ -113,28 +113,6 @@ objc_check_undefineds(FILE *errorStream)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* Invalidate the dtable so it will be rebuild when a message is sent to
|
||||
the object */
|
||||
static void
|
||||
objc_invalidate_dtable(Class class)
|
||||
{
|
||||
#ifndef NeXT_RUNTIME
|
||||
Class s;
|
||||
|
||||
if (class->dtable == objc_get_uninstalled_dtable())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
sarray_free(class->dtable);
|
||||
__objc_install_premature_dtable(class);
|
||||
for (s = class->subclass_list; s; s = s->sibling_class)
|
||||
{
|
||||
objc_invalidate_dtable(s);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Initialize for dynamic loading */
|
||||
static int
|
||||
objc_initialize_loading(FILE *errorStream)
|
||||
|
@ -171,13 +149,6 @@ objc_initialize_loading(FILE *errorStream)
|
|||
static void
|
||||
objc_load_callback(Class class, struct objc_category * category)
|
||||
{
|
||||
/* Invalidate the dtable, so it will be rebuilt correctly */
|
||||
if (class != 0 && category != 0)
|
||||
{
|
||||
objc_invalidate_dtable(class);
|
||||
objc_invalidate_dtable(class->class_pointer);
|
||||
}
|
||||
|
||||
if (_objc_load_load_callback)
|
||||
{
|
||||
_objc_load_load_callback(class, category);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue