2010-01-14 03:22 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)

* contrib/hbwin/win_prn3.c
    * ULONG -> HB_SIZE
    ! Fixed new warning in hb_tstrncat() (assigment in conditional).
      I've now basically restored my original version taken from common lib.

  * contrib/hbwin/mapi.c
    * Formatting.
This commit is contained in:
Viktor Szakats
2010-01-14 02:26:19 +00:00
parent b5aeaca07e
commit 83ea866c61
3 changed files with 24 additions and 14 deletions

View File

@@ -17,13 +17,22 @@
past entries belonging to author(s): Viktor Szakats.
*/
2010-01-14 03:22 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_prn3.c
* ULONG -> HB_SIZE
! Fixed new warning in hb_tstrncat() (assigment in conditional).
I've now basically restored my original version taken from common lib.
* contrib/hbwin/mapi.c
* Formatting.
2010-01-13 18:19 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbide/ideeditor.prg
* contrib/hbide/idemisc.prg
* contrib/hbide/ideobject.prg
* contrib/hbide/idesources.prg
+ Implemented line numbers in editing objects.
I used a very simplified way to achieve which
+ Implemented line numbers in editing objects.
I used a very simplified way to achieve which
otherwise is implemented in altogether different ways
in Qt examples scattered over the net.

View File

@@ -71,7 +71,7 @@
#endif
#if defined( __WATCOMC__ )
typedef ULONG (PASCAL * LPMAPISENDMAIL) (LHANDLE,ULONG,lpMapiMessage,FLAGS,ULONG);
typedef ULONG ( PASCAL * LPMAPISENDMAIL ) ( LHANDLE, ULONG, lpMapiMessage, FLAGS, ULONG );
#endif
HB_FUNC( WIN_MAPISENDMAIL )

View File

@@ -67,35 +67,36 @@
#include "hbwinuni.h"
/* NOTE: Based on hb_strncat() */
static TCHAR * hb_tstrncat( TCHAR * pDest, const TCHAR * pSource, ULONG ulLen )
static TCHAR * hb_tstrncat( TCHAR * pDest, const TCHAR * pSource, HB_SIZE nLen )
{
TCHAR * pBuf = pDest;
HB_TRACE(HB_TR_DEBUG, ("hb_tstrncat(%p, %p, %lu)", pDest, pSource, ulLen));
HB_TRACE(HB_TR_DEBUG, ("hb_tstrncat(%p, %p, %lu)", pDest, pSource, nLen));
pDest[ ulLen ] = '\0';
pDest[ nLen ] = '\0';
while( ulLen && *pDest )
while( nLen && *pDest )
{
pDest++;
ulLen--;
nLen--;
}
while( ulLen-- && ( *pDest++ = *pSource++ ) ) {};
while( nLen && ( *pDest++ = *pSource++ ) != '\0' )
nLen--;
return pBuf;
}
static ULONG hb_tstrlen( const TCHAR * pText )
static HB_SIZE hb_tstrlen( const TCHAR * pText )
{
ULONG ul = 0;
HB_SIZE nLen = 0;
HB_TRACE(HB_TR_DEBUG, ("hb_tstrlen(%p)", pText));
while( pText[ ul ] )
++ul;
while( pText[ nLen ] )
++nLen;
return ul;
return nLen;
}
static HB_BOOL hb_SetDefaultPrinter( LPCTSTR lpPrinterName )