/* GNU Objective C Runtime class related functions
- Copyright (C) 1993, 1995, 1996, 2009 Free Software Foundation, Inc.
+ Copyright (C) 1993-2020 Free Software Foundation, Inc.
Contributed by Kresten Krab Thorup
This file is part of GCC.
#include <string.h> /* For memcpy() */
#if OBJC_WITH_GC
-# include <gc.h>
-# include <gc_typed.h>
+# include <gc/gc.h>
+# include <gc/gc_typed.h>
#endif
/* FIXME: The semantics of extraBytes are not really clear. */
/* Traditional GNU Objective-C Runtime API. */
id
-class_create_instance (Class class)
-{
- return class_createInstance (class, 0);
-}
-
-/* Temporary, while we are including objc-api.h instead of runtime.h. */
-#undef object_copy
-
-id
object_copy (id object, size_t extraBytes)
{
if ((object != nil) && CLS_ISCLASS (object->class_pointer))
return old_class;
}
}
-
-/*
- Hook functions for memory allocation and disposal. Deprecated
- and currently unused.
-*/
-
-id (*_objc_object_alloc) (Class) = 0;
-id (*_objc_object_dispose) (id) = 0;
-id (*_objc_object_copy) (id) = 0;