From: Neil Booth Subject: Re: [PATCH] __DATE__ & __TIME expansion Date: Mon, 21 May 2007 07:50:19 +0900 Message-ID: <20070520225019.GA2547@daikokuya.co.uk> References: <11796983862564-git-send-email-damien.lespiau@gmail.com> <11796983861111-git-send-email-damien.lespiau@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from v035086.ppp.asahi-net.or.jp ([124.155.35.86]:7436 "HELO daikokuya.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with SMTP id S1757248AbXETWuT (ORCPT ); Sun, 20 May 2007 18:50:19 -0400 Content-Disposition: inline In-Reply-To: <11796983861111-git-send-email-damien.lespiau@gmail.com> Sender: linux-sparse-owner@vger.kernel.org List-Id: linux-sparse@vger.kernel.org To: Damien Lespiau Cc: linux-sparse@vger.kernel.org Damien Lespiau wrote:- > 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 It seems your code could lead to these macros having different values in a long compilation, which the standard doesn't permit. Neil.