projects
/
IRC.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
more files
[IRC.git]
/
Robust
/
src
/
Runtime
/
mem.h
1
#ifndef MEMH
2
#define MEMH
3
#include<stdlib.h>
4
#include<stdio.h>
5
6
#ifdef BOEHM_GC
7
#include "gc.h"
8
#define FREEMALLOC(x) GC_malloc(x)
9
#define RUNMALLOC(x) GC_malloc(x)
10
#define RUNFREE(x)
11
#else
12
#define FREEMALLOC(x) calloc(1,x)
13
#define RUNMALLOC(x) calloc(1,x)
14
#define RUNFREE(x) free(x)
15
#endif
16
#endif