Daily bump.
[official-gcc.git] / gcc / m2 / gm2-libs / FpuIO.def
blobddc94754890cb1281a0622d7011b378e06104c37
1 (* FpuIO.def Implements a fixed format input/output for REAL/LONGREAL.
3 Copyright (C) 2001-2024 Free Software Foundation, Inc.
4 Contributed by Gaius Mulley <gaius.mulley@southwales.ac.uk>.
6 This file is part of GNU Modula-2.
8 GNU Modula-2 is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
11 any later version.
13 GNU Modula-2 is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 General Public License for more details.
18 Under Section 7 of GPL version 3, you are granted additional
19 permissions described in the GCC Runtime Library Exception, version
20 3.1, as published by the Free Software Foundation.
22 You should have received a copy of the GNU General Public License and
23 a copy of the GCC Runtime Library Exception along with this program;
24 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
25 <http://www.gnu.org/licenses/>. *)
27 DEFINITION MODULE FpuIO ;
29 EXPORT QUALIFIED ReadReal, WriteReal, StrToReal, RealToStr,
30 ReadLongReal, WriteLongReal, StrToLongReal,
31 LongRealToStr,
32 ReadLongInt, WriteLongInt, StrToLongInt,
33 LongIntToStr ;
36 PROCEDURE ReadReal (VAR x: REAL) ;
37 PROCEDURE WriteReal (x: REAL; TotalWidth, FractionWidth: CARDINAL) ;
38 PROCEDURE StrToReal (a: ARRAY OF CHAR ; VAR x: REAL) ;
39 PROCEDURE RealToStr (x: REAL; TotalWidth, FractionWidth: CARDINAL;
40 VAR a: ARRAY OF CHAR) ;
42 PROCEDURE ReadLongReal (VAR x: LONGREAL) ;
43 PROCEDURE WriteLongReal (x: LONGREAL;
44 TotalWidth, FractionWidth: CARDINAL) ;
45 PROCEDURE StrToLongReal (a: ARRAY OF CHAR ; VAR x: LONGREAL) ;
46 PROCEDURE LongRealToStr (x: LONGREAL;
47 TotalWidth, FractionWidth: CARDINAL;
48 VAR a: ARRAY OF CHAR) ;
50 PROCEDURE ReadLongInt (VAR x: LONGINT) ;
51 PROCEDURE WriteLongInt (x: LONGINT; n: CARDINAL) ;
52 PROCEDURE StrToLongInt (a: ARRAY OF CHAR ; VAR x: LONGINT) ;
53 PROCEDURE LongIntToStr (x: LONGINT; n: CARDINAL; VAR a: ARRAY OF CHAR) ;
56 END FpuIO.