Since a long while ago, imports are "private" by default.
* 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;
version (Win32)
{
- private import tango.sys.win32.UserGdi;
+ import tango.sys.win32.UserGdi;
alias int pthread_t;
}
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;
}
// after PAGESIZE bytes used by the GC.
- private import gcx; // for PAGESIZE
+ import gcx; // for PAGESIZE
const size_t PAGE_MASK = PAGESIZE - 1;
*/
-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();
/***************************************************/
-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)
{
// 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
}