aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpphash.h
diff options
context:
space:
mode:
authorZack Weinberg <zack@wolery.cumb.org>2000-06-28 19:03:08 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-06-28 19:03:08 +0000
commitd4506961cd58fde924aa6561e8896e18161b82ad (patch)
tree82b11e25ea2057714b83389ff3651dad11f94f5e /gcc/cpphash.h
parent47ec19c5bb9a7992d1a5f2a561df3b47dd6ea539 (diff)
downloadgcc-d4506961cd58fde924aa6561e8896e18161b82ad.zip
gcc-d4506961cd58fde924aa6561e8896e18161b82ad.tar.gz
gcc-d4506961cd58fde924aa6561e8896e18161b82ad.tar.bz2
cppfiles.c (open_include_file): If open(2) returns EMFILE or ENFILE...
* cppfiles.c (open_include_file): If open(2) returns EMFILE or ENFILE, close all cached file descriptors and try again. (_cpp_execute_include): Keep a count of the number of times each header is included. (close_cached_fd): New function. * cpphash.h (struct include_file): Rename before to include_count; all users updated. Make include_count and sysp unsigned short. * cppinit.c (cpp_finish): If -H, report headers that could use reinclude guards. (report_missing_guard): New function. From-SVN: r34760
Diffstat (limited to 'gcc/cpphash.h')
-rw-r--r--gcc/cpphash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h
index 967dcef..f3e19d3e 100644
--- a/gcc/cpphash.h
+++ b/gcc/cpphash.h
@@ -62,8 +62,8 @@ struct include_file
/* location in search path where file was
found, for #include_next */
int fd; /* file descriptor possibly open on file */
- unsigned char before; /* file has been included before */
- unsigned char sysp; /* file is a system header */
+ unsigned short include_count; /* number of times file has been read */
+ unsigned short sysp; /* file is a system header */
};
/* The cmacro works like this: If it's NULL, the file is to be