summaryrefslogtreecommitdiff
path: root/Makefile.direct
diff options
context:
space:
mode:
authorivmai <ivmai>2009-09-24 07:31:03 +0000
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 21:06:47 +0400
commita00f74a6b52f32f868a5ed96307d218cb81abf90 (patch)
tree73e3f163f1e810ad079a4f89f3e54268dd4010e0 /Makefile.direct
parent11e47c37000da78c4b2782a3a5b04820d791e50b (diff)
downloadbdwgc-a00f74a6b52f32f868a5ed96307d218cb81abf90.tar.gz
2009-09-24 Ivan Maidanski <ivmai@mail.ru>
(ivmai145.diff) * Makefile.direct (GC_WINMAIN_REDIRECT): Add the comment for. * Makefile.direct (NO_GETENV): Update the comment. * include/gc.h (GC_WINMAIN_WINCE_LPTSTR): Remove macro. * include/gc.h (GC_WinMain): Remove declaration. * include/gc.h (WinMain): Define (as GC_WinMain) if and only if GC_WINMAIN_REDIRECT. * tests/test.c (GC_COND_INIT): Define as GC_INIT() also in case of WinCE target unless GC_WINMAIN_REDIRECT is defined. * tests/test.c (WINMAIN_LPTSTR): New macro. * tests/test.c (WinMain): Use WINMAIN_LPTSTR instead of LP[W]STR and GC_WINMAIN_WINCE_LPTSTR. * win32_threads.c (start_mark_threads): Add the comment for MARK_THREAD_STACK_SIZE. * win32_threads.c: Recognize new GC_WINMAIN_REDIRECT macro. * win32_threads.c (WINMAIN_LPTSTR, WINMAIN_THREAD_STACK_SIZE): New macro (only if GC_WINMAIN_REDIRECT). * win32_threads.c: Undefine WinMain macro if GC_WINMAIN_REDIRECT. * win32_threads.c (GC_WinMain): Add prototype (only if GC_WINMAIN_REDIRECT). * win32_threads.c (main_thread_args, WinMain): Rename GC_WINMAIN_WINCE_LPTSTR to WINMAIN_LPTSTR. * win32_threads.c (WinMain): Call GC_INIT() instead of GC_init(); use WINMAIN_THREAD_STACK_SIZE. * win32_threads.c (WinMain): Call GC_deinit() and DeleteCriticalSection() only if WinCE; add FIXME.
Diffstat (limited to 'Makefile.direct')
-rw-r--r--Makefile.direct7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.direct b/Makefile.direct
index f15d2657..ba1ca66f 100644
--- a/Makefile.direct
+++ b/Makefile.direct
@@ -281,10 +281,15 @@ HOSTCFLAGS=$(CFLAGS)
# event objects (one per each marker instead of that based on Win32
# SignalObjectAndWait() using a single event object). This is the default
# for WinCE.
+# -DGC_WINMAIN_REDIRECT (Win32 only) Redirect (rename) an application WinMain
+# to GC_WinMain; implement the "real" WinMain which starts a new thread to
+# call GC_WinMain after initializing the GC. Useful for WinCE.
+# Incompatible with GC_DLL.
# -DNO_GETENV prevents the collector from looking at environment variables.
# These may otherwise alter its configuration, or turn off GC altogether.
# I don't know of a reason to disable this, except possibly if the
-# resulting process runs as a privileged user?
+# resulting process runs as a privileged user. (This is on by default for
+# WinCE.)
# -DUSE_GLOBAL_ALLOC. Win32 only. Use GlobalAlloc instead of
# VirtualAlloc to allocate the heap. May be needed to work around
# a Windows NT/2000 issue. Incompatible with USE_MUNMAP.