OSDN Git Service

* config/vax/vax.h (target_flags, MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
[pf3gnuchains/gcc-fork.git] / gcc / ada / lib-util.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                         GNAT COMPILER COMPONENTS                         --
4 --                                                                          --
5 --                             L I B . U T I L                              --
6 --                                                                          --
7 --                                 B o d y                                  --
8 --                                                                          --
9 --          Copyright (C) 1992-1999 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 2,  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.  See the GNU General Public License --
17 -- for  more details.  You should have  received  a copy of the GNU General --
18 -- Public License  distributed with GNAT;  see file COPYING.  If not, write --
19 -- to  the Free Software Foundation,  59 Temple Place - Suite 330,  Boston, --
20 -- MA 02111-1307, USA.                                                      --
21 --                                                                          --
22 -- GNAT was originally developed  by the GNAT team at  New York University. --
23 -- Extensive contributions were provided by Ada Core Technologies Inc.      --
24 --                                                                          --
25 ------------------------------------------------------------------------------
26
27 package Lib.Util is
28
29    --  This package implements a buffered write of library information
30
31    procedure Write_Info_Char (C : Character);
32    pragma Inline (Write_Info_Char);
33    --  Adds one character to the info
34
35    procedure Write_Info_Char_Code (Code : Char_Code);
36    --  Write a single character code. Upper half values in the range
37    --  16#80..16#FF are written as Uhh (hh = 2 hex digits), and values
38    --  greater than 16#FF are written as Whhhh (hhhh = 4 hex digits).
39
40    function Write_Info_Col return Positive;
41    --  Returns the column in which the next character will be written
42
43    procedure Write_Info_EOL;
44    --  Terminate current info line. This only flushes the buffer
45    --  if there is not enough room for another complete line or
46    --  if the host system needs a write for each line.
47
48    procedure Write_Info_Initiate (Key : Character);
49    --  Initiates write of new line to info file, the parameter is the
50    --  keyword character for the line. The caller is responsible for
51    --  writing the required blank after the key character.
52
53    procedure Write_Info_Nat (N : Nat);
54    --  Adds image of N to Info_Buffer with no leading or trailing blanks
55
56    procedure Write_Info_Name (Name : Name_Id);
57    --  Adds characters of Name to Info_Buffer
58
59    procedure Write_Info_Str (Val : String);
60    --  Adds characters of Val to Info_Buffer surrounded by quotes
61
62    procedure Write_Info_Tab (Col : Positive);
63    --  Tab out with blanks and HT's to column Col. If already at or past
64    --  Col, writes a single blank, so that we do get a required field
65    --  separation.
66
67    procedure Write_Info_Terminate;
68    --  Terminate current info line and output lines built in Info_Buffer
69
70 end Lib.Util;