aboutsummaryrefslogtreecommitdiff
path: root/libcpp/internal.h
diff options
context:
space:
mode:
authorGrigory Zagorodnev <grigory_zagorodnev@linux.intel.com>2006-02-18 09:25:31 +0000
committerMarcin Dalecki <dalecki@gcc.gnu.org>2006-02-18 10:25:31 +0100
commitbe8ac3e243dda9430ee53a245a3c1ee3a6acbc7c (patch)
tree7042da2d52f0b0578ba88e4df4ca0cbceeee00ab /libcpp/internal.h
parent8d08b2d786e93fffe4c6802239b6808680785bc9 (diff)
downloadgcc-be8ac3e243dda9430ee53a245a3c1ee3a6acbc7c.zip
gcc-be8ac3e243dda9430ee53a245a3c1ee3a6acbc7c.tar.gz
gcc-be8ac3e243dda9430ee53a245a3c1ee3a6acbc7c.tar.bz2
cpp.texi (__TIMESTAMP__): Document.
2006-02-17 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com> 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. From-SVN: r111232
Diffstat (limited to 'libcpp/internal.h')
-rw-r--r--libcpp/internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcpp/internal.h b/libcpp/internal.h
index 8ac1103..857bfe1 100644
--- a/libcpp/internal.h
+++ b/libcpp/internal.h
@@ -264,6 +264,10 @@ struct cpp_buffer
Used for include_next and to record control macros. */
struct _cpp_file *file;
+ /* Saved value of __TIMESTAMP__ macro - date and time of last modification
+ of the assotiated file. */
+ const unsigned char *timestamp;
+
/* Value of if_stack at start of this file.
Used to prohibit unmatched #endif (etc) in an include file. */
struct if_stack *if_stack;
@@ -524,6 +528,7 @@ extern void _cpp_cleanup_files (cpp_reader *);
extern void _cpp_pop_file_buffer (cpp_reader *, struct _cpp_file *);
extern bool _cpp_save_file_entries (cpp_reader *pfile, FILE *f);
extern bool _cpp_read_file_entries (cpp_reader *, FILE *);
+extern struct stat *_cpp_get_file_stat (_cpp_file *);
/* In expr.c */
extern bool _cpp_parse_expr (cpp_reader *);