Mercurial > hg > CbC > CbC_gcc
comparison gcc/ada/libgnat/a-ztenio.ads @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 ------------------------------------------------------------------------------ | |
2 -- -- | |
3 -- GNAT RUN-TIME COMPONENTS -- | |
4 -- -- | |
5 -- A D A . W I D E _ W I D E _ T E X T _ I O . E N U M E R A T I O N _ I O -- | |
6 -- -- | |
7 -- S p e c -- | |
8 -- -- | |
9 -- This specification is derived from the Ada Reference Manual for use with -- | |
10 -- GNAT. In accordance with the copyright of that document, you can freely -- | |
11 -- copy and modify this specification, provided that if you redistribute a -- | |
12 -- modified version, any changes that you have made are clearly indicated. -- | |
13 -- -- | |
14 ------------------------------------------------------------------------------ | |
15 | |
16 -- In Ada 95, the package Ada.Wide_Wide_Text_IO.Enumeration_IO is a subpackage | |
17 -- of Wide_Wide_Text_IO. In GNAT we make it a child package to avoid loading | |
18 -- the necessary code if Enumeration_IO is not instantiated. See the routine | |
19 -- Rtsfind.Check_Text_IO_Special_Unit for a description of how we patch up the | |
20 -- difference in semantics so that it is invisible to the Ada programmer. | |
21 | |
22 private generic | |
23 type Enum is (<>); | |
24 | |
25 package Ada.Wide_Wide_Text_IO.Enumeration_IO is | |
26 | |
27 Default_Width : Field := 0; | |
28 Default_Setting : Type_Set := Upper_Case; | |
29 | |
30 procedure Get (File : File_Type; Item : out Enum); | |
31 procedure Get (Item : out Enum); | |
32 | |
33 procedure Put | |
34 (File : File_Type; | |
35 Item : Enum; | |
36 Width : Field := Default_Width; | |
37 Set : Type_Set := Default_Setting); | |
38 | |
39 procedure Put | |
40 (Item : Enum; | |
41 Width : Field := Default_Width; | |
42 Set : Type_Set := Default_Setting); | |
43 | |
44 procedure Get | |
45 (From : Wide_Wide_String; | |
46 Item : out Enum; | |
47 Last : out Positive); | |
48 | |
49 procedure Put | |
50 (To : out Wide_Wide_String; | |
51 Item : Enum; | |
52 Set : Type_Set := Default_Setting); | |
53 | |
54 end Ada.Wide_Wide_Text_IO.Enumeration_IO; |