Lines Matching defs:stack
95 ** LIFO linked-list (stack)
109 ** Create a stack, a LIFO linked list
111 ** stack_name: a pointer to string containing the name of the stack
113 ** A pointer to the created stack, if successful, else NULL.
120 ** Push an element on the top of the stack
122 ** stack: pointer to the stack
123 ** stack_elem: pointer to the stack element
127 NSPR_API(void) PR_StackPush(PRStack *stack, PRStackElem *stack_elem);
132 ** Remove the element on the top of the stack
134 ** stack: pointer to the stack
136 ** A pointer to the stack element removed from the top of the stack,
140 NSPR_API(PRStackElem *) PR_StackPop(PRStack *stack);
145 ** Destroy the stack
147 ** stack: pointer to the stack
150 ** PR_FAILURE - if the stack is not empty
152 ** PR_INVALID_STATE_ERROR - stack is not empty
154 NSPR_API(PRStatus) PR_DestroyStack(PRStack *stack);