-----------
procedure Close (File : in out File_Type) is
- AFCB : aliased AP;
- for AFCB'Address use File'Address;
- pragma Import (Ada, AFCB);
begin
- FIO.Close (AFCB'Access);
+ FIO.Close (AP (File)'Unrestricted_Access);
end Close;
---------
------------
procedure Delete (File : in out File_Type) is
- AFCB : aliased AP;
- for AFCB'Address use File'Address;
- pragma Import (Ada, AFCB);
begin
- FIO.Delete (AFCB'Access);
+ FIO.Delete (AP (File)'Unrestricted_Access);
end Delete;
-----------------
(File : in out File_Type;
Mode : File_Mode)
is
- AFCB : aliased AP;
- for AFCB'Address use File'Address;
- pragma Import (Ada, AFCB);
begin
-- Don't allow change of mode for current file (RM A.10.2(5))
end if;
Terminate_Line (File);
- FIO.Reset (AFCB'Access, To_FCB (Mode));
+ FIO.Reset (AP (File)'Unrestricted_Access, To_FCB (Mode));
File.Page := 1;
File.Line := 1;
File.Col := 1;
end Reset;
procedure Reset (File : in out File_Type) is
- AFCB : aliased AP;
- for AFCB'Address use File'Address;
- pragma Import (Ada, AFCB);
begin
Terminate_Line (File);
- FIO.Reset (AFCB'Access);
+ FIO.Reset (AP (File)'Unrestricted_Access);
File.Page := 1;
File.Line := 1;
File.Col := 1;
-----------
procedure Close (File : in out File_Type) is
- AFCB : aliased AP;
- for AFCB'Address use File'Address;
- pragma Import (Ada, AFCB);
begin
- FIO.Close (AFCB'Access);
+ FIO.Close (AP (File)'Unrestricted_Access);
end Close;
---------
------------
procedure Delete (File : in out File_Type) is
- AFCB : aliased AP;
- for AFCB'Address use File'Address;
- pragma Import (Ada, AFCB);
begin
- FIO.Delete (AFCB'Access);
+ FIO.Delete (AP (File)'Unrestricted_Access);
end Delete;
-----------------
(File : in out File_Type;
Mode : File_Mode)
is
- AFCB : aliased AP;
- for AFCB'Address use File'Address;
- pragma Import (Ada, AFCB);
begin
-- Don't allow change of mode for current file (RM A.10.2(5))
end if;
Terminate_Line (File);
- FIO.Reset (AFCB'Access, To_FCB (Mode));
+ FIO.Reset (AP (File)'Unrestricted_Access, To_FCB (Mode));
File.Page := 1;
File.Line := 1;
File.Col := 1;
end Reset;
procedure Reset (File : in out File_Type) is
- AFCB : aliased AP;
- for AFCB'Address use File'Address;
- pragma Import (Ada, AFCB);
begin
Terminate_Line (File);
- FIO.Reset (AFCB'Access);
+ FIO.Reset (AP (File)'Unrestricted_Access);
File.Page := 1;
File.Line := 1;
File.Col := 1;
-----------
procedure Close (File : in out File_Type) is
- AFCB : aliased AP;
- for AFCB'Address use File'Address;
- pragma Import (Ada, AFCB);
begin
- FIO.Close (AFCB'Access);
+ FIO.Close (AP (File)'Unrestricted_Access);
end Close;
---------
------------
procedure Delete (File : in out File_Type) is
- AFCB : aliased AP;
- for AFCB'Address use File'Address;
- pragma Import (Ada, AFCB);
begin
- FIO.Delete (AFCB'Access);
+ FIO.Delete (AP (File)'Unrestricted_Access);
end Delete;
-----------------
(File : in out File_Type;
Mode : File_Mode)
is
- AFCB : aliased AP;
- for AFCB'Address use File'Address;
- pragma Import (Ada, AFCB);
begin
-- Don't allow change of mode for current file (RM A.10.2(5))
end if;
Terminate_Line (File);
- FIO.Reset (AFCB'Access, To_FCB (Mode));
+ FIO.Reset (AP (File)'Unrestricted_Access, To_FCB (Mode));
File.Page := 1;
File.Line := 1;
File.Col := 1;
end Reset;
procedure Reset (File : in out File_Type) is
- AFCB : aliased AP;
- for AFCB'Address use File'Address;
- pragma Import (Ada, AFCB);
begin
Terminate_Line (File);
- FIO.Reset (AFCB'Access);
+ FIO.Reset (AP (File)'Unrestricted_Access);
File.Page := 1;
File.Line := 1;
File.Col := 1;
-----------
procedure Reset (File : in out File_Type; Mode : FCB.File_Mode) is
- AFCB : aliased AP;
- for AFCB'Address use File'Address;
- pragma Import (Ada, AFCB);
+ pragma Unmodified (File);
begin
- FIO.Reset (AFCB'Access, Mode);
+ FIO.Reset (AP (File)'Unrestricted_Access, Mode);
File.Index := 1;
File.Last_Op := Op_Read;
end Reset;
procedure Reset (File : in out File_Type) is
- AFCB : aliased AP;
- for AFCB'Address use File'Address;
- pragma Import (Ada, AFCB);
+ pragma Unmodified (File);
begin
- FIO.Reset (AFCB'Access);
+ FIO.Reset (AP (File)'Unrestricted_Access);
File.Index := 1;
File.Last_Op := Op_Read;
end Reset;