annotate gcc/ada/libgnat/a-wtmoio.ads @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ------------------------------------------------------------------------------
kono
parents:
diff changeset
2 -- --
kono
parents:
diff changeset
3 -- GNAT RUN-TIME COMPONENTS --
kono
parents:
diff changeset
4 -- --
kono
parents:
diff changeset
5 -- A D A . W I D E _ T E X T _ I O . M O D U L A R _ I O --
kono
parents:
diff changeset
6 -- --
kono
parents:
diff changeset
7 -- S p e c --
kono
parents:
diff changeset
8 -- --
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
9 -- Copyright (C) 1992-2019, Free Software Foundation, Inc. --
111
kono
parents:
diff changeset
10 -- --
kono
parents:
diff changeset
11 -- This specification is derived from the Ada Reference Manual for use with --
kono
parents:
diff changeset
12 -- GNAT. In accordance with the copyright of that document, you can freely --
kono
parents:
diff changeset
13 -- copy and modify this specification, provided that if you redistribute a --
kono
parents:
diff changeset
14 -- modified version, any changes that you have made are clearly indicated. --
kono
parents:
diff changeset
15 -- --
kono
parents:
diff changeset
16 ------------------------------------------------------------------------------
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 -- In Ada 95, the package Ada.Wide_Text_IO.Modular_IO is a subpackage
kono
parents:
diff changeset
19 -- of Wide_Text_IO. In GNAT we make it a child package to avoid loading
kono
parents:
diff changeset
20 -- the necessary code if Modular_IO is not instantiated. See the routine
kono
parents:
diff changeset
21 -- Rtsfind.Check_Text_IO_Special_Unit for a description of how we patch up
kono
parents:
diff changeset
22 -- the difference in semantics so that it is invisible to the Ada programmer.
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 private generic
kono
parents:
diff changeset
25 type Num is mod <>;
kono
parents:
diff changeset
26
kono
parents:
diff changeset
27 package Ada.Wide_Text_IO.Modular_IO is
kono
parents:
diff changeset
28
kono
parents:
diff changeset
29 Default_Width : Field := Num'Width;
kono
parents:
diff changeset
30 Default_Base : Number_Base := 10;
kono
parents:
diff changeset
31
kono
parents:
diff changeset
32 procedure Get
kono
parents:
diff changeset
33 (File : File_Type;
kono
parents:
diff changeset
34 Item : out Num;
kono
parents:
diff changeset
35 Width : Field := 0);
kono
parents:
diff changeset
36
kono
parents:
diff changeset
37 procedure Get
kono
parents:
diff changeset
38 (Item : out Num;
kono
parents:
diff changeset
39 Width : Field := 0);
kono
parents:
diff changeset
40
kono
parents:
diff changeset
41 procedure Put
kono
parents:
diff changeset
42 (File : File_Type;
kono
parents:
diff changeset
43 Item : Num;
kono
parents:
diff changeset
44 Width : Field := Default_Width;
kono
parents:
diff changeset
45 Base : Number_Base := Default_Base);
kono
parents:
diff changeset
46
kono
parents:
diff changeset
47 procedure Put
kono
parents:
diff changeset
48 (Item : Num;
kono
parents:
diff changeset
49 Width : Field := Default_Width;
kono
parents:
diff changeset
50 Base : Number_Base := Default_Base);
kono
parents:
diff changeset
51
kono
parents:
diff changeset
52 procedure Get
kono
parents:
diff changeset
53 (From : Wide_String;
kono
parents:
diff changeset
54 Item : out Num;
kono
parents:
diff changeset
55 Last : out Positive);
kono
parents:
diff changeset
56
kono
parents:
diff changeset
57 procedure Put
kono
parents:
diff changeset
58 (To : out Wide_String;
kono
parents:
diff changeset
59 Item : Num;
kono
parents:
diff changeset
60 Base : Number_Base := Default_Base);
kono
parents:
diff changeset
61
kono
parents:
diff changeset
62 end Ada.Wide_Text_IO.Modular_IO;