From a60bc1334687bc94f591f1eb6be78188b2b436ca Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Tue, 16 Feb 2010 23:56:14 +0000 Subject: [PATCH] 2010-02-17 00:55 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/src/rtl/hbsocket.c * added iTODO warning to OpenWatcom Linux builds * harbour/src/debug/dbgtmenu.prg ! fixed code used for debugger menu to be MT safe --- harbour/ChangeLog | 7 +++++++ harbour/src/debug/dbgtmenu.prg | 12 +++++++++++- harbour/src/rtl/hbsocket.c | 3 +++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 48ed60e651..50b539fdbd 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,13 @@ past entries belonging to author(s): Viktor Szakats. */ +2010-02-17 00:55 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/src/rtl/hbsocket.c + * added iTODO warning to OpenWatcom Linux builds + + * harbour/src/debug/dbgtmenu.prg + ! fixed code used for debugger menu to be MT safe + 2010-02-16 23:36 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * src/rtl/gtwvt/gtwvt.c * contrib/gtwvg/gtwvg.c diff --git a/harbour/src/debug/dbgtmenu.prg b/harbour/src/debug/dbgtmenu.prg index f4686ae491..e9f55d18b7 100644 --- a/harbour/src/debug/dbgtmenu.prg +++ b/harbour/src/debug/dbgtmenu.prg @@ -68,7 +68,7 @@ CREATE CLASS HBDbMenu - CLASSDATA aMenus + METHOD aMenus SETGET VAR nTop VAR nLeft @@ -108,6 +108,16 @@ CREATE CLASS HBDbMenu ENDCLASS +METHOD aMenus( xNewVal ) CLASS HBDbMenu + + THREAD STATIC ts_aMenus + + IF PCount() > 0 + ts_aMenus := xNewVal + ENDIF + + RETURN ts_aMenus + METHOD New() CLASS HBDbMenu IF ::aMenus == NIL diff --git a/harbour/src/rtl/hbsocket.c b/harbour/src/rtl/hbsocket.c index d148f93e5e..5dd8fb5623 100644 --- a/harbour/src/rtl/hbsocket.c +++ b/harbour/src/rtl/hbsocket.c @@ -2048,9 +2048,12 @@ int hb_socketShutdown( HB_SOCKET sd, int iMode ) } #if defined( __WATCOMC__ ) && defined( HB_OS_LINUX ) +{ + int iTODO; /* it's still not supported by Linux OpenWatcom port :-( */ ret = -1; hb_socketSetRawError( HB_SOCKET_ERR_NOSUPPORT ); +} #else hb_vmUnlock(); ret = shutdown( sd, iMode );