Merge branch 'master' r216746-r217593 into gimple-classes-v2-option-3
[official-gcc.git] / gcc / ada / a-tienau.ads
blob525c22336104e590eb33e021db2db81a5ff4d276
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT RUN-TIME COMPONENTS --
4 -- --
5 -- A D A . T E X T _ I O . E N U M E R A T I O N _ A U X --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2009, 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 ------------------------------------------------------------------------------
32 -- This package contains the routines for Ada.Text_IO.Enumeration_IO
33 -- that are shared among separate instantiations of this package.
35 private package Ada.Text_IO.Enumeration_Aux is
37 procedure Get_Enum_Lit
38 (File : File_Type;
39 Buf : out String;
40 Buflen : out Natural);
41 -- Reads an enumeration literal value from the file, folds to upper case,
42 -- and stores the result in Buf, setting Buflen to the number of stored
43 -- characters (Buf has a lower bound of 1). If more than Buflen characters
44 -- are present in the literal, Data_Error is raised.
46 procedure Scan_Enum_Lit
47 (From : String;
48 Start : out Natural;
49 Stop : out Natural);
50 -- Scans an enumeration literal at the start of From, skipping any leading
51 -- spaces. Sets Start to the first character, Stop to the last character.
52 -- Raises End_Error if no enumeration literal is found.
54 procedure Put
55 (File : File_Type;
56 Item : String;
57 Width : Field;
58 Set : Type_Set);
59 -- Outputs the enumeration literal image stored in Item to the given File,
60 -- using the given Width and Set parameters (Item is always in upper case).
62 procedure Puts
63 (To : out String;
64 Item : String;
65 Set : Type_Set);
66 -- Stores the enumeration literal image stored in Item to the string To,
67 -- padding with trailing spaces if necessary to fill To. Set is used to
69 end Ada.Text_IO.Enumeration_Aux;