aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/a-crbltr.ads
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2010-10-25 17:26:02 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2010-10-25 17:26:02 +0200
commitff2efe85eb639b398d150365db037fedadecc4d8 (patch)
treedbc2802781e13245b9de316aac743d8ec5a7862b /gcc/ada/a-crbltr.ads
parentf6b5dc8e1f88f71b3a523ff651bfdc32aa3c890b (diff)
downloadgcc-ff2efe85eb639b398d150365db037fedadecc4d8.zip
gcc-ff2efe85eb639b398d150365db037fedadecc4d8.tar.gz
gcc-ff2efe85eb639b398d150365db037fedadecc4d8.tar.bz2
[multiple changes]
2010-10-25 Pascal Obry <obry@adacore.com> * adaint.c (__gnat_file_time_name_attr): Use GetFileAttributesEx to get the timestamp. A bit faster than opening/closing the file. (__gnat_stat_to_attr): Remove kludge for Windows. (__gnat_file_exists_attr): Likewise. The timestamp is now retreived using GetFileAttributesEx as faster. 2010-10-25 Javier Miranda <miranda@adacore.com> * sem_ch3.adb (Derive_Interface_Subprogram): New subprogram. (Derive_Subprograms): For abstract private types transfer to the full view entities of uncovered interface primitives. Required because if the interface primitives are left in the private part of the package they will be decorated as hidden when the analysis of the enclosing package completes (and hence the interface primitive is not visible for dispatching calls). 2010-10-25 Matthew Heaney <heaney@adacore.com> * Makefile.rtl, impunit.adb: Added bounded set and bounded map containers. * a-crbltr.ads: Added declaration of generic package for bounded tree types. * a-rbtgbo.ads, a-rbtgbo.adb, a-rbtgbk.ads, a-rbtgbk.adb, a-btgbso.ads, a-btgbso.adb, a-cborse.ads, a-cborse.adb, a-cborma.ads, a-cborma.adb: New. 2010-10-25 Thomas Quinot <quinot@adacore.com> * sem_util.adb: Minor reformatting. * usage.adb: Fix usage line for -gnatwh. 2010-10-25 Thomas Quinot <quinot@adacore.com> * sem_ch12.adb (Analyze_Package_Instantiation): For an instantiation in an RCI spec, omit package body if instantiation comes from source, even as a nested package. * exp_dist.adb (Add_Calling_Stubs_To_Declarations, *_Support.Add_Receiving_Stubs_To_Declarations): Handle the case of nested packages, package instantiations and subprogram instantiations. From-SVN: r165920
Diffstat (limited to 'gcc/ada/a-crbltr.ads')
-rw-r--r--gcc/ada/a-crbltr.ads19
1 files changed, 18 insertions, 1 deletions
diff --git a/gcc/ada/a-crbltr.ads b/gcc/ada/a-crbltr.ads
index c3ce433..30ceff7 100644
--- a/gcc/ada/a-crbltr.ads
+++ b/gcc/ada/a-crbltr.ads
@@ -6,7 +6,7 @@
-- --
-- S p e c --
-- --
--- Copyright (C) 2004-2009, Free Software Foundation, Inc. --
+-- Copyright (C) 2004-2010, 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- --
@@ -48,4 +48,21 @@ package Ada.Containers.Red_Black_Trees is
end record;
end Generic_Tree_Types;
+ generic
+ type Node_Type is private;
+ package Generic_Bounded_Tree_Types is
+ type Nodes_Type is array (Count_Type range <>) of Node_Type;
+
+ type Tree_Type (Capacity : Count_Type) is tagged record
+ First : Count_Type := 0;
+ Last : Count_Type := 0;
+ Root : Count_Type := 0;
+ Length : Count_Type := 0;
+ Busy : Natural := 0;
+ Lock : Natural := 0;
+ Free : Count_Type'Base := -1;
+ Nodes : Nodes_Type (1 .. Capacity);
+ end record;
+ end Generic_Bounded_Tree_Types;
+
end Ada.Containers.Red_Black_Trees;