MODULE NbrInt;
IMPORT Streams, NbrInt8, NbrInt16, NbrInt32;
TYPE
Integer* = NbrInt32.Integer;
VAR
MinNbr-, MaxNbr-: Integer;
PROCEDURE Abs*( i: Integer ): Integer;
BEGIN
RETURN NbrInt32.Abs( i )
END Abs;
PROCEDURE Dec*( VAR i: Integer );
BEGIN
NbrInt32.Dec( i )
END Dec;
PROCEDURE Inc*( VAR i: Integer );
BEGIN
NbrInt32.Inc( i )
END Inc;
PROCEDURE Odd*( i: Integer ): BOOLEAN;
BEGIN
RETURN NbrInt32.Odd( i )
END Odd;
PROCEDURE Max*( x1, x2: Integer ): Integer;
BEGIN
RETURN NbrInt32.Max( x1, x2 )
END Max;
PROCEDURE Min*( x1, x2: Integer ): Integer;
BEGIN
RETURN NbrInt32.Min( x1, x2 )
END Min;
PROCEDURE Sign*( x: Integer ): Integer;
VAR sign: NbrInt8.Integer;
BEGIN
sign := NbrInt32.Sign( x ); RETURN NbrInt32.Long( NbrInt16.Long( sign ) )
END Sign;
PROCEDURE StringToInt*( string: ARRAY OF CHAR; VAR x: Integer );
BEGIN
NbrInt32.StringToInt( string, x )
END StringToInt;
PROCEDURE IntToString*( x: Integer; VAR string: ARRAY OF CHAR );
BEGIN
NbrInt32.IntToString( x, string )
END IntToString;
PROCEDURE Load*( R: Streams.Reader; VAR x: Integer );
BEGIN
NbrInt32.Load( R, x )
END Load;
PROCEDURE Store*( W: Streams.Writer; x: Integer );
BEGIN
NbrInt32.Store( W, x )
END Store;
BEGIN
MinNbr := NbrInt32.MinNbr; MaxNbr := NbrInt32.MaxNbr
END NbrInt.