]> git.llucax.com Git - software/dgc/cdgc.git/commitdiff
Make gc a package
authorLeandro Lucarella <llucax@gmail.com>
Sun, 3 Jan 2010 18:20:21 +0000 (15:20 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Sun, 3 Jan 2010 18:20:21 +0000 (15:20 -0300)
Makefile
gc/alloc.d [moved from gcalloc.d with 99% similarity]
gc/bits.d [moved from gcbits.d with 99% similarity]
gc/gc.d [moved from gc.d with 99% similarity]
gc/stats.d [moved from gcstats.d with 98% similarity]
gc/x.d [moved from gcx.d with 99% similarity]

index bdd709bbf60a4b1ca428155cc545aca4b64f5a16..9db709545b0df72f19558d9b6fa7aa625b2a9bcb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -32,11 +32,11 @@ LD_OUTPUT_OPTION = -o $@
 
 # GC sources
 sources := \
-       gc.d \
-       gcalloc.d \
-       gcbits.d \
-       gcstats.d \
-       gcx.d
+       gc/gc.d \
+       gc/alloc.d \
+       gc/bits.d \
+       gc/stats.d \
+       gc/x.d
 
 # Default target
 all: $B/cdgc.so
similarity index 99%
rename from gcalloc.d
rename to gc/alloc.d
index a7f1ca6670e74d96b08f674a0b0c7d29f3a5cb50..cad30f2cd62faed18e7eabd52d15666ecd0e610e 100644 (file)
--- a/gcalloc.d
@@ -24,6 +24,7 @@
  * Authors:   Walter Bright, David Friedman, Sean Kelly
  */
 
+module gc.alloc;
 
 version (Win32)
 {
similarity index 99%
rename from gcbits.d
rename to gc/bits.d
index 4a7f54cbbdb9a76ea41d8a7bd039df6a5f5984a0..e8e926327f3849a8bc6c60aed920c49920cdcb0f 100644 (file)
--- a/gcbits.d
+++ b/gc/bits.d
@@ -24,6 +24,7 @@
  * Authors:   Walter Bright, David Friedman, Sean Kelly
  */
 
+module gc.bits;
 
 import tango.core.BitManip;
 import tango.stdc.string;
diff --git a/gc.d b/gc/gc.d
similarity index 99%
rename from gc.d
rename to gc/gc.d
index 7ffca3b17fcdb53498282720fe554e063b49c9ec..979b81bf3fe4a99c3f23f44751ab19133658286d 100644 (file)
--- a/gc.d
+++ b/gc/gc.d
  * Authors:   Walter Bright, Sean Kelly
  */
 
-import gcx;
-import gcstats;
+module gc.gc;
+
+import gc.x;
+import gc.stats;
 import tango.stdc.stdlib;
 
 version=GCCLASS;
similarity index 98%
rename from gcstats.d
rename to gc/stats.d
index 18f21abfe7edc016e5dbbd33ae4d3a7f30935241..84368ead4577186953fa2862c100a167a2c1679f 100644 (file)
--- a/gcstats.d
@@ -24,6 +24,7 @@
  * Authors:   Walter Bright, Sean Kelly
  */
 
+module gc.stats;
 
 /**
  *
diff --git a/gcx.d b/gc/x.d
similarity index 99%
rename from gcx.d
rename to gc/x.d
index cc5db897eb8fae2bf19ab2832c59892cc4c19209..966c81e8fe190663d21286df4c3ae15404c65119 100644 (file)
--- a/gcx.d
+++ b/gc/x.d
@@ -24,6 +24,8 @@
  * Authors:   Walter Bright, David Friedman, Sean Kelly
  */
 
+module gc.x;
+
 // D Programming Language Garbage Collector implementation
 
 /************** Debugging ***************************/
@@ -46,9 +48,9 @@ version = MULTI_THREADED;       // produce multithreaded version
 
 /***************************************************/
 
-import gcbits;
-import gcstats;
-import gcalloc;
+import gc.bits;
+import gc.stats;
+import gc.alloc;
 
 import cstdlib = tango.stdc.stdlib : calloc, free, malloc, realloc;
 import cstring = tango.stdc.string : memcpy, memmove, memset;