2008-07-28 12:37 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/contrib/hbmzip/hbmzip.c
    * converted TABs to SPACEs

  * harbour/source/rtl/hbcrc.c
  * harbour/source/rtl/hbmd5.c
    * added const to some static array declarations
This commit is contained in:
Przemyslaw Czerpak
2008-07-28 10:37:57 +00:00
parent 90494c980d
commit 738cecd913
4 changed files with 13 additions and 5 deletions

View File

@@ -8,6 +8,14 @@
2008-12-31 13:59 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
2008-07-28 12:37 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbmzip/hbmzip.c
* converted TABs to SPACEs
* harbour/source/rtl/hbcrc.c
* harbour/source/rtl/hbmd5.c
* added const to some static array declarations
2008-07-28 02:47 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbmzip/tests/myzip.prg
* harbour/contrib/hbmzip/tests/myunzip.prg

View File

@@ -208,7 +208,7 @@ HB_FUNC( HB_ZIPFILECREATE )
hb_retni( zipOpenNewFileInZip3( hZip, szZipName, &zfi,
NULL, 0, NULL, 0,
hb_parc( 10 ), iMethod, iLevel, 0,
hb_parc( 10 ), iMethod, iLevel, 0,
-MAX_WBITS, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY,
hb_parc( 9 ), 0 ) );
}
@@ -1077,7 +1077,7 @@ static int hb_zipDeleteFile( const char* szZipFile, const char* szFileMask )
if( ugi.size_comment > 0 )
{
pszGlobalComment = ( char * ) hb_xgrab( ugi.size_comment + 1 );
if( ( uLong ) unzGetGlobalComment( hUnzip, pszGlobalComment,
if( ( uLong ) unzGetGlobalComment( hUnzip, pszGlobalComment,
ugi.size_comment ) != ugi.size_comment )
iResult = UNZ_ERRNO;
pszGlobalComment[ ugi.size_comment ] = '\0';

View File

@@ -112,7 +112,7 @@ static const ULONG crc32_tab[ 256 ] = {
/* X^16+X^15+X^2+X^0 */
/* 0x18005 => 0xA001 */
static ULONG crc16_tab[] =
static const ULONG crc16_tab[] =
{
0x0000, 0xC0C1, 0xC181, 0x0140, 0xC301, 0x03C0, 0x0280, 0xC241,
0xC601, 0x06C0, 0x0780, 0xC741, 0x0500, 0xC5C1, 0xC481, 0x0440,

View File

@@ -129,7 +129,7 @@ typedef struct
#define MAX_FBUF 0x20000 /* file read buffer size, MUST be 64*n */
/* Static data */
static UINT32 T[ 64 ] = {
static const UINT32 T[ 64 ] = {
0xD76AA478, 0xE8C7B756, 0x242070DB, 0xC1BDCEEE,
0xF57C0FAF, 0x4787C62A, 0xA8304613, 0xFD469501,
0x698098D8, 0x8B44F7AF, 0xFFFF5BB1, 0x895CD7BE,
@@ -148,7 +148,7 @@ static UINT32 T[ 64 ] = {
0xF7537E82, 0xBD3AF235, 0x2AD7D2BB, 0xEB86D391
};
static BYTE pad[ 64 ] = {
static const BYTE pad[ 64 ] = {
0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,