2010-05-15 09:43 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/src/rtl/hbcom.c
  * harbour/contrib/hbct/ctcom1.c
  * harbour/contrib/hbct/ctcom2.c
    * removed unused code and added parenthesis to pacify warning

  * harbour/contrib/gtwvg/gtwvg.h
  * harbour/contrib/gtwvg/wvggui.h
  * harbour/contrib/hbwin/win_dlg.c
    * updated included header files
      (it fixes problem with BCC5.5 and POCC/XCC builds)
This commit is contained in:
Przemyslaw Czerpak
2010-05-15 07:43:37 +00:00
parent 0f68ed9c65
commit 2bf6bbd4b8
7 changed files with 27 additions and 4 deletions

View File

@@ -17,6 +17,19 @@
past entries belonging to author(s): Viktor Szakats.
*/
2010-05-15 09:43 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/hbcom.c
* harbour/contrib/hbct/ctcom1.c
* harbour/contrib/hbct/ctcom2.c
* removed unused code and added parenthesis to pacify warning
* harbour/contrib/gtwvg/gtwvg.h
* harbour/contrib/gtwvg/wvggui.h
* harbour/contrib/hbwin/win_dlg.c
* updated included header files
(it fixes problem with BCC5.5 and POCC/XCC builds)
2010-05-15 09:16 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbziparc/hbziparc.prg
! Fixed regression in HB_ZIPFILE() to make it work in

View File

@@ -69,6 +69,7 @@
#include <winuser.h>
#include <commctrl.h>
#if ! defined( HB_OS_WIN_CE )
#include <ole2.h>
#include <olectl.h>
#include <ocidl.h>
#endif

View File

@@ -68,6 +68,11 @@
#include <windows.h>
#include <winuser.h>
#include <commctrl.h>
#if ! defined( HB_OS_WIN_CE )
#include <ole2.h>
#include <olectl.h>
#include <ocidl.h>
#endif
#include <commdlg.h>
#include <shellapi.h>
@@ -85,6 +90,10 @@
#include "hbgtwvg.ch"
#if defined( HB_OS_WIN_CE )
#include "hbwince.h"
#endif
HB_EXTERN_BEGIN
/*----------------------------------------------------------------------*/

View File

@@ -420,7 +420,7 @@ HB_FUNC( COM_READ )
else
{
lLen = hb_comInputCount( iPort );
if( lLen < ( long ) sizeof( buffer ) >> 1 )
if( lLen < ( long ) ( sizeof( buffer ) >> 1 ) )
lLen = sizeof( buffer );
else
lLen <<= 2;

View File

@@ -206,7 +206,6 @@ HB_FUNC( ZEROINSERT )
nLen = hb_itemGetCLen( pString );
uiVal = 0;
nBits = 0;
uiVal = 0;
/* NOTE: trailing zero accessed intentionally */
for( n = 0; n <= nLen; ++n )
{

View File

@@ -58,6 +58,9 @@
#include "hbwin.h"
#include "hbwapi.h"
#if defined( __XCC__ )
# include <ole2.h>
#endif
#include <commdlg.h>
/* WIN_PRINTDLGDC( [@<cDevice>], [<nFromPage>], [<nToPage>], [<nCopies>] )

View File

@@ -1833,8 +1833,6 @@ int hb_comInit( int iPort, int iBaud, int iParity, int iSize, int iStop )
{
if( iBaud )
dcb.BaudRate = ( DWORD ) iBaud;
else
iBaud = ( int ) dcb.BaudRate;
dcb.fBinary = 1;
dcb.fParity = 0;
dcb.fOutxCtsFlow = 0;