diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-03 10:19:32 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-03 10:19:32 +0000 |
commit | 039fcfa6316d4a70d271d974f9ded9c2001a97b8 (patch) | |
tree | b0a3d19077a30eaebc12a8b662cc50d870dcdb04 /gcc/ada/prj-util.ads | |
parent | 3aa582cd74c2d892c68361298d2e6e83b9d1d595 (diff) | |
download | gcc-039fcfa6316d4a70d271d974f9ded9c2001a97b8.tar.gz |
2011-08-03 Emmanuel Briot <briot@adacore.com>
* gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, mlib-prj.adb,
prj.adb, prj.ads, makeutl.adb, makeutl.ads, clean.adb, prj-nmsc.adb,
prj-util.adb, prj-util.ads, prj-conf.adb, prj-conf.ads, prj-env.adb,
prj-env.ads (Shared_Project_Tree_Data): new type
An aggregate project and its aggregated trees need to share the common
data structures used for lists of strings, packages,... This makes the
code simpler since otherwise we have to pass the root tree (also used
for the configuration file data) in addition to the current project
tree. This also avoids ambiguities as to which tree should be used.
And finally this saves a bit of memory.
(For_Every_Project_Imported): new parameter Tree.
Since aggregated projects are using a different tree, we need to let
the caller know which tree to use to manipulate the returned project.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177261 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/prj-util.ads')
-rw-r--r-- | gcc/ada/prj-util.ads | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/ada/prj-util.ads b/gcc/ada/prj-util.ads index 741dc7f048d..7c94a3c8572 100644 --- a/gcc/ada/prj-util.ads +++ b/gcc/ada/prj-util.ads @@ -6,7 +6,7 @@ -- -- -- S p e c -- -- -- --- Copyright (C) 2001-2010, Free Software Foundation, Inc. -- +-- Copyright (C) 2001-2011, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -29,7 +29,7 @@ package Prj.Util is function Executable_Of (Project : Project_Id; - In_Tree : Project_Tree_Ref; + Shared : Shared_Project_Tree_Data_Access; Main : File_Name_Type; Index : Int; Ada_Main : Boolean := True; @@ -61,7 +61,7 @@ package Prj.Util is procedure Duplicate (This : in out Name_List_Index; - In_Tree : Project_Tree_Ref); + Shared : Shared_Project_Tree_Data_Access); -- Duplicate a name list function Value_Of @@ -73,7 +73,7 @@ package Prj.Util is function Value_Of (Index : Name_Id; In_Array : Array_Element_Id; - In_Tree : Project_Tree_Ref) return Name_Id; + Shared : Shared_Project_Tree_Data_Access) return Name_Id; -- Get a single string array component. Returns No_Name if there is no -- component Index, if In_Array is null, or if the component is a String -- list. Depending on the attribute (only attributes may be associative @@ -85,7 +85,7 @@ package Prj.Util is (Index : Name_Id; Src_Index : Int := 0; In_Array : Array_Element_Id; - In_Tree : Project_Tree_Ref; + Shared : Shared_Project_Tree_Data_Access; Force_Lower_Case_Index : Boolean := False; Allow_Wildcards : Boolean := False) return Variable_Value; -- Get a string array component (single String or String list). Returns @@ -101,7 +101,7 @@ package Prj.Util is Index : Int := 0; Attribute_Or_Array_Name : Name_Id; In_Package : Package_Id; - In_Tree : Project_Tree_Ref; + Shared : Shared_Project_Tree_Data_Access; Force_Lower_Case_Index : Boolean := False; Allow_Wildcards : Boolean := False) return Variable_Value; -- In a specific package: @@ -117,7 +117,7 @@ package Prj.Util is (Index : Name_Id; In_Array : Name_Id; In_Arrays : Array_Id; - In_Tree : Project_Tree_Ref) return Name_Id; + Shared : Shared_Project_Tree_Data_Access) return Name_Id; -- Get a string array component in an array of an array list. Returns -- No_Name if there is no component Index, if In_Arrays is null, if -- In_Array is not found in In_Arrays or if the component is a String list. @@ -125,7 +125,7 @@ package Prj.Util is function Value_Of (Name : Name_Id; In_Arrays : Array_Id; - In_Tree : Project_Tree_Ref) return Array_Element_Id; + Shared : Shared_Project_Tree_Data_Access) return Array_Element_Id; -- Returns a specified array in an array list. Returns No_Array_Element -- if In_Arrays is null or if Name is not the name of an array in -- In_Arrays. The caller must ensure that Name is in lower case. @@ -133,7 +133,7 @@ package Prj.Util is function Value_Of (Name : Name_Id; In_Packages : Package_Id; - In_Tree : Project_Tree_Ref) return Package_Id; + Shared : Shared_Project_Tree_Data_Access) return Package_Id; -- Returns a specified package in a package list. Returns No_Package -- if In_Packages is null or if Name is not the name of a package in -- Package_List. The caller must ensure that Name is in lower case. @@ -141,7 +141,7 @@ package Prj.Util is function Value_Of (Variable_Name : Name_Id; In_Variables : Variable_Id; - In_Tree : Project_Tree_Ref) return Variable_Value; + Shared : Shared_Project_Tree_Data_Access) return Variable_Value; -- Returns a specified variable in a variable list. Returns null if -- In_Variables is null or if Variable_Name is not the name of a -- variable in In_Variables. Caller must ensure that Name is lower case. |