OSDN Git Service

2007-04-20 Vincent Celier <celier@adacore.com>
[pf3gnuchains/gcc-fork.git] / gcc / ada / a-ngcoty.ads
index 2c39a92..a5c9de9 100644 (file)
@@ -6,9 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---                            $Revision: 1.7 $                              --
---                                                                          --
---          Copyright (C) 1992-1997 Free Software Foundation, Inc.          --
+--          Copyright (C) 1992-2006, Free Software Foundation, Inc.         --
 --                                                                          --
 -- This specification is derived from the Ada Reference Manual for use with --
 -- GNAT. The copyright notice above, and the license provisions that follow --
@@ -22,8 +20,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, --
@@ -33,7 +31,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.      --
 --                                                                          --
 ------------------------------------------------------------------------------
 
@@ -41,8 +39,7 @@ generic
    type Real is digits <>;
 
 package Ada.Numerics.Generic_Complex_Types is
-
-pragma Pure (Generic_Complex_Types);
+   pragma Pure;
 
    type Complex is record
       Re, Im : Real'Base;
@@ -51,6 +48,7 @@ pragma Pure (Generic_Complex_Types);
    pragma Complex_Representation (Complex);
 
    type Imaginary is private;
+   pragma Preelaborable_Initialization (Imaginary);
 
    i : constant Imaginary;
    j : constant Imaginary;
@@ -59,9 +57,9 @@ pragma Pure (Generic_Complex_Types);
    function Im (X : Complex)   return Real'Base;
    function Im (X : Imaginary) return Real'Base;
 
-   procedure Set_Re (X  : in out Complex;   Re : in Real'Base);
-   procedure Set_Im (X  : in out Complex;   Im : in Real'Base);
-   procedure Set_Im (X  :    out Imaginary; Im : in Real'Base);
+   procedure Set_Re (X : in out Complex; Re : Real'Base);
+   procedure Set_Im (X : in out Complex; Im : Real'Base);
+   procedure Set_Im (X : out Imaginary;  Im : Real'Base);
 
    function Compose_From_Cartesian (Re, Im : Real'Base) return Complex;
    function Compose_From_Cartesian (Re     : Real'Base) return Complex;