Use bool rather than _Bool for C++ compatibility.
Submitted by: Nikolai Lifanov
This commit is contained in:
parent
48f9270689
commit
30db11dd7f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286934
@ -33,17 +33,17 @@
|
|||||||
#define _MALLOC_NP_H_
|
#define _MALLOC_NP_H_
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#include <stdbool.h>
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
typedef void *(chunk_alloc_t)(void *, size_t, size_t, _Bool *, _Bool *,
|
typedef void *(chunk_alloc_t)(void *, size_t, size_t, bool *, bool *, unsigned);
|
||||||
unsigned);
|
typedef bool (chunk_dalloc_t)(void *, size_t, 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_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_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_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_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 _Bool (chunk_merge_t)(void *, size_t, void *, size_t, _Bool, unsigned);
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
chunk_alloc_t *alloc;
|
chunk_alloc_t *alloc;
|
||||||
chunk_dalloc_t *dalloc;
|
chunk_dalloc_t *dalloc;
|
||||||
|
Loading…
Reference in New Issue
Block a user