+2004-06-24 Andrew Pinski <apinski@apple.com>
+
+ * objc/encoding.h: Wrap the functions with extern "C" for C++
+ mode.
+ * objc/hash.h: Likewise.
+ * objc/objc-api.h: Likewise.
+ * objc/objc-list.h: Likewise.
+ * objc/runtime.h: Likewise.
+ * objc/sarray.h: Likewise.
+ * objc/thr.h: Likewise.
+ * objc/typedstream.h: Likewise.
+
+
2004-06-21 Nick Clifton <nickc@redhat.com>
* encoding.c (BITS_PER_UNIT): Define if a definition is not
#include <ctype.h>
#include "objc/objc-api.h"
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#define _C_CONST 'r'
#define _C_IN 'n'
#define _C_INOUT 'N'
unsigned int *align,
const char **type);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* __encoding_INCLUDE_GNU */
#include <string.h>
#include <objc/objc.h>
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+
/*
* This data structure is used to hold items
* stored in a hash table. Each node holds
return ! strcmp ((const char *) k1, (const char *) k2);
}
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* not __hash_INCLUDE_GNU */
#include <stdio.h>
#include <stdarg.h>
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+
/* For functions which return Method_t */
#define METHOD_NULL (Method_t)0
/* Boolean typedefs */
struct sarray*
objc_get_uninstalled_dtable(void);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+
#endif /* not __objc_api_INCLUDE_GNU */
#ifndef __GNU_OBJC_LIST_H
#define __GNU_OBJC_LIST_H
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+
struct objc_list {
void *head;
struct objc_list *tail;
objc_free(list);
}
}
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+
#endif /* not __GNU_OBJC_LIST_H */
#include "objc/hash.h" /* hash structures */
#include "objc/objc-list.h" /* linear lists */
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+
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_class_tables(void); /* (objc-class.c) */
struct objc_selector*, BOOL is_const);
extern void __objc_generate_gc_type_description (Class);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+
#endif /* not __objc_runtime_INCLUDE_GNU */
#include "objc/thr.h"
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
extern int nbuckets; /* for stats */
extern int nindices;
extern int narrays;
extern int idxsize;
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+
#include <assert.h>
/* An unsigned integer of same size as a pointer */
size_t capacity;
};
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
struct sarray* sarray_new(int, void* default_element);
void sarray_free(struct sarray*);
struct sarray* sarray_lazy_copy(struct sarray*);
return (array->empty_bucket->elems[0]);
}
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+
#endif /* __sarray_INCLUDE_GNU */
#include "objc/objc.h"
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/*************************************************************************
* Universal static variables:
*/
int __objc_thread_set_data (void *value);
void * __objc_thread_get_data (void);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+
#endif /* not __thread_INCLUDE_GNU */
#include "objc/hash.h"
#include <stdio.h>
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+
typedef int (*objc_typed_read_func)(void*, char*, int);
typedef int (*objc_typed_write_func)(void*, const char*, int);
typedef int (*objc_typed_flush_func)(void*);
BOOL objc_end_of_typed_stream (TypedStream* stream);
void objc_flush_typed_stream (TypedStream* stream);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+
#endif /* not __typedstream_INCLUDE_GNU */