diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2011-12-28 15:59:55 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2011-12-28 15:59:55 +0400 |
commit | 42490427131c4a7f5055dc22609b6cdc718dc5a0 (patch) | |
tree | f563fd25726f1462102e1a4686a2fa3735ead26f | |
parent | 8ab374765c1bd8d1d5278555560bd204825157e5 (diff) | |
download | bdwgc-42490427131c4a7f5055dc22609b6cdc718dc5a0.tar.gz |
Remove unused __STDC__ and NO_SIGNALS macros
* BCC_MAKEFILE (cflags): Remove -D __STDC__.
* digimars.mak (DEFINES): Likewise.
* Mac_files/MacOS_config.h (__STDC__, NO_SIGNALS): Remove macro.
* doc/README.Mac (__STDC__, NO_SIGNALS): Likewise.
* windows-untested/stdafx.h (__STDC__): Likewise.
* README: Remove obsolete information about NO_SIGNALS.
-rw-r--r-- | BCC_MAKEFILE | 2 | ||||
-rw-r--r-- | Mac_files/MacOS_config.h | 5 | ||||
-rw-r--r-- | README | 4 | ||||
-rw-r--r-- | digimars.mak | 2 | ||||
-rw-r--r-- | doc/README.Mac | 4 | ||||
-rw-r--r-- | windows-untested/stdafx.h | 2 |
6 files changed, 3 insertions, 16 deletions
diff --git a/BCC_MAKEFILE b/BCC_MAKEFILE index 2f67e085..d0d08880 100644 --- a/BCC_MAKEFILE +++ b/BCC_MAKEFILE @@ -14,7 +14,7 @@ rc= $(bcbin)\brc32 lib= $(bcbin)\tlib
link= $(bcbin)\ilink32
cflags= -O2 -R -v- -vi -H -H=gc.csm -I$(bcinclude);$(gcinclude1);$(gcinclude2) -L$(bclib) \
- -w-pro -w-aus -w-par -w-ccc -w-rch -a4 -D__STDC__=0
+ -w-pro -w-aus -w-par -w-ccc -w-rch -a4
defines= -DALL_INTERIOR_POINTERS -DUSE_GENERIC -DNO_GETENV -DJAVA_FINALIZATION -DGC_OPERATOR_NEW_ARRAY
.c.obj:
diff --git a/Mac_files/MacOS_config.h b/Mac_files/MacOS_config.h index 664d5bbd..ec8f82c3 100644 --- a/Mac_files/MacOS_config.h +++ b/Mac_files/MacOS_config.h @@ -16,10 +16,6 @@ // for CodeWarrior Pro with Metrowerks Standard Library (MSL). // #define MSL_USE_PRECOMPILED_HEADERS 0 #include <ansi_prefix.mac.h> -#ifndef __STDC__ -#define __STDC__ 0 -#endif - #endif /* __MWERKS__ */ // these are defined again in gc_priv.h. @@ -29,5 +25,4 @@ #define ALL_INTERIOR_POINTERS // follows interior pointers. //#define DONT_ADD_BYTE_AT_END // no padding. //#define SMALL_CONFIG // whether to use a smaller heap. -#define NO_SIGNALS // signals aren't real on the Macintosh. #define USE_TEMPORARY_MEMORY // use Macintosh temporary memory. @@ -175,9 +175,7 @@ need to be informed. and during uninterruptible parts of the allocation process. Like standard ANSI C mallocs, by default it is unsafe to invoke malloc (and other GC routines) from a signal handler while another -malloc call may be in progress. Removing -DNO_SIGNALS from Makefile -attempts to remedy that. But that may not be reliable with a compiler that -substantially reorders memory operations inside GC_malloc. +malloc call may be in progress. The allocator/collector can also be configured for thread-safe operation. (Full signal safety can also be achieved, but only at the cost of two system diff --git a/digimars.mak b/digimars.mak index bb9fe8c0..383df5c4 100644 --- a/digimars.mak +++ b/digimars.mak @@ -3,7 +3,7 @@ # Written by Walter Bright
-DEFINES=-DNDEBUG -DGC_BUILD -D_WINDOWS -DGC_DLL -DALL_INTERIOR_POINTERS -D__STDC__ -DWIN32_THREADS
+DEFINES=-DNDEBUG -DGC_BUILD -D_WINDOWS -DGC_DLL -DALL_INTERIOR_POINTERS -DWIN32_THREADS
CFLAGS=-Iinclude $(DEFINES) -wx -g
LFLAGS=/ma/implib/co
CC=sc
diff --git a/doc/README.Mac b/doc/README.Mac index 1e16ef44..0dace581 100644 --- a/doc/README.Mac +++ b/doc/README.Mac @@ -156,9 +156,6 @@ of every source file. I used these: #if macintosh #define MSL_USE_PRECOMPILED_HEADERS 0 #include <ansi_prefix.mac.h> - #ifndef __STDC__ - #define __STDC__ 0 - #endif // See list of #defines to configure the library in: 'MakeFile' // see also README @@ -166,7 +163,6 @@ of every source file. I used these: #define ALL_INTERIOR_POINTERS // follows interior pointers. //#define DONT_ADD_BYTE_AT_END // disables the padding if defined. //#define SMALL_CONFIG // whether to use a smaller heap. - #define NO_SIGNALS // signals aren't real on the Macintosh. #define ATOMIC_UNCOLLECTABLE // GC_malloc_atomic_uncollectable() // define either or none as per personal preference diff --git a/windows-untested/stdafx.h b/windows-untested/stdafx.h index f455fc87..7f5dcf1c 100644 --- a/windows-untested/stdafx.h +++ b/windows-untested/stdafx.h @@ -11,7 +11,5 @@ # define GC_DEBUG #endif -#define __STDC__ 1 - #define SAVE_CALL_CHAIN #define SAVE_CALL_COUNT 8 |