|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./guide emptystack.pro
emptystack |
Clear the stack.
Normally this simply sets !g.acount to 0, and this is all that is needed for typical use of the stack. Optionally, the procedure can also reset the stack array to zeros and it can shrink the size of the stack to it's initial size of 5120 elements. That could be useful if the stack grew to an unexpectedly large size and you want to release the memory. The stack will grow as needed when addstack and appendstack are called. Only the !g.acount elements are ever used.
addstack,1,100 emptystack addstack,1,100000 emptystack,/shrink ; reduce it to 5120 elements