summaryrefslogtreecommitdiff
path: root/gcc/ada/s-imgenu.ads
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/s-imgenu.ads')
-rw-r--r--gcc/ada/s-imgenu.ads24
1 files changed, 11 insertions, 13 deletions
diff --git a/gcc/ada/s-imgenu.ads b/gcc/ada/s-imgenu.ads
index 9950cf6a76e..2d604329e3b 100644
--- a/gcc/ada/s-imgenu.ads
+++ b/gcc/ada/s-imgenu.ads
@@ -1,12 +1,12 @@
------------------------------------------------------------------------------
-- --
--- GNAT RUNTIME COMPONENTS --
+-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . I M G _ E N U M --
-- --
-- S p e c --
-- --
--- Copyright (C) 2000 Free Software Foundation, Inc. --
+-- Copyright (C) 2000-2005 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- --
@@ -45,16 +45,15 @@ pragma Pure (Img_Enum);
Indexes : System.Address)
return String;
-- Used to compute Enum'Image (Str) where Enum is some enumeration type
- -- other than those defined in package Standard. Names is a string with
- -- a lower bound of 1 containing the characters of all the enumeration
- -- literals concatenated together in sequence. Indexes is the address
- -- of an array of type array (0 .. N) of Natural_8, where N is the
- -- is the number of enumeration literals in the type. The Indexes values
- -- are the starting subscript of each enumeration literal, indexed by Pos
- -- values, with an extra entry at the end containing Names'Length + 1.
- -- The reason that Indexes is passed by address is that the actual type
- -- is created on the fly by the expander. The value returned is the
- -- desired 'Image value.
+ -- other than those defined in package Standard. Names is a string with a
+ -- lower bound of 1 containing the characters of all the enumeration
+ -- literals concatenated together in sequence. Indexes is the address of an
+ -- array of type array (0 .. N) of Natural_8, where N is the number of
+ -- enumeration literals in the type. The Indexes values are the starting
+ -- subscript of each enumeration literal, indexed by Pos values, with an
+ -- extra entry at the end containing Names'Length + 1. The reason that
+ -- Indexes is passed by address is that the actual type is created on the
+ -- fly by the expander. The value returned is the desired 'Image value.
function Image_Enumeration_16
(Pos : Natural;
@@ -72,5 +71,4 @@ pragma Pure (Img_Enum);
-- Identical to Image_Enumeration_8 except that it handles types
-- using array (0 .. Num) of Natural_32 for the Indexes table.
-
end System.Img_Enum;