cppfiles.c (open_file): Fail directories silently, but with an errno of NOENT set.
authorNeil Booth <neil@daikokuya.demon.co.uk>
Fri, 6 Apr 2001 05:21:36 +0000 (05:21 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Fri, 6 Apr 2001 05:21:36 +0000 (05:21 +0000)
commit7c0927142c51ad22532fb77f0a8027836cd1f8e9
tree01525776aece00c4a0a1e9067077ab550278e061
parent8d66b99ac2041c14b836475fec83b77acea675b7
cppfiles.c (open_file): Fail directories silently, but with an errno of NOENT set.

* cppfiles.c (open_file): Fail directories silently, but
with an errno of NOENT set.
(read_include_file): Move the common exit code to the sole
caller.  Return an int indicating success or failure.  Let
open_file handle directories.
(stack_include_file): If read_include_file fails,
push a "null" buffer.

From-SVN: r41138
gcc/ChangeLog
gcc/cppfiles.c