aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Celier <celier@adacore.com>2007-09-26 12:45:36 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2007-09-26 12:45:36 +0200
commit6de1be0227dca0c582c9cf21c45214c6c02918c4 (patch)
tree096c42ed478e183982e795cb1982383ddb01eb49
parent503299f994d728736f856a42891ddf69c5836a8e (diff)
downloadgcc-6de1be0227dca0c582c9cf21c45214c6c02918c4.zip
gcc-6de1be0227dca0c582c9cf21c45214c6c02918c4.tar.gz
gcc-6de1be0227dca0c582c9cf21c45214c6c02918c4.tar.bz2
osint.adb, osint.ads: Minor reformatting
2007-09-26 Vincent Celier <celier@adacore.com> * osint.adb, osint.ads: Minor reformatting * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure From-SVN: r128799
-rw-r--r--gcc/ada/osint-b.adb9
-rw-r--r--gcc/ada/osint-b.ads4
-rw-r--r--gcc/ada/osint.adb2
-rw-r--r--gcc/ada/osint.ads2
4 files changed, 15 insertions, 2 deletions
diff --git a/gcc/ada/osint-b.adb b/gcc/ada/osint-b.adb
index c148a44..80009a5 100644
--- a/gcc/ada/osint-b.adb
+++ b/gcc/ada/osint-b.adb
@@ -167,6 +167,15 @@ package body Osint.B is
function Next_Main_Lib_File return File_Name_Type renames Next_Main_File;
+ ---------------------------------
+ -- Set_Current_File_Name_Index --
+ ---------------------------------
+
+ procedure Set_Current_File_Name_Index (To : Int) is
+ begin
+ Current_File_Name_Index := To;
+ end Set_Current_File_Name_Index;
+
-----------------------
-- Write_Binder_Info --
-----------------------
diff --git a/gcc/ada/osint-b.ads b/gcc/ada/osint-b.ads
index 5fa19ee..a0fa2bb 100644
--- a/gcc/ada/osint-b.ads
+++ b/gcc/ada/osint-b.ads
@@ -78,4 +78,8 @@ package Osint.B is
-- Closes the file created by Create_Binder_Output, flushing any
-- buffers etc from writes by Write_Binder_Info.
+ procedure Set_Current_File_Name_Index (To : Int);
+ -- Set the value of Current_File_Name_Index (in the private part of Osint)
+ -- to To.
+
end Osint.B;
diff --git a/gcc/ada/osint.adb b/gcc/ada/osint.adb
index b3a1377..ca42b44 100644
--- a/gcc/ada/osint.adb
+++ b/gcc/ada/osint.adb
@@ -119,7 +119,7 @@ package body Osint is
-- End of line character
Number_File_Names : Int := 0;
- -- Number of file names founde on command line and placed in File_Names
+ -- Number of file names found on command line and placed in File_Names
Look_In_Primary_Directory_For_Current_Main : Boolean := False;
-- When this variable is True, Find_File only looks in Primary_Directory
diff --git a/gcc/ada/osint.ads b/gcc/ada/osint.ads
index 8063802..afe2974 100644
--- a/gcc/ada/osint.ads
+++ b/gcc/ada/osint.ads
@@ -590,7 +590,7 @@ private
type File_Name_Array_Ptr is access File_Name_Array;
File_Names : File_Name_Array_Ptr :=
new File_Name_Array (1 .. Int (Argument_Count) + 2);
- -- As arguments are scanned, file names are stored in this array The
+ -- As arguments are scanned, file names are stored in this array. The
-- strings do not have terminating NUL files. The array is extensible,
-- because when using project files, there may be more files than
-- arguments on the command line.