From cca5dddcda2bd7053ca800e0f33bd2e6676ee3df Mon Sep 17 00:00:00 2001 From: dalecki Date: Sat, 18 Feb 2006 09:25:31 +0000 Subject: 2006-02-17 Grigory Zagorodnev gcc/ChangeLog: * doc/cpp.texi (__TIMESTAMP__): Document. libcpp/ChangeLog: * macro.c (_cpp_builtin_macro_text): Handle BT_TIMESTAMP. * files.c (_cpp_get_file_stat): New function. * include/cpplib.h (builtin_type): Add BT_TIMESTAMP. * init.c (builtin_array): Add support for __TIMESTAMP__/BT_TIMESTAMP. * internal.h (_cpp_get_file_stat): Prototype. (struct cpp_buffer): Add timestamp. gcc/testsuite/ChangeLog: * gcc.dg/cpp/undef3.c: New test. * gcc.dg/cpp/trad/builtins2.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111232 138bc75d-0d04-0410-961f-82ee72b054a4 --- libcpp/files.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libcpp/files.c') diff --git a/libcpp/files.c b/libcpp/files.c index 31c38d0bb80..83342180590 100644 --- a/libcpp/files.c +++ b/libcpp/files.c @@ -1147,6 +1147,13 @@ _cpp_pop_file_buffer (cpp_reader *pfile, _cpp_file *file) } } +/* Inteface to file statistics record in _cpp_file structure. */ +struct stat * +_cpp_get_file_stat (_cpp_file *file) +{ + return &file->st; +} + /* Set the include chain for "" to QUOTE, for <> to BRACKET. If QUOTE_IGNORES_SOURCE_DIR, then "" includes do not look in the directory of the including file. -- cgit v1.2.1