xfail scan-tree-dump-not throw in g++.dg/pr99966.C on hppa*64*-*-*
[official-gcc.git] / gcc / m2 / gm2-libs-iso / SLongIO.def
blob218db9e0a852f0c79d28c60441125c43bf0638c2
1 (* Library module defined by the International Standard
2 Information technology - programming languages
3 BS ISO/IEC 10514-1:1996E Part 1: Modula-2, Base Language.
5 Copyright ISO/IEC (International Organization for Standardization
6 and International Electrotechnical Commission) 1996-2021.
8 It may be freely copied for the purpose of implementation (see page
9 707 of the Information technology - Programming languages Part 1:
10 Modula-2, Base Language. BS ISO/IEC 10514-1:1996). *)
12 DEFINITION MODULE SLongIO;
14 (* Input and output of long real numbers in decimal text form
15 using default channels. The read result is of the type
16 IOConsts.ReadResults.
19 (* The text form of a signed fixed-point real number is
20 ["+" | "-"], decimal digit, {decimal digit},
21 [".", {decimal digit}]
23 The text form of a signed floating-point real number is
24 signed fixed-point real number,
25 "E", ["+" | "-"], decimal digit, {decimal digit}
28 PROCEDURE ReadReal (VAR real: LONGREAL);
29 (* Skips leading spaces, and removes any remaining characters
30 from the default input channel that form part of a signed
31 fixed or floating point number. The value of this number
32 is assigned to real. The read result is set to the value
33 allRight, outOfRange, wrongFormat, endOfLine, or endOfInput.
36 PROCEDURE WriteFloat (real: LONGREAL; sigFigs: CARDINAL;
37 width: CARDINAL);
38 (* Writes the value of real to the default output channel in
39 floating-point text form, with sigFigs significant figures,
40 in a field of the given minimum width.
43 PROCEDURE WriteEng (real: LONGREAL; sigFigs: CARDINAL;
44 width: CARDINAL);
45 (* As for WriteFloat, except that the number is scaled with
46 one to three digits in the whole number part, and with an
47 exponent that is a multiple of three.
50 PROCEDURE WriteFixed (real: LONGREAL; place: INTEGER;
51 width: CARDINAL);
52 (* Writes the value of real to the default output channel in
53 fixed-point text form, rounded to the given place relative
54 to the decimal point, in a field of the given minimum width.
57 PROCEDURE WriteReal (real: LONGREAL; width: CARDINAL);
58 (* Writes the value of real to the default output channel, as
59 WriteFixed if the sign and magnitude can be shown in the
60 given width, or otherwise as WriteFloat. The number of
61 places or significant digits depends on the given width.
64 END SLongIO.