DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

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 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ B T

⟦e1436debd⟧ TextFile

    Length: 2022 (0x7e6)
    Types: TextFile
    Names: »B«

Derivation

└─⟦149519bd4⟧ Bits:30000546 8mm tape, Rational 1000, !projects 93-07-13
    └─ ⟦124ff5788⟧ »DATA« 
        └─⟦this⟧ 
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 
└─⟦f64eaa120⟧ Bits:30000752 8mm tape, Rational 1000, !projects 93 02 16
    └─ ⟦6f12a12be⟧ »DATA« 
        └─⟦this⟧ 
└─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04
    └─ ⟦d65440be7⟧ »DATA« 
        └─⟦this⟧ 

TextFile

with Text_Io;
with System;
package body Logger_Interface is

    procedure Init_C;
    pragma Interface (C, Init_C);
    pragma Interface_Information (Init_C, ".LogInit");

    procedure Create_C;
    pragma Interface (C, Create_C);
    pragma Interface_Information (Create_C, ".LogCreate");


    procedure Put_C (C_Message : System.Address);
    pragma Interface (C, Put_C);
    pragma Interface_Information (Put_C, ".LogPut");

    procedure Close_C;
    pragma Interface (C, Close_C);
    pragma Interface_Information (Close_C, ".LogClose");

    type Char_P is access Character;

    function Get_Message_C return Char_P;
    pragma Interface (C, Get_Message_C);
    pragma Interface_Information (Get_Message_C, ".LogGetMessage");


    procedure Init is
    begin
        Init_C;
    end Init;

    procedure Put (Message : String) is
        C_Message : constant String := Message & Ascii.Nul;
    begin
        Put_C (C_Message => C_Message (C_Message'First)'Address);
    end Put;

    procedure Close is
    begin
        Close_C;
    end Close;

    procedure Create is
    begin
        Create_C;
    end Create;

    function Get_Message return String is
        P : Char_P;
    begin
        P := Get_Message_C;
        Text_Io.Put (P.all);
        Text_Io.Put_Line ("get message: ^");
        return "toto";
    end Get_Message;


    -- package body Iterator is
    --     procedure Init is
    --     begin
    --         Iter_Init_C;
    --     end Init;
    --
    --
    --     function Done return Boolean is
    --     begin
    --         if Iter_Done_C = 1 then
    --             return True;
    --         else
    --             return False;
    --         end if;
    --     end Done;
    --
    --
    --     procedure Next is
    --     begin
    --         Iter_Next_C;
    --     end Next;
    --
    --
    --     function Value return Character is
    --     begin
    --         return Iter_Value_C;
    --     end Value;
    -- end Iterator;
    --
    --
    --
end Logger_Interface;