2 '\" Copyright (c) 1993-1998 Lucent Technologies, Inc.
4 '\" See the file "license.terms" for information on usage and redistribution
5 '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
7 .TH Itcl_InitStack 3 3.0 itcl "[incr\ Tcl] Library Procedures"
10 '\" Note: do not modify the .SH NAME line immediately below!
12 Itcl_InitStack, Itcl_DeleteStack, Itcl_PushStack, Itcl_PopStack, Itcl_PeekStack, Itcl_GetStackValue, Itcl_GetStackSize \- Manipulate an Itcl stack object.
15 \fB#include <itcl.h>\fR
18 \fBItcl_InitStack\fR(\fIstack\fR)
21 \fBItcl_DeleteStack\fR(\fIstack\fR)
24 \fBItcl_PushStack\fR(\fIcdata, stack\fR)
27 \fBItcl_PopStack\fR(\fIstack\fR)
30 \fBItcl_PeekStack\fR(\fIstack\fR)
33 \fBItcl_GetStackValue\fR(\fIstack, pos\fR)
36 \fBItcl_GetStackSize\fR(\fIstack\fR)
39 .AP Itcl_Stack *stack in
42 position in stack order from the top.
43 .AP ClientData clientData in
44 Arbitrary one-word value to save in the stack.
49 \fBItcl_InitStack\fR initializes a stack structure and \fBItcl_DeleteStack\fR
50 deletes it. \fBItcl_PushStack\fR pushes the \fIcdata\fR value onto the stack.
51 \fBItcl_PopStack\fR removes and returns the top most \fIcdata\fR value.
52 \fBItcl_PeekStack\fR returns the top most value, but does not remove it.
53 \fBItcl_GetStackValue\fR gets a value at some index within the stack. Index
54 "0" is the first value pushed onto the stack. \fBItcl_GetStackSize\fR
55 returns the count of entries on the stack.