2010-12-11 23:10 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* contrib/hblzf/hblzf.c
    % Removed unnecessary casts readded in last commit.
      hb_parns() returns HB_SIZE, so casting it to '( HB_SIZE )'
      adds nothing.

  * contrib/hbsqlit3/hbsqlit3.c
    * Reformatted to Harbour standard using uncrustify tool.
This commit is contained in:
Viktor Szakats
2010-12-11 22:10:47 +00:00
parent 5d7a5c376b
commit 157338cf1f
3 changed files with 577 additions and 900 deletions

View File

@@ -16,6 +16,15 @@
The license applies to all entries newer than 2009-04-28.
*/
2010-12-11 23:10 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hblzf/hblzf.c
% Removed unnecessary casts readded in last commit.
hb_parns() returns HB_SIZE, so casting it to '( HB_SIZE )'
adds nothing.
* contrib/hbsqlit3/hbsqlit3.c
* Reformatted to Harbour standard using uncrustify tool.
2010-12-11 22:55 UTC+0200 Petr Chornyj (myorg63 at mail.ru)
* contrib/hblzf/hblzf.c
! Fixed the algorithm used in HB_LZF_COMPRESSBOUND(), HB_LZF_COMPRESS()

View File

@@ -65,14 +65,14 @@
static HB_SIZE hb_lzf_compressbound( HB_SIZE nLen )
{
HB_SIZE nBuffSize = ( HB_SIZE ) ( nLen * 1.04 + 1 );
return ( nBuffSize >= 32 ) ? nBuffSize : 32;
return ( nBuffSize >= 32 ) ? nBuffSize : 32;
}
HB_FUNC( HB_LZF_COMPRESSBOUND )
{
if( HB_ISCHAR( 1 ) || HB_ISNUM( 1 ) )
{
HB_SIZE nLen = HB_ISCHAR( 1 ) ? hb_parclen( 1 ) : ( HB_SIZE ) hb_parns( 1 );
HB_SIZE nLen = HB_ISCHAR( 1 ) ? hb_parclen( 1 ) : hb_parns( 1 );
hb_retns( hb_lzf_compressbound( nLen ) );
}
else
@@ -119,7 +119,7 @@ HB_FUNC( HB_LZF_COMPRESS )
else
{
out_len = ( HB_ISNUM( 2 ) && hb_parns( 2 ) >= 0 ) ?
( HB_SIZE ) hb_parns( 2 ) :
hb_parns( 2 ) :
hb_lzf_compressbound( in_len );
out_data = ( char * ) hb_xalloc( out_len + 1 );

File diff suppressed because it is too large Load Diff