diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-02-15 09:28:43 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-02-15 09:28:43 +0000 |
commit | 0311af6afb62db5816bc1b2e2e7ea3d7f27cee71 (patch) | |
tree | 34addcebd3391924517515b8f61a38087d82089e /gcc/ada/s-direio.adb | |
parent | 2e70d70dab8bc2f09b71041dc9719a5fbed638ab (diff) | |
download | ppe42-gcc-0311af6afb62db5816bc1b2e2e7ea3d7f27cee71.tar.gz ppe42-gcc-0311af6afb62db5816bc1b2e2e7ea3d7f27cee71.zip |
2006-02-13 Robert Dewar <dewar@adacore.com>
* s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
reformatting.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111023 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/s-direio.adb')
-rw-r--r-- | gcc/ada/s-direio.adb | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/gcc/ada/s-direio.adb b/gcc/ada/s-direio.adb index 56bc45de9cf..7bb3e52142a 100644 --- a/gcc/ada/s-direio.adb +++ b/gcc/ada/s-direio.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1992-2005 Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2006, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -31,9 +31,9 @@ -- -- ------------------------------------------------------------------------------ -with Ada.IO_Exceptions; use Ada.IO_Exceptions; -with Interfaces.C_Streams; use Interfaces.C_Streams; -with System; use System; +with Ada.IO_Exceptions; use Ada.IO_Exceptions; +with Interfaces.C_Streams; use Interfaces.C_Streams; +with System; use System; with System.CRTL; with System.File_IO; with System.Soft_Links; @@ -54,7 +54,7 @@ package body System.Direct_IO is -- Local Subprograms -- ----------------------- - procedure Set_Position (File : in File_Type); + procedure Set_Position (File : File_Type); -- Sets file position pointer according to value of current index ------------------- @@ -104,9 +104,9 @@ package body System.Direct_IO is procedure Create (File : in out File_Type; - Mode : in FCB.File_Mode := FCB.Inout_File; - Name : in String := ""; - Form : in String := "") + Mode : FCB.File_Mode := FCB.Inout_File; + Name : String := ""; + Form : String := "") is Dummy_File_Control_Block : Direct_AFCB; pragma Warnings (Off, Dummy_File_Control_Block); @@ -128,7 +128,7 @@ package body System.Direct_IO is -- End_Of_File -- ----------------- - function End_Of_File (File : in File_Type) return Boolean is + function End_Of_File (File : File_Type) return Boolean is begin FIO.Check_Read_Status (AP (File)); return Count (File.Index) > Size (File); @@ -138,7 +138,7 @@ package body System.Direct_IO is -- Index -- ----------- - function Index (File : in File_Type) return Positive_Count is + function Index (File : File_Type) return Positive_Count is begin FIO.Check_File_Open (AP (File)); return Count (File.Index); @@ -150,9 +150,9 @@ package body System.Direct_IO is procedure Open (File : in out File_Type; - Mode : in FCB.File_Mode; - Name : in String; - Form : in String := "") + Mode : FCB.File_Mode; + Name : String; + Form : String := "") is Dummy_File_Control_Block : Direct_AFCB; pragma Warnings (Off, Dummy_File_Control_Block); @@ -175,10 +175,10 @@ package body System.Direct_IO is ---------- procedure Read - (File : in File_Type; + (File : File_Type; Item : Address; - Size : in Interfaces.C_Streams.size_t; - From : in Positive_Count) + Size : Interfaces.C_Streams.size_t; + From : Positive_Count) is begin Set_Index (File, From); @@ -186,9 +186,9 @@ package body System.Direct_IO is end Read; procedure Read - (File : in File_Type; + (File : File_Type; Item : Address; - Size : in Interfaces.C_Streams.size_t) + Size : Interfaces.C_Streams.size_t) is begin FIO.Check_Read_Status (AP (File)); @@ -250,7 +250,7 @@ package body System.Direct_IO is -- Reset -- ----------- - procedure Reset (File : in out File_Type; Mode : in FCB.File_Mode) is + procedure Reset (File : in out File_Type; Mode : FCB.File_Mode) is begin FIO.Reset (AP (File), Mode); File.Index := 1; @@ -268,7 +268,7 @@ package body System.Direct_IO is -- Set_Index -- --------------- - procedure Set_Index (File : in File_Type; To : in Positive_Count) is + procedure Set_Index (File : File_Type; To : Positive_Count) is begin FIO.Check_File_Open (AP (File)); File.Index := Count (To); @@ -279,7 +279,7 @@ package body System.Direct_IO is -- Set_Position -- ------------------ - procedure Set_Position (File : in File_Type) is + procedure Set_Position (File : File_Type) is begin if fseek (File.Stream, long (File.Bytes) * @@ -293,7 +293,7 @@ package body System.Direct_IO is -- Size -- ---------- - function Size (File : in File_Type) return Count is + function Size (File : File_Type) return Count is begin FIO.Check_File_Open (AP (File)); File.Last_Op := Op_Other; @@ -312,7 +312,7 @@ package body System.Direct_IO is procedure Write (File : File_Type; Item : Address; - Size : in Interfaces.C_Streams.size_t; + Size : Interfaces.C_Streams.size_t; Zeroes : System.Storage_Elements.Storage_Array) is @@ -380,7 +380,7 @@ package body System.Direct_IO is procedure Write (File : in out Direct_AFCB; - Item : in Ada.Streams.Stream_Element_Array) + Item : Ada.Streams.Stream_Element_Array) is begin raise Program_Error; |