+2009-05-06 Gary Dismukes <dismukes@adacore.com>
+
+ * gnat_ugn.texi: Fix typo.
+
+2009-05-06 Thomas Quinot <quinot@adacore.com>
+
+ * g-debuti.adb: Minor reformatting
+
+ * exp_attr.adb: Minor reformatting
+
+2009-05-06 Robert Dewar <dewar@adacore.com>
+
+ * sem_aggr.adb: Minor reformatting.
+
+ * g-socthi-vms.adb: Minor reformatting
+
+2009-05-06 Bob Duff <duff@adacore.com>
+
+ * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
+ (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
+
2009-05-06 Bob Duff <duff@adacore.com>
* gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
-- A reference to P'Body_Version or P'Version is expanded to
-- Vnn : Unsigned;
- -- pragma Import (C, Vnn, "uuuuT";
+ -- pragma Import (C, Vnn, "uuuuT");
-- ...
-- Get_Version_String (Vnn)
-- --
-- B o d y --
-- --
--- Copyright (C) 1997-2005, AdaCore --
+-- Copyright (C) 1997-2009, AdaCore --
-- --
-- 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- --
package body GNAT.Debug_Utilities is
- H : constant array (0 .. 15) of Character := "0123456789ABCDEF";
- -- Table of hex digits
+ H : constant array (0 .. 15) of Character := "0123456789ABCDEF";
+ -- Table of hex digits
-----------
-- Image --
-- --
-- B o d y --
-- --
--- Copyright (C) 2000-2008, AdaCore --
+-- Copyright (C) 2000-2009, AdaCore --
-- --
-- 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- --
Set_Item (T, Table_Index_Type (T.P.Last_Val + 1), New_Val);
end Append;
+ ----------------
+ -- Append_All --
+ ----------------
+
+ procedure Append_All (T : in out Instance; New_Vals : Table_Type) is
+ begin
+ for J in New_Vals'Range loop
+ Append (T, New_Vals (J));
+ end loop;
+ end Append_All;
+
--------------------
-- Decrement_Last --
--------------------
-- --
-- S p e c --
-- --
--- Copyright (C) 2000-2008, AdaCore --
+-- Copyright (C) 2000-2009, AdaCore --
-- --
-- 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- --
-- i.e. the table size is increased by one, and the given new item
-- stored in the newly created table element.
+ procedure Append_All (T : in out Instance; New_Vals : Table_Type);
+ -- Appends all components of New_Vals
+
procedure Set_Item
(T : in out Instance;
Index : Table_Index_Type;
-- when a thread wants to perform a blocking IO operation. But the user can
-- also set a socket in non-blocking mode by purpose. In order to make a
-- difference between these two situations, we track the origin of
- -- non-blocking mode in Non_Blocking_Sockets. If S is in
+ -- non-blocking mode in Non_Blocking_Sockets. Note that if S is in
-- Non_Blocking_Sockets, it has been set in non-blocking mode by the user.
Quantum : constant Duration := 0.2;
if Res = Failure and then Errno = SOSC.EISCONN then
return Thin_Common.Success;
-
else
return Res;
end if;
pragma Import (Ada, GNAT_Msg);
VMS_Msg : aliased VMS_Msghdr := VMS_Msghdr (GNAT_Msg);
+
begin
loop
Res := Syscall_Recvmsg (S, VMS_Msg'Address, Flags);
or else Errno /= SOSC.EWOULDBLOCK;
delay Quantum;
end loop;
+
GNAT_Msg := Msghdr (VMS_Msg);
return ssize_t (Res);
or else Errno /= SOSC.EWOULDBLOCK;
delay Quantum;
end loop;
+
GNAT_Msg := Msghdr (VMS_Msg);
return ssize_t (Res);
-- --
-- B o d y --
-- --
--- Copyright (C) 1998-2008, AdaCore --
+-- Copyright (C) 1998-2009, AdaCore --
-- --
-- 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- --
Set_Item (Table_Index_Type (Last_Val + 1), New_Val);
end Append;
+ ----------------
+ -- Append_All --
+ ----------------
+
+ procedure Append_All (New_Vals : Table_Type) is
+ begin
+ for J in New_Vals'Range loop
+ Append (New_Vals (J));
+ end loop;
+ end Append_All;
+
--------------------
-- Decrement_Last --
--------------------
-- --
-- S p e c --
-- --
--- Copyright (C) 1998-2008, AdaCore --
+-- Copyright (C) 1998-2009, AdaCore --
-- --
-- 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- --
-- i.e. the table size is increased by one, and the given new item
-- stored in the newly created table element.
+ procedure Append_All (New_Vals : Table_Type);
+ -- Appends all components of New_Vals
+
procedure Set_Item
(Index : Table_Index_Type;
Item : Table_Component_Type);
initialized by a C++ constructor, and the additional Ada components
of type DT are initialized by GNAT. The initialization of such an
object is done either by default, or by means of a function returning
-an aggregate of type DT, or by means of an extended aggregate.
+an aggregate of type DT, or by means of an extension aggregate.
@smallexample @c ada
Obj5 : DT;
else
Root_Typ := Base_Type (Etype (Ancestor_Part (N)));
end if;
+
else
Root_Typ := Root_Type (Typ);
(Inner_Comp, New_Aggr,
Component_Associations (Aggr));
- -- Collect disciminant values, and recurse.
+ -- Collect disciminant values and recurse
Add_Discriminant_Values
(New_Aggr, Assoc_List);