mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 05:12:26 +00:00
fixed endless recursion in Stars for inherited imported fie
synced with Templ version of Ofront.
Former-commit-id: 5afbe2cfbc
This commit is contained in:
parent
b00409910c
commit
85dc46c036
2 changed files with 7 additions and 3 deletions
|
|
@ -202,9 +202,13 @@ MODULE OPC; (* copyright (c) J. Templ 12.7.95 / 3.7.96 *)
|
||||||
OPM.Write(OpenParen); OPM.Write(Star)
|
OPM.Write(OpenParen); OPM.Write(Star)
|
||||||
ELSE
|
ELSE
|
||||||
pointers := 0;
|
pointers := 0;
|
||||||
WHILE (typ^.strobj = NIL) & (typ^.form = Pointer) DO INC (pointers); typ := typ^.BaseTyp END ;
|
(*WHILE (typ^.strobj = NIL) & (typ^.form = Pointer) DO INC (pointers); typ := typ^.BaseTyp END ;
|
||||||
IF (typ^.comp # DynArr) & (pointers # 0) THEN Stars (typ, openClause) END ;
|
IF (typ^.comp # DynArr) & (pointers # 0) THEN Stars (typ, openClause) END ;*)
|
||||||
|
WHILE ((typ^.strobj = NIL) OR (typ^.strobj^.name = "")) & (typ^.form = Pointer) DO
|
||||||
|
INC (pointers); typ := typ^.BaseTyp
|
||||||
|
END ;
|
||||||
IF pointers > 0 THEN
|
IF pointers > 0 THEN
|
||||||
|
IF typ^.comp # DynArr THEN Stars (typ, openClause) END ;
|
||||||
IF openClause THEN OPM.Write(OpenParen); openClause := FALSE END ;
|
IF openClause THEN OPM.Write(OpenParen); openClause := FALSE END ;
|
||||||
WHILE pointers > 0 DO OPM.Write(Star); DEC (pointers) END
|
WHILE pointers > 0 DO OPM.Write(Star); DEC (pointers) END
|
||||||
END
|
END
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
1bf4f972c6fb10b8b7f3c6613948482a1682528c
|
ad35921c49d3aae4b67a6aca3f351381b4f9eadb
|
||||||
Loading…
Add table
Add a link
Reference in a new issue