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

⟦971624987⟧ Ada Source

    Length: 4096 (0x1000)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Test_Ext_Str, seg_047839

Derivation

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

E3 Source Code



with Extended_String, Our_String, Text_Io;



procedure Test_Ext_Str is
    package Ext_Str_Pkg is new Extended_String
                                  (Verify_Is_Ok => False,
                                   Verify_Output => Text_Io.Standard_Output);

    use Ext_Str_Pkg;

    function Value (Val : String) return Var_String renames Our_String.Value;

    B1, B2 : Our_String.Variable_String;
    I1, I2 : Our_String.Variable_String;
    S1, S2 : Our_String.Variable_String;

begin
    B1 := Convert (True);
    Print (Value ("B1 : "));
    Print (B1);
    Print_New_Line;
    B2 := Convert (False);
    Print (Value ("B2 : "));
    Print (B2);
    Print_New_Line;
    Print (Value ("B1 = B2 => "));
    Print (Convert (Cmp (B1, B2)));
    Print_New_Line;
    Print (Value ("B1 = TRUE => "));
    Print (Convert (Cmp (B1, "TRUE")));
    Print_New_Line;
    Print (Value ("FALSE = B2 => "));
    Print (Convert (Cmp ("FALSE", B2)));
    Print_New_Line;
    Print (Value ("Is_Boolean (B2) => "));
    Print (Convert (Is_Boolean (B2)));
    Print_New_Line;
    Print (Value ("Is_Boolean (B1) => "));
    Print (Convert (Is_Boolean (B1)));
    Print_New_Line;
    Print (Value ("Is_Integer (B1) => "));
    Print (Convert (Is_Integer (B1)));
    Print_New_Line;
    Print (Value ("Is_String (B1) => "));
    Print (Convert (Is_String (B1)));
    Print_New_Line;
    I1 := Convert (10);
    Print (Value ("I1 : "));
    Print (I1);
    Print_New_Line;
    I2 := Convert (11);
    Print (Value ("I2 : "));
    Print (I2);
    Print_New_Line;
    Print (Value ("I1 = I2 => "));
    Print (Convert (Cmp (I1, I2)));
    Print_New_Line;
    Print (Value ("Is_Boolean (I1) => "));
    Print (Convert (Is_Boolean (I1)));
    Print_New_Line;
    Print (Value ("Is_Integer (I1) => "));
    Print (Convert (Is_Integer (I1)));
    Print_New_Line;
    Print (Value ("Is_String (I1) => "));
    Print (Convert (Is_String (I1)));
    Print_New_Line;
    S1 := Value ("S1");
    Print (Value ("S1 : "));
    Print (S1);
    Print_New_Line;
    S2 := Value ("s2");
    Print (Value ("S2 : "));
    Print (S2);
    Print_New_Line;
    Print (Value ("S1 = S2 => "));
    Print (Convert (Cmp (S1, S2)));
    Print_New_Line;
    Print (Value ("Is_Boolean (S1) => "));
    Print (Convert (Is_Boolean (S1)));
    Print_New_Line;
    Print (Value ("Is_Integer (S1) => "));
    Print (Convert (Is_Integer (S1)));
    Print_New_Line;
    Print (Value ("Is_String (S1) => "));
    Print (Convert (Is_String (S1)));
    Print_New_Line;
end Test_Ext_Str;

E3 Meta Data

    nblk1=3
    nid=0
    hdr6=6
        [0x00] rec0=24 rec1=00 rec2=01 rec3=012
        [0x01] rec0=1f rec1=00 rec2=03 rec3=02e
        [0x02] rec0=17 rec1=00 rec2=02 rec3=000
    tail 0x2154495ec865465f373cb 0x42a00088462060003