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

⟦11f8f784d⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Message, seg_00f55f

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



package body Message is

    -- TYPES -----------------------------------------------


    type Tb_Msg is array (Num_Message range <>) of Boolean;

    type Tableau_Msg (Taille : Indice_Table := 100) is
        record
            Msg : Tb_Msg (256 .. 256 + Taille) := (others => False);
        end record;


    -- VARIABLES -------------------------------------------

    Table_Message : Tableau_Msg;


    -- PROCEDURES ------------------------------------------

    function Table_Message_Pleine return Boolean is
        Resultat : Boolean := True;
    begin
        for I in Table_Message.Msg'Range loop
            Resultat := Resultat and Table_Message.Msg (I);
        end loop;
        return Resultat;
    end Table_Message_Pleine;

    function Premier_Libre return Num_Message is
        I      : Indice_Table := Table_Message.Msg'First;
        Trouve : Boolean      := False;
    begin
        [statement]

    end Premier_Libre;
    --------------------------------------------------------
    -- INTERFACE
    --------------------------------------------------------

    procedure Prendre (Numero : out Num_Message) is
        Ajout : Tb_Msg (0 .. 100) := (others => False);
    begin
        if Table_Messages_Pleine then
            Table_Message := Table_Message & Ajout;
        end if;
        Numero := Premier_Libre;
    end Prendre;


    procedure Liberer (Numero : Num_Message) is
    begin
        Table_Message.Msg (Numero) := False;
    end Liberer;


    procedure Envoyer (Numero : Num_Message) is
    begin
        [statement]
    end Envoyer;

end Message;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=25 rec1=00 rec2=01 rec3=020
        [0x01] rec0=1b rec1=00 rec2=02 rec3=000
    tail 0x2150b5688822b50024d6a 0x42a00088462062803