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

⟦9021a44d8⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Essai_Compare, seg_05728c

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 Calendar;
with Bounded_String;
with Text_Io;
with String_Utilities;
with Operations;
use String_Utilities;
use Operations, Calendar;

procedure Essai_Compare is
    Var1 : Bounded_String.Variable_String (1024);
    Var2 : Bounded_String.Variable_String (1024);
    Var3 : Bounded_String.Variable_String (1024);
    Var4 : Bounded_String.Variable_String (1024);
    Var5 : Bounded_String.Variable_String (1024);

begin
    Text_Io.Put_Line ("Jour : " & Integer'Image (Day (Clock)));
    Text_Io.Put_Line ("Mois : " & Integer'Image (Month (Clock)));
    Text_Io.Put_Line ("Annee: " & Integer'Image (Year (Clock)));


    Bounded_String.Copy (Var1, "date($lionel$philippe$)");
    Bounded_String.Copy (Var2, "Date(phil)");
    Bounded_String.Copy (Var3, "Heure(");
    Bounded_String.Copy (Var4, "abcde(");
    Bounded_String.Copy (Var5, "date");

    Text_Io.Put_Line ("var1=date($lionel$philippe$)");
    Text_Io.Put_Line ("var2=Date(phil)");
    Text_Io.Put_Line ("var3=Heure(");
    Text_Io.Put_Line ("var4=abcde(");
    Text_Io.Put_Line ("var5=date");

    Text_Io.Put_Line ("Param1: " &
                      Bounded_String.Image (Separe_Param (Var1, 1)));
    Text_Io.Put_Line ("Param2: " &
                      Bounded_String.Image (Separe_Param (Var1, 2)));

    Text_Io.Put ("var1=var2 ?  ");
    if Egal (Var1, Var2) then
        Text_Io.Put_Line ("Oui");
    else
        Text_Io.Put_Line ("Non");
    end if;
    Text_Io.Put ("var1=var3 ?  ");
    if Egal (Var1, Var3) then
        Text_Io.Put_Line ("Oui");
    else
        Text_Io.Put_Line ("Non");
    end if;
    Text_Io.Put ("var3=var4 ?  ");
    if Egal (Var3, Var4) then
        Text_Io.Put_Line ("Oui");
    else
        Text_Io.Put_Line ("Non");
    end if;
    Text_Io.Put ("var1=var5 ?  ");
    if Egal (Var1, Var5) then
        Text_Io.Put_Line ("Oui");
    else
        Text_Io.Put_Line ("Non");
    end if;
    Text_Io.Put ("var1=var1 ?  ");
    if Egal (Var1, Var1) then
        Text_Io.Put_Line ("Oui");
    else
        Text_Io.Put_Line ("Non");
    end if;
    Text_Io.Put ("var5=var5 ?  ");
    if Egal (Var5, Var5) then
        Text_Io.Put_Line ("Oui");
    else
        Text_Io.Put_Line ("Non");
    end if;


end Essai_Compare;

E3 Meta Data

    nblk1=4
    nid=0
    hdr6=8
        [0x00] rec0=1f rec1=00 rec2=01 rec3=012
        [0x01] rec0=06 rec1=00 rec2=04 rec3=01a
        [0x02] rec0=23 rec1=00 rec2=03 rec3=026
        [0x03] rec0=07 rec1=00 rec2=02 rec3=000
    tail 0x21763f03487c67820ef60 0x42a00088462060003