mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 04:02:25 +00:00
OakFiles, added WriteByte to be more compatible with PO 2013 -- noch
This commit is contained in:
parent
1736258d7d
commit
b0a30438d1
4 changed files with 12 additions and 0 deletions
BIN
ocat
BIN
ocat
Binary file not shown.
BIN
showdef
BIN
showdef
Binary file not shown.
|
|
@ -427,6 +427,18 @@ BEGIN
|
||||||
buf.data[offset] := x; r.offset := offset + 1; buf.chg := TRUE
|
buf.data[offset] := x; r.offset := offset + 1; buf.chg := TRUE
|
||||||
END Write;
|
END Write;
|
||||||
|
|
||||||
|
PROCEDURE WriteByte* (VAR r: Rider; x: SYSTEM.BYTE); (* added for compatibility with PO 2013, -- noch *)
|
||||||
|
VAR buf: Buffer; offset: LONGINT;
|
||||||
|
BEGIN
|
||||||
|
buf := r.buf; offset := r.offset;
|
||||||
|
IF (offset >= bufsize) OR (r.org # buf.org) THEN
|
||||||
|
Set(r, buf.f, r.org + offset); buf := r.buf; offset := r.offset;
|
||||||
|
END ;
|
||||||
|
buf.data[offset] := x; r.offset := offset + 1; buf.chg := TRUE
|
||||||
|
END Write;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
PROCEDURE WriteBytes ...
|
PROCEDURE WriteBytes ...
|
||||||
|
|
||||||
PROCEDURE Read* (VAR r: Rider; VAR x: SYSTEM.BYTE);
|
PROCEDURE Read* (VAR r: Rider; VAR x: SYSTEM.BYTE);
|
||||||
|
|
|
||||||
BIN
voc
BIN
voc
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue