Tango 0.99.9 uses this package scheme, so we follow it for easier
integration.
-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
# Default target
all: $B/cdgc.so
* Authors: Walter Bright, David Friedman, Sean Kelly
*/
* Authors: Walter Bright, David Friedman, Sean Kelly
*/
+module rt.gc.cdgc.alloc;
// to PAGESIZE alignment, there will be space for a void* at the end
// after PAGESIZE bytes used by the GC.
// 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;
const size_t PAGE_MASK = PAGESIZE - 1;
* Authors: Walter Bright, David Friedman, Sean Kelly
*/
* Authors: Walter Bright, David Friedman, Sean Kelly
*/
private extern (C) void onOutOfMemoryError();
private extern (C) void onOutOfMemoryError();
* Authors: Walter Bright, David Friedman, Sean Kelly
*/
* Authors: Walter Bright, David Friedman, Sean Kelly
*/
// D Programming Language Garbage Collector implementation
// 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;
* Authors: Walter Bright, Sean Kelly
*/
* Authors: Walter Bright, Sean Kelly
*/
+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 (Windows) {
alias int c_long;
version (Windows) {
alias int c_long;
* Authors: Walter Bright, Sean Kelly
*/
* Authors: Walter Bright, Sean Kelly
*/
+module rt.gc.cdgc.stats;