Commit Graph

8925 Commits

Author SHA1 Message Date
Viktor Szakats
ce9936791f 2008-09-03 10:28 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbziparch/hbziparc.c
   * contrib/hbziparch/hbzipnew.cpp
     % Merged slightly different internal functions, thus 
       removing significant redundancy.
       Higher level hb_unzipFile(), hb_unzipFileIndex(), hb_unzipAllFile()
       are now functionally the same, since the only difference was 
       how the file list parameter was handled.
     ! Removed any remaining Win32 dependency.
2008-09-03 09:31:45 +00:00
Viktor Szakats
b5581fbd66 2008-09-02 23:37 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbziparch/hbziparc.c
   * contrib/hbziparch/hbzipnew.cpp
     * Complete cleanup/refactor/fixes.
       (original functions and internal logic was kept, 
       except some shady path/curdir manipulations, which 
       were removed, along with any directory changes)
       The code got significantly easier to oversee, so if 
       someone wants to find out how this interface works, 
       now the code is much easier to read. If we want to 
       keep this in Harbour, maybe we could just swap the 
       low-level interface to utilize hbmzip calls instead 
       of ZipArchive ones. We would lose the segmented 
       archive feature though, but I'm not sure how 
       important this is these days, when there is no 
       floppy disk anymore.
       Code size is now 40% smaller than in 1.0.0.
       It's still far from being perfect, but now it's at 
       least possible to fix.
2008-09-02 21:49:42 +00:00
Viktor Szakats
b95227ded2 2008-09-02 10:23 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmake/hbmake.prg
     ; Applied patch by Bill Robertson:
     ! Fixed previously introduced (by me actually) bug. Thanks.
     % Removed "non-extended" codepath, since it was never used.
     ! UI elements fixed to properly accomodate to any 
       screen dimensions.

   * utils/hbmake/hbmake.prg
     ! Fixed to not change casing of files, plus a few other minor fixes.
     ! Made one filename comparison multiplatform by using hb_FileMatch()
     ; Added TOFIXes where filename comparison is not multiplatform.
     % Removed some dead or commented code.
2008-09-02 08:25:14 +00:00
Viktor Szakats
b99239efda 2008-09-01 21:52 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
- contrib/hbw32ddr
   * contrib/Makefile
   * contrib/make_b32_all.bat
   * contrib/make_gcc_all.sh
   * contrib/make_vc_all.bat
     - Removed contrib hbw32ddr.
       For those wanting to peek into this code, or 
       pick up development, the exact source can be 
       found in Harbour 1.0.0 release.
2008-09-01 19:54:24 +00:00
Viktor Szakats
3bb8276f9c 2008-09-01 21:33 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbziparch/hbziparc.c
   * contrib/hbziparch/hbzipnew.cpp
     % Cleanups, optimizations, fixes. Now it's possible to 
       oversee what the code actually tries to do.
     * Statics reduced to one, not changing current dir anymore.
     ; It may happen that something is not working as it was, please test.
       Path handling is/was very shady. Unix support is (and was) 
       not working at places.
     ; NOTE: 'Kiss of death' change.
             Please be prepared that I plan to remove hbziparch 
             from the repository sometimes this week. If you have 
             a strong reason not to do so (or some alternative 
             proposal), pls write to the list.
             If someone wants to continue using it, it can be accessed 
             from past revisions of the SVN, or the 1.0.0 binary and 
             source releases.
             Someone could as well upload the lastest (or latest stable) 
             revision to our website.
2008-09-01 19:49:15 +00:00
Viktor Szakats
25ac0c7948 2008-09-01 15:57 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
- contrib/hbziparch/hbziparc.h
   * contrib/hbziparch/hbziparc.c
   * contrib/hbziparch/hbzipnew.cpp
   * contrib/hbziparch/tests/unzipa.prg
     % Further cleanups, optimizations.
     % Removed adding current directory to .zip filename 
       if it didn't contain a path. If a file doesn't contain 
       path, the OS will create it by default in the current dir.
       If someone knows why this hack was there, please tell.
2008-09-01 13:58:19 +00:00
Viktor Szakats
53ee42aedd 2008-09-01 12:39 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbziparch/hbziparc.c
   * contrib/hbziparch/hbzipnew.cpp
     * One variable rename missed from previous commit.
2008-09-01 10:39:47 +00:00
Viktor Szakats
61eb31ae0b 2008-09-01 12:33 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbziparch/hbziparc.h
   * contrib/hbziparch/hbziparc.c
   * contrib/hbziparch/hbzipnew.cpp
     ! Fixed several potential leaks.
     % Optimized out several unnecessary allocations.
     % Optimized out several unnecessary string copying.
     % Cleaned all global variables.
     % Cleaned all static variables in C code.
     % Using HB_ERR_FUNCNAME.
     ! Returning empty values instead of NULL.
     ! Fixed potential GPFs.
     ! Using manifest constants instead of literals.
     * Cleaned header file and constant usage.
     * Other minor fixes and optimizations.
     * Formatting.
     ; The code is still a mess.
