diff options
author | Geert Bosch <bosch@gcc.gnu.org> | 2001-12-17 21:50:03 +0100 |
---|---|---|
committer | Geert Bosch <bosch@gcc.gnu.org> | 2001-12-17 21:50:03 +0100 |
commit | b1085d2daa8889643275eeb2be01f3820e6ce1ca (patch) | |
tree | 248c7b3824e0a9080926110f8245d6222245f79b | |
parent | d6c1ace7a347ccbf045b97fb2facf463cfa28f80 (diff) | |
download | gcc-b1085d2daa8889643275eeb2be01f3820e6ce1ca.zip gcc-b1085d2daa8889643275eeb2be01f3820e6ce1ca.tar.gz gcc-b1085d2daa8889643275eeb2be01f3820e6ce1ca.tar.bz2 |
prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_...
* prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
Default_Ada_...
* prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
Remove functions.
(Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
* prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
Remove functions.
(Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
From-SVN: r48123
-rw-r--r-- | gcc/ada/prj-nmsc.adb | 10 | ||||
-rw-r--r-- | gcc/ada/prj.adb | 21 | ||||
-rw-r--r-- | gcc/ada/prj.ads | 16 |
3 files changed, 13 insertions, 34 deletions
diff --git a/gcc/ada/prj-nmsc.adb b/gcc/ada/prj-nmsc.adb index e12fe08..56075cf 100644 --- a/gcc/ada/prj-nmsc.adb +++ b/gcc/ada/prj-nmsc.adb @@ -638,7 +638,7 @@ package body Prj.Nmsc is Data.Naming.Current_Spec_Suffix := Ada_Spec_Suffix; else - Data.Naming.Current_Spec_Suffix := Ada_Default_Spec_Suffix; + Data.Naming.Current_Spec_Suffix := Default_Ada_Spec_Suffix; end if; end; @@ -662,7 +662,7 @@ package body Prj.Nmsc is Data.Naming.Current_Impl_Suffix := Ada_Impl_Suffix; else - Data.Naming.Current_Impl_Suffix := Ada_Default_Impl_Suffix; + Data.Naming.Current_Impl_Suffix := Default_Ada_Impl_Suffix; end if; end; @@ -713,9 +713,9 @@ package body Prj.Nmsc is Check_Ada_Naming_Scheme (Data.Naming); else - Data.Naming.Current_Spec_Suffix := Ada_Default_Spec_Suffix; - Data.Naming.Current_Impl_Suffix := Ada_Default_Impl_Suffix; - Data.Naming.Separate_Suffix := Ada_Default_Impl_Suffix; + Data.Naming.Current_Spec_Suffix := Default_Ada_Spec_Suffix; + Data.Naming.Current_Impl_Suffix := Default_Ada_Impl_Suffix; + Data.Naming.Separate_Suffix := Default_Ada_Impl_Suffix; end if; end; diff --git a/gcc/ada/prj.adb b/gcc/ada/prj.adb index 55fd9f0..ca6758e 100644 --- a/gcc/ada/prj.adb +++ b/gcc/ada/prj.adb @@ -43,9 +43,6 @@ package body Prj is The_Empty_String : String_Id; - Default_Ada_Spec_Suffix : Name_Id := No_Name; - Default_Ada_Impl_Suffix : Name_Id := No_Name; - subtype Known_Casing is Casing_Type range All_Upper_Case .. Mixed_Case; The_Casing_Images : array (Known_Casing) of String_Access := @@ -108,24 +105,6 @@ package body Prj is Flag1 => False, Flag2 => False); - ----------------------------- - -- Ada_Default_Spec_Suffix -- - ----------------------------- - - function Ada_Default_Spec_Suffix return Name_Id is - begin - return Default_Ada_Spec_Suffix; - end Ada_Default_Spec_Suffix; - - ----------------------------- - -- Ada_Default_Impl_Suffix -- - ----------------------------- - - function Ada_Default_Impl_Suffix return Name_Id is - begin - return Default_Ada_Impl_Suffix; - end Ada_Default_Impl_Suffix; - ------------------- -- Empty_Project -- ------------------- diff --git a/gcc/ada/prj.ads b/gcc/ada/prj.ads index d4b477844..eb02bf4 100644 --- a/gcc/ada/prj.ads +++ b/gcc/ada/prj.ads @@ -40,6 +40,14 @@ with Types; use Types; package Prj is + Default_Ada_Spec_Suffix : Name_Id := No_Name; + -- The Name_Id for the standard GNAT suffix for Ada spec source file + -- name ".ads". Initialized by Prj.Initialize. + + Default_Ada_Impl_Suffix : Name_Id := No_Name; + -- The Name_Id for the standard GNAT suffix for Ada body source file + -- name ".adb". Initialized by Prj.Initialize. + type Put_Line_Access is access procedure (Line : String); -- Use to customize error reporting in Prj.Proc and Prj.Nmsc. @@ -466,14 +474,6 @@ package Prj is -- it is called for B. With_State may be used by Action to choose a -- behavior or to report some global result. - function Ada_Default_Spec_Suffix return Name_Id; - -- Return the Name_Id for the standard GNAT suffix for Ada spec source - -- file name ".ads". - - function Ada_Default_Impl_Suffix return Name_Id; - -- Return the Name_Id for the standard GNAT suffix for Ada body source - -- file name ".adb". - private procedure Scan; |