aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/elists.ads
diff options
context:
space:
mode:
authorRobert Dewar <dewar@adacore.com>2007-04-06 11:29:20 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2007-04-06 11:29:20 +0200
commit87ace7279eb8af4417a5853ca4717f9d86857c77 (patch)
treedefb84df2af89396c0b0e9e24f0de9b74e6f261f /gcc/ada/elists.ads
parent7a56c3bc6225aee179323067e2df21d122cac00c (diff)
downloadgcc-87ace7279eb8af4417a5853ca4717f9d86857c77.zip
gcc-87ace7279eb8af4417a5853ca4717f9d86857c77.tar.gz
gcc-87ace7279eb8af4417a5853ca4717f9d86857c77.tar.bz2
a-diroro.ads: Inserted the pragma Unimplemented_Unit
2007-04-06 Robert Dewar <dewar@adacore.com> Arnaud Charlet <charlet@adacore.com> * a-diroro.ads: Inserted the pragma Unimplemented_Unit * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start of files Add mention of -Sev (set initialize_scalars option from environment variable at run time) in gnatbind usage message. * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure * fname-uf.ads: Minor comment fix * osint.ads: Change pragma Elaborate to Elaborate_All * par-load.adb: Add documentation. * sem_cat.ads, sem_cat.adb: Minor code reorganization * s-parint.ads (RCI_Locator) : Add 'Version' generic formal * s-secsta.ads: Extra comments * s-soflin.ads: Minor comment fixes * s-stratt.ads (Block_Stream_Ops_OK): Removed. * s-wchcon.ads: Minor comment addition * treepr.adb: Minor change in message (Print_Name,Print_Node): Make these debug printouts more robust: print "no such..." instead of crashing on bad input. From-SVN: r123606
Diffstat (limited to 'gcc/ada/elists.ads')
-rw-r--r--gcc/ada/elists.ads19
1 files changed, 12 insertions, 7 deletions
diff --git a/gcc/ada/elists.ads b/gcc/ada/elists.ads
index d68d66d..6ddb458 100644
--- a/gcc/ada/elists.ads
+++ b/gcc/ada/elists.ads
@@ -121,17 +121,22 @@ package Elists is
-- This function determines if a given tree id references an element list
-- that contains no items.
- procedure Append_Elmt (Node : Node_Id; To : Elist_Id);
- -- Appends Node at the end of To, allocating a new element
+ procedure Append_Elmt (N : Node_Or_Entity_Id; To : Elist_Id);
+ -- Appends N at the end of To, allocating a new element. N must be a
+ -- non-empty node or entity Id, and To must be an Elist (not No_Elist).
- procedure Prepend_Elmt (Node : Node_Id; To : Elist_Id);
- -- Appends Node at the beginning of To, allocating a new element
+ procedure Append_Unique_Elmt (N : Node_Or_Entity_Id; To : Elist_Id);
+ -- Like Append_Elmt, except that a check is made to see if To already
+ -- contains N and if so the call has no effect.
- procedure Insert_Elmt_After (Node : Node_Id; Elmt : Elmt_Id);
- -- Add a new element (Node) right after the pre-existing element Elmt
+ procedure Prepend_Elmt (N : Node_Or_Entity_Id; To : Elist_Id);
+ -- Appends N at the beginning of To, allocating a new element
+
+ procedure Insert_Elmt_After (N : Node_Or_Entity_Id; Elmt : Elmt_Id);
+ -- Add a new element (N) right after the pre-existing element Elmt
-- It is invalid to call this subprogram with Elmt = No_Elmt.
- procedure Replace_Elmt (Elmt : Elmt_Id; New_Node : Node_Id);
+ procedure Replace_Elmt (Elmt : Elmt_Id; New_Node : Node_Or_Entity_Id);
pragma Inline (Replace_Elmt);
-- Causes the given element of the list to refer to New_Node, the node
-- which was previously referred to by Elmt is effectively removed from