diff options
author | 2007-05-21 01:39:26 +0200 | |
---|---|---|
committer | 2007-05-20 17:37:50 -0700 | |
commit | 1cc42170efe8cdb5f3b1e41e26d796e04c31dc95 (patch) | |
tree | a513c50f71547594535852b3b5b0768f22d7ff0f /ident-list.h | |
parent | Change sparse homepage in ctags headers. (diff) | |
download | sparse-1cc42170efe8cdb5f3b1e41e26d796e04c31dc95.tar.gz sparse-1cc42170efe8cdb5f3b1e41e26d796e04c31dc95.tar.bz2 sparse-1cc42170efe8cdb5f3b1e41e26d796e04c31dc95.zip |
__DATE__ & __TIME expansion
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.
Signed-off-by: Damien Lespiau <damien.lespiau@gmail.com>
Diffstat (limited to 'ident-list.h')
-rw-r--r-- | ident-list.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ident-list.h b/ident-list.h index 7633a2f..dad22ef 100644 --- a/ident-list.h +++ b/ident-list.h @@ -75,6 +75,8 @@ __IDENT(pragma_ident, "__pragma__", 0); __IDENT(__VA_ARGS___ident, "__VA_ARGS__", 0); __IDENT(__LINE___ident, "__LINE__", 0); __IDENT(__FILE___ident, "__FILE__", 0); +__IDENT(__DATE___ident, "__DATE__", 0); +__IDENT(__TIME___ident, "__TIME__", 0); __IDENT(__func___ident, "__func__", 0); __IDENT(__FUNCTION___ident, "__FUNCTION__", 0); __IDENT(__PRETTY_FUNCTION___ident, "__PRETTY_FUNCTION__", 0); |