From owner-svn-src-head@freebsd.org Wed Aug 19 18:32:13 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 92F4E9BE873; Wed, 19 Aug 2015 18:32:13 +0000 (UTC) (envelope-from jasone@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 831D4B96; Wed, 19 Aug 2015 18:32:13 +0000 (UTC) (envelope-from jasone@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t7JIWDwl079548; Wed, 19 Aug 2015 18:32:13 GMT (envelope-from jasone@FreeBSD.org) Received: (from jasone@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t7JIWDd5079547; Wed, 19 Aug 2015 18:32:13 GMT (envelope-from jasone@FreeBSD.org) Message-Id: <201508191832.t7JIWDd5079547@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jasone set sender to jasone@FreeBSD.org using -f From: Jason Evans Date: Wed, 19 Aug 2015 18:32:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r286934 - head/include X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Aug 2015 18:32:13 -0000 Author: jasone Date: Wed Aug 19 18:32:12 2015 New Revision: 286934 URL: https://svnweb.freebsd.org/changeset/base/286934 Log: Use bool rather than _Bool for C++ compatibility. Submitted by: Nikolai Lifanov Modified: head/include/malloc_np.h Modified: head/include/malloc_np.h ============================================================================== --- head/include/malloc_np.h Wed Aug 19 18:24:39 2015 (r286933) +++ head/include/malloc_np.h Wed Aug 19 18:32:12 2015 (r286934) @@ -33,17 +33,17 @@ #define _MALLOC_NP_H_ #include #include +#include #include __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;