diff options
author | jasone <jasone@FreeBSD.org> | 2015-08-19 18:32:12 +0000 |
---|---|---|
committer | jasone <jasone@FreeBSD.org> | 2015-08-19 18:32:12 +0000 |
commit | 2dee86e95fc7cb678db00f91d2b8bf07dd7349c2 (patch) | |
tree | 174f6d72afad73f958e4329cda65ab77182fe034 | |
parent | 671f0b94de989785355f079fb0c48e95bcfcbf61 (diff) | |
download | FreeBSD-src-2dee86e95fc7cb678db00f91d2b8bf07dd7349c2.zip FreeBSD-src-2dee86e95fc7cb678db00f91d2b8bf07dd7349c2.tar.gz |
Use bool rather than _Bool for C++ compatibility.
Submitted by: Nikolai Lifanov
-rw-r--r-- | include/malloc_np.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/malloc_np.h b/include/malloc_np.h index d3feb35..24b3148 100644 --- a/include/malloc_np.h +++ b/include/malloc_np.h @@ -33,17 +33,17 @@ #define _MALLOC_NP_H_ #include <sys/cdefs.h> #include <sys/types.h> +#include <stdbool.h> #include <strings.h> __BEGIN_DECLS -typedef void *(chunk_alloc_t)(void *, size_t, size_t, _Bool *, _Bool *, - unsigned); -typedef _Bool (chunk_dalloc_t)(void *, size_t, _Bool, unsigned); -typedef _Bool (chunk_commit_t)(void *, size_t, size_t, size_t, unsigned); -typedef _Bool (chunk_decommit_t)(void *, size_t, size_t, size_t, unsigned); -typedef _Bool (chunk_purge_t)(void *, size_t, size_t, size_t, unsigned); -typedef _Bool (chunk_split_t)(void *, size_t, size_t, size_t, _Bool, unsigned); -typedef _Bool (chunk_merge_t)(void *, size_t, void *, size_t, _Bool, unsigned); +typedef void *(chunk_alloc_t)(void *, size_t, size_t, bool *, bool *, unsigned); +typedef bool (chunk_dalloc_t)(void *, size_t, bool, unsigned); +typedef bool (chunk_commit_t)(void *, size_t, size_t, size_t, unsigned); +typedef bool (chunk_decommit_t)(void *, size_t, size_t, size_t, unsigned); +typedef bool (chunk_purge_t)(void *, size_t, size_t, size_t, unsigned); +typedef bool (chunk_split_t)(void *, size_t, size_t, size_t, bool, unsigned); +typedef bool (chunk_merge_t)(void *, size_t, void *, size_t, bool, unsigned); typedef struct { chunk_alloc_t *alloc; chunk_dalloc_t *dalloc; |