prj-proc.adb, [...] (Check_Naming_Schemes): split into several smaller subprograms.
authorEmmanuel Briot <briot@adacore.com>
Wed, 22 Apr 2009 11:01:03 +0000 (11:01 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 22 Apr 2009 11:01:03 +0000 (13:01 +0200)
commitce30eccb0612505eb75a1046db11b7a4c0bb0326
treefb2480c83ad958e237c1b4d33703df690b04c8ac
parent347ab254f812eec432aede015990dd5af799ba93
prj-proc.adb, [...] (Check_Naming_Schemes): split into several smaller subprograms.

2009-04-22  Emmanuel Briot  <briot@adacore.com>

* prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
smaller subprograms.
Renamed to Check_File_Naming_Schemes to avoid confusion with the
other Check_Naming_Schemes functions that plays a totally different
role.
(Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
extracted from the above. These were partially rewritten to avoid
unnecessary code and temporary variables.
(Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
and Get_Unit (which for now still exist since they contain mode-specific
code)

From-SVN: r146568
gcc/ada/ChangeLog
gcc/ada/prj-nmsc.adb
gcc/ada/prj-proc.adb