Ludovic Brenta <[email protected]> writes:

> If:
> - the compilation-search-path contains symbolic links to directories
>   containing the sources (e.g. /usr/src -> /disk/g/usr/src)
> and
> - one source file is currently open under its fully-qualified name
>   (e.g. /disk/g/usr/src/my-project/my_source_file.adb),
>
> then ada-check-current-project says the visited file does not belong
> to the current project; it thinks the visited file,
> /disk/g/usr/src/my-project/my_source_file.adb, is not the same as the
> corresponding file in the project,
> /usr/src/my-project/my_source_file.adb.

Ok.

> Similar problem if the file itself is a symbolic link, e.g.
>
> /tmp/my_source_file.adb -> /usr/src/my-project/my_source_file.adb
>
> and only /usr/src/my-project/ is in the compilation-search-path.
>
> Similar problem in the (rare) case where the source file has several
> names (hard links) in different places.
>
> The only correct way to determine if two file names designate the same
> file is to compare their inode numbers.  Patch attached.

'file-truename' handles symbolic links. I gather inodes are needed
for the hard link case?


-- 
-- Stephe

_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org

Reply via email to