diff options
Diffstat (limited to 'libobjc/objc/sarray.h')
-rw-r--r-- | libobjc/objc/sarray.h | 17 |
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*); |