X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gcc%2Fada%2Fa-cohase.adb;h=6180168a1da23570a24868c70f00bd06e010015d;hb=4d8cd3a26294ce35abb17668eac2b6c38dd23bd0;hp=11940ee7a57e5ab63792ec75ab1ff538c13f1572;hpb=c944d49b3bd3667c65c299afd3b1d756084203f4;p=platform%2Fupstream%2Fgcc48.git diff --git a/gcc/ada/a-cohase.adb b/gcc/ada/a-cohase.adb index 11940ee..6180168 100644 --- a/gcc/ada/a-cohase.adb +++ b/gcc/ada/a-cohase.adb @@ -238,9 +238,8 @@ package body Ada.Containers.Hashed_Sets is L : Natural renames HT.Lock; begin return R : constant Constant_Reference_Type := - (Element => Position.Node.Element'Access, - Control => - (Controlled with Container'Unrestricted_Access)) + (Element => Position.Node.Element'Access, + Control => (Controlled with Container'Unrestricted_Access)) do B := B + 1; L := L + 1; @@ -442,7 +441,7 @@ package body Ada.Containers.Hashed_Sets is if not Is_In (Right.HT, L_Node) then declare J : constant Hash_Type := - Hash (L_Node.Element) mod Buckets'Length; + Hash (L_Node.Element) mod Buckets'Length; Bucket : Node_Access renames Buckets (J); @@ -618,7 +617,7 @@ package body Ada.Containers.Hashed_Sets is L_Node : Node_Access) return Boolean is R_Index : constant Hash_Type := - Element_Keys.Index (R_HT, L_Node.Element); + Element_Keys.Index (R_HT, L_Node.Element); R_Node : Node_Access := R_HT.Buckets (R_Index); @@ -645,7 +644,7 @@ package body Ada.Containers.Hashed_Sets is L_Node : Node_Access) return Boolean is R_Index : constant Hash_Type := - Element_Keys.Index (R_HT, L_Node.Element); + Element_Keys.Index (R_HT, L_Node.Element); R_Node : Node_Access := R_HT.Buckets (R_Index); @@ -891,7 +890,7 @@ package body Ada.Containers.Hashed_Sets is if Is_In (Right.HT, L_Node) then declare J : constant Hash_Type := - Hash (L_Node.Element) mod Buckets'Length; + Hash (L_Node.Element) mod Buckets'Length; Bucket : Node_Access renames Buckets (J); @@ -1201,7 +1200,7 @@ package body Ada.Containers.Hashed_Sets is New_Item : Element_Type) is Node : constant Node_Access := - Element_Keys.Find (Container.HT, New_Item); + Element_Keys.Find (Container.HT, New_Item); begin if Node = null then @@ -1396,7 +1395,7 @@ package body Ada.Containers.Hashed_Sets is declare Size : constant Hash_Type := - Prime_Numbers.To_Prime (Left.Length + Right.Length); + Prime_Numbers.To_Prime (Left.Length + Right.Length); begin Buckets := HT_Ops.New_Buckets (Length => Size); end; @@ -1520,7 +1519,7 @@ package body Ada.Containers.Hashed_Sets is function New_Node (Next : Node_Access) return Node_Access is Node : constant Node_Access := - new Node_Type'(Src_Node.Element, Next); + new Node_Type'(Src_Node.Element, Next); begin return Node; end New_Node; @@ -1577,7 +1576,7 @@ package body Ada.Containers.Hashed_Sets is declare Size : constant Hash_Type := - Prime_Numbers.To_Prime (Left.Length + Right.Length); + Prime_Numbers.To_Prime (Left.Length + Right.Length); begin Buckets := HT_Ops.New_Buckets (Length => Size); end; @@ -1594,7 +1593,7 @@ package body Ada.Containers.Hashed_Sets is procedure Process (L_Node : Node_Access) is J : constant Hash_Type := - Hash (L_Node.Element) mod Buckets'Length; + Hash (L_Node.Element) mod Buckets'Length; begin Buckets (J) := new Node_Type'(L_Node.Element, Buckets (J)); @@ -1624,7 +1623,7 @@ package body Ada.Containers.Hashed_Sets is procedure Process (Src_Node : Node_Access) is J : constant Hash_Type := - Hash (Src_Node.Element) mod Buckets'Length; + Hash (Src_Node.Element) mod Buckets'Length; Tgt_Node : Node_Access := Buckets (J); @@ -1781,8 +1780,7 @@ package body Ada.Containers.Hashed_Sets is (Container : aliased Set; Key : Key_Type) return Constant_Reference_Type is - Node : constant Node_Access := - Key_Keys.Find (Container.HT, Key); + Node : constant Node_Access := Key_Keys.Find (Container.HT, Key); begin if Node = null then @@ -1795,9 +1793,8 @@ package body Ada.Containers.Hashed_Sets is L : Natural renames HT.Lock; begin return R : constant Constant_Reference_Type := - (Element => Node.Element'Access, - Control => - (Controlled with Container'Unrestricted_Access)) + (Element => Node.Element'Access, + Control => (Controlled with Container'Unrestricted_Access)) do B := B + 1; L := L + 1; @@ -1889,8 +1886,7 @@ package body Ada.Containers.Hashed_Sets is (Container : Set; Key : Key_Type) return Cursor is - Node : constant Node_Access := - Key_Keys.Find (Container.HT, Key); + Node : constant Node_Access := Key_Keys.Find (Container.HT, Key); begin if Node = null then @@ -1961,8 +1957,7 @@ package body Ada.Containers.Hashed_Sets is (Container : aliased in out Set; Key : Key_Type) return Reference_Type is - Node : constant Node_Access := - Key_Keys.Find (Container.HT, Key); + Node : constant Node_Access := Key_Keys.Find (Container.HT, Key); begin if Node = null then @@ -1985,8 +1980,7 @@ package body Ada.Containers.Hashed_Sets is Key : Key_Type; New_Item : Element_Type) is - Node : constant Node_Access := - Key_Keys.Find (Container.HT, Key); + Node : constant Node_Access := Key_Keys.Find (Container.HT, Key); begin if Node = null then