aboutsummaryrefslogtreecommitdiff
path: root/lib.c
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@gmail.com>2007-05-21 01:39:26 +0200
committerJosh Triplett <josh@freedesktop.org>2007-05-20 17:37:50 -0700
commit1cc42170efe8cdb5f3b1e41e26d796e04c31dc95 (patch)
treea513c50f71547594535852b3b5b0768f22d7ff0f /lib.c
parentChange sparse homepage in ctags headers. (diff)
downloadsparse-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 'lib.c')
-rw-r--r--lib.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib.c b/lib.c
index 2162007..b678990 100644
--- a/lib.c
+++ b/lib.c
@@ -602,8 +602,6 @@ void create_builtin_stream(void)
/* FIXME! We need to do these as special magic macros at expansion time! */
add_pre_buffer("#define __BASE_FILE__ \"base_file.c\"\n");
- add_pre_buffer("#define __DATE__ \"??? ?? ????\"\n");
- add_pre_buffer("#define __TIME__ \"??:??:??\"\n");
if (optimize)
add_pre_buffer("#define __OPTIMIZE__ 1\n");