[gps-devel] Debian Bug#666958: gnat-gps: GPS isn't looking in /usr/share/ada/adainclude for installed packages
Ludovic Brenta
ludovic at ludovic-brenta.org
Tue Apr 10 14:07:19 CEST 2012
On Tue, 10 Apr 2012 14:00:53 +0200, Emmanuel Briot wrote:
> Thanks.
> I agree there is a bug there, although I chose a different approach
> than you patch (using a Set is more efficient than looping as we did
> before -- this was pre-Ada2005 code).
I don't think it really is more efficient in real cases where there are
two or three directories in Project_Path... but OK. You could improve
the patch further by getting rid of the Found variable and directly
saying
if not Visited.Contains (Project_Path (J)) then ...
--
Ludovic Brenta.
More information about the gps-devel
mailing list