From 554fd8c5195424bdbcabf5de30fdc183aba391bd Mon Sep 17 00:00:00 2001 From: upstream source tree Date: Sun, 15 Mar 2015 20:14:05 -0400 Subject: obtained gcc-4.6.4.tar.bz2 from upstream website; verified gcc-4.6.4.tar.bz2.sig; imported gcc-4.6.4 source tree from verified upstream tarball. downloading a git-generated archive based on the 'upstream' tag should provide you with a source tree that is binary identical to the one extracted from the above tarball. if you have obtained the source via the command 'git clone', however, do note that line-endings of files in your working directory might differ from line-endings of the respective files in the upstream repository. --- gcc/ada/lib-util.ads | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 gcc/ada/lib-util.ads (limited to 'gcc/ada/lib-util.ads') diff --git a/gcc/ada/lib-util.ads b/gcc/ada/lib-util.ads new file mode 100644 index 000000000..b34bd277a --- /dev/null +++ b/gcc/ada/lib-util.ads @@ -0,0 +1,86 @@ +------------------------------------------------------------------------------ +-- -- +-- GNAT COMPILER COMPONENTS -- +-- -- +-- L I B . U T I L -- +-- -- +-- B o d y -- +-- -- +-- Copyright (C) 1992-2009, Free Software Foundation, Inc. -- +-- -- +-- GNAT is free software; you can redistribute it and/or modify it under -- +-- terms of the GNU General Public License as published by the Free Soft- -- +-- ware Foundation; either version 3, or (at your option) any later ver- -- +-- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- +-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- +-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- +-- for more details. You should have received a copy of the GNU General -- +-- Public License distributed with GNAT; see file COPYING3. If not, go to -- +-- http://www.gnu.org/licenses for a complete copy of the license. -- +-- -- +-- GNAT was originally developed by the GNAT team at New York University. -- +-- Extensive contributions were provided by Ada Core Technologies Inc. -- +-- -- +------------------------------------------------------------------------------ + +with Uintp; use Uintp; + +package Lib.Util is + + -- This package implements a buffered write of library information + + procedure Write_Info_Char (C : Character); + pragma Inline (Write_Info_Char); + -- Adds one character to the info + + procedure Write_Info_Char_Code (Code : Char_Code); + -- Write a single character code. Upper half values in the range + -- 16#80..16#FF are written as Uhh (hh = 2 hex digits), and values + -- greater than 16#FF are written as Whhhh (hhhh = 4 hex digits). + + function Write_Info_Col return Positive; + -- Returns the column in which the next character will be written + + procedure Write_Info_EOL; + -- Terminate current info line. This only flushes the buffer + -- if there is not enough room for another complete line or + -- if the host system needs a write for each line. + + procedure Write_Info_Initiate (Key : Character); + -- Initiates write of new line to info file, the parameter is the keyword + -- character for the line. The caller is responsible for writing the + -- required blank after the key character if needed. + + procedure Write_Info_Nat (N : Nat); + -- Adds image of N to Info_Buffer with no leading or trailing blanks + + procedure Write_Info_Int (N : Int); + -- Adds image of N to Info_Buffer with no leading or trailing blanks. A + -- minus sign is prepended for negative values. + + procedure Write_Info_Name (Name : Name_Id); + procedure Write_Info_Name (Name : File_Name_Type); + procedure Write_Info_Name (Name : Unit_Name_Type); + -- Adds characters of Name to Info_Buffer. Note that in all cases, the + -- name is written literally from the names table entry without modifying + -- the case, using simply Get_Name_String. + + procedure Write_Info_Slit (S : String_Id); + -- Write string literal value in format required for L/N lines in ali file + + procedure Write_Info_Str (Val : String); + -- Adds characters of Val to Info_Buffer surrounded by quotes + + procedure Write_Info_Tab (Col : Positive); + -- Tab out with blanks and HT's to column Col. If already at or past + -- Col, writes a single blank, so that we do get a required field + -- separation. + + procedure Write_Info_Terminate; + -- Terminate current info line and output lines built in Info_Buffer + + procedure Write_Info_Uint (N : Uint); + -- Adds decimal image of N to Info_Buffer with no leading or trailing + -- blanks. A minus sign is prepended for negative values. + +end Lib.Util; -- cgit v1.2.3