1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
10 -- Copyright (C) 1992-1999 Free Software Foundation, Inc. --
12 -- GNAT is free software; you can redistribute it and/or modify it under --
13 -- terms of the GNU General Public License as published by the Free Soft- --
14 -- ware Foundation; either version 2, or (at your option) any later ver- --
15 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
16 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
17 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
18 -- for more details. You should have received a copy of the GNU General --
19 -- Public License distributed with GNAT; see file COPYING. If not, write --
20 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
21 -- MA 02111-1307, USA. --
23 -- GNAT was originally developed by the GNAT team at New York University. --
24 -- Extensive contributions were provided by Ada Core Technologies Inc. --
26 ------------------------------------------------------------------------------
30 -- This package implements a buffered write of library information
32 procedure Write_Info_Char (C : Character);
33 pragma Inline (Write_Info_Char);
34 -- Adds one character to the info
36 procedure Write_Info_Char_Code (Code : Char_Code);
37 -- Write a single character code. Upper half values in the range
38 -- 16#80..16#FF are written as Uhh (hh = 2 hex digits), and values
39 -- greater than 16#FF are written as Whhhh (hhhh = 4 hex digits).
41 function Write_Info_Col return Positive;
42 -- Returns the column in which the next character will be written
44 procedure Write_Info_EOL;
45 -- Terminate current info line. This only flushes the buffer
46 -- if there is not enough room for another complete line or
47 -- if the host system needs a write for each line.
49 procedure Write_Info_Initiate (Key : Character);
50 -- Initiates write of new line to info file, the parameter is the
51 -- keyword character for the line. The caller is responsible for
52 -- writing the required blank after the key character.
54 procedure Write_Info_Nat (N : Nat);
55 -- Adds image of N to Info_Buffer with no leading or trailing blanks
57 procedure Write_Info_Name (Name : Name_Id);
58 -- Adds characters of Name to Info_Buffer
60 procedure Write_Info_Str (Val : String);
61 -- Adds characters of Val to Info_Buffer surrounded by quotes
63 procedure Write_Info_Tab (Col : Positive);
64 -- Tab out with blanks and HT's to column Col. If already at or past
65 -- Col, writes a single blank, so that we do get a required field
68 procedure Write_Info_Terminate;
69 -- Terminate current info line and output lines built in Info_Buffer