1 |
281 |
jeremybenn |
------------------------------------------------------------------------------
|
2 |
|
|
-- --
|
3 |
|
|
-- GNAT COMPILER COMPONENTS --
|
4 |
|
|
-- --
|
5 |
|
|
-- P U T _ S C O S --
|
6 |
|
|
-- --
|
7 |
|
|
-- S p e c --
|
8 |
|
|
-- --
|
9 |
|
|
-- Copyright (C) 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. 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 COPYING3. If not, go to --
|
19 |
|
|
-- http://www.gnu.org/licenses for a complete copy of the license. --
|
20 |
|
|
-- --
|
21 |
|
|
-- GNAT was originally developed by the GNAT team at New York University. --
|
22 |
|
|
-- Extensive contributions were provided by Ada Core Technologies Inc. --
|
23 |
|
|
-- --
|
24 |
|
|
------------------------------------------------------------------------------
|
25 |
|
|
|
26 |
|
|
-- This package contains the function used to read SCO information from the
|
27 |
|
|
-- internal tables defined in package SCOs, and output text information for
|
28 |
|
|
-- the ALI file. The interface allows control over the destination of the
|
29 |
|
|
-- output, so that this routine can also be used for debugging purposes.
|
30 |
|
|
|
31 |
|
|
with Types; use Types;
|
32 |
|
|
|
33 |
|
|
generic
|
34 |
|
|
-- The following procedures are used to output text information. The
|
35 |
|
|
-- destination of the text information is thus under control of the
|
36 |
|
|
-- particular instantiation. In particular, this procedure is used to
|
37 |
|
|
-- write output to the ALI file, and also for debugging output.
|
38 |
|
|
|
39 |
|
|
with procedure Write_Info_Char (C : Character) is <>;
|
40 |
|
|
-- Outputs one character
|
41 |
|
|
|
42 |
|
|
with procedure Write_Info_Initiate (Key : Character) is <>;
|
43 |
|
|
-- Initiates write of new line to output file, the parameter is the
|
44 |
|
|
-- keyword character for the line.
|
45 |
|
|
|
46 |
|
|
with procedure Write_Info_Nat (N : Nat) is <>;
|
47 |
|
|
-- Writes image of N to output file with no leading or trailing blanks
|
48 |
|
|
|
49 |
|
|
with procedure Write_Info_Terminate is <>;
|
50 |
|
|
-- Terminate current info line and output lines built in Info_Buffer
|
51 |
|
|
|
52 |
|
|
procedure Put_SCOs;
|
53 |
|
|
-- Read information from SCOs.SCO_Table and SCOs.SCO_Unit_Table and output
|
54 |
|
|
-- corresponding information in ALI format using the Write_Info procedures.
|