|
Graphviz
2.29.20120524.0446
|
00001 /* $Id$ $Revision$ */ 00002 /* vim:set shiftwidth=4 ts=8: */ 00003 00004 /************************************************************************* 00005 * Copyright (c) 2011 AT&T Intellectual Property 00006 * All rights reserved. This program and the accompanying materials 00007 * are made available under the terms of the Eclipse Public License v1.0 00008 * which accompanies this distribution, and is available at 00009 * http://www.eclipse.org/legal/epl-v10.html 00010 * 00011 * Contributors: See CVS logs. Details at http://www.graphviz.org/ 00012 *************************************************************************/ 00013 00014 #ifdef __cplusplus 00015 extern "C" { 00016 #endif 00017 00018 00019 00020 #ifndef MEMORY_H 00021 #define MEMORY_H 00022 00023 #ifndef NULL 00024 #define NULL 0 00025 #endif 00026 00027 /* Support for freelists */ 00028 00029 typedef struct freelist { 00030 struct freenode *head; /* List of free nodes */ 00031 struct freeblock *blocklist; /* List of malloced blocks */ 00032 int nodesize; /* Size of node */ 00033 } Freelist; 00034 00035 extern void *getfree(Freelist *); 00036 extern void freeinit(Freelist *, int); 00037 extern void makefree(void *, Freelist *); 00038 00039 #endif 00040 00041 00042 #ifdef __cplusplus 00043 } 00044 #endif
1.7.5