1------------------------------------------------------------------------------ 2-- -- 3-- GNAT COMPILER COMPONENTS -- 4-- -- 5-- H O S T P A R M -- 6-- -- 7-- S p e c -- 8-- -- 9-- Copyright (C) 1992-2020, 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 defines some system dependent parameters for GNAT. These 27-- are parameters that are relevant to the host machine on which the 28-- compiler is running, and thus this package is part of the compiler. 29 30with Types; 31 32package Hostparm is 33 34 --------------------- 35 -- HOST Parameters -- 36 --------------------- 37 38 Direct_Separator : constant Character; 39 pragma Import (C, Direct_Separator, "__gnat_dir_separator"); 40 Normalized_CWD : constant String := "." & Direct_Separator; 41 -- Normalized string to access current directory 42 43 Max_Line_Length : constant := 44 Types.Column_Number'Pred (Types.Column_Number'Last); 45 -- Maximum source line length. By default we set it to the maximum 46 -- value that can be supported, which is given by the range of the 47 -- Column_Number type. We subtract 1 because need to be able to 48 -- have a valid Column_Number equal to Max_Line_Length to represent 49 -- the location of a "line too long" error. 50 -- 51 -- 200 is the minimum value required (RM 2.2(15)). The value set here 52 -- can be reduced by the explicit use of the -gnatyM style switch. 53 54 Max_Name_Length : constant := 1024; 55 -- Maximum length of unit name (including all dots, and " (spec)") and 56 -- of file names in the library, must be at least Max_Line_Length, but 57 -- can be larger. 58 59 Tag_Errors : constant Boolean := False; 60 -- If set to true, then brief form error messages will be prefaced by 61 -- the string "error:". Used as default for Opt.Unique_Error_Tag. 62 63 Exclude_Missing_Objects : constant Boolean := True; 64 -- If set to true, gnatbind will exclude from consideration all 65 -- non-existent .o files. 66 67end Hostparm; 68