]> gcc.gnu.org Git - gcc.git/commitdiff
[multiple changes]
authorArnaud Charlet <charlet@gcc.gnu.org>
Thu, 7 Jul 2016 13:02:31 +0000 (15:02 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 7 Jul 2016 13:02:31 +0000 (15:02 +0200)
2016-07-07  Thomas Quinot  <quinot@adacore.com>

* g-socket.ads: Document performance consideration for stream
wrapper.

2016-07-07  Arnaud Charlet  <charlet@adacore.com>

* osint-c.ads (Set_File_Name): Clarify spec.

From-SVN: r238110

gcc/ada/ChangeLog
gcc/ada/g-socket.ads
gcc/ada/osint-c.ads

index 48afee0571cf677165059c589c0e91a00e54de96..828932c257be117f6c866f7ef3a1c5c336416dde 100644 (file)
@@ -1,3 +1,12 @@
+2016-07-07  Thomas Quinot  <quinot@adacore.com>
+
+       * g-socket.ads: Document performance consideration for stream
+       wrapper.
+
+2016-07-07  Arnaud Charlet  <charlet@adacore.com>
+
+       * osint-c.ads (Set_File_Name): Clarify spec.
+
 2016-07-07  Eric Botcazou  <ebotcazou@adacore.com>
 
        * freeze.adb: Reenable code.
index 5de70d810dc6907c2dbbf6db15ea8c793492a5b1..9957e2ca49b26f7a5f802ba9410fdd4b2a2ca3f2 100644 (file)
@@ -1005,7 +1005,11 @@ package GNAT.Sockets is
    --  Same interface as Ada.Streams.Stream_IO
 
    function Stream (Socket : Socket_Type) return Stream_Access;
-   --  Create a stream associated with an already connected stream-based socket
+   --  Create a stream associated with a connected stream-based socket.
+   --  Note: keep in mind that the default stream attributes for composite
+   --  types perform separate Read/Write operations for each component,
+   --  recursively. If performance is an issue, you may want to consider
+   --  introducing a buffering stage.
 
    function Stream
      (Socket  : Socket_Type;
index 54ffb01f6014b432467dccdc5a0fdbb1637ac184..e7379175e9cfc0b7ca9f08c6872e59c09c83069e 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 2001-2015, Free Software Foundation, Inc.         --
+--          Copyright (C) 2001-2016, 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- --
@@ -111,7 +111,8 @@ package Osint.C is
    procedure Set_File_Name (Ext : String);
    --  Sets a default file name from the main compiler source name. Ext is the
    --  extension, e.g. "ali" for a library information file. The name is in
-   --  Name_Buffer (with length in Name_Len) on return.
+   --  Name_Buffer (with length in Name_Len) on return, with
+   --  Name_Buffer (Name_Len) always set to ASCII.NUL.
 
    --------------------------------
    -- Library Information Output --
This page took 0.075267 seconds and 5 git commands to generate.