\section{lib/rbtree/stack.c File Reference}
\label{rbtree_2stack_8c}\index{lib/rbtree/stack.\-c@{lib/rbtree/stack.\-c}}
{\ttfamily \#include \char`\"{}config.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}stack.\-h\char`\"{}}\\*
Include dependency graph for stack.\-c\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=265pt]{rbtree_2stack_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
intptr\-\_\-t {\bf Stack\-Not\-Empty} ({\bf stk\-\_\-stack} $\ast$the\-Stack)
\item 
{\bf stk\-\_\-stack} $\ast$ {\bf Stack\-Join} ({\bf stk\-\_\-stack} $\ast$stack1, {\bf stk\-\_\-stack} $\ast$stack2)
\item 
{\bf stk\-\_\-stack} $\ast$ {\bf Stack\-Create} ()
\item 
void {\bf Stack\-Push} ({\bf stk\-\_\-stack} $\ast$the\-Stack, {\bf D\-A\-T\-A\-\_\-\-T\-Y\-P\-E} new\-Info\-Pointer)
\item 
{\bf D\-A\-T\-A\-\_\-\-T\-Y\-P\-E} {\bf Stack\-Pop} ({\bf stk\-\_\-stack} $\ast$the\-Stack)
\item 
void {\bf Stack\-Destroy} ({\bf stk\-\_\-stack} $\ast$the\-Stack, void Dest\-Func(void $\ast$a))
\end{DoxyCompactItemize}


\subsection{Function Documentation}
\index{rbtree/stack.\-c@{rbtree/stack.\-c}!Stack\-Create@{Stack\-Create}}
\index{Stack\-Create@{Stack\-Create}!rbtree/stack.c@{rbtree/stack.\-c}}
\subsubsection[{Stack\-Create}]{\setlength{\rightskip}{0pt plus 5cm}{\bf stk\-\_\-stack}$\ast$ Stack\-Create (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{rbtree_2stack_8c_a48b9d8fee0285ed7b6296dd49a2cf951}


Definition at line 28 of file stack.\-c.



References N\-U\-L\-L, Safe\-Malloc(), stk\-\_\-stack\-::tail, and stk\-\_\-stack\-::top.



Referenced by R\-B\-Enumerate().

\index{rbtree/stack.\-c@{rbtree/stack.\-c}!Stack\-Destroy@{Stack\-Destroy}}
\index{Stack\-Destroy@{Stack\-Destroy}!rbtree/stack.c@{rbtree/stack.\-c}}
\subsubsection[{Stack\-Destroy}]{\setlength{\rightskip}{0pt plus 5cm}void Stack\-Destroy (
\begin{DoxyParamCaption}
\item[{{\bf stk\-\_\-stack} $\ast$}]{the\-Stack, }
\item[{void }]{Dest\-Funcvoid $\ast$a}
\end{DoxyParamCaption}
)}\label{rbtree_2stack_8c_a5b6fc81e858d2a373db8638388b5989d}


Definition at line 71 of file stack.\-c.



References stk\-\_\-stack\-\_\-node\-::info, stk\-\_\-stack\-\_\-node\-::next, and stk\-\_\-stack\-::top.

\index{rbtree/stack.\-c@{rbtree/stack.\-c}!Stack\-Join@{Stack\-Join}}
\index{Stack\-Join@{Stack\-Join}!rbtree/stack.c@{rbtree/stack.\-c}}
\subsubsection[{Stack\-Join}]{\setlength{\rightskip}{0pt plus 5cm}{\bf stk\-\_\-stack}$\ast$ Stack\-Join (
\begin{DoxyParamCaption}
\item[{{\bf stk\-\_\-stack} $\ast$}]{stack1, }
\item[{{\bf stk\-\_\-stack} $\ast$}]{stack2}
\end{DoxyParamCaption}
)}\label{rbtree_2stack_8c_ac17f3298c09d766845c66ad3f08e3287}


Definition at line 16 of file stack.\-c.



References stk\-\_\-stack\-\_\-node\-::next, stk\-\_\-stack\-::tail, and stk\-\_\-stack\-::top.

\index{rbtree/stack.\-c@{rbtree/stack.\-c}!Stack\-Not\-Empty@{Stack\-Not\-Empty}}
\index{Stack\-Not\-Empty@{Stack\-Not\-Empty}!rbtree/stack.c@{rbtree/stack.\-c}}
\subsubsection[{Stack\-Not\-Empty}]{\setlength{\rightskip}{0pt plus 5cm}intptr\-\_\-t Stack\-Not\-Empty (
\begin{DoxyParamCaption}
\item[{{\bf stk\-\_\-stack} $\ast$}]{the\-Stack}
\end{DoxyParamCaption}
)}\label{rbtree_2stack_8c_a3751a649f15c515bf52fea13df8ab3ec}


Definition at line 12 of file stack.\-c.



References stk\-\_\-stack\-::top.

\index{rbtree/stack.\-c@{rbtree/stack.\-c}!Stack\-Pop@{Stack\-Pop}}
\index{Stack\-Pop@{Stack\-Pop}!rbtree/stack.c@{rbtree/stack.\-c}}
\subsubsection[{Stack\-Pop}]{\setlength{\rightskip}{0pt plus 5cm}{\bf D\-A\-T\-A\-\_\-\-T\-Y\-P\-E} Stack\-Pop (
\begin{DoxyParamCaption}
\item[{{\bf stk\-\_\-stack} $\ast$}]{the\-Stack}
\end{DoxyParamCaption}
)}\label{rbtree_2stack_8c_a1e319b4eb54ed9d6f65feb618d23f722}


Definition at line 55 of file stack.\-c.



References D\-A\-T\-A\-\_\-\-T\-Y\-P\-E, stk\-\_\-stack\-\_\-node\-::info, stk\-\_\-stack\-\_\-node\-::next, N\-U\-L\-L, stk\-\_\-stack\-::tail, and stk\-\_\-stack\-::top.



Referenced by main().

\index{rbtree/stack.\-c@{rbtree/stack.\-c}!Stack\-Push@{Stack\-Push}}
\index{Stack\-Push@{Stack\-Push}!rbtree/stack.c@{rbtree/stack.\-c}}
\subsubsection[{Stack\-Push}]{\setlength{\rightskip}{0pt plus 5cm}void Stack\-Push (
\begin{DoxyParamCaption}
\item[{{\bf stk\-\_\-stack} $\ast$}]{the\-Stack, }
\item[{{\bf D\-A\-T\-A\-\_\-\-T\-Y\-P\-E}}]{new\-Info\-Pointer}
\end{DoxyParamCaption}
)}\label{rbtree_2stack_8c_ac97fcf320f4d8cdca90394a2bc276cd0}


Definition at line 37 of file stack.\-c.



References stk\-\_\-stack\-\_\-node\-::info, stk\-\_\-stack\-\_\-node\-::next, Safe\-Malloc(), stk\-\_\-stack\-::tail, and stk\-\_\-stack\-::top.



Referenced by R\-B\-Enumerate().

