This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Convert signal.h from __need macros to bits/types/ headers.


On Tue, 6 Dec 2016, Zack Weinberg wrote:

> -  if (dest == NULL || left == NULL || right == NULL)
> +  if (!dest || !left || !right)

glibc style avoids implicit boolean conversions, so prefers == NULL here 
and anywhere else in the patch making such a change.

https://sourceware.org/glibc/wiki/Style_and_Conventions#Boolean_Coercions

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]