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

⟦d22cab599⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Count_Lines, seg_00bd63

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 Directory_Tools;
with Text_Io;  
procedure Count_Lines (Name : String := "<IMAGE>"; Detail : Boolean := True) is
    package Dtn renames Directory_Tools.Naming;
    package Dto renames Directory_Tools.Object;  
    Iter       : Dto.Iterator;
    The_File   : Text_Io.File_Type;
    The_Length : Natural;
    The_Count  : Natural := 0;
    The_Total  : Natural := 0;
begin  
    Iter := Dtn.Resolution (Name         => Name,
                            Context      => Dtn.Default_Context,
                            Objects_Only => True);
    while not Dto.Done (Iter) loop
        Text_Io.Open (The_File, Text_Io.In_File,
                      Name => Dtn.Unique_Full_Name (Dto.Value (Iter)));
        The_Count := 0;
        while not Text_Io.End_Of_File (The_File) loop
            Text_Io.Skip_Line (The_File);
            The_Count := The_Count + 1;
        end loop;
        Text_Io.Close (The_File);
        if Detail then
            Text_Io.Put_Line (Integer'Image (The_Count) & Ascii.Ht &
                              Dtn.Unique_Full_Name (Dto.Value (Iter)));
        end if;
        The_Total := The_Total + The_Count;
        Dto.Next (Iter);
    end loop;
    Text_Io.Put_Line ("total => " & Integer'Image (The_Total) & " lines");
end Count_Lines;


E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1a rec1=00 rec2=01 rec3=03c
        [0x01] rec0=0a rec1=00 rec2=02 rec3=000
    tail 0x21708cca0820047a35f2c 0x42a00088462063c03