summaryrefslogtreecommitdiff
path: root/gcc/ada/makeutl.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2008-05-27 09:20:48 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2008-05-27 09:20:48 +0000
commitc1fda027fd93acb66b8637b108f55696dfde112d (patch)
tree3286f3d46f1e7b1e3c1193c922a2d0214a182218 /gcc/ada/makeutl.ads
parent9e2be923625a8976333c461f4986e5e6a6e6bc26 (diff)
downloadgcc-c1fda027fd93acb66b8637b108f55696dfde112d.tar.gz
2008-05-27 Vincent Celier <celier@adacore.com>
* makeutl.ads, makeutl.adb: (Set_Location): New procedure (Get_Location): New function (Update_Main): New procedure git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135993 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/makeutl.ads')
-rw-r--r--gcc/ada/makeutl.ads10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ada/makeutl.ads b/gcc/ada/makeutl.ads
index 9672744a1ac..b6483f3e520 100644
--- a/gcc/ada/makeutl.ads
+++ b/gcc/ada/makeutl.ads
@@ -103,6 +103,10 @@ package Makeutl is
procedure Add_Main (Name : String);
-- Add one main to the table
+ procedure Set_Location (Location : Source_Ptr);
+ -- Set the location of the last main added. By default, the location is
+ -- No_Location.
+
procedure Delete;
-- Empty the table
@@ -113,6 +117,12 @@ package Makeutl is
-- Increase the index and return the next main.
-- If table is exhausted, return an empty string.
+ function Get_Location return Source_Ptr;
+ -- Get the location of the current main
+
+ procedure Update_Main (Name : String);
+ -- Update the file name of the current main
+
function Number_Of_Mains return Natural;
-- Returns the number of mains added with Add_Main since the last call
-- to Delete.