prj-dect.adb (Parse): Rename parameter Modifying to Extends.
authorVincent Celier <celier@gnat.com>
Wed, 5 Dec 2001 17:24:58 +0000 (17:24 +0000)
committerGeert Bosch <bosch@gcc.gnu.org>
Wed, 5 Dec 2001 17:24:58 +0000 (18:24 +0100)
* prj-dect.adb (Parse): Rename parameter Modifying to Extends.

* prj-dect.ads (Parse): Rename parameter Modifying to Extends.

* prj-env.adb: Minor comment changes (modifying -> extends).

* prj-nmsc.adb: Minor comment changes (modifying -> extends).

* prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
Tok_Extends.

* prj.adb (Initialize): Change Modifying to Extends.

* scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.

* prj.ads: Minor comment change (Modifying -> extending).

* snames.ads: Change modifying to extends.

From-SVN: r47678

gcc/ada/ChangeLog
gcc/ada/prj-dect.adb
gcc/ada/prj-dect.ads
gcc/ada/prj-env.adb
gcc/ada/prj-nmsc.adb
gcc/ada/prj-part.adb
gcc/ada/prj.adb
gcc/ada/prj.ads
gcc/ada/scans.ads
gcc/ada/snames.ads

index bbbe1359083c6fe3fe0129b2a332e460f8491a4e..767e7362444041a1efaf8583a7e0142c3bf7e70f 100644 (file)
@@ -1,3 +1,24 @@
+2001-12-05  Vincent Celier <celier@gnat.com>
+
+       * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
+       
+       * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
+       
+       * prj-env.adb: Minor comment changes (modifying -> extends).
+       
+       * prj-nmsc.adb: Minor comment changes (modifying -> extends).
+       
+       * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to 
+       Tok_Extends.
+       
+       * prj.adb (Initialize): Change Modifying to Extends.
+       
+       * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
+       
+       * prj.ads: Minor comment change (Modifying -> extending).
+       
+       * snames.ads: Change modifying to extends.
+
 2001-12-05  Robert Dewar <dewar@gnat.com>
 
        * sem_warn.adb: Remove stuff for conditionals, we are not going to 
index df5528d094592302788c09ee60501ba09996ea1d..55bfb44bdb1f1f2a89e238cbf45559feac4e644e 100644 (file)
@@ -88,14 +88,14 @@ package body Prj.Dect is
    procedure Parse
      (Declarations    : out Project_Node_Id;
       Current_Project : Project_Node_Id;
-      Modifying       : Project_Node_Id)
+      Extends         : Project_Node_Id)
    is
       First_Declarative_Item : Project_Node_Id := Empty_Node;
 
    begin
       Declarations := Default_Project_Node (Of_Kind => N_Project_Declaration);
       Set_Location_Of (Declarations, To => Token_Ptr);
-      Set_Modified_Project_Of (Declarations, To => Modifying);
+      Set_Modified_Project_Of (Declarations, To => Extends);
       Parse_Declarative_Items
         (Declarations    => First_Declarative_Item,
          In_Zone         => In_Project,
@@ -177,7 +177,7 @@ package body Prj.Dect is
       else
          if Current_Attribute /= Empty_Attribute
            and then
-             Attributes.Table (Current_Attribute).Kind_2 = Associative_Array
+             Attributes.Table (Current_Attribute).Kind_2 /= Single
          then
             Error_Msg ("this attribute need to be an associative array",
                        Location_Of (Attribute));
index 3072c573b6243f800fc2f67349c2e05e8ab05f1a..b97524b7e83f6d684057b60413ac5436e73aa2f8 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---                            $Revision: 1.2 $
+--                            $Revision$
 --                                                                          --
 --             Copyright (C) 2000 Free Software Foundation, Inc.            --
 --                                                                          --
@@ -35,7 +35,7 @@ private package Prj.Dect is
    procedure Parse
      (Declarations    : out Prj.Tree.Project_Node_Id;
       Current_Project : Prj.Tree.Project_Node_Id;
-      Modifying       : Prj.Tree.Project_Node_Id);
+      Extends         : Prj.Tree.Project_Node_Id);
    --  Parse project declarative items.
 
 end Prj.Dect;
index cc812e958eb5076df4f6be4ea522e9893872cee8..65f282b183cc8ef93081d12d2c7a51574f78cd95 100644 (file)
@@ -1023,7 +1023,7 @@ package body Prj.Env is
             Action (Name_Buffer (1 .. Name_Len));
          end if;
 
-         --  If we are modifying a project, visit it
+         --  If we are extending a project, visit it
 
          if Data.Modifies /= No_Project then
             Add (Data.Modifies);
@@ -1120,7 +1120,7 @@ package body Prj.Env is
             end loop;
          end;
 
