OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [ada/] [lib-util.ads] - Blame information for rev 816

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 281 jeremybenn
------------------------------------------------------------------------------
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-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
package Lib.Util is
27
 
28
   --  This package implements a buffered write of library information
29
 
30
   procedure Write_Info_Char (C : Character);
31
   pragma Inline (Write_Info_Char);
32
   --  Adds one character to the info
33
 
34
   procedure Write_Info_Char_Code (Code : Char_Code);
35
   --  Write a single character code. Upper half values in the range
36
   --  16#80..16#FF are written as Uhh (hh = 2 hex digits), and values
37
   --  greater than 16#FF are written as Whhhh (hhhh = 4 hex digits).
38
 
39
   function Write_Info_Col return Positive;
40
   --  Returns the column in which the next character will be written
41
 
42
   procedure Write_Info_EOL;
43
   --  Terminate current info line. This only flushes the buffer
44
   --  if there is not enough room for another complete line or
45
   --  if the host system needs a write for each line.
46
 
47
   procedure Write_Info_Initiate (Key : Character);
48
   --  Initiates write of new line to info file, the parameter is the keyword
49
   --  character for the line. The caller is responsible for writing the
50
   --  required blank after the key character if needed.
51
 
52
   procedure Write_Info_Nat (N : Nat);
53
   --  Adds image of N to Info_Buffer with no leading or trailing blanks
54
 
55
   procedure Write_Info_Name (Name : Name_Id);
56
   procedure Write_Info_Name (Name : File_Name_Type);
57
   procedure Write_Info_Name (Name : Unit_Name_Type);
58
   --  Adds characters of Name to Info_Buffer. Note that in all cases, the
59
   --  name is written literally from the names table entry without modifying
60
   --  the case, using simply Get_Name_String.
61
 
62
   procedure Write_Info_Str (Val : String);
63
   --  Adds characters of Val to Info_Buffer surrounded by quotes
64
 
65
   procedure Write_Info_Tab (Col : Positive);
66
   --  Tab out with blanks and HT's to column Col. If already at or past
67
   --  Col, writes a single blank, so that we do get a required field
68
   --  separation.
69
 
70
   procedure Write_Info_Terminate;
71
   --  Terminate current info line and output lines built in Info_Buffer
72
 
73
end Lib.Util;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.