diff options
Diffstat (limited to 'gcc/ada/s-imglli.ads')
-rw-r--r-- | gcc/ada/s-imglli.ads | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/gcc/ada/s-imglli.ads b/gcc/ada/s-imglli.ads index 6401674fa0b..9393ca49713 100644 --- a/gcc/ada/s-imglli.ads +++ b/gcc/ada/s-imglli.ads @@ -36,20 +36,24 @@ -- operations required in Text_IO.Integer_IO for such types. package System.Img_LLI is - pragma Preelaborate; + pragma Pure; - function Image_Long_Long_Integer (V : Long_Long_Integer) return String; - -- Computes Long_Long_Integer'Image (V) and returns the result + procedure Image_Long_Long_Integer + (V : Long_Long_Integer; + S : in out String; + P : out Natural); + -- Computes Long_Long_Integer'Image (V) and stores the result in + -- S (1 .. P) setting the resulting value of P. The caller guarantees + -- that S is long enough to hold the result, and that S'First is 1. procedure Set_Image_Long_Long_Integer (V : Long_Long_Integer; - S : out String; + S : in out String; P : in out Natural); - -- Sets the image of V starting at S (P + 1) with no leading spaces (i.e. - -- Text_IO format where Width = 0), starting at S (P + 1), updating P - -- to point to the last character stored. The caller promises that the - -- buffer is large enough and no check is made for this (Constraint_Error - -- will not be necessarily raised if this is violated since it is perfectly - -- valid to compile this unit with checks off). + -- Stores the image of V in S starting at S (P + 1), P is updated to point + -- to the last character stored. The value stored is identical to the value + -- of Long_Long_Integer'Image (V) except that no leading space is stored + -- when V is non-negative. The caller guarantees that S is long enough to + -- hold the result. S need not have a lower bound of 1. end System.Img_LLI; |