Graphviz  2.41.20171026.1811
Data Structures | Macros | Functions | Variables
mem.c File Reference
#include <cghdr.h>
Include dependency graph for mem.c:

Go to the source code of this file.

Data Structures

struct  _vmalloc_s
 

Macros

#define memclose   0
 

Functions

void * agalloc (Agraph_t *g, size_t size)
 
void * agrealloc (Agraph_t *g, void *ptr, size_t oldsize, size_t size)
 
void agfree (Agraph_t *g, void *ptr)
 
struct _vmalloc_sagheap (Agraph_t *g)
 

Variables

Agmemdisc_t AgMemDisc
 

Macro Definition Documentation

#define memclose   0

Definition at line 51 of file mem.c.

Function Documentation

void* agalloc ( Agraph_t g,
size_t  size 
)

Definition at line 62 of file mem.c.

References AGCLOS, AGDISC, agerr(), AGERR, and NIL.

Referenced by agbindrec(), agdictobjmem(), agnewsym(), agrealloc(), agstrdup(), and agstrdup_html().

void agfree ( Agraph_t g,
void *  ptr 
)
struct _vmalloc_s* agheap ( Agraph_t g)

Definition at line 100 of file mem.c.

References AGCLOS.

void* agrealloc ( Agraph_t g,
void *  ptr,
size_t  oldsize,
size_t  size 
)

Definition at line 72 of file mem.c.

References agalloc(), AGCLOS, AGDISC, agerr(), AGERR, and NIL.

Variable Documentation

Agmemdisc_t AgMemDisc
Initial value:
=
{ memopen, memalloc, memresize, memfree, memclose }
#define memclose
Definition: mem.c:51

Definition at line 59 of file mem.c.