]> gcc.gnu.org Git - gcc.git/commit
g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks.
authorHristian Kirtchev <kirtchev@adacore.com>
Wed, 26 Sep 2007 10:43:45 +0000 (12:43 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 26 Sep 2007 10:43:45 +0000 (12:43 +0200)
commitdd05ba2754e8bf033ce3258f0bc64fd7b2220ed9
treee707496e9d85fb88cda71972a74e18f56f9a75e6
parent31b5873d01cfb8aa27f5da175b8e8740c3e76370
g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks.

2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>

* g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
call to Jan_1_Day _Of_Week to optimize its performance.
(Is_Leap): Move the routine to the scope of Week_In_Year.
(Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
weekday on which January 1 falls of Year - 1 and Year + 1. This function
avoids calling Time_Of and Split, thus making it more efficent.
(Week_In_Year): Reimplemented in oder to follow ISO 8601.

* g-calend.ads (Week_In_Year): Change comment to reflect new
implementation.

From-SVN: r128790
gcc/ada/g-calend.adb
gcc/ada/g-calend.ads
This page took 0.062941 seconds and 5 git commands to generate.