Date: Mon, 29 Oct 2012 21:25:22 +0100 From: Erik Cederstrand <erik@cederstrand.dk> To: Dimitry Andric <dim@FreeBSD.org> Cc: Ian Lepore <freebsd@damnhippie.dyndns.org>, FreeBSD Hackers <hackers@freebsd.org> Subject: Re: opensolaris B_TRUE and B_FALSE Message-ID: <197D04E2-E9CD-44A4-B08B-88F7A56E835D@cederstrand.dk> In-Reply-To: <508E5AB4.7060209@FreeBSD.org> References: <560EA79C-502B-418C-8BF1-A1BC28E05FD1@cederstrand.dk> <1351466692.1123.346.camel@revolution.hippie.lan> <A5B0B50B-0789-40EC-9097-EE9226BB5FBD@cederstrand.dk> <508E5AB4.7060209@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Den 29/10/2012 kl. 11.30 skrev Dimitry Andric <dim@FreeBSD.org>: > On 2012-10-29 09:12, Erik Cederstrand wrote: >>=20 >> The code in the report is /sbin/zpool, so I assume it's not KERNEL = code. As I wrote in my email, I can see B_TRUE and B_FALSE are defined = as boolean_t in sys/cddl/compat/opensolaris/sys/types.h But I can't see = that boolean_t is defined anywhere in the included headers as long as = KERNEL is not defined. >=20 > In sys/cddl/compat/opensolaris/sys/types.h, there is: >=20 > typedef enum { B_FALSE, B_TRUE } boolean_t; >=20 > This line defines the boolean_t type. Maybe the type itself is never > used, but only the enum values. Sort of like a an anonymous enum in = C++. Ok, so I expected B_FALSE to be defined as 0 explicitly somewhere, = completely missing the point of enums. Embarrassing. Thanks for being = easy on me :-) Erik=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?197D04E2-E9CD-44A4-B08B-88F7A56E835D>