* print.c: Added code for detection of circular references during
authorMikael Djurfeldt <djurfeldt@nada.kth.se>
Thu, 12 Sep 1996 23:43:47 +0000 (23:43 +0000)
committerMikael Djurfeldt <djurfeldt@nada.kth.se>
Thu, 12 Sep 1996 23:43:47 +0000 (23:43 +0000)
commita51ea417bad631b3375051e8f52274a7b3056f3b
tree492ae1f4fa22798e2d009b16a75ba5a0fd4cdc14
parent864f03aba47ee2493e7549e960f836a2437cd233
* print.c: Added code for detection of circular references during
printing.  (init_ref_stack, grow_ref_stack): New functions.  Added
a hook for printing of closures (accessible via print options).
This leads to a split of calls to scm_iprin1 into two classes:
elementary print operations (e. g. the code which prints a smob)
still use scm_iprin1 while top level calls (like scm_display) use
scm_prin1.  scm_prin1 begins by clearing the data structure used
to record reference information.
libguile/print.c