Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 4387

Show
Ignore:
Timestamp:
03/05/09 13:15:43 (3 years ago)
Author:
fawzi
Message:

small changes toward -fPIC, refs #857

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/compiler/gdc/memory.d

    r2292 r4387  
    242242    else version( GC_Use_Data_Proc_Maps ) 
    243243    { 
     244        private import tango.stdc.posix.fcntl;  
     245        private import tango.stdc.posix.unistd;  
     246        private import tango.stdc.string;  
    244247        version = GC_Use_Dynamic_Ranges; 
    245248    } 
     
    370373        void* end; 
    371374 
    372         p = buf
     375        p = buf.ptr
    373376        if (fd != -1) 
    374377        { 
     
    376379            { 
    377380                e = p + count; 
    378                 p = buf
     381                p = buf.ptr
    379382                while (true) 
    380383                { 
     
    437440                    { 
    438441                        count = p - s; 
    439                         memmove(buf, s, count); 
     442                        memmove(buf.ptr, s, count); 
    440443                        p = buf.ptr + count; 
    441444                        break;