2008-09-01 10:36:44 +00:00
Viktor Szakats
e8006b26e7 2008-09-01 09:42 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbziparch/hbziparc.h
   * contrib/hbziparch/hbziparc.c
   * contrib/hbziparch/hbzipnew.cpp
   * contrib/hbziparch/hbxdirec.c
     % Cleanups: Unused headers, types, one #define, 
       one BCC582 warning, one Linux/GCC/MinGW #ifdef oddness.
     ; NOTE: Need to test this on Linux.

   * utils/hbmake/hbmake.prg
     ; Applied cleanup and fix patch from Bill Robertson:
     ! LIBFILES -> HBLIBS
       EXTERNLIB -> CONTRIBLIB
       EXTLIBFILES -> CONTRIBLIBS
     * ALLLIB = $(USERLIBS) $(LIBFILES) ... ->
       ALLLIB = $(USERLIBS) $(CONTRIBLIBS) $(HBLIBS) ...
     % Removed CONTRIBLIB = YES from makefile output as it did nothing.
     % Combined two ShowHelp() secs into one and put together 
       with ShowCredits() at top of program.
     % Simplied Flag checks somewhat but it's still awkward. I fixed 
       a mingw bug where a flag was set to .t. in one place and .f. 
       later because of inconsistent use of letters, capitals/lower, etc. 
       Still lots of checking for lower(...), upper(...), etc. of the 
       command-line params.
     * Changed Help screen to reflect current program options better.
     * Made some alert message a little clearer and minor formatting.
     ! Initalized s_nMakeFileHandle to F_ERROR and reset it to F_ERROR 
       whenever the file was closed. Didn't seem to be a current problem, 
       just good practice.

   * utils/hbmake/hbmake.prg
     * Removed separate /credits switch and added content to 
       main help screen.
     % Removed a few CLS commands from command-line orientated 
       places.
     % Removed -elx and -ex from help screen (as these are the 
       same as -el and -e). They are still accepted though.

   * source/compiler/hbusage.c
     + Added Bill Robertson to credits list.
2008-09-01 08:18:39 +00:00
Viktor Szakats
23f4044748 2008-08-31 16:59 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* hbwhat32/whtdate.c
   * hbwhat32/whthead.c
   * hbwhat32/whtbrsh.c
   * hbwhat32/whtgdi.c
   * hbwhat32/whtmisc.c
   * hbwhat32/whttab.c
   * hbwhat32/whtbmp.c
   * hbwhat32/whtkbrd.c
     % Using hb_arraySet*() instead of hb_arraySet()
2008-08-31 15:00:17 +00:00
Viktor Szakats
0e8db70888 2008-08-31 16:26 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbdoc/bld_vc.bat
   * utils/hbmake/bld_vc.bat
     % Minor cleanup.

   * contrib/hbwhat32/whticon.c
   * contrib/hbwhat32/whtcret.c
   * contrib/hbwhat32/whthead.c
   * contrib/hbwhat32/whtmous.c
   * contrib/hbwhat32/whtmeta.c
   * contrib/hbwhat32/whtrgn.c
   * contrib/hbwhat32/whttbar.c
   * contrib/hbwhat32/whtrect.c
   * contrib/hbwhat32/whtbrsh.c
   * contrib/hbwhat32/whtgdi.c
   * contrib/hbwhat32/whtview.c
   * contrib/hbwhat32/whtlv.c
   * contrib/hbwhat32/whtwnd.c
   * contrib/hbwhat32/whtcomm.c
   * contrib/hbwhat32/whtprn.c
   * contrib/hbwhat32/whttab.c
   * contrib/hbwhat32/whtfont.c
   * contrib/hbwhat32/whtbmp.c
   * contrib/hbwhat32/whtpen.c
   * contrib/hbwhat32/whtkbrd.c
   * contrib/hbwhat32/whttext.c
   * contrib/hbwhat32/whtdc.c
   * contrib/hbwhat32/whtdraw.c
   * contrib/hbnf/fttext.c
   * contrib/hbnf/peek.c
   * contrib/hbnf/ontick.c
   * contrib/hbnf/origin.c
   * contrib/hbnf/mouse.c
   * contrib/hbnf/poke.c
     ! Fixed to use Harbour API instead of legacy Clipper API.

   + contrib/hbbtree/tests/bld_b32.bat
   + contrib/hbbtree/tests/bld_vc.bat
   + contrib/hbbtree/tests/bld_djgp.bat
   - contrib/hbbtree/tests/mktest.bat
   * contrib/hbbtree/tests/ctest.c
     + Added make files.
     * Minor cleanups.
     ; One of the tests fail.

   * contrib/hbbtree/tbtree.prg
     ! Fixed crash due to scope problem in class declaration.

   * contrib/examples/pe/editorlo.c
     ! #include <x> -> #include "x" for Harbour headers.
