DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

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

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦0ac58f690⟧ Ada Source

    Length: 6144 (0x1800)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Xlbip_Base_Converters, seg_004f19

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« 
        └─⟦this⟧ 

E3 Source Code



with Xlbt_Arithmetic;  
use Xlbt_Arithmetic;  
with Xlbt_Basic3;  
use Xlbt_Basic3;  
with Xlbt_Font3;  
use Xlbt_Font3;  
with Xlbt_Hint3;  
use Xlbt_Hint3;  
with Xlbt_Key3;  
use Xlbt_Key3;  
with Xlbt_Keyboard3;  
use Xlbt_Keyboard3;  
with Xlbt_Misc;  
use Xlbt_Misc;  
with Xlbt_Pointer;  
use Xlbt_Pointer;  
with Xlbt_String;  
use Xlbt_String;  
with Xlbt_String16;  
use Xlbt_String16;

with Xlbmt_Network_Types;  
use Xlbmt_Network_Types;  
with Xlbmp_Generic_Converters;  
use Xlbmp_Generic_Converters;

package body Xlbip_Base_Converters is
------------------------------------------------------------------------------
-- X Library Internal Basic Converters
--
-- Xlbip_Base_Converters - Protocol converters for basic types.
------------------------------------------------------------------------------
-- Copyright 1989 - 1991 by Rational, Santa Clara, California.
--
--                  All Rights Reserved.
--
-- Permission to use, copy, modify, and distribute this software and its
-- documentation for any purpose and without fee is hereby granted,
-- provided that the above copyright notice(s) appear in all copies and that
-- both that copyright notice(s) and this permission notice appear in
-- supporting documentation, and that the name of Rational not be used in
-- advertising or publicity pertaining to distribution of the software
-- without specific, written prior permission.
--
-- Rational disclaims all warranties with regard to this software, including
-- all implied warranties of merchantability and fitness, in no event shall
-- Rational be liable for any special, indirect or consequential damages or
-- any damages whatsoever resulting from loss of use, data or profits, whether
-- in an action of contract, negligence or other tortious action, arising out
-- of or in connection with the use or performance of this software.
------------------------------------------------------------------------------

-- --\x0c
    --     procedure To_Raw (Raw : out X_Raw_Data_Array; Str : String) is
-- ------------------------------------------------------------------------------
-- -- Convert a normal 7-bit Ada string into an X Byte Array.
-- ------------------------------------------------------------------------------
--         Str_Last : Integer := Str'Last;
--     begin
--         if Str'Length /= Raw'Length then
--             raise Constraint_Error;
--         else
--             for I in reverse Raw'Range loop
--                 Raw (I)  := Character'Pos (Str (Str_Last));
--                 Str_Last := Str_Last - 1;
--             end loop;
--         end if;
--     end To_Raw;
--
-- --\x0c
    --     procedure From_Raw (Str : out String; Raw : X_Raw_Data_Array) is
-- ------------------------------------------------------------------------------
-- -- Convert an X_Raw_Data_Array into a normal 7-bit string.  Chop each
-- -- character to 7 bits as we go.
-- ------------------------------------------------------------------------------
--         Raw_Last : X_Raw_Data_Index := Raw'Last;
--     begin
--         if Str'Length /= Raw'Length then
--             raise Constraint_Error;
--         else
--             for I in reverse Str'Range loop
--                 Str (I)  := Character'Val
--                                (abs (S_Short (Raw (Raw_Last)) rem 128));
--                 Raw_Last := Raw_Last - 1;
--             end loop;
--         end if;
--     end From_Raw;
--
-- --\x0c
    --     procedure From_Raw (Str   : out String;
--                         Raw   :     X_Raw_Data_Array;
--                         Trans :     X_Raw_Character_Array) is
-- ------------------------------------------------------------------------------
-- -- Convert an X_Raw_Data_Array into a normal 7-bit string.  Translates
-- -- each Byte in the Raw via the Trans array and returns that result.
-- ------------------------------------------------------------------------------
--         Raw_Last : X_Raw_Data_Index := Raw'Last;
--     begin
--         if Str'Length /= Raw'Length then
--             raise Constraint_Error;
--         else
--             for I in reverse Str'Range loop
--                 Str (I)  := Trans (Raw (Raw_Last));
--                 Raw_Last := Raw_Last - 1;
--             end loop;
--         end if;
--     end From_Raw;
--
-- --\x0c
end Xlbip_Base_Converters;  

E3 Meta Data

    nblk1=5
    nid=0
    hdr6=a
        [0x00] rec0=26 rec1=00 rec2=01 rec3=01c
        [0x01] rec0=0e rec1=00 rec2=02 rec3=082
        [0x02] rec0=17 rec1=00 rec2=03 rec3=046
        [0x03] rec0=16 rec1=00 rec2=04 rec3=050
        [0x04] rec0=0f rec1=00 rec2=05 rec3=000
    tail 0x21700661281978095a937 0x42a00088462063203