Graphviz 12.0.1~dev.20240716.0800
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
14extern "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 */
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
void * getfree(Freelist *)
Definition memory.c:60
void makefree(void *, Freelist *)
Definition memory.c:83
struct freelist Freelist
void freeinit(Freelist *, int)
Definition memory.c:41
Definition mem.h:21
int nodesize
Definition mem.h:24
struct freenode * head
Definition mem.h:22
struct freeblock * blocklist
Definition mem.h:23