mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-12 18:07:06 +03:00
31a4eb5247
git-svn-id: svn://kolibrios.org@6613 a494cfbc-eb01-0410-851d-a64ba20cac60
50 lines
1.7 KiB
Plaintext
50 lines
1.7 KiB
Plaintext
(*
|
|
Copyright 2016 Anton Krotov
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU Lesser General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*)
|
|
|
|
MODULE Write;
|
|
|
|
IMPORT File, sys := SYSTEM;
|
|
|
|
PROCEDURE Char*(F: File.FS; x: CHAR): BOOLEAN;
|
|
RETURN File.Write(F, sys.ADR(x), sys.SIZE(CHAR)) = sys.SIZE(CHAR)
|
|
END Char;
|
|
|
|
PROCEDURE Int*(F: File.FS; x: INTEGER): BOOLEAN;
|
|
RETURN File.Write(F, sys.ADR(x), sys.SIZE(INTEGER)) = sys.SIZE(INTEGER)
|
|
END Int;
|
|
|
|
PROCEDURE Real*(F: File.FS; x: REAL): BOOLEAN;
|
|
RETURN File.Write(F, sys.ADR(x), sys.SIZE(REAL)) = sys.SIZE(REAL)
|
|
END Real;
|
|
|
|
PROCEDURE LongReal*(F: File.FS; x: LONGREAL): BOOLEAN;
|
|
RETURN File.Write(F, sys.ADR(x), sys.SIZE(LONGREAL)) = sys.SIZE(LONGREAL)
|
|
END LongReal;
|
|
|
|
PROCEDURE Boolean*(F: File.FS; x: BOOLEAN): BOOLEAN;
|
|
RETURN File.Write(F, sys.ADR(x), sys.SIZE(BOOLEAN)) = sys.SIZE(BOOLEAN)
|
|
END Boolean;
|
|
|
|
PROCEDURE Set*(F: File.FS; x: SET): BOOLEAN;
|
|
RETURN File.Write(F, sys.ADR(x), sys.SIZE(SET)) = sys.SIZE(SET)
|
|
END Set;
|
|
|
|
PROCEDURE Card16*(F: File.FS; x: sys.CARD16): BOOLEAN;
|
|
RETURN File.Write(F, sys.ADR(x), sys.SIZE(sys.CARD16)) = sys.SIZE(sys.CARD16)
|
|
END Card16;
|
|
|
|
END Write. |