Object.h: Move includes out of extern "C" blocks.
2004-08-13 Andrew Pinski <pinskia@physics.uc.edu> * objc/Object.h: Move includes out of extern "C" blocks. * objc/encoding.h: Likewise. * objc/hash.h: Likewise. * objc/objc-api.h: Likewise. * objc/runtime.h: Likewise. * objc/sarray.h: Likewise. * objc/typedstream.h: Likewise. From-SVN: r85968
This commit is contained in:
parent
d7945fafe3
commit
9567d41559
@ -1,3 +1,13 @@
|
|||||||
|
2004-08-13 Andrew Pinski <pinskia@physics.uc.edu>
|
||||||
|
|
||||||
|
* objc/Object.h: Move includes out of extern "C" blocks.
|
||||||
|
* objc/encoding.h: Likewise.
|
||||||
|
* objc/hash.h: Likewise.
|
||||||
|
* objc/objc-api.h: Likewise.
|
||||||
|
* objc/runtime.h: Likewise.
|
||||||
|
* objc/sarray.h: Likewise.
|
||||||
|
* objc/typedstream.h: Likewise.
|
||||||
|
|
||||||
2004-08-12 Ziemowit Laski <zlaski@apple.com>
|
2004-08-12 Ziemowit Laski <zlaski@apple.com>
|
||||||
|
|
||||||
* objc/NXConstStr.h: Update copyright date; bracket with
|
* objc/NXConstStr.h: Update copyright date; bracket with
|
||||||
|
@ -27,13 +27,13 @@ Boston, MA 02111-1307, USA. */
|
|||||||
#ifndef __object_INCLUDE_GNU
|
#ifndef __object_INCLUDE_GNU
|
||||||
#define __object_INCLUDE_GNU
|
#define __object_INCLUDE_GNU
|
||||||
|
|
||||||
|
#include <objc/objc.h>
|
||||||
|
#include <objc/typedstream.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <objc/objc.h>
|
|
||||||
#include <objc/typedstream.h>
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* All classes are derived from Object. As such,
|
* All classes are derived from Object. As such,
|
||||||
* this is the overhead tacked onto those objects.
|
* this is the overhead tacked onto those objects.
|
||||||
|
@ -30,13 +30,12 @@ Boston, MA 02111-1307, USA. */
|
|||||||
#define __encoding_INCLUDE_GNU
|
#define __encoding_INCLUDE_GNU
|
||||||
|
|
||||||
#include <objc/objc-api.h>
|
#include <objc/objc-api.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#include <ctype.h>
|
|
||||||
|
|
||||||
#define _C_CONST 'r'
|
#define _C_CONST 'r'
|
||||||
#define _C_IN 'n'
|
#define _C_IN 'n'
|
||||||
#define _C_INOUT 'N'
|
#define _C_INOUT 'N'
|
||||||
|
@ -28,15 +28,14 @@ Boston, MA 02111-1307, USA. */
|
|||||||
#ifndef __hash_INCLUDE_GNU
|
#ifndef __hash_INCLUDE_GNU
|
||||||
#define __hash_INCLUDE_GNU
|
#define __hash_INCLUDE_GNU
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <string.h>
|
||||||
#include <objc/objc.h>
|
#include <objc/objc.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#include <stddef.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This data structure is used to hold items
|
* This data structure is used to hold items
|
||||||
* stored in a hash table. Each node holds
|
* stored in a hash table. Each node holds
|
||||||
|
@ -31,14 +31,13 @@ Boston, MA 02111-1307, USA. */
|
|||||||
#include <objc/hash.h>
|
#include <objc/hash.h>
|
||||||
#include <objc/thr.h>
|
#include <objc/thr.h>
|
||||||
#include <objc/objc-decls.h>
|
#include <objc/objc-decls.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
/* For functions which return Method_t */
|
/* For functions which return Method_t */
|
||||||
#define METHOD_NULL (Method_t)0
|
#define METHOD_NULL (Method_t)0
|
||||||
/* Boolean typedefs */
|
/* Boolean typedefs */
|
||||||
|
@ -26,6 +26,14 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|||||||
#ifndef __objc_runtime_INCLUDE_GNU
|
#ifndef __objc_runtime_INCLUDE_GNU
|
||||||
#define __objc_runtime_INCLUDE_GNU
|
#define __objc_runtime_INCLUDE_GNU
|
||||||
|
|
||||||
|
#include <stdarg.h> /* for varargs and va_list's */
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
|
||||||
|
#include <stddef.h> /* so noone else will get system versions */
|
||||||
|
#include <assert.h>
|
||||||
|
|
||||||
#include <objc/objc.h> /* core data types */
|
#include <objc/objc.h> /* core data types */
|
||||||
#include <objc/objc-api.h> /* runtime api functions */
|
#include <objc/objc-api.h> /* runtime api functions */
|
||||||
|
|
||||||
@ -38,14 +46,6 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#include <stdarg.h> /* for varargs and va_list's */
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <ctype.h>
|
|
||||||
|
|
||||||
#include <stddef.h> /* so noone else will get system versions */
|
|
||||||
#include <assert.h>
|
|
||||||
|
|
||||||
extern void __objc_add_class_to_hash(Class); /* (objc-class.c) */
|
extern void __objc_add_class_to_hash(Class); /* (objc-class.c) */
|
||||||
extern void __objc_init_selector_tables(void); /* (objc-sel.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_class_tables(void); /* (objc-class.c) */
|
||||||
|
@ -30,10 +30,6 @@ Boston, MA 02111-1307, USA. */
|
|||||||
|
|
||||||
#include <objc/thr.h>
|
#include <objc/thr.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif /* __cplusplus */
|
|
||||||
|
|
||||||
#define OBJC_SPARSE2 /* 2-level sparse array */
|
#define OBJC_SPARSE2 /* 2-level sparse array */
|
||||||
/* #define OBJC_SPARSE3 */ /* 3-level sparse array */
|
/* #define OBJC_SPARSE3 */ /* 3-level sparse array */
|
||||||
|
|
||||||
@ -47,11 +43,20 @@ extern const char* __objc_sparse3_id;
|
|||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
extern int nbuckets; /* for stats */
|
extern int nbuckets; /* for stats */
|
||||||
extern int nindices;
|
extern int nindices;
|
||||||
extern int narrays;
|
extern int narrays;
|
||||||
extern int idxsize;
|
extern int idxsize;
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
/* An unsigned integer of same size as a pointer */
|
/* An unsigned integer of same size as a pointer */
|
||||||
@ -146,6 +151,10 @@ struct sarray {
|
|||||||
size_t capacity;
|
size_t capacity;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
struct sarray* sarray_new(int, void* default_element);
|
struct sarray* sarray_new(int, void* default_element);
|
||||||
void sarray_free(struct sarray*);
|
void sarray_free(struct sarray*);
|
||||||
struct sarray* sarray_lazy_copy(struct sarray*);
|
struct sarray* sarray_lazy_copy(struct sarray*);
|
||||||
|
@ -30,12 +30,12 @@ Boston, MA 02111-1307, USA. */
|
|||||||
#include <objc/objc.h>
|
#include <objc/objc.h>
|
||||||
#include <objc/hash.h>
|
#include <objc/hash.h>
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
typedef int (*objc_typed_read_func)(void*, char*, int);
|
typedef int (*objc_typed_read_func)(void*, char*, int);
|
||||||
typedef int (*objc_typed_write_func)(void*, const char*, int);
|
typedef int (*objc_typed_write_func)(void*, const char*, int);
|
||||||
typedef int (*objc_typed_flush_func)(void*);
|
typedef int (*objc_typed_flush_func)(void*);
|
||||||
|
Loading…
Reference in New Issue
Block a user