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

⟦658597768⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Trace, seg_037d9d

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 Bounded_String;
with Text_Io;

package body Trace is

    procedure On is
    begin
        Active := True;
    end On;

    procedure Off is
    begin
        Active := False;
    end Off;

    procedure Display (What : Scanner.Lexeme) is
    begin  
        if Active then
            Text_Io.Put ("lexeme : ");
            Text_Io.Put_Line (Bounded_String.Image (What));
        end if;
    end Display;

    procedure Display (What : Scanner.Token) is
    begin
        if Active then
            Text_Io.Put ("token  : ");
            Text_Io.Put_Line (Scanner.Token'Image (What));
        end if;
    end Display;

    procedure Display (What : Object.Reference) is
        Obj : Object.Reference;
    begin
        if Active then
            Text_Io.Put ("object : ");
            Text_Io.Put (Object.Class'Image (Object.Get_Class (What)));
            case Object.Get_Class (What) is
                when Object.Tortue | Object.Stylo | Object.Vide =>
                    Text_Io.Put_Line ("");
                when others =>
                    Text_Io.Put (" no ");
                    Text_Io.Put_Line (Integer'Image (Object.Get_Id (What)));
            end case;
        end if;
    end Display;

    procedure Display (What : Integer) is
    begin  
        if Active then
            Text_Io.Put ("integer : ");
            Text_Io.Put_Line (Integer'Image (What));
        end if;
    end Display;

    procedure Display (What : Boolean) is
    begin  
        if Active then
            Text_Io.Put ("boolean : ");
            Text_Io.Put_Line (Boolean'Image (What));
        end if;
    end Display;

    procedure Display (What : String; Always : Boolean := False) is
    begin
        if Active or Always then
            Text_Io.Put_Line (What);
        end if;
    end Display;

    procedure Display (Msg : String; Nb : Integer; Always : Boolean := False) is
    begin
        if Active or Always then
            Text_Io.Put (Msg);
            Text_Io.Put_Line (Integer'Image (Nb));
        end if;
    end Display;

end Trace;


E3 Meta Data

    nblk1=4
    nid=2
    hdr6=6
        [0x00] rec0=26 rec1=00 rec2=01 rec3=004
        [0x01] rec0=1e rec1=00 rec2=04 rec3=010
        [0x02] rec0=0f rec1=00 rec2=03 rec3=000
        [0x03] rec0=08 rec1=00 rec2=04 rec3=000
    tail 0x21531226484e587cc0172 0x42a00088462060003
Free Block Chain:
  0x2: 0000  00 00 00 06 80 03 20 28 22 03 74 5f 49 6f 2e 50  ┆       (" t_Io.P┆