root/branches/bud/mango.diff

Revision 22, 2.5 kB (checked in by Gregor, 2 years ago)

mango.diff added (mango will only work on GDC with this)

  • mango/db/memcache/MemCache.d

    old new  
    3939 
    4040module mango.db.memcache.MemCache; 
    4141 
    42 private import  std.Thread; 
     42private import  std.thread; 
    4343 
    4444private import  mango.io.Socket, 
    4545                mango.io.Buffer, 
  • mango/locks/CyclicBarrier.d

    old new  
    1414 
    1515module mango.locks.CyclicBarrier; 
    1616 
     17private import mango.locks.Condition; 
     18 
    1719class Error : Object 
    1820{ 
    1921        private char[] msg; 
  • mango/locks/Exchanger.d

    old new  
    1616  import mango.locks.Utils; 
    1717  import mango.locks.TimeUnit; 
    1818  import mango.locks.Exceptions; 
    19   import mango.locks.ReentrantLock; 
     19  import mango.locks.ReentrantLock; 
    2020 
    2121  // for unittest 
    2222  import std.thread; 
    2323  import mango.locks.Countdown; 
     24   
     25  import mango.locks.Condition; 
    2426} 
    2527 
    2628/** \class Exchanger 
  • mango/locks/ReentrantLock.d

    old new  
    2525  import mango.locks.Utils; 
    2626  import mango.locks.LockImpl; 
    2727  import mango.locks.Exceptions; 
     28   
     29  import mango.locks.TimeUnit; 
     30  import mango.locks.Condition; 
    2831} 
    2932 
    3033/** \class ReentrantLock 
  • mango/sys/Epoch.d

    old new  
    4949 
    5050version (Posix) 
    5151{ 
     52        import std.c.time : timezone; 
    5253        extern (C) int mktime (tm *); 
    5354        extern (C) tm *gmtime (int *); 
    5455} 
  • mango/sys/Atomic.d

    old new  
    3232  return compareAndSet32(vptr,cast(int)expect,cast(int)update); 
    3333} 
    3434 
     35// this ASM code doesn't work on GDC 
    3536version (X86) { 
     37    version (GNU) {} else { 
     38        version = X86_not_GNU; 
     39    } 
     40} 
     41 
     42version (X86_not_GNU) { 
    3643  // alternative declaration for data instead of pointers 
    3744  static bool compareAndSet32(void* vptr, int expect, int update) { 
    3845    asm { 
Note: See TracBrowser for help on using the browser.