+2009-04-24 Arnaud Charlet <charlet@adacore.com>
+
+ * mlib-prj.adb: Use friendlier english identifier.
+
+ * gnatcmd.adb, make.adb: Use better english identifiers.
+
+2009-04-24 Robert Dewar <dewar@adacore.com>
+
+ * clean.adb: Minor reformatting
+
2009-04-24 Robert Dewar <dewar@adacore.com>
* einfo.adb (OK_To_Rename): New flag
-- --
-- B o d y --
-- --
--- Copyright (C) 2003-2008, Free Software Foundation, Inc. --
+-- Copyright (C) 2003-2009, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
Project_Table.Last (Project_Tree.Projects)
loop
if Has_Foreign_Sources
- (Project_Tree.Projects.Table (Proj))
+ (Project_Tree.Projects.Table (Proj))
then
Global_Archive := True;
exit;
-- Process GNAT LINK, when there is a project file specified
procedure Set_Library_For
- (Project : Project_Id;
- There_Are_Libraries : in out Boolean);
+ (Project : Project_Id;
+ Libraries_Present : in out Boolean);
-- If Project is a library project, add the correct -L and -l switches to
-- the linker invocation.
procedure Process_Link is
Look_For_Executable : Boolean := True;
- There_Are_Libraries : Boolean := False;
+ Libraries_Present : Boolean := False;
Path_Option : constant String_Access :=
MLib.Linker_Library_Path_Option;
Prj : Project_Id := Project;
-- Check if there are library project files
if MLib.Tgt.Support_For_Libraries /= None then
- Set_Libraries (Project, Project_Tree, There_Are_Libraries);
+ Set_Libraries (Project, Project_Tree, Libraries_Present);
end if;
-- If there are, add the necessary additional switches
- if There_Are_Libraries then
+ if Libraries_Present then
-- Add -L<lib_dir> -lgnarl -lgnat -Wl,-rpath,<lib_dir>
---------------------
procedure Set_Library_For
- (Project : Project_Id;
- There_Are_Libraries : in out Boolean)
+ (Project : Project_Id;
+ Libraries_Present : in out Boolean)
is
Path_Option : constant String_Access :=
MLib.Linker_Library_Path_Option;
-- Case of library project
if Project_Tree.Projects.Table (Project).Library then
- There_Are_Libraries := True;
+ Libraries_Present := True;
-- Add the -L switch
Current_Main_Index : Int := 0;
-- If not zero, the index of the current main unit in its source file
- There_Are_Stand_Alone_Libraries : Boolean := False;
+ Stand_Alone_Libraries : Boolean := False;
-- Set to True when there are Stand-Alone Libraries, so that gnatbind
-- is invoked with the -F switch to force checking of elaboration flags.
if Project_Tree.Projects.Table
(Proj1).Standalone_Library
then
- There_Are_Stand_Alone_Libraries := True;
+ Stand_Alone_Libraries := True;
end if;
if Project_Tree.Projects.Table (Proj1).Library then
Args (J) := Binder_Switches.Table (J);
end loop;
- if There_Are_Stand_Alone_Libraries then
+ if Stand_Alone_Libraries then
Last_Arg := Last_Arg + 1;
Args (Last_Arg) := Force_Elab_Flags_String'Access;
end if;
Linker_Switches_Last : constant Integer := Linker_Switches.Last;
Path_Option : constant String_Access :=
MLib.Linker_Library_Path_Option;
- There_Are_Libraries : Boolean := False;
+ Libraries_Present : Boolean := False;
Current : Natural;
Proj2 : Project_Id;
Depth : Natural;
then
-- Add this project to table Library_Projs
- There_Are_Libraries := True;
+ Libraries_Present := True;
Depth := Project_Tree.Projects.Table (Proj1).Depth;
Library_Projs.Increment_Last;
Current := Library_Projs.Last;
end loop;
end if;
- if There_Are_Libraries then
+ if Libraries_Present then
-- If Path_Option is not null, create the switch
-- ("-Wl,-rpath," or equivalent) with all the non static
procedure Recurse (Prj : Project_Id; Depth : Natural);
+ -------------
+ -- Recurse --
+ -------------
+
procedure Recurse (Prj : Project_Id; Depth : Natural) is
Data : Project_Data renames Project_Tree.Projects.Table (Prj);
List : Project_List;
Proj : Project_Id;
+
begin
if Data.Depth >= Depth
or Get (Seen, Prj)
Set (Seen, Prj, False);
end Recurse;
+ -- Start of processing for Recursive_Compute_Depth
+
begin
for Proj in Project_Table.First ..
Project_Table.Last (Project_Tree.Projects)
procedure Sigint_Intercepted is
SIGINT : constant := 2;
+
begin
Set_Standard_Error;
Write_Line ("*** Interrupted ***");
In_Main_Object_Directory : Boolean := True;
- There_Are_Foreign_Sources : Boolean;
+ Foreign_Sources : Boolean;
Rpath : String_Access := null;
-- Allocated only if Path Option is supported
In_Main_Object_Directory := True;
- There_Are_Foreign_Sources := Has_Foreign_Sources (Data);
+ Foreign_Sources := Has_Foreign_Sources (Data);
loop
if Data.Object_Directory /= No_Path_Information then
ALI_Path : constant String :=
Ext_To (C_Object_Path, "ali");
Add_It : Boolean :=
- There_Are_Foreign_Sources
+ Foreign_Sources
or else
(Last > 5
and then
Check_Libs (ALI_Path, True);
end if;
- elsif There_Are_Foreign_Sources then
+ elsif Foreign_Sources then
Objects.Append
(new String'(Object_Path));
end if;