aboutsummaryrefslogtreecommitdiff
path: root/libobjc/objc/sarray.h
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2004-08-13 22:23:58 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-08-13 15:23:58 -0700
commit9567d4155997ebed75a9a2f4a24a6655d9f0ecb4 (patch)
tree6c7cd07c644a9bd9f7ec3a585f20d6678febe490 /libobjc/objc/sarray.h
parentd7945fafe30409970df153ece1ad881776a49747 (diff)
downloadgcc-9567d4155997ebed75a9a2f4a24a6655d9f0ecb4.zip
gcc-9567d4155997ebed75a9a2f4a24a6655d9f0ecb4.tar.gz
gcc-9567d4155997ebed75a9a2f4a24a6655d9f0ecb4.tar.bz2
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
Diffstat (limited to 'libobjc/objc/sarray.h')
-rw-r--r--libobjc/objc/sarray.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/libobjc/objc/sarray.h b/libobjc/objc/sarray.h
index 59ab6ea..535c6cc 100644
--- a/libobjc/objc/sarray.h
+++ b/libobjc/objc/sarray.h
@@ -30,10 +30,6 @@ Boston, MA 02111-1307, USA. */
#include <objc/thr.h>
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
#define OBJC_SPARSE2 /* 2-level sparse array */
/* #define OBJC_SPARSE3 */ /* 3-level sparse array */
@@ -47,11 +43,20 @@ extern const char* __objc_sparse3_id;
#include <stddef.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 */
@@ -146,6 +151,10 @@ struct sarray {
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*);