[M3commit] CVS Update: cm3

Jay Krell jkrell at elego.de
Sat Jun 23 09:09:38 CEST 2012


CVSROOT:	/usr/cvs
Changes by:	jkrell at birch.	12/06/23 09:09:38

Modified files:
	cm3/m3-libs/m3core/src/: m3core.h 
	./: m3core.h 
	cm3/m3-libs/m3core/src/runtime/POSIX/: RTSignalC.c 
	./: RTSignalC.c 
	cm3/m3-libs/m3core/src/thread/Common/: ThreadDebug.c 
	                                       ThreadInternal.c 
	./: ThreadDebug.c ThreadInternal.c 
	cm3/m3-libs/m3core/src/thread/POSIX/: ThreadPosixC.c 
	                                      test_thread_sigaltstack.c 
	                                      test_timer.c 
	./: ThreadPosixC.c test_thread_sigaltstack.c test_timer.c 
	cm3/m3-libs/m3core/src/thread/PTHREAD/: ThreadApple.c 
	                                        ThreadFreeBSD.c 
	                                        ThreadOpenBSD.c 
	                                        ThreadPThreadC.c 
	                                        interix_context_on_signal_stack.c 
	                                        test_apple.c 
	                                        test_interix.c 
	./: ThreadApple.c ThreadFreeBSD.c ThreadOpenBSD.c 
	    ThreadPThreadC.c interix_context_on_signal_stack.c 
	    test_apple.c test_interix.c 
	cm3/m3-libs/m3core/src/thread/WIN32/: ThreadWin32C.c 
	./: ThreadWin32C.c 
	cm3/m3-libs/m3core/src/unix/Common/: Usocket.c UstatC.c 
	./: Usocket.c UstatC.c 
	cm3/m3-libs/m3core/src/win32/: WinUserC.c 

Log message:
	cleanup:
	provide M3_HAS_VISIBILITY in m3core.h, so others can
	avoid #ifdef __osf__ and such -- so that we fix warnings for __CYGWIN__
	use M3_HAS_VISIBILITY in places (e.g. ThreadInternal.c, ThreadPosixC.c)
	
	#undef/#define _GNU_SOURCE in m3core.h
	
	#define __DARWIN_UNIX03 0 in m3core.h
	remove from RTSignalC.c, ThreadApple.c
	
	remove never-used M3_DLL_IMPORT from m3core.h
	
	add M3_EXTERNC_BEGIN, M3_EXTERNC_END in m3core.h
	use it in places (ThreadInternal.c)
	
	consolidate #include of sys/ucontext.h and ucontext.h in m3core.h
	remove them from RTSignalC.c, ThreadApple.c
	
	add more missing calling conventions (explicit __cdecl) even
	in source that isn't compiled for NT/x86 (the only platform
	with multiple calling conventions, and a way to specify it,
	and a way for it to mismatch) (e.g. ThreadPosixC.c)
	
	initialize locals more
	
	add #include <semaphore.h> in m3core.h (even if the functions
	therein don't really work on Darwin, and we don't use them)
	remove elsewhere e.g. ThreadPThreadC.c
	
	remove some tabs
	
	adjust some brace positions
	
	slightly cleanup how we assert about struct linger




More information about the M3commit mailing list