home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
gnat-2.06-src.tgz
/
tar.out
/
fsf
/
gnat
/
ada
/
opt.adb
< prev
next >
Wrap
Text File
|
1996-09-28
|
5KB
|
102 lines
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- O P T --
-- --
-- B o d y --
-- --
-- $Revision: 1.3 $ --
-- --
-- Copyright (c) 1992,1993,1994,1995 NYU, All Rights Reserved --
-- --
-- The GNAT library is free software; you can redistribute it and/or modify --
-- it under terms of the GNU Library General Public License as published by --
-- the Free Software Foundation; either version 2, or (at your option) any --
-- later version. The GNAT library is distributed in the hope that it will --
-- be useful, but WITHOUT ANY WARRANTY; without even the implied warranty --
-- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --
-- Library General Public License for more details. You should have --
-- received a copy of the GNU Library General Public License along with --
-- the GNAT library; see the file COPYING.LIB. If not, write to the Free --
-- Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. --
-- --
------------------------------------------------------------------------------
with System; use System;
with Tree_IO; use Tree_IO;
package body Opt is
---------------
-- Tree_Read --
---------------
procedure Tree_Read is
begin
Tree_Read_Bool (Brief_Output);
Tree_Read_Bool (GNAT_Mode);
Tree_Read_Char (Identifier_Character_Set);
Tree_Read_Int (Maximum_File_Name_Length);
Tree_Read_Data (Suppress_Options'Address,
Suppress_Record'Size / Storage_Unit);
Tree_Read_Bool (Verbose_Mode);
Tree_Read_Data (Warning_Mode'Address,
Warning_Mode_Type'Size / Storage_Unit);
Tree_Read_Bool (Ada_83_Switch);
Tree_Read_Bool (All_Errors_Mode);
Tree_Read_Bool (Assertions_Enabled);
Tree_Read_Bool (Full_List);
Tree_Read_Data (Stub_Mode'Address,
Distribution_Stub_Mode_Type'Size / Storage_Unit);
Tree_Read_Bool (Immediate_Errors);
Tree_Read_Bool (Inline_Active);
Tree_Read_Bool (List_Units);
Tree_Read_Data (Operating_Mode'Address,
Mode_Type'Size / Storage_Unit);
Tree_Read_Bool (Software_Overflow_Checking);
Tree_Read_Bool (Style_Check);
Tree_Read_Bool (Try_Semantics);
Tree_Read_Bool (RM_Column_Check);
Tree_Read_Data (Wide_Character_Encoding_Method'Address,
WC_Encoding_Method'Size / Storage_Unit);
Tree_Read_Bool (Upper_Half_Encoding);
end Tree_Read;
----------------
-- Tree_Write --
----------------
procedure Tree_Write is
begin
Tree_Write_Bool (Brief_Output);
Tree_Write_Bool (GNAT_Mode);
Tree_Write_Char (Identifier_Character_Set);
Tree_Write_Int (Maximum_File_Name_Length);
Tree_Write_Data (Suppress_Options'Address,
Suppress_Record'Size / Storage_Unit);
Tree_Write_Bool (Verbose_Mode);
Tree_Write_Data (Warning_Mode'Address,
Warning_Mode_Type'Size / Storage_Unit);
Tree_Write_Bool (Ada_83_Switch);
Tree_Write_Bool (All_Errors_Mode);
Tree_Write_Bool (Assertions_Enabled);
Tree_Write_Bool (Full_List);
Tree_Write_Data (Stub_Mode'Address,
Distribution_Stub_Mode_Type'Size / Storage_Unit);
Tree_Write_Bool (Immediate_Errors);
Tree_Write_Bool (Inline_Active);
Tree_Write_Bool (List_Units);
Tree_Write_Data (Operating_Mode'Address,
Mode_Type'Size / Storage_Unit);
Tree_Write_Bool (Software_Overflow_Checking);
Tree_Write_Bool (Style_Check);
Tree_Write_Bool (Try_Semantics);
Tree_Write_Bool (RM_Column_Check);
Tree_Write_Data (Wide_Character_Encoding_Method'Address,
WC_Encoding_Method'Size / Storage_Unit);
Tree_Write_Bool (Upper_Half_Encoding);
end Tree_Write;
end Opt;