exp_atag.ads, [...]: Replace headers with GPL v3 headers.
[gcc.git] / gcc / ada / g-calend.ads
index 16548db37064a63d59e445d594256ee243f4216f..e8b43456371e50d1798c6cfba87d070161c5bb89 100644 (file)
@@ -6,9 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---                            $Revision: 1.5 $
---                                                                          --
---          Copyright (C) 1999-2001 Free Software Foundation, Inc.          --
+--          Copyright (C) 1999-2006, Free Software Foundation, Inc.         --
 --                                                                          --
 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
 -- terms of the  GNU General Public License as published  by the Free Soft- --
@@ -18,8 +16,8 @@
 -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
 -- for  more details.  You should have  received  a copy of the GNU General --
 -- Public License  distributed with GNAT;  see file COPYING.  If not, write --
--- to  the Free Software Foundation,  59 Temple Place - Suite 330,  Boston, --
--- MA 02111-1307, USA.                                                      --
+-- to  the  Free Software Foundation,  51  Franklin  Street,  Fifth  Floor, --
+-- Boston, MA 02110-1301, USA.                                              --
 --                                                                          --
 -- As a special exception,  if other files  instantiate  generics from this --
 -- unit, or you link  this unit with other files  to produce an executable, --
@@ -29,7 +27,7 @@
 -- covered by the  GNU Public License.                                      --
 --                                                                          --
 -- GNAT was originally developed  by the GNAT team at  New York University. --
--- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
+-- Extensive contributions were provided by Ada Core Technologies Inc.      --
 --                                                                          --
 ------------------------------------------------------------------------------
 
@@ -67,7 +65,7 @@ package GNAT.Calendar is
    --  Second_Duration precision depends on the target clock precision.
 
    function Day_Of_Week (Date : Ada.Calendar.Time) return Day_Name;
-   --  Return the day name.
+   --  Return the day name
 
    function Day_In_Year (Date : Ada.Calendar.Time) return Day_In_Year_Number;
    --  Returns the day number in the year. (1st January is day 1 and 31st
@@ -95,9 +93,8 @@ package GNAT.Calendar is
       Hour       : Hour_Number;
       Minute     : Minute_Number;
       Second     : Second_Number;
-      Sub_Second : Second_Duration := 0.0)
-      return Ada.Calendar.Time;
-   --  Returns an Ada.Calendar.Time data built from the date and time values.
+      Sub_Second : Second_Duration := 0.0) return Ada.Calendar.Time;
+   --  Returns an Ada.Calendar.Time data built from the date and time values
 
    --  C timeval conversion
 
@@ -109,7 +106,7 @@ package GNAT.Calendar is
 
    type timeval is private;
 
-   function To_Duration (T : access timeval) return Duration;
+   function To_Duration (T : not null access timeval) return Duration;
    function To_Timeval  (D : Duration) return timeval;
 
 private
@@ -121,11 +118,11 @@ private
    function Julian_Day
      (Year  : Ada.Calendar.Year_Number;
       Month : Ada.Calendar.Month_Number;
-      Day   : Ada.Calendar.Day_Number)
-      return  Integer;
-   --  Compute Julian day number.
+      Day   : Ada.Calendar.Day_Number) return Integer;
+   --  Compute Julian day number
    --
-   --  The code of this function is a modified version of algorithm
-   --  199 from the Collected Algorithms of the ACM.
-   --  The author of algorithm 199 is Robert G. Tantzen.
+   --  The code of this function is a modified version of algorithm 199 from
+   --  the Collected Algorithms of the ACM. The author of algorithm 199 is
+   --  Robert G. Tantzen.
+
 end GNAT.Calendar;