Commit 2dd8670a by Vincent Celier Committed by Arnaud Charlet

2008-08-20 Vincent Celier <celier@adacore.com>

	* ali.adb:
	(Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
	as the name may already have been entered in the table by the Project
	Manager.

From-SVN: r139331
parent bda3bc77
...@@ -1999,13 +1999,17 @@ package body ALI is ...@@ -1999,13 +1999,17 @@ package body ALI is
if Nextc not in '0' .. '9' then if Nextc not in '0' .. '9' then
Name_Len := 0; Name_Len := 0;
while not At_End_Of_Field loop while not At_End_Of_Field loop
Name_Len := Name_Len + 1; Name_Len := Name_Len + 1;
Name_Buffer (Name_Len) := Getc; Name_Buffer (Name_Len) := Getc;
end loop; end loop;
Sdep.Table (Sdep.Last).Subunit_Name := Name_Enter; -- Set the subunit name. Note that we use Name_Find rather
-- than Name_Enter here as the subunit name may already
-- have been put in the name table by the Project Manager.
Sdep.Table (Sdep.Last).Subunit_Name := Name_Find;
Skip_Space; Skip_Space;
end if; end if;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment