1998-09-21 03:22:07 +02:00
|
|
|
/* GNU Objective C Runtime internal declarations
|
2019-01-01 13:31:55 +01:00
|
|
|
Copyright (C) 1993-2019 Free Software Foundation, Inc.
|
1998-09-21 03:22:07 +02:00
|
|
|
Contributed by Kresten Krab Thorup
|
|
|
|
|
Makefile.in, [...]: Replace "GNU CC" with "GCC".
2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
* Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
From-SVN: r67131
2003-05-23 22:04:58 +02:00
|
|
|
This file is part of GCC.
|
1998-09-21 03:22:07 +02:00
|
|
|
|
Makefile.in, [...]: Replace "GNU CC" with "GCC".
2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
* Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
From-SVN: r67131
2003-05-23 22:04:58 +02:00
|
|
|
GCC is free software; you can redistribute it and/or modify it under the
|
1998-09-21 03:22:07 +02:00
|
|
|
terms of the GNU General Public License as published by the Free Software
|
2009-04-09 17:00:19 +02:00
|
|
|
Foundation; either version 3, or (at your option) any later version.
|
1998-09-21 03:22:07 +02:00
|
|
|
|
Makefile.in, [...]: Replace "GNU CC" with "GCC".
2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
* Makefile.in, NXConstStr.m, Object.m, Protocol.m, archive.c,
class.c, encoding.c, gc.c, objc/NXConstStr.h, objc/Object.h,
objc/Protocol.h, objc/encoding.h, objc/hash.h, objc/objc-api.h,
objc/objc-list.h, objc/objc.h, ocjc/runtime.h, objc/sarray.h,
objc/thr.h, objc/typedstream.h: Replace "GNU CC" with "GCC".
From-SVN: r67131
2003-05-23 22:04:58 +02:00
|
|
|
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
|
1998-09-21 03:22:07 +02:00
|
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
|
|
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
|
|
details.
|
|
|
|
|
2009-04-09 17:00:19 +02:00
|
|
|
Under Section 7 of GPL version 3, you are granted additional
|
|
|
|
permissions described in the GCC Runtime Library Exception, version
|
|
|
|
3.1, as published by the Free Software Foundation.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License and
|
|
|
|
a copy of the GCC Runtime Library Exception along with this program;
|
|
|
|
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
|
|
|
<http://www.gnu.org/licenses/>. */
|
1998-09-21 03:22:07 +02:00
|
|
|
|
2010-09-11 14:58:27 +02:00
|
|
|
/* You need to include this file after including a number of standard ObjC files.
|
|
|
|
|
|
|
|
The original list was:
|
|
|
|
|
|
|
|
#include "objc/objc.h"
|
|
|
|
#include "objc/objc-api.h"
|
|
|
|
#include "objc/thr.h"
|
|
|
|
#include "objc/hash.h"
|
|
|
|
#include "objc/objc-list.h"
|
|
|
|
|
2013-07-21 17:38:21 +02:00
|
|
|
but can almost certainly be shrunk down. */
|
1998-09-21 03:22:07 +02:00
|
|
|
|
2010-10-11 20:17:19 +02:00
|
|
|
#ifndef __objc_private_runtime_INCLUDE_GNU
|
|
|
|
#define __objc_private_runtime_INCLUDE_GNU
|
1998-09-21 03:22:07 +02:00
|
|
|
|
2004-08-14 00:23:58 +02:00
|
|
|
#include <stdarg.h> /* for varargs and va_list's */
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
|
2013-07-21 17:38:21 +02:00
|
|
|
#include <stddef.h> /* so no one else will get system versions */
|
2004-08-14 00:23:58 +02:00
|
|
|
#include <assert.h>
|
|
|
|
|
2010-12-21 23:49:37 +01:00
|
|
|
extern BOOL __objc_add_class_to_hash (Class); /* (objc-class.c) */
|
|
|
|
extern void __objc_init_class_tables (void); /* (objc-class.c) */
|
|
|
|
extern void __objc_init_dispatch_tables (void); /* (objc-dispatch.c) */
|
|
|
|
extern void __objc_install_premature_dtable (Class); /* (objc-dispatch.c) */
|
|
|
|
extern void __objc_resolve_class_links (void); /* (objc-class.c) */
|
1998-09-21 03:22:07 +02:00
|
|
|
extern void __objc_update_dispatch_table_for_class (Class);/* (objc-msg.c) */
|
|
|
|
|
2010-12-21 23:49:37 +01:00
|
|
|
extern int __objc_init_thread_system (void); /* thread.c */
|
|
|
|
extern int __objc_fini_thread_system (void); /* thread.c */
|
2010-12-23 00:05:13 +01:00
|
|
|
extern BOOL __objc_init_class (Class class); /* init.c */
|
2010-12-21 23:49:37 +01:00
|
|
|
extern void class_add_method_list (Class, struct objc_method_list *);
|
1998-09-21 03:22:07 +02:00
|
|
|
|
|
|
|
/* Registering instance methods as class methods for root classes */
|
2010-12-22 01:05:57 +01:00
|
|
|
extern void __objc_register_instance_methods_to_class (Class);
|
|
|
|
extern struct objc_method * search_for_method_in_list (struct objc_method_list * list, SEL op);
|
1998-09-21 03:22:07 +02:00
|
|
|
|
2010-10-16 00:27:39 +02:00
|
|
|
extern void
|
|
|
|
__objc_update_classes_with_methods (struct objc_method *method_a, struct objc_method *method_b); /* class.c */
|
|
|
|
|
1998-09-21 03:22:07 +02:00
|
|
|
/* Mutex locking __objc_selector_max_index and its arrays. */
|
|
|
|
extern objc_mutex_t __objc_runtime_mutex;
|
|
|
|
|
|
|
|
/* Number of threads which are alive. */
|
|
|
|
extern int __objc_runtime_threads_alive;
|
|
|
|
|
|
|
|
BOOL __objc_responds_to (id object, SEL sel); /* for internal use only! */
|
2002-06-21 16:36:37 +02:00
|
|
|
extern void __objc_generate_gc_type_description (Class);
|
1998-09-21 03:22:07 +02:00
|
|
|
|
2010-10-11 20:17:19 +02:00
|
|
|
#endif /* not __objc_private_runtime_INCLUDE_GNU */
|