mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
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_
|
||||
#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;
|
||||
|
Loading…
Reference in New Issue
Block a user