Commit 66288b9c by Robert Dewar Committed by Arnaud Charlet

prj-proc.adb, [...]: Update comments.

2014-07-30  Robert Dewar  <dewar@adacore.com>

	* prj-proc.adb, prj-strt.adb: Update comments.

From-SVN: r213238
parent 12e4e81e
2014-07-30 Robert Dewar <dewar@adacore.com>
* prj-proc.adb, prj-strt.adb: Update comments.
2014-07-30 Gary Dismukes <dismukes@adacore.com> 2014-07-30 Gary Dismukes <dismukes@adacore.com>
* sinfo.ads, einfo.ads, checks.ads: Minor typo fix and reformatting. * sinfo.ads, einfo.ads, checks.ads: Minor typo fix and reformatting.
......
...@@ -121,7 +121,9 @@ package body Prj.Proc is ...@@ -121,7 +121,9 @@ package body Prj.Proc is
(Project : Project_Id; (Project : Project_Id;
With_Name : Name_Id; With_Name : Name_Id;
No_Extending : Boolean := False) return Project_Id; No_Extending : Boolean := False) return Project_Id;
-- Find an imported or extended project of Project whose name is With_Name -- Find an imported or extended project of Project whose name is With_Name.
-- When No_Extending is True, do not look for extending projects, returns
-- the exact project whose name is With_Name.
function Package_From function Package_From
(Project : Project_Id; (Project : Project_Id;
......
...@@ -1182,11 +1182,12 @@ package body Prj.Strt is ...@@ -1182,11 +1182,12 @@ package body Prj.Strt is
exit when Present (Current_Variable); exit when Present (Current_Variable);
-- Please document this new test ???
if No (Parent_Project_Of (Proj, In_Tree)) then if No (Parent_Project_Of (Proj, In_Tree)) then
Proj := Proj :=
Extended_Project_Of Extended_Project_Of
(Project_Declaration_Of (Proj, In_Tree), In_Tree); (Project_Declaration_Of (Proj, In_Tree), In_Tree);
else else
Proj := Parent_Project_Of (Proj, In_Tree); Proj := Parent_Project_Of (Proj, In_Tree);
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