diff options
Diffstat (limited to 'contrib/gcc/objc/runtime.h')
-rw-r--r-- | contrib/gcc/objc/runtime.h | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/contrib/gcc/objc/runtime.h b/contrib/gcc/objc/runtime.h index 0f4510f..b0eae4a 100644 --- a/contrib/gcc/objc/runtime.h +++ b/contrib/gcc/objc/runtime.h @@ -1,5 +1,5 @@ /* GNU Objective C Runtime internal declarations - Copyright (C) 1993, 1995 Free Software Foundation, Inc. + Copyright (C) 1993, 1995, 1996, 1997 Free Software Foundation, Inc. Contributed by Kresten Krab Thorup This file is part of GNU CC. @@ -37,21 +37,29 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "objc/objc.h" /* core data types */ #include "objc/objc-api.h" /* runtime api functions */ +#include "objc/thr.h" /* thread and mutex support */ + #include "objc/hash.h" /* hash structures */ -#include "objc/list.h" /* linear lists */ +#include "objc/objc-list.h" /* linear lists */ extern void __objc_add_class_to_hash(Class); /* (objc-class.c) */ -extern void __objc_init_selector_tables(); /* (objc-sel.c) */ -extern void __objc_init_class_tables(); /* (objc-class.c) */ -extern void __objc_init_dispatch_tables(); /* (objc-dispatch.c) */ +extern void __objc_init_selector_tables(void); /* (objc-sel.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(); /* (objc-class.c) */ +extern void __objc_resolve_class_links(void); /* (objc-class.c) */ extern void __objc_register_selectors_from_class(Class); /* (objc-sel.c) */ extern void __objc_update_dispatch_table_for_class (Class);/* (objc-msg.c) */ + +extern int __objc_init_thread_system(void); /* thread.c */ +extern int __objc_fini_thread_system(void); /* thread.c */ +extern void __objc_print_dtable_stats(void); /* sendmsg.c */ + extern void class_add_method_list(Class, MethodList_t); -extern void objc_error(id object, const char* fmt, va_list); -extern void (*_objc_error)(id, const char*, va_list); +/* Registering instance methods as class methods for root classes */ +extern void __objc_register_instance_methods_to_class(Class); +extern Method_t search_for_method_in_list(MethodList_t list, SEL op); /* True when class links has been resolved */ extern BOOL __objc_class_links_resolved; @@ -59,6 +67,12 @@ extern BOOL __objc_class_links_resolved; /* Number of selectors stored in each of the selector tables */ extern int __objc_selector_max_index; +/* 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; + #ifdef DEBUG #define DEBUG_PRINTF(format, args...) printf (format, ## args) #else @@ -67,7 +81,7 @@ extern int __objc_selector_max_index; BOOL __objc_responds_to (id object, SEL sel); /* for internal use only! */ SEL __sel_register_typed_name (const char*, const char*, - struct objc_selector*); + struct objc_selector*, BOOL is_const); #endif /* not __objc_runtime_INCLUDE_GNU */ |