aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sinput-p.adb
diff options
context:
space:
mode:
authorVincent Celier <celier@adacore.com>2007-08-14 10:43:34 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2007-08-14 10:43:34 +0200
commit2cd44f5a448ad1e160edae120cc7b945ca1a5db3 (patch)
tree5875d0102588a0bdaf32f61cb26f856f87ff7ec6 /gcc/ada/sinput-p.adb
parentc9b9ec14ece5acf23bf0817633914e28c43c0678 (diff)
downloadgcc-2cd44f5a448ad1e160edae120cc7b945ca1a5db3.zip
gcc-2cd44f5a448ad1e160edae120cc7b945ca1a5db3.tar.gz
gcc-2cd44f5a448ad1e160edae120cc7b945ca1a5db3.tar.bz2
clean.adb, [...] (Create_Sym_Links): New procedure.
2007-08-14 Vincent Celier <celier@adacore.com> * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb, gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb, mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New procedure. (Major_Id_Name): New function. mlib-tgt.ads/mlib.tgt.adb: (Library_Major_Minor_Id_Supported): New function, default returns True Most mlib-tgt-*.adb that support shared libraries and symbolic links: (Build_Dynamic_Library): Add support for major/minor ids for shared libs Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi): Implementation of Library_Major_Minor_Id_Supported returns False clean.adb: (Clean_Library_Directory): If major/minor ids are supported, clean all library files. Major update of the Project Manager and of the project aware tools, including gprmake, so that the same sources in the GNAT repository can be used by gprbuild. From-SVN: r127432
Diffstat (limited to 'gcc/ada/sinput-p.adb')
-rw-r--r--gcc/ada/sinput-p.adb14
1 files changed, 12 insertions, 2 deletions
diff --git a/gcc/ada/sinput-p.adb b/gcc/ada/sinput-p.adb
index 4718952..91acd0e 100644
--- a/gcc/ada/sinput-p.adb
+++ b/gcc/ada/sinput-p.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2006, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2007, 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- --
@@ -32,7 +32,8 @@ package body Sinput.P is
First : Boolean := True;
-- Flag used when Load_Project_File is called the first time,
-- to set Main_Source_File.
- -- The flag is reset to False at the first call to Load_Project_File
+ -- The flag is reset to False at the first call to Load_Project_File.
+ -- Calling Reset_First sets it back to True.
-----------------------
-- Load_Project_File --
@@ -52,6 +53,15 @@ package body Sinput.P is
return X;
end Load_Project_File;
+ -----------------
+ -- Reset_First --
+ -----------------
+
+ procedure Reset_First is
+ begin
+ First := True;
+ end Reset_First;
+
--------------------------------
-- Restore_Project_Scan_State --
--------------------------------