mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 12:12:25 +00:00
reported by pdewacht: if eol is 0DX only, then voc wasn't able to handle
this correctly http://paste.lisp.org/display/158971#1
this is base62 encoded test module http://paste.lisp.org/display/158971
fixed.; -- noch
Former-commit-id: ebd0d78ce2
This commit is contained in:
parent
b8b1012e9a
commit
edad955821
1 changed files with 10 additions and 3 deletions
|
|
@ -439,14 +439,21 @@ MODULE OPM; (* RC 6.3.89 / 28.6.89, J.Templ 10.7.89 / 22.7.96 *)
|
|||
IF (ORD(ch) > 31) OR (ORD(ch) = 9) THEN
|
||||
IF ORD(ch)=9 THEN ch := " " END;
|
||||
line[i] := ch; INC(i); line[i+1] := 0X;
|
||||
Files.Read(r, ch);
|
||||
ELSE
|
||||
IF ch = 0AX THEN INC(j); i := 0 END
|
||||
IF (ch = 0AX) OR (ch = 0DX) THEN
|
||||
Files.Read(r, ch);
|
||||
IF (ch = 0AX) OR (ch = 0DX) THEN
|
||||
Files.Read(r, ch);
|
||||
ELSE
|
||||
INC(j); i := 0
|
||||
END
|
||||
END
|
||||
END;
|
||||
(*
|
||||
Console.Ln; Console.String("-- line["); Console.Int(i-1, 0); Console.String("] = "); Console.Char(ch); Console.Ln;
|
||||
*)
|
||||
Files.Read(r, ch);
|
||||
(*
|
||||
(*
|
||||
Console.String("-- i "); Console.Int(i, 0); Console.Ln;
|
||||
|
||||
Console.String("--j "); Console.Int(j, 0); Console.Ln;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue