#LDFLAGS :=
# GC sources
-sources := \
- gc/iface.d \
- gc/alloc.d \
- gc/bits.d \
- gc/stats.d \
- gc/libc.d \
- gc/gc.d
+sources := $(addprefix rt/gc/cdgc/,\
+ iface.d \
+ alloc.d \
+ bits.d \
+ stats.d \
+ libc.d \
+ gc.d \
+ )
# Default target
all: $B/cdgc.so
* Authors: Walter Bright, David Friedman, Sean Kelly
*/
-module gc.alloc;
+module rt.gc.cdgc.alloc;
// C OS-specific API
// to PAGESIZE alignment, there will be space for a void* at the end
// after PAGESIZE bytes used by the GC.
- import gcx; // for PAGESIZE
+ import rt.gc.cdgc.gc: PAGESIZE;
const size_t PAGE_MASK = PAGESIZE - 1;
* Authors: Walter Bright, David Friedman, Sean Kelly
*/
-module gc.bits;
+module rt.gc.cdgc.bits;
-import gc.libc;
+import rt.gc.cdgc.libc;
private extern (C) void onOutOfMemoryError();
* Authors: Walter Bright, David Friedman, Sean Kelly
*/
-module gc.gc;
+module rt.gc.cdgc.gc;
// D Programming Language Garbage Collector implementation
/***************************************************/
-import gc.bits;
-import gc.stats;
-import gc.alloc;
-import gc.libc;
+import rt.gc.cdgc.bits;
+import rt.gc.cdgc.stats;
+import rt.gc.cdgc.alloc;
+import rt.gc.cdgc.libc;
version (GNU)
* Authors: Walter Bright, Sean Kelly
*/
-module gc.iface;
+module rt.gc.cdgc.iface;
-import gc.gc;
-import gc.stats;
-import gc.c;
+import rt.gc.cdgc.gc;
+import rt.gc.cdgc.stats;
+import rt.gc.cdgc.libc;
version=GCCLASS;
-module gc.c;
+module rt.gc.cdgc.libc;
version (Windows) {
alias int c_long;
* Authors: Walter Bright, Sean Kelly
*/
-module gc.stats;
+module rt.gc.cdgc.stats;
/**
*