Commit 55603e5e by Arnaud Charlet

[multiple changes]

2009-07-28  Ed Schonberg  <schonberg@adacore.com>

	* sem_aggr.adb (Get_Value): A named association in a record aggregate
	should be treated as a modification of the named component, not as a
	reference.

2009-07-28  Quentin Ochem  <ochem@adacore.com>

	* prj-tree.ads, prj-tree.adb (Free): Minor editing.
	* prj.ads, prj.adb (Image): Ditto.

From-SVN: r150151
parent e657b693
2009-07-28 Ed Schonberg <schonberg@adacore.com>
* sem_aggr.adb (Get_Value): A named association in a record aggregate
should be treated as a modification of the named component, not as a
reference.
2009-07-28 Quentin Ochem <ochem@adacore.com>
* prj-tree.ads, prj-tree.adb (Free): Minor editing.
* prj.ads, prj.adb (Image): Ditto.
2009-07-28 Arnaud Charlet <charlet@adacore.com> 2009-07-28 Arnaud Charlet <charlet@adacore.com>
* frontend.adb: Minor reformatting. * frontend.adb: Minor reformatting.
......
...@@ -989,14 +989,14 @@ package body Prj.Tree is ...@@ -989,14 +989,14 @@ package body Prj.Tree is
-- Free -- -- Free --
---------- ----------
procedure Free (Prj : in out Project_Node_Tree_Ref) is procedure Free (Proj : in out Project_Node_Tree_Ref) is
procedure Unchecked_Free is new Ada.Unchecked_Deallocation procedure Unchecked_Free is new Ada.Unchecked_Deallocation
(Project_Node_Tree_Data, Project_Node_Tree_Ref); (Project_Node_Tree_Data, Project_Node_Tree_Ref);
begin begin
if Prj /= null then if Proj /= null then
Project_Node_Table.Free (Prj.Project_Nodes); Project_Node_Table.Free (Proj.Project_Nodes);
Projects_Htable.Reset (Prj.Projects_HT); Projects_Htable.Reset (Proj.Projects_HT);
Unchecked_Free (Prj); Unchecked_Free (Proj);
end if; end if;
end Free; end Free;
......
...@@ -1373,7 +1373,7 @@ package Prj.Tree is ...@@ -1373,7 +1373,7 @@ package Prj.Tree is
end record; end record;
-- The data for a project node tree -- The data for a project node tree
procedure Free (Prj : in out Project_Node_Tree_Ref); procedure Free (Proj : in out Project_Node_Tree_Ref);
-- Free memory used by Prj -- Free memory used by Prj
private private
......
...@@ -600,9 +600,9 @@ package body Prj is ...@@ -600,9 +600,9 @@ package body Prj is
-- Image -- -- Image --
----------- -----------
function Image (Casing : Casing_Type) return String is function Image (The_Casing : Casing_Type) return String is
begin begin
return The_Casing_Images (Casing).all; return The_Casing_Images (The_Casing).all;
end Image; end Image;
----------------------------- -----------------------------
......
...@@ -795,7 +795,7 @@ package Prj is ...@@ -795,7 +795,7 @@ package Prj is
Symbol_Policy => Autonomous); Symbol_Policy => Autonomous);
-- The default value of the symbol data -- The default value of the symbol data
function Image (Casing : Casing_Type) return String; function Image (The_Casing : Casing_Type) return String;
-- Similar to 'Image (but avoid use of this attribute in compiler) -- Similar to 'Image (but avoid use of this attribute in compiler)
function Value (Image : String) return Casing_Type; function Value (Image : String) return Casing_Type;
......
...@@ -2737,7 +2737,7 @@ package body Sem_Aggr is ...@@ -2737,7 +2737,7 @@ package body Sem_Aggr is
end if; end if;
end if; end if;
Generate_Reference (Compon, Selector_Name); Generate_Reference (Compon, Selector_Name, 'm');
else else
Error_Msg_NE Error_Msg_NE
......
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