strucget.icn: Program to collect SP structures

March 26, 2002; Ralph E. Griswold
Requires: MT Icon and instrumentation
This file is in the public domain.

This program collects the structures in an SP and when the SP
terminates, it saves them as an xencoded file.  Records are not
collected because they cannot be decoded in the absence of the
appropriate record declaration.

By keeping pointers to the structures in an SP, it assures that
all structures produced by that program are intact at the time
the SP terminates.  Be aware, however, that some structures may
have been "emptied" by the time the SP terminates, for example,
by get(L).

Saving the SP structure prevents them from being collected, which may
affect SP performance or even behavior.

The xencoded file is named <sp>.xcode there <sp> is the name of the
SP as given on the command line.


Source code | Program Library Page | Icon Home Page