Commit a19fac96 by Nicola Pero Committed by Nicola Pero

In libobjc/:

        * objc/runtime.h: Moved to objc-private/runtime.h.  Do not include
        all the objc/*.h files.
        * objc-private/runtime.h: New file.
        * archive.c: Include objc-private/runtime.h (and required objc/*.h
        files) instead of objc/runtime.h.
        * class.c: Same change.
        * hash.c: Same change.
        * init.c: Same change.
        * misc.c: Same change.
        * nil_method.c: Same change.
        * objects.c: Same change.
        * sarray.c: Same change.
        * selector.c: Same change.
        * sendmsg.c: Same change.
        * thr.c: Same change.

From-SVN: r164213
parent 3d0d8739
2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com> 2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
* objc/runtime.h: Moved to objc-private/runtime.h. Do not include
all the objc/*.h files.
* objc-private/runtime.h: New file.
* archive.c: Include objc-private/runtime.h (and required objc/*.h
files) instead of objc/runtime.h.
* class.c: Same change.
* hash.c: Same change.
* init.c: Same change.
* misc.c: Same change.
* nil_method.c: Same change.
* objects.c: Same change.
* sarray.c: Same change.
* selector.c: Same change.
* sendmsg.c: Same change.
* thr.c: Same change.
2010-09-11 Nicola Pero <nicola.pero@meta-innovation.com>
* objc/deprecated/struct_objc_selector.h: New file. Definition of * objc/deprecated/struct_objc_selector.h: New file. Definition of
'struct objc_selector' and 'sel_eq' moved here. 'struct objc_selector' and 'sel_eq' moved here.
* objc/deprecated/struct_objc_protocol.h: New file. Definition of * objc/deprecated/struct_objc_protocol.h: New file. Definition of
......
...@@ -23,7 +23,12 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -23,7 +23,12 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "tconfig.h" #include "tconfig.h"
#include "objc/runtime.h" #include "objc/objc.h"
#include "objc/objc-api.h"
#include "objc/thr.h"
#include "objc/hash.h"
#include "objc/objc-list.h"
#include "objc-private/runtime.h"
#include "objc/typedstream.h" #include "objc/typedstream.h"
#include "objc/encoding.h" #include "objc/encoding.h"
#include <stdlib.h> #include <stdlib.h>
......
...@@ -87,12 +87,13 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -87,12 +87,13 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
classes from the table - and the difficult thing with lock-free data classes from the table - and the difficult thing with lock-free data
structures is freeing data when is removed from the structures. */ structures is freeing data when is removed from the structures. */
#include "objc/runtime.h" /* the kitchen sink */
#include "objc/sarray.h"
#include "objc/objc.h" #include "objc/objc.h"
#include "objc/objc-api.h" #include "objc/objc-api.h"
#include "objc/thr.h" #include "objc/thr.h"
#include "objc/hash.h"
#include "objc/objc-list.h"
#include "objc-private/runtime.h" /* the kitchen sink */
#include "objc/sarray.h"
/* We use a table which maps a class name to the corresponding class /* We use a table which maps a class name to the corresponding class
* pointer. The first part of this file defines this table, and * pointer. The first part of this file defines this table, and
......
...@@ -24,9 +24,12 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -24,9 +24,12 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "assert.h" #include "assert.h"
#include "objc/objc.h"
#include "objc/objc-api.h"
#include "objc/thr.h"
#include "objc/hash.h" #include "objc/hash.h"
#include "objc/objc-list.h"
#include "objc/runtime.h" /* for DEBUG_PRINTF */ #include "objc-private/runtime.h" /* for DEBUG_PRINTF */
/* These two macros determine when a hash table is full and /* These two macros determine when a hash table is full and
by how much it should be expanded respectively. by how much it should be expanded respectively.
......
...@@ -24,7 +24,12 @@ a copy of the GCC Runtime Library Exception along with this program; ...@@ -24,7 +24,12 @@ a copy of the GCC Runtime Library Exception along with this program;
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "objc/runtime.h" #include "objc/objc.h"
#include "objc/objc-api.h"
#include "objc/thr.h"
#include "objc/hash.h"
#include "objc/objc-list.h"
#include "objc-private/runtime.h"
/* The version number of this runtime. This must match the number /* The version number of this runtime. This must match the number
defined in gcc (objc-act.c). */ defined in gcc (objc-act.c). */
......
...@@ -27,7 +27,12 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -27,7 +27,12 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#define __USE_FIXED_PROTOTYPES__ #define __USE_FIXED_PROTOTYPES__
#include <stdlib.h> #include <stdlib.h>
#include "objc/runtime.h" #include "objc/objc.h"
#include "objc/objc-api.h"
#include "objc/thr.h"
#include "objc/hash.h"
#include "objc/objc-list.h"
#include "objc-private/runtime.h"
/* /*
** Error handler function ** Error handler function
......
...@@ -26,7 +26,12 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -26,7 +26,12 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
/* This is the nil method, the function that is called when the receiver /* This is the nil method, the function that is called when the receiver
of a method is nil */ of a method is nil */
#include "objc/runtime.h" #include "objc/objc.h"
#include "objc/objc-api.h"
#include "objc/thr.h"
#include "objc/hash.h"
#include "objc/objc-list.h"
#include "objc-private/runtime.h"
/* When the receiver of a method invocation is nil, the runtime /* When the receiver of a method invocation is nil, the runtime
returns nil_method() as the method implementation. This function returns nil_method() as the method implementation. This function
......
...@@ -22,6 +22,19 @@ a copy of the GCC Runtime Library Exception along with this program; ...@@ -22,6 +22,19 @@ a copy of the GCC Runtime Library Exception along with this program;
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
/* 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"
but can almost certainly be shrinked down.
*/
#ifndef __objc_runtime_INCLUDE_GNU #ifndef __objc_runtime_INCLUDE_GNU
#define __objc_runtime_INCLUDE_GNU #define __objc_runtime_INCLUDE_GNU
...@@ -34,14 +47,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -34,14 +47,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include <stddef.h> /* so noone else will get system versions */ #include <stddef.h> /* so noone else will get system versions */
#include <assert.h> #include <assert.h>
#include "objc.h" /* core data types */
#include "objc-api.h" /* runtime api functions */
#include "thr.h" /* thread and mutex support */
#include "hash.h" /* hash structures */
#include "objc-list.h" /* linear lists */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif /* __cplusplus */ #endif /* __cplusplus */
......
...@@ -25,7 +25,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -25,7 +25,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "tconfig.h" /* include defs of bzero for target */ #include "tconfig.h" /* include defs of bzero for target */
#include "objc/objc.h" #include "objc/objc.h"
#include "objc/runtime.h" /* the kitchen sink */ #include "objc/objc-api.h"
#include "objc/thr.h"
#include "objc/hash.h"
#include "objc/objc-list.h"
#include "objc-private/runtime.h" /* the kitchen sink */
#if OBJC_WITH_GC #if OBJC_WITH_GC
# include <gc.h> # include <gc.h>
......
...@@ -24,7 +24,12 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -24,7 +24,12 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "objc/sarray.h" #include "objc/sarray.h"
#include "objc/runtime.h" #include "objc/objc.h"
#include "objc/objc-api.h"
#include "objc/thr.h"
#include "objc/hash.h"
#include "objc/objc-list.h"
#include "objc-private/runtime.h"
#include <stdio.h> #include <stdio.h>
#include "assert.h" #include "assert.h"
......
...@@ -23,7 +23,12 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -23,7 +23,12 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "objc/runtime.h" #include "objc/objc.h"
#include "objc/objc-api.h"
#include "objc/thr.h"
#include "objc/hash.h"
#include "objc/objc-list.h"
#include "objc-private/runtime.h"
#include "objc/sarray.h" #include "objc/sarray.h"
#include "objc/encoding.h" #include "objc/encoding.h"
......
...@@ -31,7 +31,12 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -31,7 +31,12 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "tconfig.h" #include "tconfig.h"
#include "coretypes.h" #include "coretypes.h"
#include "tm.h" #include "tm.h"
#include "objc/runtime.h" #include "objc/objc.h"
#include "objc/objc-api.h"
#include "objc/thr.h"
#include "objc/hash.h"
#include "objc/objc-list.h"
#include "objc-private/runtime.h"
#include "objc/sarray.h" #include "objc/sarray.h"
#include "objc/encoding.h" #include "objc/encoding.h"
#include "runtime-info.h" #include "runtime-info.h"
......
...@@ -36,7 +36,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -36,7 +36,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "tm.h" #include "tm.h"
#include "defaults.h" #include "defaults.h"
#include "objc/thr.h" #include "objc/thr.h"
#include "objc/runtime.h" #include "objc/objc.h"
#include "objc/objc-api.h"
#include "objc/hash.h"
#include "objc/objc-list.h"
#include "objc-private/runtime.h"
#include <gthr.h> #include <gthr.h>
#include <stdlib.h> #include <stdlib.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment