Stack(3)

Stack3

Manipulate an itcl stack object.

Usage

#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

Stack info structure. position in stack order from the top. Arbitrary one-word value to save in the stack.

Overview

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

Releases

Unchanged in 106 releases since Mac OS X 10.6.

  1. 10.6–26.5

From tcl 152 in macOS 26.5. Parsed by carta from the page's man source.