\section{lib/rbtree/stack.h File Reference}
\label{rbtree_2stack_8h}\index{lib/rbtree/stack.\-h@{lib/rbtree/stack.\-h}}
{\ttfamily \#include \char`\"{}config.\-h\char`\"{}}\\*
{\ttfamily \#include $<$stdint.\-h$>$}\\*
{\ttfamily \#include \char`\"{}misc.\-h\char`\"{}}\\*
Include dependency graph for stack.\-h\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=265pt]{rbtree_2stack_8h__incl}
\end{center}
\end{figure}
This graph shows which files directly or indirectly include this file\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=307pt]{rbtree_2stack_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct {\bf stk\-\_\-stack\-\_\-node}
\item 
struct {\bf stk\-\_\-stack}
\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bf D\-A\-T\-A\-\_\-\-T\-Y\-P\-E}~void $\ast$
\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct {\bf stk\-\_\-stack\-\_\-node} {\bf stk\-\_\-stack\-\_\-node}
\item 
typedef struct {\bf stk\-\_\-stack} {\bf stk\-\_\-stack}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\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} (void)
\item 
void {\bf Stack\-Push} ({\bf stk\-\_\-stack} $\ast$the\-Stack, {\bf D\-A\-T\-A\-\_\-\-T\-Y\-P\-E} new\-Info\-Pointer)
\item 
void $\ast$ {\bf Stack\-Pop} ({\bf stk\-\_\-stack} $\ast$the\-Stack)
\item 
intptr\-\_\-t {\bf Stack\-Not\-Empty} ({\bf stk\-\_\-stack} $\ast$)
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\index{rbtree/stack.\-h@{rbtree/stack.\-h}!D\-A\-T\-A\-\_\-\-T\-Y\-P\-E@{D\-A\-T\-A\-\_\-\-T\-Y\-P\-E}}
\index{D\-A\-T\-A\-\_\-\-T\-Y\-P\-E@{D\-A\-T\-A\-\_\-\-T\-Y\-P\-E}!rbtree/stack.h@{rbtree/stack.\-h}}
\subsubsection[{D\-A\-T\-A\-\_\-\-T\-Y\-P\-E}]{\setlength{\rightskip}{0pt plus 5cm}\#define D\-A\-T\-A\-\_\-\-T\-Y\-P\-E~void $\ast$}\label{rbtree_2stack_8h_afb8c72ce35c4a1f4a2588d6573e54aa1}


Definition at line 41 of file stack.\-h.



Referenced by Stack\-Pop().



\subsection{Typedef Documentation}
\index{rbtree/stack.\-h@{rbtree/stack.\-h}!stk\-\_\-stack@{stk\-\_\-stack}}
\index{stk\-\_\-stack@{stk\-\_\-stack}!rbtree/stack.h@{rbtree/stack.\-h}}
\subsubsection[{stk\-\_\-stack}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf stk\-\_\-stack}  {\bf stk\-\_\-stack}}\label{rbtree_2stack_8h_a3d296547a5112d41a0eba45d8c3e403f}
\index{rbtree/stack.\-h@{rbtree/stack.\-h}!stk\-\_\-stack\-\_\-node@{stk\-\_\-stack\-\_\-node}}
\index{stk\-\_\-stack\-\_\-node@{stk\-\_\-stack\-\_\-node}!rbtree/stack.h@{rbtree/stack.\-h}}
\subsubsection[{stk\-\_\-stack\-\_\-node}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf stk\-\_\-stack\-\_\-node}  {\bf stk\-\_\-stack\-\_\-node}}\label{rbtree_2stack_8h_ad6985a8638581d927f49690fd5e79744}


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


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.\-h@{rbtree/stack.\-h}!Stack\-Join@{Stack\-Join}}
\index{Stack\-Join@{Stack\-Join}!rbtree/stack.h@{rbtree/stack.\-h}}
\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_8h_ac17f3298c09d766845c66ad3f08e3287}


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



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

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


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



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

\index{rbtree/stack.\-h@{rbtree/stack.\-h}!Stack\-Pop@{Stack\-Pop}}
\index{Stack\-Pop@{Stack\-Pop}!rbtree/stack.h@{rbtree/stack.\-h}}
\subsubsection[{Stack\-Pop}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ Stack\-Pop (
\begin{DoxyParamCaption}
\item[{{\bf stk\-\_\-stack} $\ast$}]{the\-Stack}
\end{DoxyParamCaption}
)}\label{rbtree_2stack_8h_a67b45112e018204c56f2ff18ca848614}


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.\-h@{rbtree/stack.\-h}!Stack\-Push@{Stack\-Push}}
\index{Stack\-Push@{Stack\-Push}!rbtree/stack.h@{rbtree/stack.\-h}}
\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_8h_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().

