This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC][PATCH 1/4][BZ 17083] getaddrinfo: Add comments for #else and #endif directives
- From: DJ Delorie <dj at redhat dot com>
- To: stlman at poczta dot fm
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 11 Sep 2017 16:01:10 -0400
- Subject: Re: [RFC][PATCH 1/4][BZ 17083] getaddrinfo: Add comments for #else and #endif directives
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=dj at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com ACC72C070477
?ukasz Stelmach <stlman@poczta.fm> writes:
> #if __BYTE_ORDER == __BIG_ENDIAN
> # define htonl_c(n) n
> -#else
> +#else /* __BYTE_ORDER == __BIG_ENDIAN */
> # define htonl_c(n) __bswap_constant_32 (n)
> -#endif
> +#endif /* __BYTE_ORDER == __BIG_ENDIAN */
What's our policy on inverting the logic sense in these comments when
they refer to the #else clause?