]>
Commit | Line | Data |
---|---|---|
f7f0159d AC |
1 | ------------------------------------------------------------------------------ |
2 | -- -- | |
3 | -- GNAT COMPILER COMPONENTS -- | |
4 | -- -- | |
06ad40d3 | 5 | -- P U T _ S C O S -- |
f7f0159d AC |
6 | -- -- |
7 | -- S p e c -- | |
8 | -- -- | |
4b490c1e | 9 | -- Copyright (C) 2009-2020, Free Software Foundation, Inc. -- |
f7f0159d AC |
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 | ||
06ad40d3 | 31 | with Namet; use Namet; |
f7f0159d AC |
32 | with Types; use Types; |
33 | ||
34 | generic | |
240fe2a4 AC |
35 | -- The following procedures are used to output text information. The |
36 | -- destination of the text information is thus under control of the | |
37 | -- particular instantiation. In particular, this procedure is used to | |
38 | -- write output to the ALI file, and also for debugging output. | |
f7f0159d AC |
39 | |
40 | with procedure Write_Info_Char (C : Character) is <>; | |
41 | -- Outputs one character | |
42 | ||
43 | with procedure Write_Info_Initiate (Key : Character) is <>; | |
44 | -- Initiates write of new line to output file, the parameter is the | |
45 | -- keyword character for the line. | |
46 | ||
06ad40d3 AC |
47 | with procedure Write_Info_Name (Nam : Name_Id) is <>; |
48 | -- Outputs one name | |
49 | ||
f7f0159d AC |
50 | with procedure Write_Info_Nat (N : Nat) is <>; |
51 | -- Writes image of N to output file with no leading or trailing blanks | |
52 | ||
53 | with procedure Write_Info_Terminate is <>; | |
54 | -- Terminate current info line and output lines built in Info_Buffer | |
55 | ||
56 | procedure Put_SCOs; | |
57 | -- Read information from SCOs.SCO_Table and SCOs.SCO_Unit_Table and output | |
58 | -- corresponding information in ALI format using the Write_Info procedures. |