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

⟦c55f3d7f1⟧ Ada Source

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

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 Aleatoire;
package body Boite_A_Images is
    type Des_Images     is array (Positive range <>) of Contenu;  
    type Cle_Des_Images is access Des_Images;
    Le_Contenu : Cle_Des_Images;

    function Magique return Contenu is  
        Premier      : Natural := Contenu'Pos (Contenu'First);
        Dernier      : Natural := Contenu'Pos (Contenu'Last);
        Quantite     : Natural := Dernier - Premier + 1;
        Une_Position : Natural;
    begin
        Une_Position := Premier + Aleatoire mod (Quantite);
        return Contenu'Val (Une_Position);
    end Magique;

    procedure Garnir (Quantite : Natural) is
    begin
        if Quantite = 0 then
            Le_Contenu := null;
        else
            Le_Contenu := new Des_Images'(1 .. Quantite => Magique);
        end if;
    end Garnir;

    function Nombre_D_Elements return Natural is
    begin
        if Le_Contenu = null then
            return 0;
        else
            return Le_Contenu'Length;
        end if;
    end Nombre_D_Elements;


    function Image (De_L_Element : Positive) return String is
    begin
        if Le_Contenu = null then
            return "rien de magique";
        else
            return Contenu'Image (Le_Contenu (De_L_Element));
        end if;
    end Image;
end Boite_A_Images;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=20 rec1=00 rec2=01 rec3=01e
        [0x01] rec0=0e rec1=00 rec2=02 rec3=001
    tail 0x2172211fa83b47ccade59 0x42a00088462063c03