-         --  If we are modifying a project, visit it
+         --  If we are extending a project, visit it
 
          if Data.Modifies /= No_Project then
             Add (Data.Modifies);
index 777c99d95c81eaf31b1c48958f99023b7e6c5948..004541f67969b629043763c534dabf3706b69670 100644 (file)
@@ -249,8 +249,7 @@ package body Prj.Nmsc is
 
                               --  We attempt to register it as a source.
                               --  However, there is no error if the file
-                              --  does not contain a valid source (as
-                              --  indicated by Error_If_Invalid => False).
+                              --  does not contain a valid source.
                               --  But there is an error if we have a
                               --  duplicate unit name.
 
@@ -2224,9 +2223,6 @@ package body Prj.Nmsc is
          Unit_Kind    => Unit_Kind,
          Needs_Pragma => Needs_Pragma);
 
-      --  If it is not a source file, report an error only if
-      --  Error_If_Invalid is true.
-
       if Unit_Name = No_Name then
          if Current_Verbosity = High then
             Write_Str  ("   """);
@@ -2271,7 +2267,7 @@ package body Prj.Nmsc is
 
             --  The unit is already in the list, but may be it is
             --  only the other unit kind (spec or body), or what is
-            --  in the unit list is a unit of a project we are modifying.
+            --  in the unit list is a unit of a project we are extending.
 
             if The_Unit /= Prj.Com.No_Unit then
                The_Unit_Data := Units.Table (The_Unit);
index 8100ad49e95a41236774d41e8eeb7f852ad99529..99d2ea42628a35290172948fc1fe5f495342fa16 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---                            $Revision: 1.10 $
+--                            $Revision$
 --                                                                          --
 --             Copyright (C) 2001 Free Software Foundation, Inc.            --
 --                                                                          --
@@ -535,11 +535,11 @@ package body Prj.Part is
 
       end if;
 
-      if Token = Tok_Modifying then
+      if Token = Tok_Extends then
 
-         --  We are modifying another project
+         --  We are extending another project
 
-         --  Scan past "modifying"
+         --  Scan past "extends"
 
          Scan;
 
@@ -595,7 +595,7 @@ package body Prj.Part is
          Prj.Dect.Parse
            (Declarations    => Project_Declaration,
             Current_Project => Project,
-            Modifying       => Modified_Project);
+            Extends         => Modified_Project);
          Set_Project_Declaration_Of (Project, Project_Declaration);
       end;
 
index 5f4cf46ef8b5c6aa4e30f2fbc017e900472e7b62..55fd9f0bcb7cd317776642b5e72ab77263ad505a 100644 (file)
@@ -225,9 +225,9 @@ package body Prj is
          Std_Naming_Data.Separate_Suffix     := Default_Ada_Impl_Suffix;
          Prj.Env.Initialize;
          Prj.Attr.Initialize;
-         Set_Name_Table_Byte (Name_Project,   Token_Type'Pos (Tok_Project));
-         Set_Name_Table_Byte (Name_Modifying, Token_Type'Pos (Tok_Modifying));
-         Set_Name_Table_Byte (Name_External,  Token_Type'Pos (Tok_External));
+         Set_Name_Table_Byte (Name_Project,  Token_Type'Pos (Tok_Project));
+         Set_Name_Table_Byte (Name_Extends,  Token_Type'Pos (Tok_Extends));
+         Set_Name_Table_Byte (Name_External, Token_Type'Pos (Tok_External));
       end if;
    end Initialize;
 
index f59216577d39c6f5f85db49bf3f58d41d6f13e2b..ec6345ad3127bab37ba7f8b9a5cbecabcba84101 100644 (file)
@@ -296,7 +296,7 @@ package Prj is
    type Project_Data is record
       First_Referred_By  : Project_Id     := No_Project;
       --  The project, if any, that was the first to be known
-      --  as importing or modifying this project.
+      --  as importing or extending this project.
       --  Set by Prj.Proc.Process.
 
       Name               : Name_Id        := No_Name;
index a68cbbfe37521b5727d4de994c4b0d9a12d19ba0..d11023372b64712cd5c86e0aa0e915f46141225e 100644 (file)
@@ -191,7 +191,7 @@ package Scans is
       --  project files.
 
       Tok_Project,
-      Tok_Modifying,
+      Tok_Extends,
       Tok_External,
 
       No_Token);
index c98c25f585391b496aa541c34586b7dde5bd55ef..16795ce3e6213ed2d78a449b95bde0d229af673f 100644 (file)
@@ -861,7 +861,7 @@ package Snames is
    --  Reserved words of GNAT Project Files
 
    Name_Project                        : constant Name_Id := N + 523;
-   Name_Modifying                      : constant Name_Id := N + 524;
+   Name_Extends                        : constant Name_Id := N + 524;
    --  Name_External is already declared as N + 161
 
    --  Names used in GNAT Project Files