Ticket #857: tango-0.99.4_dynload3.patch
| File tango-0.99.4_dynload3.patch, 3.5 kB (added by jascha, 11 months ago) |
|---|
v2 didnt work with svn branch 0.99.4 |
-
lib/common/tango/posix.mak
old new 20 20 ADD_CFLAGS= 21 21 ADD_DFLAGS= 22 22 23 CFLAGS=-O -m32 $(ADD_CFLAGS)23 CFLAGS=-O -m32 -fPIC $(ADD_CFLAGS) 24 24 #CFLAGS=-g -m32 $(ADD_CFLAGS) 25 25 26 26 DFLAGS=-release -O -inline -w -nofloat -version=Posix $(ADD_DFLAGS) -
lib/gdc-posix.mak
old new 18 18 LC=$(AR) -qsv 19 19 DC=gdmd 20 20 21 ADD_CFLAGS= 22 ADD_DFLAGS=-q,-nostdinc - I`pwd`/common -I`pwd`/.. -I`pwd`/compiler/gdc21 ADD_CFLAGS=-fPIC 22 ADD_DFLAGS=-q,-nostdinc -fPIC -I`pwd`/common -I`pwd`/.. -I`pwd`/compiler/gdc 23 23 24 24 targets : lib doc 25 25 all : lib doc -
lib/compiler/gdc/configure
old new 9394 9394 ;; 9395 9395 linux*) 9396 9396 #d_gc_stack=GC_Use_Stack_Proc_Stat 9397 d_gc_data="$d_gc_data GC_Use_Data_Fixed" 9397 #d_gc_data="$d_gc_data GC_Use_Data_Fixed" 9398 d_gc_data="$d_gc_data GC_Use_Data_Proc_Maps" 9398 9399 #have_proc_maps=1 9399 9400 ;; 9400 9401 skyos*) -
lib/compiler/gdc/memory.d
old new 241 241 } 242 242 else version( GC_Use_Data_Proc_Maps ) 243 243 { 244 private import tango.stdc.posix.fcntl; 245 private import tango.stdc.posix.unistd; 246 private import tango.stdc.string; 244 247 version = GC_Use_Dynamic_Ranges; 245 248 } 246 249 version( GC_Use_Dynamic_Ranges ) … … 369 372 void* start; 370 373 void* end; 371 374 372 p = buf ;375 p = buf.ptr; 373 376 if (fd != -1) 374 377 { 375 378 while ( (count = read(fd, p, buf.sizeof - (p - buf.ptr))) > 0 ) 376 379 { 377 380 e = p + count; 378 p = buf ;381 p = buf.ptr; 379 382 while (true) 380 383 { 381 384 s = p; … … 436 439 else 437 440 { 438 441 count = p - s; 439 memmove(buf , s, count);442 memmove(buf.ptr, s, count); 440 443 p = buf.ptr + count; 441 444 break; 442 445 } -
tango/text/locale/Posix.d
old new 98 98 } 99 99 100 100 ulong getUtcTime() { 101 intt;101 long t; 102 102 time(&t); 103 103 gmtime(&t); 104 104 return cast(ulong)((cast(long)t * 10000000L) + 116444736000000000L); -
tango/text/Regex.d
old new 3643 3643 * Append output of C's printf() to internal buffer. 3644 3644 */ 3645 3645 3646 void printf(char[] format, ...)3646 /+ void printf(char[] format, ...) 3647 3647 { 3648 3648 va_list ap; 3649 3649 ap = cast(va_list)&format; 3650 3650 ap += format.sizeof; 3651 3651 vprintf(format, ap); 3652 3652 } 3653 3653 +/ 3654 3654 /***************************************** 3655 3655 * At offset index into buffer, create nbytes of space by shifting upwards 3656 3656 * all data past index.










