* libgfortran.h (support_fpu_underflow_control,
[official-gcc.git] / gcc / ada / butil.ads
blob72fffc059f854bc16c80dfe2ce3e799d3853344d
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- B U T I L --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2007, 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 ------------------------------------------------------------------------------
26 with Namet; use Namet;
28 package Butil is
30 -- This package contains utility routines for the binder
32 function Is_Predefined_Unit return Boolean;
33 -- Given a unit name stored in Name_Buffer with length in Name_Len,
34 -- returns True if this is the name of a predefined unit or a child of
35 -- a predefined unit (including the obsolescent renamings). This is used
36 -- in the preference selection (see Better_Choice in body of Binde).
38 function Is_Internal_Unit return Boolean;
39 -- Given a unit name stored in Name_Buffer with length in Name_Len,
40 -- returns True if this is the name of an internal unit or a child of
41 -- an internal. Similar in usage to Is_Predefined_Unit.
43 -- Note: the following functions duplicate functionality in Uname, but
44 -- we want to avoid bringing Uname into the binder since it generates
45 -- to many unnecessary dependencies, and makes the binder too large.
47 function Uname_Less (U1, U2 : Unit_Name_Type) return Boolean;
48 -- Determines if the unit name U1 is alphabetically before U2
50 procedure Write_Unit_Name (U : Unit_Name_Type);
51 -- Output unit name with (body) or (spec) after as required. On return
52 -- Name_Len is set to the number of characters which were output.
54 end Butil;