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

⟦edb1d408d⟧ TextFile

    Length: 1962 (0x7aa)
    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 Text_Widget is

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

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


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

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

    type Char_P is access Character;

    function Get_C return Char_P;
    pragma Interface (C, Get_C);
    pragma Interface_Information (Get_C, ".TextGet");


    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 return String is
        P : Char_P;
    begin
        P := Get_C;
        Text_Io.Put (P.all);
        Text_Io.Put_Line ("got message: ^");
        return "toto";
    end Get;


    -- 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 Text_Widget;