\section{lib/cgraph/mem.c File Reference}
\label{mem_8c}\index{lib/cgraph/mem.\-c@{lib/cgraph/mem.\-c}}
{\ttfamily \#include $<$cghdr.\-h$>$}\\*
Include dependency graph for mem.\-c\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{mem_8c__incl}
\end{center}
\end{figure}
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct {\bf \-\_\-vmalloc\-\_\-s}
\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bf memclose}~0
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void $\ast$ {\bf agalloc} ({\bf Agraph\-\_\-t} $\ast$g, size\-\_\-t size)
\item 
void $\ast$ {\bf agrealloc} ({\bf Agraph\-\_\-t} $\ast$g, void $\ast$ptr, size\-\_\-t oldsize, size\-\_\-t size)
\item 
void {\bf agfree} ({\bf Agraph\-\_\-t} $\ast$g, void $\ast$ptr)
\item 
struct {\bf \-\_\-vmalloc\-\_\-s} $\ast$ {\bf agheap} ({\bf Agraph\-\_\-t} $\ast$g)
\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
{\bf Agmemdisc\-\_\-t} {\bf Ag\-Mem\-Disc}
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\index{mem.\-c@{mem.\-c}!memclose@{memclose}}
\index{memclose@{memclose}!mem.c@{mem.\-c}}
\subsubsection[{memclose}]{\setlength{\rightskip}{0pt plus 5cm}\#define memclose~0}\label{mem_8c_ad04e83ac7059c513d50805d260b2af2e}


Definition at line 51 of file mem.\-c.



\subsection{Function Documentation}
\index{mem.\-c@{mem.\-c}!agalloc@{agalloc}}
\index{agalloc@{agalloc}!mem.c@{mem.\-c}}
\subsubsection[{agalloc}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ agalloc (
\begin{DoxyParamCaption}
\item[{{\bf Agraph\-\_\-t} $\ast$}]{g, }
\item[{size\-\_\-t}]{size}
\end{DoxyParamCaption}
)}\label{mem_8c_aa13dabe7e206f11bde3172ef40da48a3}


Definition at line 62 of file mem.\-c.



References A\-G\-C\-L\-O\-S, A\-G\-D\-I\-S\-C, agerr(), A\-G\-E\-R\-R, and N\-I\-L.



Referenced by agbindrec(), agdictobjmem(), agnewsym(), agrealloc(), agstrdup(), and agstrdup\-\_\-html().

\index{mem.\-c@{mem.\-c}!agfree@{agfree}}
\index{agfree@{agfree}!mem.c@{mem.\-c}}
\subsubsection[{agfree}]{\setlength{\rightskip}{0pt plus 5cm}void agfree (
\begin{DoxyParamCaption}
\item[{{\bf Agraph\-\_\-t} $\ast$}]{g, }
\item[{void $\ast$}]{ptr}
\end{DoxyParamCaption}
)}\label{mem_8c_a6b7d5b8318e0071ce5ef7fe34c0eb422}


Definition at line 89 of file mem.\-c.



References A\-G\-C\-L\-O\-S, and A\-G\-D\-I\-S\-C.



Referenced by agclose(), agdeledge(), agdelnode(), agdelrec(), agdictobjfree(), agdictobjmem(), aginternalmapdelete(), agobjfinalize(), agpopdisc(), and agrecclose().

\index{mem.\-c@{mem.\-c}!agheap@{agheap}}
\index{agheap@{agheap}!mem.c@{mem.\-c}}
\subsubsection[{agheap}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf \-\_\-vmalloc\-\_\-s}$\ast$ agheap (
\begin{DoxyParamCaption}
\item[{{\bf Agraph\-\_\-t} $\ast$}]{g}
\end{DoxyParamCaption}
)}\label{mem_8c_abcb80322c3a2c639a7ece3b35169aefa}


Definition at line 100 of file mem.\-c.



References A\-G\-C\-L\-O\-S.

\index{mem.\-c@{mem.\-c}!agrealloc@{agrealloc}}
\index{agrealloc@{agrealloc}!mem.c@{mem.\-c}}
\subsubsection[{agrealloc}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ agrealloc (
\begin{DoxyParamCaption}
\item[{{\bf Agraph\-\_\-t} $\ast$}]{g, }
\item[{void $\ast$}]{ptr, }
\item[{size\-\_\-t}]{oldsize, }
\item[{size\-\_\-t}]{size}
\end{DoxyParamCaption}
)}\label{mem_8c_abb922567ae82a6329146d3e96d242099}


Definition at line 72 of file mem.\-c.



References agalloc(), A\-G\-C\-L\-O\-S, A\-G\-D\-I\-S\-C, agerr(), A\-G\-E\-R\-R, and N\-I\-L.



\subsection{Variable Documentation}
\index{mem.\-c@{mem.\-c}!Ag\-Mem\-Disc@{Ag\-Mem\-Disc}}
\index{Ag\-Mem\-Disc@{Ag\-Mem\-Disc}!mem.c@{mem.\-c}}
\subsubsection[{Ag\-Mem\-Disc}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Agmemdisc\-\_\-t} Ag\-Mem\-Disc}\label{mem_8c_ae58f992376bcf555b0b11a829c112813}
{\bfseries Initial value\-:}
\begin{DoxyCode}
=
    \{ memopen, memalloc, memresize, memfree, memclose \}
\end{DoxyCode}


Definition at line 59 of file mem.\-c.