2008-08-31 14:29:27 +00:00
Viktor Szakats
edc7abc792 2008-08-31 10:53 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbole/oleauto.prg
   * contrib/hbw32/w32_tole.prg
     * MessageBox() calls converted to Alert()s.
       A #translate added for the to be reconverted to MessageBox(), 
       since I'm not sure why should we use MessageBox()es here?
       IMO it'd be better to throw RTEs, or handle these cases more 
       "natively". Opinions?

   * contrib/hbole/oleauto.prg
     + Modified to generate RTE when the object could not 
       be created, so that it works more like OLE in hbw32.lib, 
       and the test doesn't crash in this case. I don't have 
       Excel, and this is what I could fix without it.

   * contrib/hbw32/w32_tole.prg
   * contrib/hbw32/w32_ole.c
     ! Typos, minor formatting.

   * common.mak
   * source/hbpcre/Makefile
   * source/hbpcre/cnv_hb2o.bat
   * source/hbpcre/cnv_o2hb.bat
   - source/hbpcre/ucpinter.h
   - source/hbpcre/ucptable.h
   - source/hbpcre/pcrefind.c
   + source/hbpcre/pcreucd.c
   * source/hbpcre/pcrevutf.c
   * source/hbpcre/pcre.h
   * source/hbpcre/pcreconf.c
   * source/hbpcre/pcreinfo.c
   * source/hbpcre/pcremktb.c
   * source/hbpcre/config.h
   * source/hbpcre/pcrenewl.c
   * source/hbpcre/pcreoutf.c
   * source/hbpcre/chartabs.c
   * source/hbpcre/pcrerefc.c
   * source/hbpcre/pcreget.c
   * source/hbpcre/pcrefinf.c
   * source/hbpcre/pcretryf.c
   * source/hbpcre/pcreexec.c
   * source/hbpcre/pcreinal.h
   * source/hbpcre/pcretabs.c
   * source/hbpcre/pcredfa.c
   * source/hbpcre/pcrever.c
   * source/hbpcre/pcrecomp.c
   * source/hbpcre/pcrexcls.c
   * source/hbpcre/pcrestud.c
   * source/hbpcre/ucp.h
     + Updated to PCRE 7.8 RC1
       (will be updated to final pretty soon)
       This version contains the small patches we 
       so far had locally in Harbour. Thanks to 
       Philip Hazel for applying them.
2008-08-31 09:07:57 +00:00
Viktor Szakats
ffdf363493 2008-08-30 11:58 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/hbsetup.ch
     + Added HB_LEGACY_OFF macro to turn off HB_LEGACY_LEVEL.

   * utils/hbmake/hbmake.prg
     * Two minor cleanups.

   * doc/en/hb_apiit.txt
   * source/vm/eval.c
     * PEVALINFO -> PHB_EVALINFO
     * EVALINFO -> HB_EVALINFO

   * contrib/hbct/ctwin.c
   * contrib/hbct/keyset.c
   * contrib/hbct/misc3.c
   * contrib/hbnf/numlock.c
   * contrib/hbnf/shift.c
   * contrib/hbnf/alt.c
   * contrib/hbnf/ctrl.c
   * contrib/hbnf/caplock.c
     * GTI_* -> HB_GTI_*

   * source/rtl/spfiles.c
     * FHANDLE -> HB_FHANDLE
2008-08-30 10:21:22 +00:00
Viktor Szakats
5f33ef7f7d 2008-08-29 14:45 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmake/hbmake.prg
     ; Applied patch created by Bill Robertson:
     * The following functions aren't used in hbmake and were removed:
       FindCfile(), TestforPrg(), AsDll(), ExtenPrg(), GetMakeDir()
2008-08-29 12:26:19 +00:00
Przemyslaw Czerpak
0b684e3379 2008-08-29 11:29 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbcompdf.h
  * harbour/source/compiler/hbmain.c
  * harbour/source/compiler/harbour.yyc
  * harbour/source/compiler/harbour.y
    ! removed all classes and functions static declarations
    ! fixed cleanup code for classes and functions declarations
2008-08-29 09:30:15 +00:00
Viktor Szakats
dd64b568d8 2008-08-29 10:40 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
+ config/w32/mingwce.cf
   - config/w32/cemgw.cf
   * harbour-ce-spec
   * make_xmingwce.sh
   * bin/hb-mkslib.sh
   * bin/hb-func.sh
   * bin/postinst.sh
   * source/vm/Makefile
     * Renamed 'cemgw' HB_COMPILER name to 'mingwce' 
       for consitency.
2008-08-29 08:40:30 +00:00
Viktor Szakats
b7b03486a4 2008-08-29 10:35 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* ChangeLog
     ! Minor typo.

   * utils/hbmake/hbmake.prg
     % Minor cleanup.

   * source/common/hbver.c
     * Further cleanup of constant usage.
     + Changed Borland to CodeGear to BCC5.9 and above.
       (borrowed from xhb / Andi Jahja)

   * config/w32/gcc.cf
   * config/w32/dm.cf
     * contrib syslibs moved to separate lines.
2008-08-29 08:37:04 +00:00
Viktor Szakats
7d82aaeaba 2008-08-28 20:17 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_vc.bat
   - make_vcce.bat
     + Added some additional information how to create WinCE 
       builds using make_vc.bat.
     - Deleted make_vcce.bat
2008-08-28 18:17:37 +00:00
Viktor Szakats
826f64a0c3 2008-08-28 20:00 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtchrmap.c
   * source/rtl/hbgtcore.c
   * source/vm/hvm.c
     + Added three TOFIXes regarding namespace violations.
       s_pszLinkedMain        -> hb_vm_pszLinkedMain
       s_defaultGT            -> hb_gt_szNameDefault
       s_szDefaultCharMapFile -> hb_gt_szCharMapFileDefault
       TOFIX: These should be fixed in 1.1 (or maybe even in 
              1.0.1 if this isn't such a big problem for 3rd 
              parties).
2008-08-28 18:01:20 +00:00
Viktor Szakats
29554fc8dc 2008-08-28 18:31 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/gtwvg/wvgutils.c
     ! Fixed to use documented Harbour API hb_winmainArgGet() 
       instead of the (since cleaned away) undocumented Harbour 
       global variable hb_hInstance.
