Commit b403bd17 by Robert Dewar Committed by Geert Bosch

* prj-util.adb: Minor reformatting

From-SVN: r46546
parent a160babb
...@@ -4,6 +4,10 @@ ...@@ -4,6 +4,10 @@
2001-10-26 Robert Dewar <dewar@gnat.com> 2001-10-26 Robert Dewar <dewar@gnat.com>
* prj-util.adb: Minor reformatting
2001-10-26 Robert Dewar <dewar@gnat.com>
* prj-attr.adb: Minor reformatting throughout * prj-attr.adb: Minor reformatting throughout
2001-10-26 Robert Dewar <dewar@gnat.com> 2001-10-26 Robert Dewar <dewar@gnat.com>
......
...@@ -255,7 +255,7 @@ package body Prj.Util is ...@@ -255,7 +255,7 @@ package body Prj.Util is
(Name : Name_Id; (Name : Name_Id;
Attribute_Or_Array_Name : Name_Id; Attribute_Or_Array_Name : Name_Id;
In_Package : Package_Id) In_Package : Package_Id)
return Variable_Value return Variable_Value
is is
The_Array : Array_Element_Id; The_Array : Array_Element_Id;
The_Attribute : Variable_Value := Nil_Variable_Value; The_Attribute : Variable_Value := Nil_Variable_Value;
...@@ -315,11 +315,12 @@ package body Prj.Util is ...@@ -315,11 +315,12 @@ package body Prj.Util is
return Array_Element_Id return Array_Element_Id
is is
Current : Array_Id := In_Arrays; Current : Array_Id := In_Arrays;
The_Array : Array_Data; The_Array : Array_Data;
begin begin
while Current /= No_Array loop while Current /= No_Array loop
The_Array := Arrays.Table (Current); The_Array := Arrays.Table (Current);
if The_Array.Name = Name then if The_Array.Name = Name then
return The_Array.Value; return The_Array.Value;
else else
...@@ -341,8 +342,8 @@ package body Prj.Util is ...@@ -341,8 +342,8 @@ package body Prj.Util is
begin begin
while Current /= No_Package loop while Current /= No_Package loop
The_Package := Packages.Table (Current); The_Package := Packages.Table (Current);
exit when The_Package.Name /= No_Name and then exit when The_Package.Name /= No_Name
The_Package.Name = Name; and then The_Package.Name = Name;
Current := The_Package.Next; Current := The_Package.Next;
end loop; end loop;
......
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