|
|
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_03ede9
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with Text_Io;
use Text_Io;
package body File is
Current_Character : Character;
Current_Character_Line : Natural := 1;
Current_Character_Column : Natural := 0;
Previous_Character_Column : Natural;
Look_A_Head : Boolean;
procedure Initialize is
begin
Look_A_Head := False;
end Initialize;
function Is_At_End return Boolean is
begin
return End_Of_File;
end Is_At_End;
procedure Next is
begin
if Look_A_Head then
Look_A_Head := False;
if Current_Character = Ascii.Lf then
Previous_Character_Column := Current_Character_Column;
Current_Character_Column := 0;
Current_Character_Line := Current_Character_Line + 1;
end if;
elsif not End_Of_File and not End_Of_Line then
Get (Current_Character);
Current_Character_Column := Current_Character_Column + 1;
elsif End_Of_File then
Current_Character := Ascii.Eot;
else
Current_Character := Ascii.Lf;
Previous_Character_Column := Current_Character_Column;
Current_Character_Column := 0;
Current_Character_Line := Current_Character_Line + 1;
Skip_Line;
end if;
end Next;
function Get_Value return Character is
begin
return Current_Character;
end Get_Value;
procedure Unget is
begin
Look_A_Head := True;
if Current_Character = Ascii.Lf then
Current_Character_Column := Previous_Character_Column;
Current_Character_Line := Current_Character_Line - 1;
end if;
end Unget;
function Get_Line return Natural is
begin
return Current_Character_Line;
end Get_Line;
function Get_Column return Natural is
begin
return Current_Character_Column;
end Get_Column;
end File;
nblk1=4
nid=3
hdr6=6
[0x00] rec0=22 rec1=00 rec2=01 rec3=010
[0x01] rec0=23 rec1=00 rec2=02 rec3=014
[0x02] rec0=04 rec1=00 rec2=04 rec3=000
[0x03] rec0=03 rec1=bc rec2=b9 rec3=442
tail 0x2173e712c860553e79b4d 0x42a00088462060003
Free Block Chain:
0x3: 0000 00 00 00 12 00 09 65 6e 64 20 46 69 6c 65 3b 09 ┆ end File; ┆