diff options
author | bosch <bosch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-17 20:50:03 +0000 |
---|---|---|
committer | bosch <bosch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-17 20:50:03 +0000 |
commit | 9e5833d993fe743003c8efc99f475c499adec3ff (patch) | |
tree | 248c7b3824e0a9080926110f8245d6222245f79b /gcc | |
parent | 563e1a9313b6ea17be856029b4f6b7e7df0a95a4 (diff) | |
download | gcc-9e5833d993fe743003c8efc99f475c499adec3ff.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48123 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-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 e12fe08b167..56075cf292d 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 55fd9f0bcb7..ca6758e55ab 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 d4b47784445..eb02bf4804a 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; |