diff options
author | Ziemowit Laski <zlaski@apple.com> | 2004-08-13 22:50:09 +0000 |
---|---|---|
committer | Ziemowit Laski <zlaski@gcc.gnu.org> | 2004-08-13 22:50:09 +0000 |
commit | f13bb1997aa840029740a52684fb9bcd20e834ab (patch) | |
tree | 96a1334bc722ca87062115099265225dacbdb291 /libobjc | |
parent | 41693162610ac7138ec31f95e6aaf287c5875ac4 (diff) | |
download | gcc-f13bb1997aa840029740a52684fb9bcd20e834ab.zip gcc-f13bb1997aa840029740a52684fb9bcd20e834ab.tar.gz gcc-f13bb1997aa840029740a52684fb9bcd20e834ab.tar.bz2 |
sarray.h: Hoist include of assert.h near the top of file...
[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"'.
From-SVN: r85971
Diffstat (limited to 'libobjc')
-rw-r--r-- | libobjc/ChangeLog | 5 | ||||
-rw-r--r-- | libobjc/objc/sarray.h | 12 |
2 files changed, 6 insertions, 11 deletions
diff --git a/libobjc/ChangeLog b/libobjc/ChangeLog index c549a2c..89fd88d 100644 --- a/libobjc/ChangeLog +++ b/libobjc/ChangeLog @@ -1,3 +1,8 @@ +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"'. + 2004-08-13 Andrew Pinski <pinskia@physics.uc.edu> * objc/Object.h: Move includes out of extern "C" blocks. diff --git a/libobjc/objc/sarray.h b/libobjc/objc/sarray.h index 535c6cc..4965839 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*); |