Re: [Harbour] SF.net SVN: harbour-project:[14179] trunk/harbour

2010-03-18 Thread Mindaugas Kavaliauskas

Hi,


vszak...@users.sourceforge.net wrote:

  - external/bzip2/bzip2.c
- Deleted accindentally included bzip2 tool.


Thank, You. Now I'm able to test bzip2 library.

PROC main()
LOCAL nResult
  ? Len:, HB_BZ2_UNCOMPRESSLEN(HB_BZ2_COMPRESS(), @nResult)
  ? nResult:, nResult
RETURN

prints:
Len:  0
nResult:  0

So I suggest change:
 HB_BZ2_UNCOMPRESSLEN( cCompressedData, [@nResult] )
  - nUnCompressedDataLen or 0 on error
to:
 HB_BZ2_UNCOMPRESSLEN( cCompressedData, [@nResult] )
  - nUnCompressedDataLen or -1 on error

Any objections?


Regards,
Mindaugas

___
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour


Re: [Harbour] SF.net SVN: harbour-project:[14179] trunk/harbour

2010-03-18 Thread Przemysław Czerpak
On Thu, 18 Mar 2010, Mindaugas Kavaliauskas wrote:

Hi,

 PROC main()
 LOCAL nResult
   ? Len:, HB_BZ2_UNCOMPRESSLEN(HB_BZ2_COMPRESS(), @nResult)
   ? nResult:, nResult
 RETURN
 prints:
 Len:  0
 nResult:  0
 So I suggest change:
  HB_BZ2_UNCOMPRESSLEN( cCompressedData, [@nResult] )
   - nUnCompressedDataLen or 0 on error
 to:
  HB_BZ2_UNCOMPRESSLEN( cCompressedData, [@nResult] )
   - nUnCompressedDataLen or -1 on error
 Any objections?

Few notes:
1. HB_BZ2_COMPRESS() returns empty string and HB_BZ2_UNCOMPRES()
   accepts empty string without any errors and also return empty string.
   In the same way are working corresponding ZLIB functions:
   HB_ZCOMPRESS() and HB_ZUNCOMPRESS()
2. We probably have to add RTE when 1-st parameter is not string
3. HB_ZUNCOMPRESSLEN() should also be updated to return compatible results.

I'll commit such modifications soon.

best regards,
Przemek
___
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour


[Harbour] SF.net SVN: harbour-project:[14179] trunk/harbour

2010-03-16 Thread vszakats
Revision: 14179
  
http://harbour-project.svn.sourceforge.net/harbour-project/?rev=14179view=rev
Author:   vszakats
Date: 2010-03-16 23:34:33 + (Tue, 16 Mar 2010)

Log Message:
---
2010-03-17 00:32 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
  * INSTALL
+ Added bzip2 information. (not fully complete, it also 
  needs to be added to .spec files like zlib)

  - external/bzip2/bzip2.dif
  - external/bzip2/bzip2.c
  * external/bzip2/cnv_hb2o.bat
  * external/bzip2/cnv_o2hb.bat
  * external/bzip2/Makefile
- Deleted accindentally included bzip2 tool.

  + contrib/hbbzip2/tests
  + contrib/hbbzip2/tests/hbmk.hbm
  + contrib/hbbzip2/tests/test.prg
+ Added little test code.

  + contrib/hbbzip2/hbbzip2.hbc
+ Added .hbc file.

  * contrib/hbbzip2/hbbzip2.ch
+ Added 'it's also used by C code' comment.

Modified Paths:
--
trunk/harbour/ChangeLog
trunk/harbour/INSTALL
trunk/harbour/contrib/hbbzip2/hbbzip2.ch
trunk/harbour/external/bzip2/Makefile
trunk/harbour/external/bzip2/cnv_hb2o.bat
trunk/harbour/external/bzip2/cnv_o2hb.bat

Added Paths:
---
trunk/harbour/contrib/hbbzip2/hbbzip2.hbc
trunk/harbour/contrib/hbbzip2/tests/
trunk/harbour/contrib/hbbzip2/tests/hbmk.hbm
trunk/harbour/contrib/hbbzip2/tests/test.prg

Removed Paths:
-
trunk/harbour/external/bzip2/bzip2.c
trunk/harbour/external/bzip2/bzip2.dif


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.
___
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour