2014-03-04 19:12 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/xhb/hbserv.c
* pacified CLANG warning reported by Franček
This commit is contained in:
@@ -10,6 +10,10 @@
|
||||
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
|
||||
*/
|
||||
|
||||
2014-03-04 19:12 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
|
||||
* contrib/xhb/hbserv.c
|
||||
* pacified CLANG warning reported by Franček
|
||||
|
||||
2014-03-04 18:15 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
|
||||
* src/debug/debugger.prg
|
||||
* minor cleanup
|
||||
|
||||
@@ -935,12 +935,11 @@ HB_FUNC( HB_POPSIGNALHANDLER )
|
||||
*/
|
||||
HB_FUNC( HB_SIGNALDESC )
|
||||
{
|
||||
#if defined( HB_OS_UNIX ) || defined( HB_OS_OS2_GCC )
|
||||
|
||||
int iSig = hb_parni( 1 );
|
||||
int iSubSig = hb_parni( 2 );
|
||||
|
||||
/* UNIX MESSGES */
|
||||
#if defined( HB_OS_UNIX ) || defined( HB_OS_OS2_GCC )
|
||||
|
||||
switch( iSig )
|
||||
{
|
||||
case SIGSEGV: switch( iSubSig )
|
||||
@@ -1019,12 +1018,16 @@ HB_FUNC( HB_SIGNALDESC )
|
||||
hb_retc_const( "User defined (secondary)" );
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HB_OS_WIN
|
||||
#elif defined( HB_OS_WIN )
|
||||
|
||||
int iSig = hb_parni( 1 );
|
||||
|
||||
if( iSig == 0 ) /* exception */
|
||||
{
|
||||
switch( iSubSig )
|
||||
DWORD dwSubSig = ( DWORD ) hb_parnl( 2 );
|
||||
|
||||
switch( dwSubSig )
|
||||
{
|
||||
case EXCEPTION_ACCESS_VIOLATION:
|
||||
hb_retc_const( "Memory read/write access violation" ); return;
|
||||
@@ -1076,7 +1079,7 @@ HB_FUNC( HB_SIGNALDESC )
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
hb_retc_const( "Unrecognized signal" );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user