Graphviz
13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
mem.h
Go to the documentation of this file.
1
/*************************************************************************
2
* Copyright (c) 2011 AT&T Intellectual Property
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* https://www.eclipse.org/legal/epl-v10.html
7
*
8
* Contributors: Details at https://graphviz.org
9
*************************************************************************/
10
11
#pragma once
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
17
#include <stddef.h>
18
19
/* Support for freelists */
20
21
typedef
struct
freelist
{
22
struct
freenode
*
head
;
/* List of free nodes */
23
struct
freeblock
*
blocklist
;
/* List of malloced blocks */
24
int
nodesize
;
/* Size of node */
25
}
Freelist
;
26
27
extern
void
*
getfree
(
Freelist
*);
28
extern
void
freeinit
(
Freelist
*,
int
);
29
extern
void
makefree
(
void
*,
Freelist
*);
30
31
#ifdef __cplusplus
32
}
33
#endif
getfree
void * getfree(Freelist *)
Definition
memory.c:60
makefree
void makefree(void *, Freelist *)
Definition
memory.c:83
Freelist
struct freelist Freelist
freeinit
void freeinit(Freelist *, int)
Definition
memory.c:41
freeblock
Definition
memory.c:19
freelist
Definition
mem.h:21
freelist::nodesize
int nodesize
Definition
mem.h:24
freelist::head
struct freenode * head
Definition
mem.h:22
freelist::blocklist
struct freeblock * blocklist
Definition
mem.h:23
freenode
Definition
memory.c:15
lib
neatogen
mem.h
Generated by
1.9.8