aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpphash.h
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2000-06-30 09:47:49 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2000-06-30 09:47:49 +0000
commitf3f751adcb318b6f5183f94686dc108715981e6a (patch)
tree4970a3469f1e57aa1f8e1516bdd8be5ca7391d38 /gcc/cpphash.h
parent34f9943ef73797e5db1039d888785b0bc5f220e0 (diff)
downloadgcc-f3f751adcb318b6f5183f94686dc108715981e6a.zip
gcc-f3f751adcb318b6f5183f94686dc108715981e6a.tar.gz
gcc-f3f751adcb318b6f5183f94686dc108715981e6a.tar.bz2
cpp.texi: Document #pragma GCC dependency
* cpp.texi: Document #pragma GCC dependency * cppfiles.c (open_include_file): Set date to unknown. (_cpp_compare_file_date): New function. (read_include_file): Set file date. * cpphash.h (struct include_file): Add date member. (_cpp_compare_file_date): Prototype. * cpplib.c (parse_include): Add trail parameter. Adjust. (do_include): Adjust parse_include call. (do_import): Likewise. (do_include_next): Likewise. (gcc_pragmas): Add dependency pragma. (do_pragma_dependancy): New pragma. From-SVN: r34808
Diffstat (limited to 'gcc/cpphash.h')
-rw-r--r--gcc/cpphash.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h
index f3e19d3e..ec9204a 100644
--- a/gcc/cpphash.h
+++ b/gcc/cpphash.h
@@ -64,6 +64,7 @@ struct include_file
int fd; /* file descriptor possibly open on file */
unsigned short include_count; /* number of times file has been read */
unsigned short sysp; /* file is a system header */
+ time_t date; /* modification date of file, if known */
};
/* The cmacro works like this: If it's NULL, the file is to be
@@ -193,6 +194,9 @@ extern void _cpp_simplify_pathname PARAMS ((char *));
extern void _cpp_execute_include PARAMS ((cpp_reader *, U_CHAR *,
unsigned int, int,
struct file_name_list *));
+extern int _cpp_compare_file_date PARAMS ((cpp_reader *, U_CHAR *,
+ unsigned int,
+ struct file_name_list *));
extern void _cpp_init_include_table PARAMS ((cpp_reader *));
extern const char *_cpp_fake_include PARAMS ((cpp_reader *, const char *));