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

⟦6faf9ed70⟧ Ada Source

    Length: 7168 (0x1c00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package Toolutils, seg_021ff4

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



--      Copyright (c) 1990 Meridian Software Systems, Inc.      --
with Mac_Types;
use Mac_Types;
with Quickdraw;
package Toolutils is

    Syspatlistid : constant := 0;
    Ibeamcursor : constant := 1;
    Crosscursor : constant := 2;
    Pluscursor : constant := 3;
    Watchcursor : constant := 4;

    type Int64bit is
        record
            Hilong : Longint;
            Lolong : Longint;
        end record;

    function Fixratio (Numer : Mac_Types.Integer; Denom : Mac_Types.Integer)
                      return Fixed;
    pragma Interface (Mpwpascal, Fixratio, "16#A869#");

    function Fixmul (A : Fixed; B : Fixed) return Fixed;
    pragma Interface (Mpwpascal, Fixmul, "16#A868#");

    function Fixround (X : Fixed) return Mac_Types.Integer;
    pragma Interface (Mpwpascal, Fixround, "16#A86C#");

    function Getstring (Stringid : Mac_Types.Integer) return Stringhandle;
    pragma Interface (Mpwpascal, Getstring, "16#A9BA#");
   function Munger (H : Handle;
                     Offset : Longint;
                     Ptr1 : Ptr;
                     Len1 : Longint;
                     Ptr2 : Ptr;
                     Len2 : Longint) return Longint;
    pragma Interface (Mpwpascal, Munger, "16#A9E0#");

    procedure Packbits (Srcptr : in out Ptr;
                        Dstptr : in out Ptr;
                        Srcbytes : Mac_Types.Integer);
    pragma Interface (Mpwpascal, Packbits, "16#A8CF#");

    procedure Unpackbits (Srcptr : in out Ptr;
                          Dstptr : in out Ptr;
                          Dstbytes : Mac_Types.Integer);
    pragma Interface (Mpwpascal, Unpackbits, "16#A8D0#");

    function Bittst (Byteptr : Ptr; Bitnum : Longint) return Boolean;
    pragma Interface (Mpwpascal, Bittst, "16#A85D#");

    procedure Bitset (Byteptr : Ptr; Bitnum : Longint);
    pragma Interface (Mpwpascal, Bitset, "16#A85E#");

    procedure Bitclr (Byteptr : Ptr; Bitnum : Longint);
    pragma Interface (Mpwpascal, Bitclr, "16#A85F#");

    function Bitand (Value1 : Longint; Value2 : Longint) return Longint;
    pragma Interface (Mpwpascal, Bitand, "16#A858#");

    function Bitor (Value1 : Longint; Value2 : Longint) return Longint;
    pragma Interface (Mpwpascal, Bitor, "16#A85B#");

    function Bitxor (Value1 : Longint; Value2 : Longint) return Longint;
    pragma Interface (Mpwpascal, Bitxor, "16#A859#");

    function Bitnot (Value : Longint) return Longint;
    pragma Interface (Mpwpascal, Bitnot, "16#A85A#");

    function Bitshift
                (Value : Longint; Count : Mac_Types.Integer) return Longint;
    pragma Interface (Mpwpascal, Bitshift, "16#A85C#");

    function Hiword (X : Longint) return Mac_Types.Integer;
    pragma Interface (Mpwpascal, Hiword, "16#A86A#");

    function Loword (X : Longint) return Mac_Types.Integer;
    pragma Interface (Mpwpascal, Loword, "16#A86B#");

    procedure Longmul (A : Longint; B : Longint; Dest : in out Int64bit);
    pragma Interface (Mpwpascal, Longmul, "16#A867#");

    function Geticon (Iconid : Mac_Types.Integer) return Handle;
    pragma Interface (Mpwpascal, Geticon, "16#A9BB#");

    procedure Ploticon (Therect : Rect; Theicon : Handle);
    pragma Interface (Mpwpascal, Ploticon, "16#A94B#");

    function Getpattern (Patid : Mac_Types.Integer) return Quickdraw.Pathandle;
    pragma Interface (Mpwpascal, Getpattern, "16#A9B8#");

    function Getcursor (Cursorid : Mac_Types.Integer)
                       return Quickdraw.Curshandle;
    pragma Interface (Mpwpascal, Getcursor, "16#A9B9#");

    function Getpicture (Picid : Mac_Types.Integer) return Quickdraw.Pichandle;
    pragma Interface (Mpwpascal, Getpicture, "16#A9BC#");

    function Slopefromangle (Angle : Mac_Types.Integer) return Fixed;
    pragma Interface (Mpwpascal, Slopefromangle, "16#A8BC#");

    function Anglefromslope (Slope : Fixed) return Mac_Types.Integer;
    pragma Interface (Mpwpascal, Anglefromslope, "16#A8C4#");

    procedure Setstring (Thestring : Stringhandle; Strnew : Str255);
    pragma Interface (Mpwpascal, Setstring, "16#A907#");

    function Deltapoint (Pta : Point; Ptb : Point) return Longint;
    pragma Interface (Mpwpascal, Deltapoint, "16#A94F#");

    function Newstring (Thestring : Str255) return Stringhandle;
    pragma Interface (Mpwpascal, Newstring, "16#A906#");

    procedure Shieldcursor (Shieldrect : Rect; Offsetpt : Point);
    pragma Interface (Mpwpascal, Shieldcursor, "16#A855#");

    procedure Getindstring (Thestring : in out Str255;
                            Strlistid : Mac_Types.Integer;
                            Index : Mac_Types.Integer);
    pragma Interface (Mpwpascal, Getindstring, "GETINDSTRING");

    procedure Screenres (Scrnhres : in out Mac_Types.Integer;
                         Scrnvres : in out Mac_Types.Integer);
    pragma Interface (Mpwpascal, Screenres, "SCREENRES");

    procedure Getindpattern (Thepat : in out Quickdraw.Pattern;
                             Patlistid : Mac_Types.Integer;
                             Index : Mac_Types.Integer);
    pragma Interface (Mpwpascal, Getindpattern, "GETINDPATTERN");

end Toolutils;

E3 Meta Data

    nblk1=6
    nid=0
    hdr6=c
        [0x00] rec0=21 rec1=00 rec2=01 rec3=002
        [0x01] rec0=18 rec1=00 rec2=02 rec3=04e
        [0x02] rec0=19 rec1=00 rec2=03 rec3=024
        [0x03] rec0=16 rec1=00 rec2=04 rec3=062
        [0x04] rec0=16 rec1=00 rec2=05 rec3=034
        [0x05] rec0=08 rec1=00 rec2=06 rec3=000
    tail 0x2171dcdc683906e5842ba 0x42a00088462060003