X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=4b6eyyp5A78DuwPVU9c2F1kTcHMuMtA7ERl57RFxiZ0=; b=JdDwBIBw2dfSGjDYk8Wob3BPv3UjTxTJN09kzJS12Utv3/qUGFo6qXPzGi+uhSx4cm gP81OvwDFbRwUNMjDDFnbAyTWJg7KKTuPGBgMusMDB+mzgWSv2kmKXIur1oCNE9QhShN kvVFAmiiNLstD0c6hIs0/MDoctUMfKe4HafjVxZ4gWBrJl5zEmjR+mlpHeHOMkSd3kSj rgmXIPUXhoBNC31aPnDGzMe+VKxC2B4t+SBO6ef5eiYbZVUXWubMVuirS+jQ54Hb1meA Nmbc9prlh6oYm53/DmmPdqXogC00yf75Di+tRj7RhlIv+x5stlLAyW6zqTxCcL8ayCOD WnZQ== MIME-Version: 1.0 X-Received: by 10.194.6.196 with SMTP id d4mr7006279wja.120.1450488786260; Fri, 18 Dec 2015 17:33:06 -0800 (PST) In-Reply-To: <20151217115354.19720.qmail@stuge.se> References: <201512152309 DOT tBFN90dS016514 AT envy DOT delorie DOT com> <20151217115354 DOT 19720 DOT qmail AT stuge DOT se> Date: Fri, 18 Dec 2015 16:33:06 -0900 Message-ID: Subject: Re: [geda-user] merge please (or rebase if you must) From: "Britton Kerin (britton DOT kerin AT gmail DOT com) [via geda-user AT delorie DOT com]" To: geda-user AT delorie DOT com Content-Type: multipart/alternative; boundary=047d7b5d4976db1b7f0527363c62 Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk --047d7b5d4976db1b7f0527363c62 Content-Type: text/plain; charset=UTF-8 On Thu, Dec 17, 2015 at 2:53 AM, Peter Stuge (peter AT stuge DOT se) [via geda-user AT delorie DOT com] wrote: > Britton Kerin (britton DOT kerin AT gmail DOT com) [via geda-user AT delorie DOT com] wrote: > > > I note you use // for comments. If we're going this route, we should > > > update configure to test for a C99-compliant compiler. > > > > This is probably a pretty safe assumption now. > > It isn't, among other platforms for the sake of Windows. > Isn't the windows port broken anyway? And if a pre-C99 is the latest and greatest available on Cygwin or whatever it is, I probably wouldn't try to fix it (that way at least). > Please do not make comments cause a dependency on a C99 compiler if > nothing else does. Please do stick with /* the classic style */ > There's other useful stuff in C99. Declaration at point-of-use and compound literals both reduce redundancy a lot. Probably more things we aren't even aware of have crept in. It's not a new standard anymore. > > > In many cases in the geometry module, you use Vec where you mean > > > Point. Granted, the data is the same, but the meanings should be > > > clear to the user, since it's part of the "documentation". > > > > It bugs me too. The C alternatives I'm aware of are: > > > > * use casts wherever a conversion happens. Not sure how ugly it would > > get in this particular case > If there are two types then two macros are needed to do the two > possible conversions and if they have reasonable names then it isn't > very ugly at all. > I think the way DJ proposed is good in this case (other post). > Thank you for your work! > It was enjoyable, I hope it will be useful. Britton > > > //Peter > --047d7b5d4976db1b7f0527363c62 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Thu, Dec 17, 2015 at 2:53 AM, Peter Stuge (peter AT stuge DOT se) [via = geda-user AT delorie DOT com] <geda-user AT delorie DOT com> wrote= :
Britton Kerin (britton DOT kerin AT gmail DOT com) [via geda-user AT delorie DOT com] wrote:
> > I note you use // for comments.=C2=A0 If we're going this rou= te, we should
> > update configure to test for a C99-compliant compiler.
>
> This is probably a pretty safe assumption now.

It isn't, among other platforms for the sake of Windows.

Isn't the windows port broken a= nyway?=C2=A0 And if a pre-C99 is the latest and greatest available on Cygwi= n or whatever it is, I probably wouldn't try to fix it (that way at lea= st).=C2=A0
=C2=A0
Please do not make comments cause a dependency on a C99 compiler if
nothing else does. Please do stick with /* the classic style */

There's other useful stuff in C99.= =C2=A0 Declaration at point-of-use and compound literals both reduce redund= ancy a lot.=C2=A0 Probably more things we aren't even aware of have cre= pt in.=C2=A0 It's not a new standard anymore.
=C2=A0
> > In many cases in the geometry module, you use Vec where you mean<= br> > > Point.=C2=A0 Granted, the data is the same, but the meanings shou= ld be
> > clear to the user, since it's part of the "documentation= ".
>
> It bugs me too.=C2=A0 The C alternatives I'm aware of are:
>
>=C2=A0 =C2=A0* use casts wherever a conversion happens.=C2=A0 Not sure = how ugly it would
>=C2=A0 =C2=A0 =C2=A0get in this particular case
=C2=A0

If there are two types then two macros are needed to do the two
possible conversions and if they have reasonable names then it isn't very ugly at all.

I think th= e way DJ proposed is good in this case (other post).
=C2=A0
=
Thank you for your work!

It = was enjoyable, I hope it will be useful.

Britton
=C2=A0


//Peter

--047d7b5d4976db1b7f0527363c62--