Commit b125fe15 by Robert Dewar Committed by Arnaud Charlet

prj-nmsc.adb, [...]: Minor reformatting

2009-07-28  Robert Dewar  <dewar@adacore.com>

	* prj-nmsc.adb, g-expect.adb, prj.ads: Minor reformatting

From-SVN: r150148
parent 056b0f6f
2009-07-28 Robert Dewar <dewar@adacore.com>
* prj-nmsc.adb, g-expect.adb, prj.ads: Minor reformatting
2009-07-28 Sergey Rybin <rybin@adacore.com> 2009-07-28 Sergey Rybin <rybin@adacore.com>
* gnat_ugn.texi: Add section about gnatcheck rule exemption. * gnat_ugn.texi: Add section about gnatcheck rule exemption.
......
...@@ -1196,6 +1196,7 @@ package body GNAT.Expect is ...@@ -1196,6 +1196,7 @@ package body GNAT.Expect is
pragma Warnings (Off, Pipe3); pragma Warnings (Off, Pipe3);
On_Windows : constant Boolean := Directory_Separator = '\'; On_Windows : constant Boolean := Directory_Separator = '\';
-- This is ugly, we need a better way of doing this test ???
Input : File_Descriptor; Input : File_Descriptor;
Output : File_Descriptor; Output : File_Descriptor;
...@@ -1203,8 +1204,10 @@ package body GNAT.Expect is ...@@ -1203,8 +1204,10 @@ package body GNAT.Expect is
begin begin
if On_Windows then if On_Windows then
-- Since Windows does not have a separate fork/exec, we need to -- Since Windows does not have a separate fork/exec, we need to
-- perform the following actions: -- perform the following actions:
-- - save stdin, stdout, stderr -- - save stdin, stdout, stderr
-- - replace them by our pipes -- - replace them by our pipes
-- - create the child with process handle inheritance -- - create the child with process handle inheritance
......
...@@ -730,13 +730,14 @@ package body Prj.Nmsc is ...@@ -730,13 +730,14 @@ package body Prj.Nmsc is
Id.File := File_Name; Id.File := File_Name;
Id.Display_File := Display_File; Id.Display_File := Display_File;
Id.Dep_Name := Dependency_Name Id.Dep_Name := Dependency_Name
(File_Name, Lang_Id.Config.Dependency_Kind); (File_Name, Lang_Id.Config.Dependency_Kind);
Id.Naming_Exception := Naming_Exception; Id.Naming_Exception := Naming_Exception;
-- Add the source id to the Unit_Sources_HT hash table, if the unit name -- Add the source id to the Unit_Sources_HT hash table, if the unit name
-- is not null. -- is not null.
if Unit /= No_Name then if Unit /= No_Name then
-- Note: we might be creating a dummy unit here, when we in fact have -- Note: we might be creating a dummy unit here, when we in fact have
-- a separate. For instance, file file-bar.adb will initially be -- a separate. For instance, file file-bar.adb will initially be
-- assumed to be the IMPL of unit "file.bar". Only later on (in -- assumed to be the IMPL of unit "file.bar". Only later on (in
......
...@@ -600,17 +600,24 @@ package Prj is ...@@ -600,17 +600,24 @@ package Prj is
type Source_Kind is (Spec, Impl, Sep); type Source_Kind is (Spec, Impl, Sep);
subtype Spec_Or_Body is Source_Kind range Spec .. Impl; subtype Spec_Or_Body is Source_Kind range Spec .. Impl;
-- The following declarations declare a structure used to store the Name
-- and File and Path names of a unit, with a reference to its GNAT Project
-- File(s). Some units might have neither Spec nor Impl when they were
-- created for a "separate".
type File_Names_Data is array (Spec_Or_Body) of Source_Id; type File_Names_Data is array (Spec_Or_Body) of Source_Id;
type Unit_Data is record type Unit_Data is record
Name : Name_Id := No_Name; Name : Name_Id := No_Name;
File_Names : File_Names_Data; File_Names : File_Names_Data;
end record; end record;
type Unit_Index is access all Unit_Data; type Unit_Index is access all Unit_Data;
No_Unit_Index : constant Unit_Index := null; No_Unit_Index : constant Unit_Index := null;
-- Name and File and Path names of a unit, with a reference to its -- Used to indicate a null entry for no unit
-- GNAT Project File(s).
-- Some units might have neither Spec nor Impl when they were created for -- Structure to define source data
-- a "separate".
type Source_Data is record type Source_Data is record
Project : Project_Id := No_Project; Project : Project_Id := No_Project;
...@@ -627,7 +634,7 @@ package Prj is ...@@ -627,7 +634,7 @@ package Prj is
Declared_In_Interfaces : Boolean := False; Declared_In_Interfaces : Boolean := False;
-- True when source is declared in attribute Interfaces -- True when source is declared in attribute Interfaces
Alternate_Languages : Language_List; Alternate_Languages : Language_List := null;
-- List of languages a header file may also be, in addition of language -- List of languages a header file may also be, in addition of language
-- Language_Name. -- Language_Name.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment