AM_CPPFLAGS = \
-I$(top_srcdir) \
- -I$(top_srcdir)/lib/cdt
+ -I$(top_srcdir)/lib/cdt \
+ -Iinclude
pkginclude_HEADERS = cgraph.h
-noinst_HEADERS = agxbuf.h cghdr.h malloc.h
+noinst_HEADERS = agxbuf.h cghdr.h include/malloc.h
noinst_LTLIBRARIES = libcgraph_C.la
lib_LTLIBRARIES = libcgraph.la
pkgconfig_DATA = libcgraph.pc
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
+#include <malloc.h>
+
#include "LinkedList.h"
#include "PriorityQueue.h"
#include "memory.h"
#include "assert.h"
#include "arith.h"
-#define MALLOC gmalloc
-#define REALLOC grealloc
-#define FREE free
-#define MEMCPY memcpy
-
-
PriorityQueue PriorityQueue_new(int n, int ngain){
PriorityQueue q;
int i;
if (q){
if (q->buckets){
for (i = 0; i < q->ngain+1; i++) DoubleLinkedList_delete((q->buckets)[i], free);
- FREE(q->buckets);
+ free(q->buckets);
}
if (q->where){
- FREE(q->where);
+ free(q->where);
}
- FREE(q->gain);
- FREE(q);
+ free(q->gain);
+ free(q);
}
}