diff options
| author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-25 04:31:51 +0000 |
|---|---|---|
| committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-25 04:31:51 +0000 |
| commit | c2740ba8d066f2612f6bc821961ce00857ea29c5 (patch) | |
| tree | 7cd8603cd5e075e1eb7ba55ac5dd364fac92a309 /libobjc/objc/sarray.h | |
| parent | 6d105d503c5ae4e5fe7fb67fc0946fcf2502d545 (diff) | |
| download | ppe42-gcc-c2740ba8d066f2612f6bc821961ce00857ea29c5.tar.gz ppe42-gcc-c2740ba8d066f2612f6bc821961ce00857ea29c5.zip | |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83635 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc/objc/sarray.h')
| -rw-r--r-- | libobjc/objc/sarray.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libobjc/objc/sarray.h b/libobjc/objc/sarray.h index a94a98ac5a1..5956a43071e 100644 --- a/libobjc/objc/sarray.h +++ b/libobjc/objc/sarray.h @@ -43,11 +43,20 @@ extern const char* __objc_sparse3_id; #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 */ @@ -142,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*); @@ -234,4 +247,9 @@ static inline void* sarray_get_safe(struct sarray* array, sidx indx) return (array->empty_bucket->elems[0]); } +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + #endif /* __sarray_INCLUDE_GNU */ |

