OSDN Git Service

2007-09-26 Vincent Celier <celier@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Sep 2007 10:45:36 +0000 (10:45 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Sep 2007 10:45:36 +0000 (10:45 +0000)
* 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

gcc/ada/osint-b.adb
gcc/ada/osint-b.ads
gcc/ada/osint.adb
gcc/ada/osint.ads

index c148a44..80009a5 100644 (file)
@@ -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 --
    -----------------------
index 5fa19ee..a0fa2bb 100644 (file)
@@ -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;
index b3a1377..ca42b44 100644 (file)
@@ -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
index 8063802..afe2974 100644 (file)
@@ -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.