summaryrefslogtreecommitdiff
path: root/gcc/ada/a-ststio.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2008-05-27 12:36:04 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2008-05-27 12:36:04 +0000
commit90631ae7b5b8b841b19590e3dfa9cd1cba6e63af (patch)
tree7bff056ed9afc6c3fd50f07b87233416531a31d4 /gcc/ada/a-ststio.adb
parent5f595a0246fc977be062178e65b32e3836408746 (diff)
downloadgcc-90631ae7b5b8b841b19590e3dfa9cd1cba6e63af.tar.gz
* a-ststio.adb, s-direio.adb: Further code clean up of previous change.
Update comments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136023 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-ststio.adb')
-rw-r--r--gcc/ada/a-ststio.adb15
1 files changed, 3 insertions, 12 deletions
diff --git a/gcc/ada/a-ststio.adb b/gcc/ada/a-ststio.adb
index fd5e39a7a32..9c3bd31af58 100644
--- a/gcc/ada/a-ststio.adb
+++ b/gcc/ada/a-ststio.adb
@@ -101,11 +101,8 @@ package body Ada.Streams.Stream_IO is
-----------
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;
------------
@@ -140,11 +137,8 @@ package body Ada.Streams.Stream_IO is
------------
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;
-----------------
@@ -357,9 +351,6 @@ package body Ada.Streams.Stream_IO is
--------------
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));
@@ -371,7 +362,7 @@ package body Ada.Streams.Stream_IO is
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;