OSDN Git Service

2007-04-20 Arnaud Charlet <charlet@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Jun 2007 10:20:30 +0000 (10:20 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Jun 2007 10:20:30 +0000 (10:20 +0000)
* a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
instead of 'Size.

* a-stwifi.ads, a-stzfix.ads: Minor reformatting

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125378 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ada/a-strunb.adb
gcc/ada/a-stwifi.ads
gcc/ada/a-stwiun.adb
gcc/ada/a-stzfix.ads
gcc/ada/a-stzunb.adb

index 3472070..8e9b974 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2005, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-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- --
@@ -690,7 +690,7 @@ package body Ada.Strings.Unbounded is
          raise Index_Error;
       end if;
 
-      Realloc_For_Chunk (Source, New_Item'Size);
+      Realloc_For_Chunk (Source, New_Item'Length);
 
       Source.Reference
         (Before +  New_Item'Length .. Source.Last + New_Item'Length) :=
index 5d9ea3f..8f3cf39 100644 (file)
@@ -225,10 +225,10 @@ package Ada.Strings.Wide_Fixed is
       Pad    : Wide_Character := Ada.Strings.Wide_Space) return Wide_String;
 
    procedure Tail
-     (Source : in out Wide_String;
-      Count  : Natural;
+     (Source  : in out Wide_String;
+      Count   : Natural;
       Justify : Alignment := Left;
-      Pad    : Wide_Character := Ada.Strings.Wide_Space);
+      Pad     : Wide_Character := Ada.Strings.Wide_Space);
 
    ---------------------------------------
    -- Wide_String Constructor Functions --
index 45ab546..c9c42f0 100644 (file)
@@ -706,7 +706,7 @@ package body Ada.Strings.Wide_Unbounded is
          raise Index_Error;
       end if;
 
-      Realloc_For_Chunk (Source, New_Item'Size);
+      Realloc_For_Chunk (Source, New_Item'Length);
 
       Source.Reference
         (Before +  New_Item'Length .. Source.Last + New_Item'Length) :=
index 4c3f80b..f6b3135 100644 (file)
@@ -235,10 +235,10 @@ package Ada.Strings.Wide_Wide_Fixed is
       return Wide_Wide_String;
 
    procedure Tail
-     (Source : in out Wide_Wide_String;
-      Count  : Natural;
+     (Source  : in out Wide_Wide_String;
+      Count   : Natural;
       Justify : Alignment := Left;
-      Pad    : Wide_Wide_Character := Ada.Strings.Wide_Wide_Space);
+      Pad     : Wide_Wide_Character := Ada.Strings.Wide_Wide_Space);
 
    --------------------------------------------
    -- Wide_Wide_String Constructor Functions --
index 7f4c54a..e3123bc 100644 (file)
@@ -717,7 +717,7 @@ package body Ada.Strings.Wide_Wide_Unbounded is
          raise Index_Error;
       end if;
 
-      Realloc_For_Chunk (Source, New_Item'Size);
+      Realloc_For_Chunk (Source, New_Item'Length);
 
       Source.Reference
         (Before +  New_Item'Length .. Source.Last + New_Item'Length) :=