Graphviz 13.1.2~dev.20250807.2324
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
 

Macros

#define INTERNAL   /* nothing */
 

Typedefs

typedef struct freelist Freelist
 

Functions

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

Macro Definition Documentation

◆ INTERNAL

#define INTERNAL   /* nothing */

Definition at line 22 of file mem.h.

Typedef Documentation

◆ Freelist

typedef struct freelist Freelist

Function Documentation

◆ freeinit()

INTERNAL void freeinit ( Freelist fl,
int  size 
)

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(), and siteinit().

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

◆ getfree()

INTERNAL void * getfree ( Freelist fl)

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 getsite(), and gvbisect().

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

◆ makefree()

INTERNAL void makefree ( void *  curr,
Freelist fl 
)

Definition at line 83 of file memory.c.

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

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

Here is the caller graph for this function: