DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ B T

⟦6d879786a⟧ TextFile

    Length: 2628 (0xa44)
    Types: TextFile
    Names: »B«

Derivation

└─⟦afbc8121e⟧ Bits:30000532 8mm tape, Rational 1000, MC68020_OS2000 7_2_2
    └─ ⟦77aa8350c⟧ »DATA« 
        └─⟦f794ecd1d⟧ 
            └─⟦4c85d69e2⟧ 
                └─⟦this⟧ 

TextFile

--    The use of this system is subject to the software license terms and
--    conditions agreed upon between Rational and the Customer.
--
--                Copyright 1988 by Rational.
--
--                          RESTRICTED RIGHTS LEGEND
--
--    Use, duplication, or disclosure by the Government is subject to
--    restrictions as set forth in subdivision (b)(3)(ii) of the Rights in
--    Technical Data and Computer Software clause at 52.227-7013.
--
--
--                Rational
--                3320 Scott Boulevard
--                Santa Clara, California 95054-3197
--
--   PROPRIETARY AND CONFIDENTIAL INFORMATION OF RATIONAL;
--   USE OR COPYING WITHOUT EXPRESS WRITTEN AUTHORIZATION
--   IS STRICTLY PROHIBITED.  THIS MATERIAL IS PROTECTED AS
--   AN UNPUBLISHED WORK UNDER THE U.S. COPYRIGHT ACT OF
--   1976.  CREATED 1988.  ALL RIGHTS RESERVED.
--
--

separate (Text_Io)

package body Integer_Io is

    package Iio renames Cio.Integer_Io;

    procedure Get (File : File_Type; Item : out Num; Width : Field := 0) is  
    begin  
        Iio.Get (Cio_File_Type (File), Iio.Long_Integer (Item), Width);  
    exception  
        when Numeric_Error | Constraint_Error =>  
            raise Data_Error;  
    end Get;


    procedure Get (Item : out Num; Width : Field := 0) is  
    begin  
        Iio.Get (Cio.Current_Input, Iio.Long_Integer (Item), Width);  
    exception  
        when Numeric_Error | Constraint_Error =>  
            raise Data_Error;  
    end Get;


    procedure Put (File  : File_Type;  
                   Item  : Num;  
                   Width : Field       := Default_Width;  
                   Base  : Number_Base := Default_Base) is  
    begin  
        Iio.Put (Cio_File_Type (File),  
                 System_Types.Long_Integer (Item),  
                 Width,  
                 Base);  
    end Put;


    procedure Put (Item  : Num;  
                   Width : Field       := Default_Width;  
                   Base  : Number_Base := Default_Base) is  
    begin  
        Iio.Put (Cio.Current_Output, Iio.Long_Integer (Item), Width, Base);  
    end Put;


    procedure Get (From : String; Item : out Num; Last : out Positive) is  
    begin  
        Iio.Get (From, Iio.Long_Integer (Item), Last);  
    exception  
        when Numeric_Error | Constraint_Error =>  
            raise Data_Error;  
    end Get;

    procedure Put (To   : out String;  
                   Item :     Num;  
                   Base :     Number_Base := Default_Base) is  
    begin  
        Iio.Put (To, System_Types.Long_Integer (Item), Base);  
    end Put;

end Integer_Io;