Commit Graph

13 Commits

Author SHA1 Message Date
Viktor Szakats
7f389b1569 2008-07-03 11:37 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbziparch/Makefile
   - contrib/hbziparch/hbzipcom.cpp
   * contrib/hbziparch/hbzipnew.cpp
   * contrib/hbziparch/common.mak
     * Merged source module hbzipcom.cpp into hbzipnew.cpp.
     + Using hb_fsSize() Harbour API instead of implementing 
       this functionality locally and only for a limited 
       number of platforms/compilers.
2008-07-03 09:39:48 +00:00
Viktor Szakats
0990b2aaf0 2008-07-03 11:21 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* hbziparch/hbziparc.c
   * hbziparch/hbziparc.h
   * hbziparch/hbzipcom.cpp
   * hbziparch/hbzipnew.cpp
     ! Fixed reintroduced warnings. Sorry Miguel, but the 
       latest fix was not needed, since bAdded was reinited 
       to FALSE in each iteration of the loop.
     ! sprintf() -> snprintf()
     % Optimizations.
     * Formatting, cleanups.
     ; Tested with BCC55, MSVC9 and MinGW.
2008-07-03 09:24:08 +00:00
Viktor Szakats
6a18638c94 2008-07-02 18:52 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbziparch/hbzipcom.cpp
   * contrib/hbziparch/hbzipnew.cpp
     ! Two lines commented by mistake now reenabled.
       Thanks Miguel.

   * source/rtl/gtwvt/gtwvt.c
     * Minor naming, formatting.
2008-07-02 16:53:13 +00:00
Przemyslaw Czerpak
02f2287452 2008-07-02 15:34 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbziparch/hbziparc.c
    - removed HB_FUNC_EXIT( HBZIPCLEANUP )
  * harbour/contrib/hbziparch/hbzipnew.cpp
    + added automatic callback destructor registered by hb_vmAtExit()
      at 1-st callback set
2008-07-02 13:34:52 +00:00
Viktor Szakats
f71f2a2bb5 2008-07-01 22:49 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbziparch/hbzipnew.cpp
     ! Fixed a potential GPFs. (GCC warnings)

   * contrib/hbpgsql/postgres.c
   * contrib/hbwhat32/_wininet.c
     ! Fixed two const casting warnings in MSVS non-CPP mode.

   - tests/run_test.bat
   + tests/run_prg_all.bat
   - tests/gnu_test.bat
   + tests/bld_gnu.bat
   - tests/bld4dll.bat
   + tests/bld_b32_dll.bat
     + Some renames in the hope they will be easier to 
       understand, and more standard.
     ! Fixed .dll reference.

   * contrib/hbziparch/Makefile
     ! Excluded from Darwin and OS/2 builds.

   ; NOTE: The Windows build I've tried are now building relatively 
           clearly, only with the 1) known warnings 2) warnings in 
           foreign code, plus 3) quite some in contrib/hbwhat32.

           Tested compilers:
             Win32
               BCC551 - OK
               BCC582 - OK
               MSVS2005 - OK (doesn't work with set HB_BUILD_DLL=yes)
               MSVS2005cpp - OK (doesn't work with set HB_BUILD_DLL=yes)
               MSVS2008 - OK (doesn't work with set HB_BUILD_DLL=yes)
               MSVS2008cpp - OK (doesn't work with set HB_BUILD_DLL=yes)
               MinGW412 - OK
               MinGW430
             Win64
               MSVS2008
                 Fails with:
                 'include\hbinit.h(218) : fatal error C1189: #error :  Unknown initialization method.
               MSVS2008cpp - OK (doesn't work with set HB_BUILD_DLL=yes)
             Linux-Ubuntu (7.10)
               GCC413 - OK (FreeImage f.e. fails.)
             Darwin (OS X Leopard 10.5.4)
               GCC401
                 Fails with a lot of:
                 'Wrong type of codeblock parameter, is: 1, should be: 8'
2008-07-01 22:15:19 +00:00
Viktor Szakats
0ba9f6305d typo 2008-07-01 19:43:26 +00:00
Viktor Szakats
92c89b28c8 2008-07-01 21:33 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbwhat32/_winmmcap.c
     ! #include <hbapi.h> -> #include "hbapi.h"
       Harbour headers are not system headers.

   * contrib/gtwvg/gtwvg.c
     * Commented unused code to avoid warnings.

   * contrib/hbziparch/hbziparc.c
   * contrib/hbziparch/hbzipnew.cpp
     ! Fixed BCC 5.8 warning.
     ! Removed tabs.
     * Some formatting.
2008-07-01 19:41:20 +00:00
Viktor Szakats
d542de218d 2008-07-01 17:22 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbapollo/Makefile
   * contrib/hbcurl/Makefile
   * contrib/hbfbird/Makefile
   * contrib/hbfimage/Makefile
   * contrib/hbgd/Makefile
   * contrib/hbhpdf/Makefile
   * contrib/hbmysql/Makefile
   * contrib/hbpgsql/Makefile
   * contrib/rddads/Makefile
     ! Fixed a macro check to make autodetection really work.
       So the previous TOFIX (2008-06-30 19:20 UTC+0200) is 
       now cleared.

   * contrib/hbgf/hbgfgtk/Makefile
     + Added header detection. (default: /usr/include)

   * contrib/hbziparch/hbziparc.c
   * contrib/hbziparch/hbzipcom.cpp
   * contrib/hbziparch/hbzipnew.cpp
     ! Pacified Linux warnings.
     * Some formatting.
2008-07-01 15:26:04 +00:00
Viktor Szakats
1df6a97e6a 2008-06-28 10:44 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* tests/extend2.c
   * source/debug/dbgentry.c
   * contrib/hbodbc/odbc.c
   * contrib/hbw32/tprinter.c
   * contrib/hbziparch/hbziparc.c
   * contrib/hbziparch/hbzipnew.cpp
   * contrib/hbpgsql/postgres.c
     ! Changed strcpy() -> hb_strncpy()
     ! Changed strcat() -> hb_strncat()
     ! Some possible buffer overruns fixed along the way in hbziparch.lib
     ! Fixed some filename buffer sizes in hbziparch.lib
     ; TOFIX: There are still some remaining strcpy()/strcat() 
              calls in Harbour code:
              core: dbgentry.c, hbwince.c
              contrib: hbnf, hbw32, hbwhat32, hbtip
              foreign code: zlib, sqlite2/3
              Not all of these are necessarily bugs (but it's 
              difficult to know without checking each).
2008-06-28 08:52:56 +00:00
Viktor Szakats
e0a744149d 2008-06-24 00:33 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
+ contrib/hbziparch/readme.txt
   + contrib/hbziparch/zlib
   + contrib/hbziparch/zlib/deflate.h
   + contrib/hbziparch/zlib/zlib.h
   * contrib/hbziparch/common.mak
   * contrib/hbziparch/hbcomprs.c
   * contrib/hbziparch/hbziparc.c
   * contrib/hbziparch/hbzipcom.cpp
   * contrib/hbziparch/hbzipnew.cpp
   * contrib/hbziparch/License.txt
   * contrib/hbziparch/make_gcc.sh
   * contrib/hbziparch/make_vc.bat
   * contrib/hbziparch/Makefile
   * contrib/hbziparch/resource.h
   * contrib/hbziparch/stdafx.h
   * contrib/hbziparch/ZipExport.h
   * contrib/hbziparch/ZipPathComponent_lnx.cpp
   * contrib/hbziparch/ZipPathComponent_win.cpp
   * contrib/hbziparch/ZipPlatform_lnx.cpp
   * contrib/hbziparch/ZipPlatform_win.cpp
   * contrib/hbziparch/ZipString.cpp
   - contrib/hbziparch/stdafx.cpp
   - contrib/hbziparch/zipabstractfile.h
   - contrib/hbziparch/ziparchive.cpp
   - contrib/hbziparch/ziparchive.h
   - contrib/hbziparch/zipautobuffer.cpp
   - contrib/hbziparch/zipautobuffer.h
   - contrib/hbziparch/zipbaseexception.h
   - contrib/hbziparch/zipcentraldir.cpp
   - contrib/hbziparch/zipcentraldir.h
   - contrib/hbziparch/zipcollections.h
   - contrib/hbziparch/zipcompatibility.cpp
   - contrib/hbziparch/zipcompatibility.h
   - contrib/hbziparch/zipexception.cpp
   - contrib/hbziparch/zipexception.h
   - contrib/hbziparch/zipfile.cpp
   - contrib/hbziparch/zipfile.h
   - contrib/hbziparch/zipfileheader.cpp
   - contrib/hbziparch/zipfileheader.h
   - contrib/hbziparch/zipfilemapping.h
   - contrib/hbziparch/zipinternalinfo.h
   - contrib/hbziparch/zipmemfile.cpp
   - contrib/hbziparch/zipmemfile.h
   - contrib/hbziparch/zippathcomponent.h
   - contrib/hbziparch/zipplatform.h
   - contrib/hbziparch/zipplatformcomm.cpp
   - contrib/hbziparch/zipstorage.cpp
   - contrib/hbziparch/zipstorage.h
   - contrib/hbziparch/zipstring.h
     * ZipArchive 2.x -> ZipArchive 3.2.0 (latest)
       Only one minor modification (reported to author)
       Plus integrated ZLIB replaced with hbzlib.
     ; Pass 1
2008-06-23 22:34:45 +00:00
Viktor Szakats
b4d9c85b4c 2008-06-24 00:21 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
+ contrib/hbziparch/tests
   + contrib/hbziparch/tests/bld_b32.bat
   + contrib/hbziparch/tests/bld_vc.bat
   + contrib/hbziparch/tests/zipa.prg
   + contrib/hbziparch/tests/unzipa.prg
   * contrib/hbziparch/hbziparc.c
   * contrib/hbziparch/hbzipcom.cpp
   * contrib/hbziparch/hbcomprs.c
   * contrib/hbziparch/hbzipnew.cpp
     * Further cleanup.
     ! Several potential buffer overruns fixed.
       (there are still quite some left)
     + Added simple tests.
2008-06-23 22:22:29 +00:00
Viktor Szakats
3700f2995f 2008-06-23 15:57 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbziparch/common.mak
   - contrib/hbziparch/zip.h
   - contrib/hbziparch/unzip.h
   * contrib/hbziparch/hbziparc.c
   * contrib/hbziparch/hbziparc.h
   * contrib/hbziparch/hbzipcom.cpp
   * contrib/hbziparch/hbzipnew.cpp
     * Further cleanup.
     ; Now the Harbour part compiles cleanly, except the 
       recently added HB_FUNC_EXIT( HBZIPCLEANUP ).
     ; I have a version ready using the unmodified sources 
       of the latest ZipArchive version. Waiting for 
       testers or test code.
2008-06-23 13:59:21 +00:00
Viktor Szakats
0db4a5e0d4 2008-06-23 14:08 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
- hbziparch/make_b32_dll.bat
   - hbziparch/make_b32_dll.mak
   - hbziparch/doc
   * hbziparch/Makefile
   * hbziparch/common.mak
   * hbziparch/hbziparc.c
   * hbziparch/hbziparc.h
   - hbziparch/zipcomp.cpp
   + hbziparch/hbzipcom.cpp
   - hbziparch/zipnew.cpp
   + hbziparch/hbzipnew.cpp
     - Docs integrated into source.
     - Removed .dll building batch files (highly redundant, 
       non-maintained and probably non-working), so now the make 
       system is fully standard. If .dll generation is that 
       important, we will have to add it to the central 
       contrib make files, so that we can use it for 
       all contribs.
     * Renamed some files so separate ZipArch and Harbour parts.
     * Cleanups, renames (statics, globals), warning fixes, 
       deleted unneeded stuff, some functions made static.
     ; This is still a mess.
     ; NOTE: Since there is no sample or test program, neither
             do I use this contrib, I couldn't test any of these 
             changes. Please test.
             (if you have test code, upload it to hbziparch/tests)
2008-06-23 12:11:35 +00:00