annotate gcc/ada/libgnat/a-tienio.ads @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 1830386684a0
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 . T E X T _ I O . E N U M E R A T I O N _ I O --
kono
parents:
diff changeset
6 -- --
kono
parents:
diff changeset
7 -- S p e c --
kono
parents:
diff changeset
8 -- --
kono
parents:
diff changeset
9 -- This specification is derived from the Ada Reference Manual for use with --
kono
parents:
diff changeset
10 -- GNAT. In accordance with the copyright of that document, you can freely --
kono
parents:
diff changeset
11 -- copy and modify this specification, provided that if you redistribute a --
kono
parents:
diff changeset
12 -- modified version, any changes that you have made are clearly indicated. --
kono
parents:
diff changeset
13 -- --
kono
parents:
diff changeset
14 ------------------------------------------------------------------------------
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 -- In Ada 95, the package Ada.Text_IO.Enumeration_IO is a subpackage of
kono
parents:
diff changeset
17 -- Text_IO. This is for compatibility with Ada 83. In GNAT we make it a
kono
parents:
diff changeset
18 -- child package to avoid loading the necessary code if Enumeration_IO is
kono
parents:
diff changeset
19 -- not instantiated. See routine Rtsfind.Check_Text_IO_Special_Unit for a
kono
parents:
diff changeset
20 -- description of how we patch up the difference in semantics so that it
kono
parents:
diff changeset
21 -- is invisible to the Ada programmer.
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 private generic
kono
parents:
diff changeset
24 type Enum is (<>);
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 package Ada.Text_IO.Enumeration_IO is
kono
parents:
diff changeset
27
kono
parents:
diff changeset
28 Default_Width : Field := 0;
kono
parents:
diff changeset
29 Default_Setting : Type_Set := Upper_Case;
kono
parents:
diff changeset
30
kono
parents:
diff changeset
31 procedure Get (File : File_Type; Item : out Enum);
kono
parents:
diff changeset
32 procedure Get (Item : out Enum);
kono
parents:
diff changeset
33
kono
parents:
diff changeset
34 procedure Put
kono
parents:
diff changeset
35 (File : File_Type;
kono
parents:
diff changeset
36 Item : Enum;
kono
parents:
diff changeset
37 Width : Field := Default_Width;
kono
parents:
diff changeset
38 Set : Type_Set := Default_Setting);
kono
parents:
diff changeset
39
kono
parents:
diff changeset
40 procedure Put
kono
parents:
diff changeset
41 (Item : Enum;
kono
parents:
diff changeset
42 Width : Field := Default_Width;
kono
parents:
diff changeset
43 Set : Type_Set := Default_Setting);
kono
parents:
diff changeset
44
kono
parents:
diff changeset
45 procedure Get
kono
parents:
diff changeset
46 (From : String;
kono
parents:
diff changeset
47 Item : out Enum;
kono
parents:
diff changeset
48 Last : out Positive);
kono
parents:
diff changeset
49
kono
parents:
diff changeset
50 procedure Put
kono
parents:
diff changeset
51 (To : out String;
kono
parents:
diff changeset
52 Item : Enum;
kono
parents:
diff changeset
53 Set : Type_Set := Default_Setting);
kono
parents:
diff changeset
54
kono
parents:
diff changeset
55 end Ada.Text_IO.Enumeration_IO;