From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josh Triplett Subject: Re: [PATCH] __DATE__ & __TIME expansion Date: Sun, 20 May 2007 16:02:00 -0700 Message-ID: <4650D368.1060806@freedesktop.org> References: <11796983862564-git-send-email-damien.lespiau@gmail.com> <11796983861111-git-send-email-damien.lespiau@gmail.com> <20070520225019.GA2547@daikokuya.co.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig7C37CF0E06DD9A3DC0C75465" Return-path: Received: from mail5.sea5.speakeasy.net ([69.17.117.7]:39994 "EHLO mail5.sea5.speakeasy.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757967AbXETXCN (ORCPT ); Sun, 20 May 2007 19:02:13 -0400 In-Reply-To: <20070520225019.GA2547@daikokuya.co.uk> Sender: linux-sparse-owner@vger.kernel.org List-Id: linux-sparse@vger.kernel.org To: Neil Booth Cc: Damien Lespiau , linux-sparse@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig7C37CF0E06DD9A3DC0C75465 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Neil Booth wrote: > Damien Lespiau wrote:- >=20 >> Makes __DATE__expand to a character string literal of >> the form "Mmm dd yyyy" where the names of the months >> are the same as those generated by the asctime function, >> and the first character of dd is a space character if the >> value is less than 10. >> Makes __TIME__ expand to a a character string literal of >> the form "hh:mm:ss" as in the time generated by the >> asctime function. >> >> So says C99. >> >> Signed-off-by: Damien Lespiau >=20 > It seems your code could lead to these macros having different > values in a long compilation, which the standard doesn't permit. Ah, I didn't know that. So calling time more than once doesn't just slow= down compilation; it also violates the standard. I feel better about asking f= or a fix to only call time once, now. :) - Josh Triplett --------------enig7C37CF0E06DD9A3DC0C75465 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGUNNoGJuZRtD+evsRArfcAKC8W6ElwsLzfJ2+LQgzpW6FUXXvUwCgqaTs z19xiEpOBH+/3ncIlOC6srg= =1PMk -----END PGP SIGNATURE----- --------------enig7C37CF0E06DD9A3DC0C75465--