stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject svn commit: r657220 - /stdcxx/branches/4.2.x/tests/src/alarm.cpp
Date Fri, 16 May 2008 21:24:41 GMT
Author: vitek
Date: Fri May 16 14:24:41 2008
New Revision: 657220

URL: http://svn.apache.org/viewvc?rev=657220&view=rev
Log:
2008-05-16  Travis Vitek  <vitek@roguewave.com>

	STDCXX-938
	* tests/src/alarm.cpp [SIG_DFL]: Fix apparent typo in definition of
	SIG_DFL which would have resulted in macro redefinition warnings if
	both SIG_DFL and SIG_IGN were not defined in signal.h
	(rw_sig_dfl): Change pointer constant to avoid crash when using
	rw_alarm().
        (rw_sig_ign): Ditto.
	(rw_sig_hold): Ditto.
	(rw_sig_restore): Ditto.
	

Modified:
    stdcxx/branches/4.2.x/tests/src/alarm.cpp

Modified: stdcxx/branches/4.2.x/tests/src/alarm.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/src/alarm.cpp?rev=657220&r1=657219&r2=657220&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/tests/src/alarm.cpp (original)
+++ stdcxx/branches/4.2.x/tests/src/alarm.cpp Fri May 16 14:24:41 2008
@@ -44,16 +44,16 @@
 // exported/imported
 
 /* extern _TEST_EXPORT */ rw_signal_handler_t* const
-rw_sig_dfl = (rw_signal_handler_t*)-1;
+rw_sig_dfl = (rw_signal_handler_t*)0;
 
 /* extern _TEST_EXPORT */ rw_signal_handler_t* const
-rw_sig_ign = (rw_signal_handler_t*)-2;
+rw_sig_ign = (rw_signal_handler_t*)1;
 
 /* extern _TEST_EXPORT */ rw_signal_handler_t* const
-rw_sig_hold = (rw_signal_handler_t*)-3;
+rw_sig_hold = (rw_signal_handler_t*)2;
 
 /* extern _TEST_EXPORT */ rw_signal_handler_t* const
-rw_sig_restore = (rw_signal_handler_t*)-4;
+rw_sig_restore = (rw_signal_handler_t*)3;
 
 
 // may point to a user-defined handler for the alarm
@@ -133,7 +133,7 @@
 #  endif
 
 #  ifndef SIG_DFL
-#    define SIG_IGN (rw_signal_handler_t*)0
+#    define SIG_DFL (rw_signal_handler_t*)0
 #  endif   // SIG_DFL
 
 #  ifndef SIG_IGN



Mime
View raw message