aboutsummaryrefslogtreecommitdiffstats
path: root/matrix.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2015-01-15 11:52:51 +0000
committerTatsuya Kinoshita <tats@debian.org>2015-01-15 11:52:51 +0000
commitffc254ab3865f9a49e24a6af4e2802627383f9f3 (patch)
treedce7d671c0b681460d5428d0126b90792ea1214d /matrix.c
parentMerge branch 'bug/printf' (diff)
parentDrop C99 features (diff)
downloadw3m-ffc254ab3865f9a49e24a6af4e2802627383f9f3.tar.gz
w3m-ffc254ab3865f9a49e24a6af4e2802627383f9f3.zip
Merge branch 'bug/alloc'
Diffstat (limited to 'matrix.c')
-rw-r--r--matrix.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/matrix.c b/matrix.c
index 64fd0ad..bc7a5be 100644
--- a/matrix.c
+++ b/matrix.c
@@ -34,18 +34,12 @@
#include "config.h"
#include "matrix.h"
-#include <gc.h>
+#include "alloc.h"
/*
* Macros from "fm.h".
*/
-#define New(type) ((type*)GC_MALLOC(sizeof(type)))
-#define NewAtom(type) ((type*)GC_MALLOC_ATOMIC(sizeof(type)))
-#define New_N(type,n) ((type*)GC_MALLOC((n)*sizeof(type)))
-#define NewAtom_N(type,n) ((type*)GC_MALLOC_ATOMIC((n)*sizeof(type)))
-#define Renew_N(type,ptr,n) ((type*)GC_REALLOC((ptr),(n)*sizeof(type)))
-
#define SWAPD(a,b) { double tmp = a; a = b; b = tmp; }
#define SWAPI(a,b) { int tmp = a; a = b; b = tmp; }