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 >
Text File  |  1996-09-28  |  5KB  |  102 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                         GNAT COMPILER COMPONENTS                         --
  4. --                                                                          --
  5. --                                  O P T                                   --
  6. --                                                                          --
  7. --                                 B o d y                                  --
  8. --                                                                          --
  9. --                            $Revision: 1.3 $                              --
  10. --                                                                          --
  11. --        Copyright (c) 1992,1993,1994,1995 NYU, All Rights Reserved        --
  12. --                                                                          --
  13. -- The GNAT library is free software; you can redistribute it and/or modify --
  14. -- it under terms of the GNU Library General Public License as published by --
  15. -- the Free Software  Foundation; either version 2, or (at your option) any --
  16. -- later version.  The GNAT library is distributed in the hope that it will --
  17. -- be useful, but WITHOUT ANY WARRANTY;  without even  the implied warranty --
  18. -- of MERCHANTABILITY  or  FITNESS FOR  A PARTICULAR PURPOSE.  See the  GNU --
  19. -- Library  General  Public  License for  more  details.  You  should  have --
  20. -- received  a copy of the GNU  Library  General Public License  along with --
  21. -- the GNAT library;  see the file  COPYING.LIB.  If not, write to the Free --
  22. -- Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.        --
  23. --                                                                          --
  24. ------------------------------------------------------------------------------
  25.  
  26. with System;  use System;
  27. with Tree_IO; use Tree_IO;
  28.  
  29. package body Opt is
  30.  
  31.    ---------------
  32.    -- Tree_Read --
  33.    ---------------
  34.  
  35.    procedure Tree_Read is
  36.    begin
  37.       Tree_Read_Bool (Brief_Output);
  38.       Tree_Read_Bool (GNAT_Mode);
  39.       Tree_Read_Char (Identifier_Character_Set);
  40.       Tree_Read_Int  (Maximum_File_Name_Length);
  41.       Tree_Read_Data (Suppress_Options'Address,
  42.                       Suppress_Record'Size / Storage_Unit);
  43.       Tree_Read_Bool (Verbose_Mode);
  44.       Tree_Read_Data (Warning_Mode'Address,
  45.                       Warning_Mode_Type'Size / Storage_Unit);
  46.       Tree_Read_Bool (Ada_83_Switch);
  47.       Tree_Read_Bool (All_Errors_Mode);
  48.       Tree_Read_Bool (Assertions_Enabled);
  49.       Tree_Read_Bool (Full_List);
  50.       Tree_Read_Data (Stub_Mode'Address,
  51.                       Distribution_Stub_Mode_Type'Size / Storage_Unit);
  52.       Tree_Read_Bool (Immediate_Errors);
  53.       Tree_Read_Bool (Inline_Active);
  54.       Tree_Read_Bool (List_Units);
  55.       Tree_Read_Data (Operating_Mode'Address,
  56.                       Mode_Type'Size / Storage_Unit);
  57.       Tree_Read_Bool (Software_Overflow_Checking);
  58.       Tree_Read_Bool (Style_Check);
  59.       Tree_Read_Bool (Try_Semantics);
  60.       Tree_Read_Bool (RM_Column_Check);
  61.       Tree_Read_Data (Wide_Character_Encoding_Method'Address,
  62.                       WC_Encoding_Method'Size / Storage_Unit);
  63.       Tree_Read_Bool (Upper_Half_Encoding);
  64.    end Tree_Read;
  65.  
  66.    ----------------
  67.    -- Tree_Write --
  68.    ----------------
  69.  
  70.    procedure Tree_Write is
  71.    begin
  72.       Tree_Write_Bool (Brief_Output);
  73.       Tree_Write_Bool (GNAT_Mode);
  74.       Tree_Write_Char (Identifier_Character_Set);
  75.       Tree_Write_Int  (Maximum_File_Name_Length);
  76.       Tree_Write_Data (Suppress_Options'Address,
  77.                        Suppress_Record'Size / Storage_Unit);
  78.       Tree_Write_Bool (Verbose_Mode);
  79.       Tree_Write_Data (Warning_Mode'Address,
  80.                        Warning_Mode_Type'Size / Storage_Unit);
  81.       Tree_Write_Bool (Ada_83_Switch);
  82.       Tree_Write_Bool (All_Errors_Mode);
  83.       Tree_Write_Bool (Assertions_Enabled);
  84.       Tree_Write_Bool (Full_List);
  85.       Tree_Write_Data (Stub_Mode'Address,
  86.                        Distribution_Stub_Mode_Type'Size / Storage_Unit);
  87.       Tree_Write_Bool (Immediate_Errors);
  88.       Tree_Write_Bool (Inline_Active);
  89.       Tree_Write_Bool (List_Units);
  90.       Tree_Write_Data (Operating_Mode'Address,
  91.                        Mode_Type'Size / Storage_Unit);
  92.       Tree_Write_Bool (Software_Overflow_Checking);
  93.       Tree_Write_Bool (Style_Check);
  94.       Tree_Write_Bool (Try_Semantics);
  95.       Tree_Write_Bool (RM_Column_Check);
  96.       Tree_Write_Data (Wide_Character_Encoding_Method'Address,
  97.                        WC_Encoding_Method'Size / Storage_Unit);
  98.       Tree_Write_Bool (Upper_Half_Encoding);
  99.    end Tree_Write;
  100.  
  101. end Opt;
  102.