OSDN Git Service

2007-04-20 Eric Botcazou <ebotcazou@adacore.com>
[pf3gnuchains/gcc-fork.git] / gcc / ada / s-imgwch.ads
index 3dbff97..b827b80 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---           Copyright (C) 1992-2005 Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2005, 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- --
 --  Wide_[Wide_]Character'Image
 
 package System.Img_WChar is
-pragma Pure (Img_WChar);
+   pragma Pure;
 
-   function Image_Wide_Character (V : Wide_Character) return String;
-   --  Computes Wide_Character'Image (V) and returns the computed result
+   function Image_Wide_Character
+     (V        : Wide_Character;
+      Ada_2005 : Boolean) return String;
+   --  Computes Wide_Character'Image (V) and returns the computed result. The
+   --  parameter Ada_2005 is True if operating in Ada 2005 mode (or beyond).
+   --  This is needed for the annoying FFFE/FFFF incompatibility.
 
    function Image_Wide_Wide_Character (V : Wide_Wide_Character) return String;
    --  Computes Wide_Wide_Character'Image (V) and returns the computed result