Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
mem.h File Reference
#include <stddef.h>
Include dependency graph for mem.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  freelist
 

Typedefs

typedef struct freelist Freelist
 

Functions

void * getfree (Freelist *)
 
void freeinit (Freelist *, int)
 
void makefree (void *, Freelist *)
 

Typedef Documentation

◆ Freelist

typedef struct freelist Freelist

Function Documentation

◆ freeinit()

void freeinit ( Freelist fl,
int  size 
)
extern

Definition at line 41 of file memory.c.

References freelist::blocklist, free(), freelist::head, LCM, freeblock::next, freeblock::nodes, freelist::nodesize, and NULL.

Referenced by edgeinit(), ELcleanup(), ELinitialize(), infoinit(), and siteinit().

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

◆ getfree()

void * getfree ( Freelist fl)
extern

Definition at line 60 of file memory.c.

References freelist::blocklist, gv_alloc(), gv_calloc(), freelist::head, makefree(), freeblock::next, freenode::nextfree, freeblock::nodes, freelist::nodesize, NULL, and sqrt_nsites.

Referenced by addVertex(), getsite(), gvbisect(), and HEcreate().

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

◆ makefree()

void makefree ( void *  curr,
Freelist fl 
)
extern

Definition at line 83 of file memory.c.

References freelist::head, and freenode::nextfree.

Referenced by deref(), ELgethash(), endpoint(), and getfree().

Here is the caller graph for this function: