stop writing at very long lists.
This commit is contained in:
parent
256d322f43
commit
a2a8f8e40e
@ -533,6 +533,11 @@ write_list(Term t, int direction, int depth, struct write_globs *wglb, struct re
|
|||||||
} else {
|
} else {
|
||||||
do_jump = (direction > 0);
|
do_jump = (direction > 0);
|
||||||
}
|
}
|
||||||
|
if (wglb->MaxDepth != 0 && depth > wglb->MaxDepth) {
|
||||||
|
wrputc('|', wglb->writewch);
|
||||||
|
putAtom(Atom3Dots, wglb->Quote_illegal, wglb->writewch);
|
||||||
|
return;
|
||||||
|
}
|
||||||
wrputc(',', wglb->writewch);
|
wrputc(',', wglb->writewch);
|
||||||
lastw = separator;
|
lastw = separator;
|
||||||
direction = ndirection;
|
direction = ndirection;
|
||||||
|
Reference in New Issue
Block a user