(GCOS-8 Only)
ptr = _allocate(size,parent);
"_allocate" is similar to the usual "malloc" routine. However, the storage allocated by "_allocate" is automatically freed upon termination of one of the parent functions of the function that calls "_allocate". For example, suppose function A calls function B, and B issues the call
_allocate(100,1);
The space allocated by this call will be automatically freed when A (the parent of B) finishes execution.
In some sense then, "_allocate" allocates storage that is "local" to some parent function.
Copyright © 1996, Thinkage Ltd.