|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - download
Length: 6144 (0x1800) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package String_Table, seg_04476c
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« └─⟦this⟧
------------------------------------------------------------------------ -- <UNIT> String_Table ------------------------------------------------------------------------ -- -- <DESCRIPTION> This package defines types and functions for verbs, -- objects and direction tables. -- -- <AUTHOR> Barthe Raphael, Beck Didier, Kempe Laurent -- <VERSION> 1.0 -- <DATE> 10-jan-95 -- <MODIFY> 10-jan-95 -- -- <PKG USED> Lists, Bounded_String. ------------------------------------------------------------------------ with Lists, Bounded_String, Text_Io; package String_Table is subtype I_String is Bounded_String.Variable_String (128); -- definition of the type of String function Egal (Left, Right : in I_String) return Boolean; -------------------------------------------------------------------------------- -- <SUBPROGRAM> -- <UNIT> Equal -- -- <DESCRIPTION> check if two strings are the same. -- -- <PARAMETERS> Left : (I_String) The first string for comparaison. -- right: (I_String) The second one. -- -- <EXCEPTIONS> Nothing -- -------------------------------------------------------------------------------- package Int_List is new Lists (Itemtype => I_String, Equal => Egal); -- Create a new package : Int_List is a list of strings type I_Table is array (Positive range <>) of Int_List.List; -- definition of the type of the verbs, objects and Directions table : -- it's an array of lists of strings. procedure Put (In_Table : in out I_Table; At_Index : Natural; The_String : String); -------------------------------------------------------------------------------- -- <SUBPROGRAM> -- <UNIT> Put -- -- <DESCRIPTION> Put a new string in a table of string list. -- -- <PARAMETERS> In_Table : (I_Table) Table where the string should be put into. -- At_Index : (Natural) Index of the string in this table. -- The_String : (I_String) string to put in the table. -- -- <EXCEPTIONS> Nothing -- -------------------------------------------------------------------------------- procedure Init (A_Table : in out I_Table); -------------------------------------------------------------------------------- -- <SUBPROGRAM> -- <UNIT> Init -- -- <DESCRIPTION> Initialize a table of string list. -- -- <PARAMETERS> A_Table : (I_Table) Table to be initialized. -- -- <EXCEPTIONS> Nothing -- -------------------------------------------------------------------------------- procedure Image (A_Table : in I_Table); -------------------------------------------------------------------------------- -- <SUBPROGRAM> -- <UNIT> Image -- -- <DESCRIPTION> Shows the content of a table of string list. -- -- <PARAMETERS> A_Table : (I_Table) table to be displayed. -- -- <EXCEPTIONS> Nothing -- -------------------------------------------------------------------------------- end String_Table;
nblk1=5 nid=0 hdr6=a [0x00] rec0=1b rec1=00 rec2=01 rec3=006 [0x01] rec0=00 rec1=00 rec2=05 rec3=012 [0x02] rec0=15 rec1=00 rec2=02 rec3=062 [0x03] rec0=1d rec1=00 rec2=03 rec3=042 [0x04] rec0=03 rec1=00 rec2=04 rec3=001 tail 0x217458f00863e89a75765 0x42a00088462060003