mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 20:22:24 +00:00
OakFiles modified to be closer to PO 2013 Files -- noch
Former-commit-id: eace02450d
This commit is contained in:
parent
43ecc8663e
commit
22532caf98
1 changed files with 5 additions and 11 deletions
|
|
@ -392,6 +392,11 @@ END ;
|
||||||
r.offset := offset + 1; r.res := 0
|
r.offset := offset + 1; r.res := 0
|
||||||
END Write;
|
END Write;
|
||||||
|
|
||||||
|
PROCEDURE WriteByte* (VAR r : Rider; x : SYSTEM.BYTE); (* added for compatibility with PO 2013, -- noch *)
|
||||||
|
BEGIN
|
||||||
|
Write(r, x);
|
||||||
|
END WriteByte;
|
||||||
|
|
||||||
PROCEDURE WriteBytes* (VAR r: Rider; VAR x: ARRAY OF SYSTEM.BYTE; n: LONGINT);
|
PROCEDURE WriteBytes* (VAR r: Rider; VAR x: ARRAY OF SYSTEM.BYTE; n: LONGINT);
|
||||||
VAR xpos, min, restInBuf, offset: LONGINT; buf: Buffer;
|
VAR xpos, min, restInBuf, offset: LONGINT; buf: Buffer;
|
||||||
BEGIN
|
BEGIN
|
||||||
|
|
@ -427,17 +432,6 @@ 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 ...
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue