summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-26 10:45:36 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-26 10:45:36 +0000
commita62b78c7cd83f25670f2b03bc0bb71d8c5b2aff6 (patch)
tree096c42ed478e183982e795cb1982383ddb01eb49
parent958817fd9427dfaae31fbaf799023dbebb1b22d9 (diff)
downloadgcc-a62b78c7cd83f25670f2b03bc0bb71d8c5b2aff6.tar.gz
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 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128799 138bc75d-0d04-0410-961f-82ee72b054a4
-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 c148a4465fc..80009a56c74 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 5fa19ee1774..a0fa2bba15e 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 b3a13777fc2..ca42b44a918 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 80638020a91..afe29742f3e 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.