#import, #pragma once yadda yadda mumble grumble

Neil Booth neil@daikokuya.co.uk
Wed Jul 30 21:55:00 GMT 2003


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.



More information about the Gcc mailing list