2008-08-28 16:32:59 +00:00
Viktor Szakats
2c93cfbd44 minor correction 2008-08-28 10:27:21 +00:00
Viktor Szakats
62f603dbbc typo 2008-08-28 10:26:27 +00:00
Viktor Szakats
47fcd90e00 2008-08-28 12:22 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbfimage/fi_winfu.c
     ! Added CBM_INIT definition for Pellec C in WinCE mode.
       [UNDONE. CreateDIBitmap() also doesn't exist in WinCE. ]
2008-08-28 10:25:28 +00:00
Viktor Szakats
be82d17256 2008-08-28 12:20 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_vc.bat
     * Updated usage text.

   * include/hbwince.h
     ! Fix for Pelles C 5.0 in WinCE/ARM mode.

   * include/hbsetup.h
     + Detecting Pelles C 5.0 in ARM mode as HB_WINCE.

   * ChangeLog
     - Removed some advices not valid anymore from previous entry.

   * contrib/mtpl_b32.bat
   * contrib/mtpl_vc.bat
     * Synced with /make_*.bat so that the name of the .mak 
       file is now hard-wired instead of being HB_CC_NAME dependent.
       This way contribs may be built for WinCE in the future 
       (this still needs adding WinCE support to mtpl_vc.mak).

   * contrib/mtpl_gcc.sh
     + Darwin autodetection was missing.

   * contrib/hbfimage/fi_winfu.c
     ! Added CBM_INIT definition for Pellec C in WinCE mode.

   * source/rtl/gtclip.c
     + Added GMEM_MOVEABLE definiction for Pelles C in WinCE mode.

   + config/w32/poccce.cf
     + Added Pellec C WinCE make file.

   + config/w32/msvcce.cf
     + Added WinCE GNU make file for MSVC. Untested, probably not working, 
       this is just a small step to make the GNU-make equal in feature 
       with the non-GNU make one.

   * config/w32/bcc32.cf
     * Minor sync of C options with non-GNU make file.

   * config/w32/msvc.cf
     * Attempt to sync C options with non-GNU make file.

   * contrib/hbfbird/firebird.c
     * Minor formatting.

   ; NOTE1: For better consistency I'd like to rename GNU make compiler names
            'mingw32' to 'mingw' (they've dropped '32' long ago), and 
            'cemgw' to 'mingwce'.
   ; NOTE2: Pelles C WinCE build still generates following errors:
       POLINK: error: Unresolved external symbol 'GetModuleFileNameA'.
       POLINK: error: Unresolved external symbol 'RegOpenKeyExA'.
       ../../math.c(605): error #3120: [asm] Symbol 'inf' is undefined.
       contrib\gtwvg\gtwvg.h(78): fatal error #1035: Can't find include file <olectl.h>.
       ../../ctmath2.c(324): error #3120: [asm] Symbol 'inf' is undefined.
       ../../win32.c(70): error #2048: Undeclared identifier 'CS_OWNDC'.
       ../../win32.c(75): error #2048: Undeclared identifier 'IDI_APPLICATION'.
       ../../win32.c(75): error #2140: Type error in argument 2 to 'LoadIconA'; found 'int', expected 'const char *'.
       ../../win32.c(181): error #2048: Undeclared identifier 'MFS_DISABLED'.
       ../../win32.c(194): warning #2027: Missing prototype for 'InsertMenuItem'.
       ../../win32.c(219): warning #2027: Missing prototype for 'SetMenu'.
       ../../odbc.c(94): fatal error #1035: Can't find include file <sql.h>.
       contrib\hbsqlit3\sqlite3\sqlite3.c(9936): warning #2027: Missing prototype for 'localtime'. [ ... ]
       ../../w32_ole.c(403): error #2152: Unknown field 'pllVal' of 'union (no name)'.
       ../../w32_ole.c(403): error #2168: Operands of = have incompatible types 'int' and 'long long int *'.
       ../../w32_ole.c(408): error #2152: Unknown field 'llVal' of 'union (no name)'.
       ../../w32_ole.c(786): error #2152: Unknown field 'pllVal' of 'union (no name)'.
       ../../w32_ole.c(786): error #2144: Type error: pointer expected.
       ../../w32_ole.c(792): error #2152: Unknown field 'llVal' of 'union (no name)'.
       ../../hbsyslog.c(31): error #2140: Type error in argument 2 to 'RegisterEventSourceW'; found 'const char *', expected 'const wchar_t *'.
       ../../hbsyslog.c(97): error #2140: Type error in argument 8 to 'ReportEventW'; found 'const char * *', expected 'const wchar_t * *'.
       ../../firebird.c(448): error #2149: Undefined size for 'times' with type '(incomplete) struct tm'.
       ../../firebird.c(479): error #2152: Unknown field 'tm_year' of '(incomplete) struct tm'.
       ../../firebird.c(480): error #2152: Unknown field 'tm_mon' of '(incomplete) struct tm'.
       ../../firebird.c(481): error #2152: Unknown field 'tm_mday' of '(incomplete) struct tm'.
       ../../firebird.c(482): error #2152: Unknown field 'tm_hour' of '(incomplete) struct tm'.
       ../../firebird.c(483): error #2152: Unknown field 'tm_min' of '(incomplete) struct tm'.
       ../../firebird.c(484): error #2152: Unknown field 'tm_sec' of '(incomplete) struct tm'.
       ../../firebird.c(493): error #2152: Unknown field 'tm_year' of '(incomplete) struct tm'.
       ../../firebird.c(493): error #2152: Unknown field 'tm_mon' of '(incomplete) struct tm'.
       ../../firebird.c(493): error #2152: Unknown field 'tm_mday' of '(incomplete) struct tm'.
       ../../firebird.c(502): error #2152: Unknown field 'tm_hour' of '(incomplete) struct tm'.
       ../../firebird.c(503): error #2152: Unknown field 'tm_min' of '(incomplete) struct tm'.
       ../../firebird.c(504): error #2152: Unknown field 'tm_sec' of '(incomplete) struct tm'.
       ../../fi_winfu.c(97): warning #2027: Missing prototype for 'CreateDIBitmap'.
       ../../fi_winfu.c(98): error #2048: Undeclared identifier 'CBM_INIT'.
       ../../fi_winfu.c(99): error #2168: Operands of = have incompatible types 'HBITMAP' and 'int'.
       ../../fi_winfu.c(150): warning #2027: Missing prototype for 'GetDIBits'.
       [ lots of them with hbmysql ]
2008-08-28 10:22:54 +00:00
Viktor Szakats
964e38d978 2008-08-28 01:20 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_b32.bat
   * make_vc.bat
     * exit_err.bat -> hbmkpost.bat
       Please update your environment if you used this feature.
       INCOMPATIBLE.

   * make_vcce.bat
     ! Adjusted to latest change.

   * make_gnu.bat
     * Minor formatting.
2008-08-27 23:21:25 +00:00
Viktor Szakats
ec88209762 2008-08-28 01:14 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_b32.bat
   * make_vc.bat
     ! Made makefile name independent of the HB_CC_NAME envvar.
       NOTE: If this poses a limitation for someone, please shout, 
             we may add an additional variable to control/override 
             makefile name (but it cannot directly depend on 
             HB_CC_NAME now that make_vc.mak and make_vcce.mak 
             got merged.)
2008-08-27 23:14:54 +00:00
Viktor Szakats
0efb91321b 2008-08-27 21:56 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
+ config/w32/poccce.cf
     + Added POCC GNU make file for WinCE.
       It has quite some errors yet.
2008-08-27 20:03:46 +00:00
Viktor Szakats
a8fe14c2d5 2008-08-27 21:30 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_vcce.bat
     ! Fixed.

   * contrib/rddads/make_vc.bat
     ! Undone previous modification. Quotes are needed to support 
       dirs containing spaces (this is actually the case for the 
       default install dir of ACE SDK).
       For very old MSVC compilers not understanding quotes 
       in -I (and possibly other) switches, pls specify the 
       external package #include directories directly through:
       set C_USR=-IC:\mypath\pkg\include
       and so on. MSVC98 is a very old product and there is 
       probably no way to make all features of our build systems 
       100% compatible with it, but with this manual workaround, 
       it can properly work (until a recommended VC upgrade :).
2008-08-27 19:31:25 +00:00
Jean-Francois Lefebvre
6475e630a4 2008-08-27 17:05 UTC+0100 JF Lefebvre (Mafact) (jfl at mafact dot com) 2008-08-27 15:10:53 +00:00
Viktor Szakats
19ca803a4d 2008-08-27 12:05 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/compiler/hbcomp.c
     * Changed the default -gc generation mode for real.
2008-08-27 10:06:20 +00:00
Viktor Szakats
b4a932d5e5 One changed missed from previous modification. 2008-08-27 09:55:23 +00:00
Viktor Szakats
de16b749e3 2008-08-27 11:22 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/examples/rdddbt/dbfdbt1.c
   * contrib/gtalleg/gtalleg.c
   * contrib/gtwvg/gtwvg.c
   * contrib/hbbmcdx/bmdbfcdx.c
   * contrib/hbbtree/hb_btree.c
   * contrib/hbct/ctwin.c
   * contrib/rddads/ads1.c
   * source/codepage/cp_tpl.c
   * source/codepage/cpbg866.c
   * source/codepage/cpbgiso.c
   * source/codepage/cpbgmik.c
   * source/codepage/cpbgwin.c
   * source/codepage/cpcs852.c
   * source/codepage/cpcsiso.c
   * source/codepage/cpcskam.c
   * source/codepage/cpcswin.c
   * source/codepage/cpde850.c
   * source/codepage/cpdeiso.c
   * source/codepage/cpdewin.c
   * source/codepage/cpel737.c
   * source/codepage/cpelwin.c
   * source/codepage/cpes850.c
   * source/codepage/cpesmwin.c
   * source/codepage/cpeswin.c
   * source/codepage/cpfr850.c
   * source/codepage/cphr1250.c
   * source/codepage/cphr437.c
   * source/codepage/cphr852.c
   * source/codepage/cphu852.c
   * source/codepage/cphu852s.c
   * source/codepage/cphuiso.c
   * source/codepage/cphuisos.c
   * source/codepage/cphuwin.c
   * source/codepage/cphuwins.c
   * source/codepage/cpit437.c
   * source/codepage/cpit850.c
   * source/codepage/cpitisb.c
   * source/codepage/cpitiso.c
   * source/codepage/cpltwin.c
   * source/codepage/cppl852.c
   * source/codepage/cppliso.c
   * source/codepage/cpplmaz.c
   * source/codepage/cpplwin.c
   * source/codepage/cppt850.c
   * source/codepage/cpptiso.c
   * source/codepage/cpru866.c
   * source/codepage/cpruiso.c
   * source/codepage/cprukoi.c
   * source/codepage/cpruwin.c
   * source/codepage/cpsk852.c
   * source/codepage/cpskiso.c
   * source/codepage/cpskkam.c
   * source/codepage/cpskwin.c
   * source/codepage/cpsl437.c
   * source/codepage/cpsl852.c
   * source/codepage/cpsliso.c
   * source/codepage/cpslwin.c
   * source/codepage/cpsrwin.c
   * source/codepage/cpsv850.c
   * source/codepage/cpsvclip.c
   * source/codepage/cpsvwin.c
   * source/codepage/cptr857.c
   * source/codepage/cptrwin.c
   * source/codepage/cpua866.c
   * source/codepage/cpuakoi.c
   * source/codepage/cpuawin.c
   * source/lang/msg_tpl.c
   * source/lang/msgbe866.c
   * source/lang/msgbewin.c
   * source/lang/msgbg866.c
   * source/lang/msgbgiso.c
   * source/lang/msgbgmik.c
   * source/lang/msgbgwin.c
   * source/lang/msgca.c
   * source/lang/msgcs852.c
   * source/lang/msgcsiso.c
   * source/lang/msgcskam.c
   * source/lang/msgcswin.c
   * source/lang/msgde.c
   * source/lang/msgdewin.c
   * source/lang/msgel.c
   * source/lang/msgelwin.c
   * source/lang/msgeo.c
   * source/lang/msges.c
   * source/lang/msgeswin.c
   * source/lang/msgeu.c
   * source/lang/msgfr.c
   * source/lang/msggl.c
   * source/lang/msghe862.c
   * source/lang/msghewin.c
   * source/lang/msghr437.c
   * source/lang/msghr852.c
   * source/lang/msghriso.c
   * source/lang/msghrwin.c
   * source/lang/msghu852.c
   * source/lang/msghucwi.c
   * source/lang/msghuiso.c
   * source/lang/msghuwin.c
   * source/lang/msgid.c
   * source/lang/msgis850.c
   * source/lang/msgit.c
   * source/lang/msgko.c
   * source/lang/msgltwin.c
   * source/lang/msgnl.c
   * source/lang/msgpl852.c
   * source/lang/msgpliso.c
   * source/lang/msgplmaz.c
   * source/lang/msgplwin.c
   * source/lang/msgpt.c
   * source/lang/msgro.c
   * source/lang/msgru866.c
   * source/lang/msgrukoi.c
   * source/lang/msgruwin.c
   * source/lang/msgsk852.c
   * source/lang/msgskiso.c
   * source/lang/msgskkam.c
   * source/lang/msgskwin.c
   * source/lang/msgsl437.c
   * source/lang/msgsl852.c
   * source/lang/msgsliso.c
   * source/lang/msgslwin.c
   * source/lang/msgsr852.c
   * source/lang/msgsriso.c
   * source/lang/msgsrwin.c
   * source/lang/msgtr857.c
   * source/lang/msgtrwin.c
   * source/lang/msgua866.c
   * source/lang/msguakoi.c
   * source/lang/msguawin.c
   * source/lang/msgzhb5.c
   * source/lang/msgzhgb.c
   * source/pp/pplib3.c
   * source/rdd/dbf1.c
   * source/rdd/dbfcdx/dbfcdx1.c
   * source/rdd/dbffpt/dbffpt1.c
   * source/rdd/dbfntx/dbfntx1.c
   * source/rdd/delim1.c
   * source/rdd/sdf1.c
   * source/rtl/gt_tpl/gt_tpl.c
   * source/rtl/gtcgi/gtcgi.c
   * source/rtl/gtcrs/gtcrs.c
   * source/rtl/gtdos/gtdos.c
   * source/rtl/gtgui/gtdef.c
   * source/rtl/gtgui/gtgui.c
   * source/rtl/gtos2/gtos2.c
   * source/rtl/gtpca/gtpca.c
   * source/rtl/gtsln/gtsln.c
   * source/rtl/gtstd/gtstd.c
   * source/rtl/gttrm/gttrm.c
   * source/rtl/gtxwc/gtxwc.c
     ! Fix for MSVC 64-bit C mode startup procedure.
2008-08-27 09:38:54 +00:00
Viktor Szakats
b7af6baf80 2008-08-27 03:57 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmake/hbmake.prg
     ; Applied patches made by Bill Robertson. (Thanks!)
     % Removed Function C( STRING ) as it was only used in the function, 
       Attention(), to center a line on the screen.
     % Removed Static Function IsWin() since it wasn't being used.
     ! Replace all remaining calls to hb_OSNewLine() with s_cEOL.
     ! Changed some calls from OutStd() to OutErr() since they were 
       essentially errors mesages.
     % Replaced some long series of FWrite()s with a single FWrite() 
       where convientent so I could see what was being written to 
       the makefile easier.
     ! Replaced some comparisons from '=' to '=='.
2008-08-27 02:00:15 +00:00
Viktor Szakats
7066d1f40b Minor cleanup to _MSC_VER comment 2008-08-27 01:12:27 +00:00
Viktor Szakats
e433d7ff4b 2008-08-27 02:47 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/filesys.c
     ! Disabled hb_fsPOpen() body for __CYGWIN__.
       This way __CYGWIN__ compiles cleanly.
       (although I'm not sure how important Cygwin support is)
2008-08-27 00:48:03 +00:00
Viktor Szakats
d741d2d955 Restored previous 'minor formatting's 2008-08-26 23:48:47 +00:00
Viktor Szakats
59310e6115 2008-08-27 01:46 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/hbinet.c
     ! Bad workaround for the '__WSAFDIsSet unresolved' problem 
       in Pelles C 5.00.13 AMD64 mode, to make final executables 
       link at all. Some hbinet.c features (or the whole module) 
       won't properly work though.
       This possible bug has been reported on the Pellec C forums:
       http://forum.pellesc.de/index.php?topic=2590.0
2008-08-26 23:46:58 +00:00
Viktor Szakats
412a855ee7 Comment added to previously added POCC workaround. 2008-08-26 23:28:56 +00:00
Viktor Szakats
fd4c743825 2008-08-27 00:54 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/hbinit.h
   * source/rtl/gtwin/gtwin.c
   * source/rtl/gtwvt/gtwvt.c
   * source/compiler/genc.c
     + Enabled init functions for MSVC 64-bit in C mode.
     ; NOTE: You get the idea, please comment. If there is 
             no simpler/easier/shorter way to achieve this, 
             I'll update the rest 150 files, too.
2008-08-26 23:03:56 +00:00
Viktor Szakats
aec59c21e9 2008-08-26 22:41 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/gtalleg/Makefile
     * Excluded for POCC and XCC.

   * contrib/gtalleg/ssf.h
     ! Setting platform before include Allegro headers.
       (I'm not sure this is necessary for all platforms, 
       but it surely is for BCC and MinGW).

   * contrib/gtwvg/gtwvg.h
     ! __MINGW__ -> __MINGW32__. __MINGW__ is not #defined by MinGW.
2008-08-26 20:42:46 +00:00
Viktor Szakats
88acfc5661 2008-08-26 22:23 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbct/atnum.c
     ! Workaround for PelleC 5.00.1 bug in AMD64 mode.
       'fatal error: Internal error: reduce_tree()'
       I didn't test if it actually works, but at least now 
       is compiles.
       Bug reported on Pelles C forum.
2008-08-26 20:24:13 +00:00
Viktor Szakats
d2f974642f 2008-08-26 22:13 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/common/hbver.c
     * hb_verCompiler() buffer size cleanup.

   * source/rtl/hbinet.c
     * Minor formatting.

   * utils/hbmake/hbmake.prg
     * PRG -> .prg on some screen messages.

   * config/w32/xcc.cf
   * config/w32/pocc.cf
     + Added ws2_32.lib. Didn't solve the problem, but 
       as per MS docs of some functions we use, we should 
       use this instead of wsock2 (everywhere actually) 
       [and ws2 instead of winsock for WinCE]. Someone pls 
       correct me if I'm wrong, or if there is any reason 
       we're using both and/or the older one?

   * config/w32/pocc.cf
     - Removed C switch -Zx (Enable Pelles C extensions).
       We don't need this.
2008-08-26 20:15:41 +00:00
Viktor Szakats
2cce45bb1c 2008-08-26 15:14 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/common/hbver.c
     + Show bitness for all (non-DJGPP) compilers.
     ! Fixed to show "Windows Server 2003 / XP x64" when 
       Windows 5.2 is detected.
2008-08-26 13:15:04 +00:00
Viktor Szakats
c7200cdcf7 2008-08-26 13:24 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/compiler/hbmain.c
     ! Text casing fixed in some warning messages.
     ! Attempted to update hardcoded declarations for TGET methods.
       Some of the were removed, for some of them the parameter list 
       was updated to be in sync with current tget.prg.

   * contrib/gtalleg/gtalleg.c
   * contrib/gtwvg/gtwvg.c
   * contrib/hbbmcdx/bmdbfcdx.c
   * contrib/hbbmcdx/hbbmcdx.h
   * contrib/hbbtree/hb_btree.c
   * contrib/hbct/ctnet.c
   * contrib/hbct/ctstrfil.c
   * contrib/hbct/ctwin.c
   * contrib/hbcurl/hbcurl.c
   * contrib/hbgd/gdwrp.c
   * contrib/hbmzip/hbmzip.c
   * contrib/hbnf/fttext.c
   * contrib/hbtip/utils.c
   * contrib/xhb/freadlin.c
   * contrib/xhb/hbxml.c
   * contrib/xhb/hbxml.h
   * doc/codestyl.txt
   * doc/en/garbage.txt
   * doc/en/hb_apifs.txt
   * include/hbapigt.h
   * include/hbchksum.h
   * include/hbdbsort.h
   * include/hbgtcore.h
   * include/hbrddcdx.h
   * include/hbrdddbf.h
   * include/hbrdddel.h
   * include/hbrddntx.h
   * include/hbrddsdf.h
   * include/hbset.h
   * include/hbsxfunc.h
   * source/rdd/dbf1.c
   * source/rdd/dbfcdx/dbfcdx1.c
   * source/rdd/dbffpt/dbffpt1.c
   * source/rdd/dbfntx/dbfntx1.c
   * source/rdd/dbsql.c
   * source/rdd/hbsix/sxcompr.c
   * source/rdd/hbsix/sxsem.c
   * source/rdd/hsx/hsx.c
   * source/rtl/console.c
   * source/rtl/copyfile.c
   * source/rtl/fssize.c
   * source/rtl/fstemp.c
   * source/rtl/gt_tpl/gt_tpl.c
   * source/rtl/gtapi.c
   * source/rtl/gtcgi/gtcgi.c
   * source/rtl/gtcrs/gtcrs.c
   * source/rtl/gtdos/gtdos.c
   * source/rtl/gtos2/gtos2.c
   * source/rtl/gtpca/gtpca.c
   * source/rtl/gtsln/gtsln.c
   * source/rtl/gtstd/gtstd.c
   * source/rtl/gttrm/gttrm.c
   * source/rtl/gtwin/gtwin.c
   * source/rtl/gtwvt/gtwvt.c
   * source/rtl/gtxwc/gtxwc.c
   * source/rtl/hbgtcore.c
   * source/rtl/hbmd5.c
   * source/rtl/isprint.c
   * source/rtl/memofile.c
   * source/rtl/philes.c
   * source/rtl/set.c
   * source/vm/memvars.c
   * source/vm/runner.c
   * utils/hbdoc/hbdfrdln.c
   * utils/hbmake/hbmfrdln.c
     * FHANDLE -> HB_FHANDLE
     * hbct: HB_ITEM_PTR -> PHB_ITEM
2008-08-26 11:33:03 +00:00
Przemyslaw Czerpak
9768614ed1 2008-08-26 12:50 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/compiler/hbmain.c
    ! reset class and functions static declarations to avoid GPF
      when more then one file is compiled with -w3 switch
      NOTE: Whole this code will have to be removed and written
            from scratch
2008-08-26 10:50:29 +00:00
Przemyslaw Czerpak
15e1a4cf73 2008-08-26 11:57 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/compiler/hbmain.c
    ! fixed GPF when more then one file was compiled with -w3 switch
2008-08-26 09:57:45 +00:00
Viktor Szakats
0004a67873 2008-08-26 10:35 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
- source/rtl/gtalleg
   + contrib/gtalleg
   * TODO
   * doc/dirstruc.txt
   * include/hbgtcore.h
   * contrib/gtalleg/Makefile
   * contrib/gtalleg/make_b32.bat
   * contrib/gtalleg/make_vc.bat
   * contrib/gtalleg/make_gcc.sh
   * contrib/make_b32_all.bat
   * contrib/make_vc_all.bat
   * contrib/make_gcc_all.sh
   * contrib/Makefile
   * config/hpux/gcc.cf
   * config/hpux/global.cf
   * config/darwin/gcc.cf
   * config/darwin/global.cf
   * config/dos/global.cf
   * config/linux/gcc.cf
   * config/linux/global.cf
   * config/sunos/gcc.cf
   * config/sunos/global.cf
   * config/bsd/gcc.cf
   * config/bsd/global.cf
   * config/w32/global.cf
   * harbour-ce-spec
   * harbour-w32-spec
   * harbour.spec
     * GTALLEG moved to contrib to make it possible to build 
       using the non-GNU make system, also to align the build 
       process with other 3rd party package dependent parts 
       of Harbour.
       HB_INC_ALLEGRO or HB_DIR_ALLEGRO may be used to point 
       to Allegro package directory. This is generally necessary 
       on non-*nix systems.
     ; NOTE: Review and test build processes and modified files, 
             and unmodified, but potentially related files:
             bin/hb-func.sh
             make_gnu.sh
             make_rpm.sh
             make_rpmce.sh
             make_rpmw32.sh
2008-08-26 08:51:11 +00:00
Viktor Szakats
afc82fc905 2008-08-26 09:00 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/hbsetup.h
     + Added small table (partly from MS KB) about _MSC_VER 
       values and MS product names, as we know them.

   * common.mak
   * utils/hbdoc/Makefile
   * utils/hbdoc/bld_b32.bat
   * utils/hbdoc/bld_vc.bat
   * utils/hbdoc/hbdoc.prg
   * utils/hbdoc/genasc.prg
   * utils/hbdoc/genchm.prg
   * utils/hbdoc/genhpc.prg
   * utils/hbdoc/genhtm.prg
   * utils/hbdoc/genng.prg
   * utils/hbdoc/genos2.prg
   * utils/hbdoc/genpdf1.prg
   * utils/hbdoc/genrtf.prg
   * utils/hbdoc/gentrf.prg
   - utils/hbdoc/rtf.prg
   - utils/hbdoc/os2.prg
   - utils/hbdoc/teeasc.prg
   - utils/hbdoc/ng.prg
   - utils/hbdoc/html.prg
   - utils/hbdoc/troff.prg
     ! Removed non-ASCII drawing chars from comments.
     % Removed STATIC var from THTML class.
     % Merged separate support classes to their gen*.prg.
2008-08-26 07:01:56 +00:00
Viktor Szakats
1b9c4e7386 2008-08-26 08:10 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmake/hbmake.prg
     ! Some liblists synced with xhb / hbmake.
2008-08-26 06:11:14 +00:00
Viktor Szakats
fae2a5f489 2008-08-26 02:43 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/xhb/hbcrypt.c
   * contrib/hbw32/tprinter.c
   * contrib/hbw32/w32_ole.c
   * contrib/hbw32/w32_prn.c
   * contrib/hbfbird/tests/testapi.c
   * contrib/hbziparch/hbziparc.c
   * contrib/hbziparch/hbzipnew.cpp
   * contrib/hbhpdf/harupdf.c
   * contrib/hbfimage/fi_winfu.c
   * contrib/hbfimage/fi_wrp.c
   * contrib/hbgf/hbgfw32/win32.c
   * contrib/hbgf/hbgfos2/os2pm.c
   * source/rtl/filesys.c
   * utils/hbtest/rt_miscc.c
     * // -> ANSI comments.
     ; NOTE: hbwhat32 and gtwvg remain with //.
2008-08-26 00:45:47 +00:00