This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: #import, #pragma once yadda yadda mumble grumble
Jonathan Lennox wrote:-
> On Wednesday, July 30 2003, "Neil Booth" wrote:
>
> > If it doesn't hit anything in the hash table, it looks for a once-only
> > file with the same mtime and length (which, unless you're unlucky,
> > should fail for everything). If something matches it then falls back
> > to a byte-by-byte file comparison (so this is what happens to symlinks
> > and hardlinks, but users of those should expect to pay).
>
> This comparison also happens for the case:
> #import "dir/file1.h"
> #import "dir/file2.h"
>
> where dir/file1.h includes
> #import "file2.h"
>
> right? Or am I missing something clever about the hash table code?
Right.
Neil.