diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2015-01-15 11:52:51 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2015-01-15 11:52:51 +0000 |
commit | ffc254ab3865f9a49e24a6af4e2802627383f9f3 (patch) | |
tree | dce7d671c0b681460d5428d0126b90792ea1214d /indep.h | |
parent | Merge branch 'bug/printf' (diff) | |
parent | Drop C99 features (diff) | |
download | w3m-ffc254ab3865f9a49e24a6af4e2802627383f9f3.tar.gz w3m-ffc254ab3865f9a49e24a6af4e2802627383f9f3.zip |
Merge branch 'bug/alloc'
Diffstat (limited to 'indep.h')
-rw-r--r-- | indep.h | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -1,7 +1,7 @@ /* $Id: indep.h,v 1.16 2003/09/22 21:02:19 ukai Exp $ */ #ifndef INDEP_H #define INDEP_H -#include <gc.h> +#include "alloc.h" #include "Str.h" #include "config.h" @@ -92,11 +92,6 @@ extern char *w3m_etc_dir(); extern char *w3m_conf_dir(); extern char *w3m_help_dir(); -#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 New_Reuse(type,ptr,n) ((type*)GC_REALLOC((ptr),(n)*sizeof(type))) #define NewWithoutGC(type) ((type*)xmalloc(sizeof(type))) #define NewWithoutGC_N(type,n) ((type*)xmalloc((n)*sizeof(type))) #define NewWithoutGC_Reuse(type,ptr,n) ((type*)xrealloc(ptr,(n)*sizeof(type))) |