NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/50009: strptime small enhancement



The following reply was made to PR lib/50009; it has been noted by GNATS.

From: David CARLIER <devnexen%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: lib/50009: strptime small enhancement
Date: Mon, 29 Jun 2015 05:31:04 +0100

 --001a113ab4e8ed28430519a08fa8
 Content-Type: text/plain; charset=UTF-8
 
 Ah, good catch ...
 
 +#ifndef ISLEAPYEAR
  +#define ISLEAPYEAR(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400)
 == 0))
  +#endif
 
 On 29 June 2015 at 05:00, David Holland <dholland-bugs%netbsd.org@localhost> wrote:
 
 > The following reply was made to PR lib/50009; it has been noted by GNATS.
 >
 > From: David Holland <dholland-bugs%netbsd.org@localhost>
 > To: gnats-bugs%NetBSD.org@localhost
 > Cc:
 > Subject: Re: lib/50009: strptime small enhancement
 > Date: Mon, 29 Jun 2015 03:58:23 +0000
 >
 >  On Sun, Jun 28, 2015 at 07:50:00PM +0000, devnexen%gmail.com@localhost wrote:
 >   > +#ifndef ISLEAPYEAR
 >   > +#define ISLEAPYEAR(y) ((y % 400) == 0 && (y % 4) == 0 && (y % 100) !=
 > 0)
 >   > +#endif
 >
 >  ...this is wrong...
 >
 >  --
 >  David A. Holland
 >  dholland%netbsd.org@localhost
 >
 >
 
 --001a113ab4e8ed28430519a08fa8
 Content-Type: text/html; charset=UTF-8
 Content-Transfer-Encoding: quoted-printable
 
 <div dir=3D"ltr"><span style=3D"font-size:13px">Ah, good catch ...=C2=A0</s=
 pan><div><span style=3D"font-size:13px"><br></span></div><div><span style=
 =3D"font-size:13px">+#ifndef ISLEAPYEAR</span><br style=3D"font-size:13px">=
 <span style=3D"font-size:13px">=C2=A0+#define ISLEAPYEAR(y) (((y) % 4) =3D=
 =3D 0 &amp;&amp; (((y) % 100) !=3D 0 || ((y) % 400) =3D=3D 0))</span><br st=
 yle=3D"font-size:13px"><span style=3D"font-size:13px">=C2=A0+#endif</span><=
 br></div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On=
  29 June 2015 at 05:00, David Holland <span dir=3D"ltr">&lt;<a href=3D"mail=
 to:dholland-bugs%netbsd.org@localhost" target=3D"_blank">dholland-bugs%netbsd.org@localhost</a>=
 &gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0=
  0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The following reply wa=
 s made to PR lib/50009; it has been noted by GNATS.<br>
 <br>
 From: David Holland &lt;<a href=3D"mailto:dholland-bugs%netbsd.org@localhost";>dhollan=
 d-bugs%netbsd.org@localhost</a>&gt;<br>
 To: gnats-bugs%NetBSD.org@localhost<br>
 Cc:<br>
 Subject: Re: lib/50009: strptime small enhancement<br>
 Date: Mon, 29 Jun 2015 03:58:23 +0000<br>
 <br>
 =C2=A0On Sun, Jun 28, 2015 at 07:50:00PM +0000, <a href=3D"mailto:devnexen@=
 gmail.com">devnexen%gmail.com@localhost</a> wrote:<br>
 =C2=A0 &gt; +#ifndef ISLEAPYEAR<br>
 =C2=A0 &gt; +#define ISLEAPYEAR(y) ((y % 400) =3D=3D 0 &amp;&amp; (y % 4) =
 =3D=3D 0 &amp;&amp; (y % 100) !=3D 0)<br>
 =C2=A0 &gt; +#endif<br>
 <br>
 =C2=A0...this is wrong...<br>
 <br>
 =C2=A0--<br>
 =C2=A0David A. Holland<br>
 =C2=A0<a href=3D"mailto:dholland%netbsd.org@localhost";>dholland%netbsd.org@localhost</a><br>
 <br>
 </blockquote></div><br></div>
 
 --001a113ab4e8ed28430519a08fa8--
 



Home | Main Index | Thread Index | Old Index