Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
Collaboration diagram for memory:

Macros

#define agnew(g, t)   ((t *)agalloc(g, sizeof(t)))
 
#define agnnew(g, n, t)   ((t *)agalloc(g, (n) * sizeof(t)))
 

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)
 
void aginternalmapclearlocalnames (Agraph_t *g)
 

Detailed Description

Macro Definition Documentation

◆ agnew

#define agnew (   g,
 
)    ((t *)agalloc(g, sizeof(t)))

Definition at line 803 of file cgraph.h.

◆ agnnew

#define agnnew (   g,
  n,
 
)    ((t *)agalloc(g, (n) * sizeof(t)))

Definition at line 804 of file cgraph.h.

Function Documentation

◆ agalloc()

void * agalloc ( Agraph_t g,
size_t  size 
)

Definition at line 19 of file mem.c.

References agerrorf(), and NULL.

Referenced by agbindrec(), agmakeattrs(), agnewsym(), agrealloc(), agstrdup_internal(), installnode(), localsubg(), newedge(), newitem(), newitem(), newnode(), push(), and push().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ agfree()

void agfree ( Agraph_t g,
void *  ptr 
)

Definition at line 49 of file mem.c.

References free().

Referenced by agclose(), agdeledge(), agdelnode(), agdelrec(), agdictobjfree(), aginternalmapdelete(), agpopdisc(), agrecclose(), delete_items(), delete_items(), free_subnode(), freeattr(), freesym(), pop(), and pop().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ aginternalmapclearlocalnames()

void aginternalmapclearlocalnames ( Agraph_t g)

Definition at line 167 of file imap.c.

References Ag_G_global, aginternalmapdelete(), Agraph_s::clos, dtfirst, dtnext, IMapEntry_s::id, LOCALNAMEPREFIX, Agclos_s::lookup_by_name, and IMapEntry_s::str.

Referenced by endgraph(), and endgraph().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ agrealloc()

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

Definition at line 29 of file mem.c.

References agalloc(), agerrorf(), and NULL.

Referenced by addattr().

Here is the call graph for this function:
Here is the caller graph for this function: