summaryrefslogtreecommitdiffstats
path: root/libobjc/objc
diff options
context:
space:
mode:
authorzlaski <zlaski@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-13 22:50:09 +0000
committerzlaski <zlaski@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-13 22:50:09 +0000
commit7cde58555127f31ba0a5b2a222c81d160e7168e9 (patch)
tree96a1334bc722ca87062115099265225dacbdb291 /libobjc/objc
parentf2cb0e6fb1863269670802d21ba0d43a68d05204 (diff)
downloadppe42-gcc-7cde58555127f31ba0a5b2a222c81d160e7168e9.tar.gz
ppe42-gcc-7cde58555127f31ba0a5b2a222c81d160e7168e9.zip
[libobjc/ChangeLog]
2004-08-13 Ziemowit Laski <zlaski@apple.com> * objc/sarray.h: Hoist include of assert.h near the top of file, and mark the remainder of the file 'extern "C"'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85971 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc/objc')
-rw-r--r--libobjc/objc/sarray.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/libobjc/objc/sarray.h b/libobjc/objc/sarray.h
index 535c6cc5222..4965839b3a7 100644
--- a/libobjc/objc/sarray.h
+++ b/libobjc/objc/sarray.h
@@ -42,6 +42,7 @@ extern const char* __objc_sparse3_id;
#endif
#include <stddef.h>
+#include <assert.h>
#ifdef __cplusplus
extern "C" {
@@ -52,13 +53,6 @@ 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 */
#define SIZET_BITS (sizeof(size_t)*8)
@@ -151,10 +145,6 @@ 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*);
OpenPOWER on IntegriCloud