aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gnatlink.adb
diff options
context:
space:
mode:
authorRobert Dewar <dewar@adacore.com>2010-09-10 10:06:37 +0000
committerArnaud Charlet <charlet@gcc.gnu.org>2010-09-10 12:06:37 +0200
commit4120ada717cd3866e9a5121677e2fe3c99fbb3f2 (patch)
treeb65d5f0cbfd730d7df85bb406d6796438460078f /gcc/ada/gnatlink.adb
parent46f52a47acfc74e3f9cdc28bf30411095270e640 (diff)
downloadgcc-4120ada717cd3866e9a5121677e2fe3c99fbb3f2.zip
gcc-4120ada717cd3866e9a5121677e2fe3c99fbb3f2.tar.gz
gcc-4120ada717cd3866e9a5121677e2fe3c99fbb3f2.tar.bz2
gnatlink.adb, [...]: Minor reformatting.
2010-09-10 Robert Dewar <dewar@adacore.com> * gnatlink.adb, prj-ext.adb, prj-util.adb, s-tporft.adb, sem_ch3.adb: Minor reformatting. From-SVN: r164156
Diffstat (limited to 'gcc/ada/gnatlink.adb')
-rw-r--r--gcc/ada/gnatlink.adb17
1 files changed, 9 insertions, 8 deletions
diff --git a/gcc/ada/gnatlink.adb b/gcc/ada/gnatlink.adb
index 3cf65eb..47397c5 100644
--- a/gcc/ada/gnatlink.adb
+++ b/gcc/ada/gnatlink.adb
@@ -41,10 +41,10 @@ with Table;
with Targparm; use Targparm;
with Types;
-with Ada.Command_Line; use Ada.Command_Line;
-with Ada.Exceptions; use Ada.Exceptions;
+with Ada.Command_Line; use Ada.Command_Line;
+with Ada.Exceptions; use Ada.Exceptions;
-with System.OS_Lib; use System.OS_Lib;
+with System.OS_Lib; use System.OS_Lib;
with System.CRTL;
with Interfaces.C_Streams; use Interfaces.C_Streams;
@@ -200,11 +200,11 @@ procedure Gnatlink is
-- Return just the file name part without the extension (if present)
procedure Check_Existing_Executable (File_Name : String);
- -- Delete any existing executable to avoid accidentally updating
- -- the target of a symbolic link, but produce a Fatail_Error if
- -- File_Name matches any of the source file names. This avoids
- -- overwriting of extensionless source files by accident on systems
- -- where executables do not have extensions.
+ -- Delete any existing executable to avoid accidentally updating the target
+ -- of a symbolic link, but produce a Fatail_Error if File_Name matches any
+ -- of the source file names. This avoids overwriting of extensionless
+ -- source files by accident on systems where executables do not have
+ -- extensions.
procedure Delete (Name : String);
-- Wrapper to unlink as status is ignored by this application
@@ -273,6 +273,7 @@ procedure Gnatlink is
Ename : String := File_Name;
Efile : File_Name_Type;
Sfile : File_Name_Type;
+
begin
Canonical_Case_File_Name (Ename);
Name_Len := 0;