Debian Codegraph @

gcc/ada/libgnat/s-imgrea.ads

raw
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT RUN-TIME COMPONENTS --
4 -- --
5 -- S Y S T E M . I M G _ R E A L --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2025, Free Software Foundation, Inc. --
10 -- --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
17 -- --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
21 -- --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
26 -- --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
29 -- --
30 ------------------------------------------------------------------------------
31
32 -- Image for fixed and float types (also used for Float_IO/Fixed_IO output)
33
34 -- This obsolete package is preserved for the sake of backward compatibility
35
36 with System.Img_LLF;
37
38 package System.Img_Real is
39
40 procedure Set_Image_Real
41 (V : Long_Long_Float;
42 S : in out String;
43 P : in out Natural;
44 Fore : Natural;
45 Aft : Natural;
46 Exp : Natural)
47 renames System.Img_LLF.Set_Image_Long_Long_Float;
48 -- Sets the image of ``V`` starting at ``S`` (``P`` + 1), updating ``P``
49 -- to point to the last character stored, the caller promises that the
50 -- buffer is large enough and no check is made for this. Constraint_Error
51 -- will not necessarily be raised if this is violated, since it is
52 -- perfectly valid to compile this unit with checks off). The ``Fore``,
53 -- ``Aft`` and ``Exp`` values can be set to any valid values for the case
54 -- of use from Text_IO. Note that no space is stored at the start for
55 -- non-negative values.
56
57 end System.Img_Real;