[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] gpsd style change?
From: |
Eric S. Raymond |
Subject: |
Re: [gpsd-dev] gpsd style change? |
Date: |
Wed, 11 Feb 2015 16:43:52 -0500 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
Greg Troxel <address@hidden>:
> That needs to be a lot stronger, as:
>
> <p>Do not use GCC extensions, as the code should compile with any sane
> C99 compiler (specifically to include clang). Do not use
> glibc-specific features, as gpsd is portable to multiple operating
> systems that do not use glibc, including BSD's libc and uClibc.
> Instead, rely on what POSIX guarantees.</p>
Done. Good amendment.
> but otherwise looks ok (although I really dislike // comments,
> personally, as I find the flexibility of choosing the style leads to
> mess).
There is something in what you say; I tend to avoid them myself except
in rather specific circumstances, like when I am conditioning out a single
line of code. But I think this falls under laissez-faire about low-level
formatting issues - the best advice is "avoid disharmony".
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
signature.asc
Description: Digital signature