From: Leandro Lucarella Date: Thu, 24 Dec 2009 23:10:28 +0000 (-0300) Subject: Remove redundant "private" from import statements X-Git-Url: https://git.llucax.com/software/dgc/cdgc.git/commitdiff_plain/4ec407bc566f7213d53848ac42ed501cab22a792 Remove redundant "private" from import statements Since a long while ago, imports are "private" by default. --- diff --git a/gc.d b/gc.d index 32e61f6..7ffca3b 100644 --- a/gc.d +++ b/gc.d @@ -24,9 +24,9 @@ * Authors: Walter Bright, Sean Kelly */ -private import gcx; -private import gcstats; -private import tango.stdc.stdlib; +import gcx; +import gcstats; +import tango.stdc.stdlib; version=GCCLASS; diff --git a/gcalloc.d b/gcalloc.d index 26ba353..a7f1ca6 100644 --- a/gcalloc.d +++ b/gcalloc.d @@ -27,7 +27,7 @@ version (Win32) { - private import tango.sys.win32.UserGdi; + import tango.sys.win32.UserGdi; alias int pthread_t; @@ -40,14 +40,14 @@ version (Win32) } else version (Posix) { - private import tango.stdc.posix.sys.mman; - private import tango.stdc.stdlib; + import tango.stdc.posix.sys.mman; + import tango.stdc.stdlib; //version = GC_Use_Alloc_MMap; } else { - private import tango.stdc.stdlib; + import tango.stdc.stdlib; //version = GC_Use_Alloc_Malloc; } @@ -174,7 +174,7 @@ else static if (is(typeof(malloc))) // else version (GC_Use_Alloc_Malloc) // after PAGESIZE bytes used by the GC. - private import gcx; // for PAGESIZE + import gcx; // for PAGESIZE const size_t PAGE_MASK = PAGESIZE - 1; diff --git a/gcbits.d b/gcbits.d index 5714c51..4a7f54c 100644 --- a/gcbits.d +++ b/gcbits.d @@ -25,9 +25,10 @@ */ -private import tango.core.BitManip; -private import tango.stdc.string; -private import tango.stdc.stdlib; +import tango.core.BitManip; +import tango.stdc.string; +import tango.stdc.stdlib; + private extern (C) void onOutOfMemoryError(); diff --git a/gcx.d b/gcx.d index 8da2a27..cc5db89 100644 --- a/gcx.d +++ b/gcx.d @@ -46,15 +46,16 @@ version = MULTI_THREADED; // produce multithreaded version /***************************************************/ -private import gcbits; -private import gcstats; -private import gcalloc; +import gcbits; +import gcstats; +import gcalloc; -private import cstdlib = tango.stdc.stdlib : calloc, free, malloc, realloc; -private import cstring = tango.stdc.string : memcpy, memmove, memset; -debug(THREADINVARIANT) private import tango.stdc.posix.pthread; -debug(PRINTF) private import tango.stdc.posix.pthread : pthread_self, pthread_t; -debug private import tango.stdc.stdio : printf; +import cstdlib = tango.stdc.stdlib : calloc, free, malloc, realloc; +import cstring = tango.stdc.string : memcpy, memmove, memset; + +debug(THREADINVARIANT) import tango.stdc.posix.pthread; +debug(PRINTF) import tango.stdc.posix.pthread : pthread_self, pthread_t; +debug import tango.stdc.stdio : printf; version (GNU) { @@ -62,7 +63,7 @@ version (GNU) // subdirectory is elsewhere. Instead, perhaps the functions // could be declared directly or some other resolution could // be found. - private import gcc.builtins; // for __builtin_unwind_init + import gcc.builtins; // for __builtin_unwind_init }