-----------
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;
-----------------
--------------
procedure Set_Mode (File : in out File_Type; Mode : File_Mode) is
- AFCB : aliased AP;
- for AFCB'Address use File'Address;
- pragma Import (Ada, AFCB);
begin
FIO.Check_File_Open (AP (File));
if ((File.Mode = FCB.In_File) /= (Mode = In_File))
and then not File.Update_Mode
then
- FIO.Reset (AFCB'Access, FCB.Inout_File);
+ FIO.Reset (AP (File)'Unrestricted_Access, FCB.Inout_File);
File.Update_Mode := True;
end if;
procedure Reset (File : in out File_Type; Mode : FCB.File_Mode) is
pragma Unmodified (File);
+ -- File is actually modified via Unrestricted_Access below, but
+ -- GNAT will generate a warning anyway.
+
begin
FIO.Reset (AP (File)'Unrestricted_Access, Mode);
File.Index := 1;
procedure Reset (File : in out File_Type) is
pragma Unmodified (File);
+ -- File is actually modified via Unrestricted_Access below, but
+ -- GNAT will generate a warning anyway.
+
begin
FIO.Reset (AP (File)'Unrestricted_Access);
File.Index := 1;