Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ezBSA-00038M-8O for pgsql-committers@arkaria.postgresql.org; Fri, 23 Mar 2018 01:25:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ezBS8-0002sm-KZ for pgsql-committers@arkaria.postgresql.org; Fri, 23 Mar 2018 01:25:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ezBS8-0002sZ-8a for pgsql-committers@lists.postgresql.org; Fri, 23 Mar 2018 01:25:08 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ezBS5-0007wo-3Y for pgsql-committers@lists.postgresql.org; Fri, 23 Mar 2018 01:25:07 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id BBFB220C18; Thu, 22 Mar 2018 21:25:03 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Thu, 22 Mar 2018 21:25:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=jmSiiuPpmjJ1NlPLXD1IVlKa+vLcPqZRTCUwh6++K/0=; b=f9Po3jZ2 Pw9FkVejH6ZRdfj/vp9TP2TBKEWP2fGt3fJ9AfmEg64Mmx28Wu9X2Ckm8qLw7FoI SUy8cV2XdFQHYVmK5/sGoqxiK6SOV1lI8+BjlHmx72dm36eYwlSFNYXvSuiJBvAn 9EE1TOWGZpGTQgoZeQzmq9T32q2dOI4OXlrMJdGAK1xKBhZrlTUABpGr31+9M1yw y3sQU/e1zxjjy6Zcs+a5UiS65sUJoMM2Y6BipMbSSCK7+xcEKe4DEdtCYYEIQljc 301cXNP0BK/V5TUXy29Z3x/tzz//j/tjyy8aM5gpwShghvJSC0QZjDCHbXDCrpU+ 6iB4jy3Ghz3n0A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=jmSiiuPpmjJ1NlPLXD1IVlKa+vLcP qZRTCUwh6++K/0=; b=D8+N4jmZaDiwER0rGy0DJPoxder7UTasluxrZuP5FBGf1 wOQn3rF9nKfS9cz5koBCTakq7WXbmKGbQbrkWmxtGcs7vplDOiCkFJPfDm0Gdy4R eyOTe30VbM+JTfNHqp/Gh+9TFT8VLraK4vUuK81TXcWgY7Cyvgosaubwrw9Wxg4P JWm/LjggXGi2egb83iFcdY+kzXuI7HE8EqANb9U2E93+vb7VHq/uIrOo1nSfcFcu SvEeRmHzNeo44osles8flRV+hofrEnuamHawzvUz0Mr1N5aqR3rJ4f7b+v0GJIVl k0tWtJ/3Qs2UKfyrXVlEzLXEWOGT0j0MtFMfVLPPw== X-ME-Sender: Received: from intern.anarazel.de (75-144-246-5-sfba.hfc.comcastbusiness.net [75.144.246.5]) by mail.messagingengine.com (Postfix) with ESMTPA id 2D8EC7E17C; Thu, 22 Mar 2018 21:25:03 -0400 (EDT) Date: Thu, 22 Mar 2018 18:25:01 -0700 From: Andres Freund To: Peter Eisentraut Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Use stdbool.h if suitable Message-ID: <20180323012501.aumvv3zdk4tneuo7@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2018-03-23 00:42:39 +0000, Peter Eisentraut wrote: > Use stdbool.h if suitable > > Using the standard bool type provided by C allows some recent compilers > and debuggers to give better diagnostics. Also, some extension code and > third-party headers are increasingly pulling in stdbool.h, so it's > probably saner if everyone uses the same definition. Hah. I was setting up LLVM buildfarm animals that run with LLVM assertions enabled, and was getting confused why they're failing after I'd run a check-world locally with assertions enabled. Turns out this broke it. I'll fix it. Just amazed that we've gone weeks without a change breaking my JIT work, and then within hours of it getting it got broken. Turns out LLVM represents a stdbool.h boolean as an i1 (int with 1 bit) rather than an i8 (int with 8 bits), which makes sense given the desired boolean behaviour (still takes 8 bits of storage). Greetings, Andres Freund