|
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 - metrics - download
Length: 5120 (0x1400) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package body File, seg_0406ea, seg_040708, seg_040727, seg_0408a8
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─⟦5a81ac88f⟧ »Space Info Vol 1« └─⟦this⟧ └─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─⟦cfc2e13cd⟧ »Space Info Vol 2« └─⟦this⟧
with Text_Io, File, Io_Exceptions; package body File is Char_Readed : Character; Lookahead, End_Of_Line : Boolean; Line : Positive; subtype Letter_Majuscule is Character range 'A' .. 'Z'; procedure Open (Afile : in Text_Io.File_Type) is begin Lookahead := False; Line := 1; End_Of_Line := False; end Open; function Is_At_End_Of_Line (Afile : in Text_Io.File_Type) return Boolean is begin if Text_Io.End_Of_Line (Afile) then Line := Line + 1; end if; if End_Of_Line then End_Of_Line := False; else End_Of_Line := Text_Io.End_Of_Line (Afile); end if; return End_Of_Line; end Is_At_End_Of_Line; procedure To_Lower (Char : in out Character) is begin if Char in Letter_Majuscule then Char := Character'Val (Character'Pos (Char) - Character'Pos ('A') + Character'Pos ('a')); end if; end To_Lower; procedure Next (Afile : in Text_Io.File_Type) is begin if not Lookahead then if Is_At_End_Of_Line (Afile) then Char_Readed := ' '; else Text_Io.Get (Afile, Char_Readed); To_Lower (Char_Readed); end if; else Lookahead := False; end if; exception when Io_Exceptions.End_Error => raise End_Of_File_Exception; end Next; procedure Unget (Afile : in Text_Io.File_Type) is begin Lookahead := True; end Unget; function Value (Afile : in Text_Io.File_Type) return Character is begin return Char_Readed; end Value; function Get_Line (Afile : in Text_Io.File_Type) return Positive is begin return Line; end Get_Line; function Get (Afile : in Text_Io.File_Type) return Character is begin Next (Afile); return Value (Afile); end Get; function At_End_Of_Line (Afile : in Text_Io.File_Type) return Boolean is begin return Text_Io.End_Of_Line (Afile); end At_End_Of_Line; function At_End (Afile : in Text_Io.File_Type) return Boolean is begin if Lookahead then return Text_Io.End_Of_File (Afile); else return False; end if; end At_End; end File;
nblk1=4 nid=2 hdr6=6 [0x00] rec0=26 rec1=00 rec2=01 rec3=042 [0x01] rec0=2a rec1=00 rec2=04 rec3=028 [0x02] rec0=19 rec1=00 rec2=03 rec3=000 [0x03] rec0=17 rec1=00 rec2=02 rec3=000 tail 0x21740c10a861160a74c07 0x42a00088462060003 Free Block Chain: 0x2: 0000 00 00 01 fa 80 11 20 20 20 20 4e 65 78 74 20 28 ┆ Next (┆