projects
/
IRC.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
new class names. build output code for optional tasks.
[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
#ifdef PRECISE_GC
13
#include "garbage.h"
14
#define RUNMALLOC(x) calloc(1,x)
15
#define RUNFREE(x) free(x)
16
#else
17
#define FREEMALLOC(x) calloc(1,x)
18
#define RUNMALLOC(x) calloc(1,x)
19
#define RUNFREE(x) free(x)
20
#endif
21
#endif
22
#endif