ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH

Reference
ActiveTcl 8.5
ActiveTcl 8.5.4.0 User Guide
ActiveTcl 8.5.4.0 Documentation Index
[incr Tcl]
body
class
code
configbody
delete
ensemble
find
is
itcl
Itcl AppendList, Itcl InitList, Itcl AppendListElem, Itcl InsertList, Itcl CreateListElem, Itcl InsertListElem, Itcl DeleteList, Itcl DeleteListElem, Itcl SetListValue
Itcl CreateClass, Itcl FindClass, Itcl IsClass, Itcl DeleteClass, Itcl IsClassNamespace
Itcl DeleteObject, Itcl CreateObject, Itcl FindObject, Itcl IsObject, Itcl IsObjectIsa
Itcl EventuallyFree, Itcl PreserveData, Itcl ReleaseData
Itcl FindC, Itcl RegisterC, Itcl RegisterObjC
Itcl PeekStack, Itcl DeleteStack, Itcl InitStack, Itcl PopStack, Itcl PushStack, Itcl GetStackSize, Itcl GetStackValue
itclvars
local
scope

MyASPN >> Reference >> ActiveTcl 8.5 >> ActiveTcl 8.5.4.0 User Guide >> ActiveTcl 8.5.4.0 Documentation Index >> [incr Tcl]
ActiveTcl 8.5 documentation

[incr\ Tcl] Library Procedures

NAME

Itcl_InitStack, Itcl_DeleteStack, Itcl_PushStack, Itcl_PopStack, Itcl_PeekStack, Itcl_GetStackValue, Itcl_GetStackSize - Manipulate an Itcl stack object.

SYNOPSIS

#include <itcl.h>

int
Itcl_InitStack(stack)

int
Itcl_DeleteStack(stack)

int
Itcl_PushStack(cdata, stack)

ClientData
Itcl_PopStack(stack)

ClientData
Itcl_PeekStack(stack)

ClientData
Itcl_GetStackValue(stack, pos)

int
Itcl_GetStackSize(stack)

ARGUMENTS

Itcl_Stack *stack (in)
Stack info structure.
int pos (in)
position in stack order from the top.
ClientData clientData (in)
Arbitrary one-word value to save in the stack.

DESCRIPTION

Itcl_InitStack initializes a stack structure and Itcl_DeleteStack deletes it. Itcl_PushStack pushes the cdata value onto the stack. Itcl_PopStack removes and returns the top most cdata value. Itcl_PeekStack returns the top most value, but does not remove it. Itcl_GetStackValue gets a value at some index within the stack. Index "0" is the first value pushed onto the stack. Itcl_GetStackSize returns the count of entries on the stack.

KEYWORDS

stack
[ itcl ]
Copyright © 1989-1994 The Regents of the University of California.
Copyright © 1994-1996 Sun Microsystems, Inc.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved