Commit Graph

105 Commits

Author SHA1 Message Date
Viktor Szakats
21baf7c58a 2009-02-22 22:39 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_vc.mak
    ! Added workaround for WinCE mode.

  * config/win/msvcce.cf
    ! Fixed cl name when building with older MSVC version.
2009-02-22 21:39:32 +00:00
Viktor Szakats
1678cba2c9 2009-02-17 16:40 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
   * make_vc.mak
   * common.mak
   + bin/hbmk.bat
   * utils/hbmk/Makefile
   - utils/hbmk/hbmk.prg
   + utils/hbmk/hbmk2.prg
    + Renamed hbmk to hbmk2 to avoid collision with hbmk script,
      and to allow parallel testing.
    + Readded hbmk.bat to redirect to hbmk2.exe.
      This will be removed in the future. Win9x/OS/2 isn't 
      supported with this batch file.
2009-02-17 15:36:34 +00:00
Viktor Szakats
f12473a73f 2009-02-17 02:18 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
    - Deleted hbmk*.bat references.
2009-02-16 01:22:49 +00:00
Viktor Szakats
0bbab2a284 2009-02-17 00:40 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* common.mak
  * make_b32.mak
  * make_vc.mak
  * make_gcc.mak
  * utils/Makefile
  - utils/hbmake
    - Removed hbmake from repository.
2009-02-15 23:40:18 +00:00
Viktor Szakats
f7289cf019 2009-02-14 13:17 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
  * make_gcc.mak
  * common.mak
  * utils/Makefile
    + Added hbmk to make systems.

  * utils/hbmk/hbmk.prg
    + Update. Second pass, it's now ready for testing. I've
      only tried with BCC yet.
      Please test and if possible update internal setup
      for various platforms/compilers.
2009-02-14 12:18:24 +00:00
Viktor Szakats
eefe474f98 2009-02-08 18:06 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.c
    * BYTE -> CHAR (Windows)

  * contrib/hbct/ctwin.c
  * contrib/hbct/ctwin.h
    + Added hb_ctwGetPosWindows() to find out which window
      is visible on a given physical screen coordinate.

  * make_b32.mak
  * make_gcc.mak
  * make_vc.mak
    * Formatting.

  * include/hbdefs.h
    + Added type HB_COLOR to replace current BYTE.
    * Minor formatting.

  * contrib/rddsql/sddfb/make_b32.bat
  * contrib/rddsql/sddfb/make_vc.bat
  * contrib/rddsql/sddmy/make_b32.bat
  * contrib/rddsql/sddmy/make_vc.bat
  * contrib/rddsql/sddpg/make_b32.bat
  * contrib/rddsql/sddpg/make_vc.bat
    * Minor cleanup.

  * source/vm/hvm.c
  * source/vm/memvars.c
    * Added varnames to prototypes.
2009-02-08 17:07:38 +00:00
Viktor Szakats
a341b29acd 2009-02-06 23:47 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* common.mak
  * harbour-wce-spec
  * harbour-win-spec
  * harbour.spec
  * make_b32.bat
  * make_b32.mak
  * make_gcc.mak
  * make_gcc.sh
  * make_gnu.bat
  * make_gnu.sh
  * make_gnu_os2.cmd
  * make_gnu_xmingw.sh
  * make_gnu_xmingwce.sh
  * make_vc.bat
  * make_vc.mak
  * mpkg_tgz.sh
  * bin/hb-func.sh
  * bin/hb-mkslib.sh
  * bin/hbmk.bat
  * bin/hbmk_os2.cmd
  * bin/postinst.sh
  * config/bin.cf
  * config/bsd/gcc.cf
  * config/darwin/gcc.cf
  * config/dos/bcc16.cf
  * config/dos/djgpp.cf
  * config/dos/owatcom.cf
  * config/dos/rsx32.cf
  * config/hpux/gcc.cf
  * config/lib.cf
  * config/linux/gcc.cf
  * config/linux/owatcom.cf
  * config/os2/gcc.cf
  * config/os2/icc.cf
  * config/rules.cf
  * config/sunos/gcc.cf
  * config/win/bcc32.cf
  * config/win/dm.cf
  * config/win/gcc.cf
  * config/win/icc.cf
  * config/win/mingw.cf
  * config/win/mingwce.cf
  * config/win/msvc.cf
  * config/win/msvcce.cf
  * config/win/owatcom.cf
  * config/win/pocc.cf
  * config/win/pocc64.cf
  * config/win/poccce.cf
  * config/win/rsxnt.cf
  * config/win/xcc.cf
  * contrib/gtalleg/Makefile
  * contrib/hbapollo/Makefile
  * contrib/hbcurl/Makefile
  * contrib/hbfbird/Makefile
  * contrib/hbfimage/Makefile
  * contrib/hbgd/Makefile
  * contrib/hbgd/tests/hbmk_b32.bat
  * contrib/hbgd/tests/hbmk_vc.bat
  * contrib/hbgf/hbgfgtk/Makefile
  * contrib/hbhpdf/Makefile
  * contrib/hbmysql/Makefile
  * contrib/hbodbc/Makefile
  * contrib/hbpgsql/Makefile
  * contrib/hbssl/Makefile
  * contrib/hbtip/ChangeLog
  * contrib/hbwhat/Makefile
  * contrib/hbwhat/tests/hbmk_b32.bat
  * contrib/hbwhat/tests/hbmk_vc.bat
  * contrib/mtpl_b32.bat
  * contrib/mtpl_b32.mak
  * contrib/mtpl_gcc.mak
  * contrib/mtpl_gcc.sh
  * contrib/mtpl_vc.bat
  * contrib/mtpl_vc.mak
  * contrib/rddads/Makefile
  * contrib/rddsql/sddfb/Makefile
  * contrib/rddsql/sddmy/Makefile
  * contrib/rddsql/sddpg/Makefile
  * doc/es/tracing.txt
  * doc/gmake.txt
  * doc/tracing.txt
  * include/hbapi.h
  * source/main/harbour.c
  * source/pp/hbpp.c
  * source/rdd/dbffpt/Makefile
  * source/vm/cmdarg.c
  * source/vm/Makefile
  * source/vm/vmmt/Makefile
  * tests/multifnc/Makefile
  * tests/testid.prg
  * utils/hbdoc/Makefile
  * utils/hbi18n/Makefile
  * utils/hbmake/hbmake.prg
  * utils/hbmake/Makefile
  * utils/hbrun/Makefile
  * utils/hbtest/Makefile
    * Renamed remaining build configration envvars:
      - PRG_USR -> HB_USER_PRGFLAGS
      - C_USR   -> HB_USER_CFLAGS
      - L_USR   -> HB_USER_LDFLAGS
      - A_USR   -> HB_USER_AFLAGS
      - MK_USR  -> HB_USER_MAKEFLAGS
      (finally settled with HB_USER* instead of HB_USR*,
      this also means that HB_USER_LIBS was kept unchanged.)
    ; Please update your environment.
      You may use these commands to make it easy:
      gsar -o -sPRG_USR -rHB_USER_PRGFLAGS  *
      gsar -o -sC_USR   -rHB_USER_CFLAGS    *
      gsar -o -sL_USR   -rHB_USER_LDFLAGS   *
      gsar -o -sA_USR   -rHB_USER_AFLAGS    *
      gsar -o -sMK_USR  -rHB_USER_MAKEFLAGS *
2009-02-06 23:15:37 +00:00
Viktor Szakats
b9faa70ee8 2009-02-04 23:00 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/hb-func.sh
  * bin/hb-mkslib.sh
  * bin/hbmk.bat
  * bin/hbmk_b32.bat
  * bin/hbmk_vc.bat
  * bin/pack_src.sh
  * bin/postinst.bat
  * contrib/examples/uhttpd/modules/bldhrb.bat
  * contrib/gtwvg/Makefile
  * contrib/hbct/ctflist.txt
  * contrib/hbgf/hbgfwin/Makefile
  * contrib/hbgf/Makefile
  * contrib/hbodbc/Makefile
  * contrib/hbole/Makefile
  * contrib/hbtpathy/Makefile
  * contrib/hbwhat/Makefile
  * contrib/hbwin/Makefile
  * contrib/make_gcc_all.sh
  * contrib/mtpl_b32.mak
  * contrib/mtpl_gcc.mak
  * contrib/mtpl_gcc.sh
  * contrib/mtpl_vc.mak
  * doc/dirstruc.txt
  * doc/es/dirstruc.txt
  * doc/funclist.txt
  * doc/gmake.txt
  * harbour-wce-spec
  * harbour-win-spec
  * make_b32.mak
  * make_gcc.mak
  * make_gcc.sh
  * make_gnu.bat
  * make_gnu.sh
  * make_gnu_xmingw.sh
  * make_gnu_xmingwce.sh
  * make_vc.mak
  * Makefile
  * mpkg_tgz.sh
  * source/vm/Makefile
  * source/vm/vmmt/Makefile
  - config/w32
  + config/win
    * HB_ARCHITECTURE w32 -> win transition. Pass 1.
2009-02-04 22:02:35 +00:00
Przemyslaw Czerpak
93fab23315 2009-01-21 17:52 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/common.mak
  * harbour/source/rtl/Makefile
  - harbour/source/rtl/hbi18n.c
  + harbour/source/rtl/hbi18n1.c
    * renamed hbi18n.c to hbi18n1.c to avoid conflicts with hbi18n
      program - non GNU make files needs unique file names
    ! fixed bug in internal function __I18N_HASHTABLE()

  * harbour/common.mak
  * harbour/source/rtl/Makefile
  + harbour/source/rtl/hbi18n2.prg
    + added new I18N functions to manage .pot files and generate .hbl ones.
      public functions:
      HB_I18N_loadPot( <cFile>, [<pI18N>] [, @<cErrorMsg>] ) -> <pI18N> | NIL
         Reads .pot file and returns Harbour translation set or NIL when
         error appears. In such case <cErrorMsg> is contains error message
         string. If second parameter [<pI18N>] is given then translation
         items read from .pot file are added to this set. Otherwise new
         Harbour translation set is created.
      HB_I18N_savePot( <cFile>, <pI18N> [, @<cErrorMsg>] ) -> <lSuccess>
         Generates .pot file from Harbour translation set. Please note
         that Harbour translation set does not contain additional
         information which exists in original .pot files like source
         code numbers or alternative plural forms.
      internal functions for Harbour developers which will work on I18N
      tools:
      __I18N_potArrayLoad( <cFile> [, @<cErrorMsg>] ) -> <aTrans> | NIL
         Reads .pot file and returns array with translation items or
         NIL when error appears. In such case <cErrorMsg> is contains
         error message string.
         <aTrans> is an array with translation items containing additional
         informations from .pot file which are not necessary in final
         translation sets used at runtime. It's designed for I18N tools
         written in Harbour to manage .pot files and/or create .hbl ones.
      __I18N_potArraySave( <cFile>, <aTrans> [, @<cErrorMsg>] ) -> <lSuccess>
         Generates .pot file from array with translations items.
      __I18N_potArrayJoin( <aTrans>, <aTrans2> ) -> <aTrans>
         Join two arrays with translation items. Items from <aTrans2>
         are added to <aTrans>. If given translation item already exists
         in <aTrans> (the same msgctxt and msgid) then source code references
         are merged and translations from <aTrans2> are added only if
         <aTrans> does not have it.
      __I18N_potArrayToHash( <aTrans>, [<lEmpty>] [, <hI18N>] ) -> <hI18N>
         Converts array with translation items to hash table in the format
         used internally by Harbour translation sets. It's the same format
         as used __I18N_hashTable() function. The conversion removes data
         which is not necessary for runtime translations like source code
         references or alternative source plural forms.
         If second parameter <hI18N> is given then translation items form
         <aTrans> are added to it. Otherwise new hash table with is created.
         If <lEmpty> is .T. then also items with empty translation are added
         but source strings are used instead of missing destination ones.

  * harbour/include/hbextern.ch
    + added new I18N functions

  * harbour/harbour-win-spec
  * harbour/harbour-wce-spec
  * harbour/harbour.spec
  * harbour/mpkg_tgz.sh
  * harbour/make_b32.mak
  * harbour/make_vc.mak
  * harbour/make_gcc.mak
  * harbour/common.mak
  * harbour/utils/Makefile
  + harbour/utils/hbi18n
  + harbour/utils/hbi18n/hbi18n.prg
  + harbour/utils/hbi18n/Makefile
    + added very simple application to manage .pot/.hbl files
      Syntax: hbi18n -m | -g [-o<outfile>] [-e] [-q] <files1[.pot] ...>
         -m             merge given .pot files
         -g             generate .hbl file from given .pot files
         -o<outfile>    output file name
                        default is first .pot file name with
                        .po_ (merge) or .hbl extension
         -e             do not strip empty translation rules from .hbl files
         -q             quiet mode

      TODO: extend it and add support for interactive mode which will
            allow to edit translations.
2009-01-21 16:49:03 +00:00
Francesco Saverio Giudice
1ab68f54c7 2009-01-15 23:08 UTC+0100 Francesco Saverio Giudice (info/at/fsgiudice.com)
* harbour/common.mak
  * harbour/config/global.cf
  * harbour/harbour-wce-spec
  * harbour/harbour-win-spec
  * harbour/harbour.spec
  * harbour/make_b32.bat
  * harbour/make_b32.mak
  * harbour/make_gcc.mak
  * harbour/make_vc.mak
    * Added hbuddall library to standard make files
      ; NOTE: hbuddall contains all USR RDDS files in
              harbour/source/rdd/usrrdd/rdds/*
              Viktor pls check me.

  * harbour/source/rdd/usrrdd/rdds/arrayrdd.prg
  * harbour/source/rdd/usrrdd/rdds/fcomma.prg
  * harbour/source/rdd/usrrdd/rdds/hscdx.prg
  * harbour/source/rdd/usrrdd/rdds/logrdd.prg
    * fixed assigned but unused variable
2009-01-15 22:09:30 +00:00
Przemyslaw Czerpak
c2a1acc14c 2009-01-05 13:33 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbgtcore.h
  * harbour/source/rtl/hbgtcore.c
    * changed BYTE bClearColor to USHORT uiClearColor


  The following modifications were made by Viktor Szakats,
  (2008-11-22 16:15 UTC+0100 - 2008-12-19 12:56 UTC+0100)
  Many thanks. It's the first part without CP conversions in OS calls which
  I will want to check yet. Please tests MS-Windows only modifications.

  * harbour/make_vc.mak
  * harbour/contrib/mtpl_vc.mak
    + Added support for A_USR.

  * harbour/include/set.ch
  * harbour/include/hbextern.ch
  * harbour/source/vm/cmdarg.c
  * harbour/source/vm/set.c
  * harbour/source/rtl/tgetlist.prg
  * harbour/source/rtl/gete.c
  * harbour/contrib/hbhpdf/harupdf.c
    * formatting

  * harbour/source/rtl/hbffind.c
    * Changed few places to use sizeof() instead of
      explicit size macro.

  * harbour/source/vm/extrap.c
    + Added module listing. (also supports Win64)

  * harbour/source/common/hbver.c
    + Added Intel C compiler detection. (from xhb)
    + Added Wine detection (unofficial but stable looking
      detection method. There intentionally doesn't exist
      an official method to do this detection, yet there
      are cases when this is necessary. It's also essential
      for error reports.)
      See also:
      http://www.mail-archive.com/wine-devel@winehq.org/msg48659.html

  * harbour/source/common/hbfopen.c
    ! Reverted recent change to use fopen_s(). fopen_s()
      will always open in exclusive mode, so it could create
      incompatibilities.

  * harbour/source/codepage/cpbgmik.c
    ! Fixed BGMIK collation encoding. Someone familiar with
      BG CPs please confirm this, but previously it was
      almost certainly broken, as the collation was identical
      to BG866.

  * harbour/source/rtl/diskspac.c
  * harbour/source/rtl/disksphb.c
    ! GetModuleHandleA() -> GetModuleHandle()
    ; NOTE: GetModuleHandleA() WinCE emulation in
            source/common/wince.c might be unnecessary
            after this change.

  * harbour/source/rtl/memoedit.prg
  * harbour/source/rtl/teditor.prg
    ! Cleaned insert handling. It now won't anymore mess up
      the cursor on instantiation (in New() method). Internal
      :lInsert state replaced by Set( _SET_INSERT ). Cursor
      is only touched in the editing loop.

  * harbour/source/rtl/version.c
    ! HB_VERSION( HB_VERSION_BUILD_DATE ): Fixed month
      being off by one.

  * harbour/contrib/hbmzip/hbmzip.c
    ! Fixed typo which caused timestamps stored in .zip files
      to be wrong.

  * harbour/contrib/hbhpdf/tests/harupdf.prg
    ! Minor typo in code.

  * harbour/contrib/rddads/rddads.h
    + Added detection for ACE 9.10.

  * harbour/contrib/hbtip/sendmail.prg
    ! Stricter parameter checking in hb_SendMail().

  * harbour/contrib/examples/dbu/hb_dbu.dif
    + Added SET DATE ANSI and SET CENTURY ON

  * harbour/source/rtl/gtxwc/gtxwc.c
    + Generating HB_K_RESIZE keystrokes on screen resize.
      This way it's working similarly to gtwvt.
    ! Typos in comments.

  * harbour/source/rtl/gtwin/gtwin.c
    ! Fixed HB_GTI_KBDSHIFTS not working in console mode.
      Replaced GetKeyboardState() call with GetKeyState() calls.

  * harbour/source/rtl/gtwvt/gtwvt.c
    + Added 'layered' window support. It's enabled on W2K
      and above (and only when not in Terminal Services
      environment, because it makes it perform worse). This
      way the screen is also properly displayed regardless
      of what the Harbour application does. It also fixes
      numerous paint artifacts, when GTWVT window was in
      the background and another window is moved in front
      of it.
    ! Fixed only generate HB_K_RESIZE keystrokes when
      resize mode is HB_GTI_RESIZEMODE_ROWS.
2009-01-05 12:31:02 +00:00
Przemyslaw Czerpak
290c194483 2008-12-24 09:45 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
+ harbour/include/hbrddnsx.h
  + harbour/source/rdd/dbfnsx
  + harbour/source/rdd/dbfnsx/dbfnsx1.c
  + harbour/source/rdd/dbfnsx/Makefile
  * harbour/config/global.cf
  * harbour/make_b32.mak
  * harbour/make_vc.mak
  * harbour/make_gcc.mak
  * harbour/common.mak
    + added new DBFNSX RDD. Those of you who knows SIX3 should also
      know NSX index format. It's very interesting format and in some
      cases much better then CDX. I hope you will find it interesting.
      In hbrddnsx.h you can find detail information about Harbour NSX
      implementation.
      It's a small gift from me for Christmas ;-)

      I would like to wish all of you Marry Christmas and Happy new Year.

      best regards,
      Przemek
2008-12-24 08:43:07 +00:00
Viktor Szakats
a883092600 2008-11-19 13:51 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* common.mak
  * make_b32.mak
  * make_gcc.mak
  * make_vc.mak
    * Smoothened the difference between HARBOURFLAGS and 
      HARBOURFLAGSDLL under the name HARBOURFLAGSLIB.
      Now all core .prg modules will be compiled with -n1 
      Harbour switch. This also means double compilation 
      of .prg modules for static/dynamic libs could be 
      optimized out as the object files are the same in 
      both modes.
      TODO: Make -n1 switch unnecessary.

  * contrib/mtpl_gcc.mak
    + Added -n1 to HARBOURFLAGS. This way Harbour functions 
      in libs will never be considered as entry points in 
      executables or when any such module is built as dynamic 
      lib in the future.

  * contrib/make_gcc_all.sh
    * Minor formatting.
2008-11-19 13:10:13 +00:00
Viktor Szakats
a3c411b23f 2008-11-15 01:43 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
  * contrib/mtpl_b32.mak
  * contrib/mtpl_vc.mak
    * Minor fix.

  * contrib/hbcurl/make_b32.bat
  * contrib/hbcurl/make_vc.bat
  * contrib/hbcurl/Makefile
    - Removed recently added HB_HBCURL_USR_C.

  * contrib/gtwvg/tests/demowvg.prg
    * Replaced '#if __MW__' with 'IF hb_vmmt()'.
      (not tested)

  * contrib/gtwvg/tests/hbmk_b32.bat
  * contrib/gtwvg/tests/hbmk_vc.bat
    ! Added hbwin.lib to HB_USER_LIBS list.

  * contrib/gtwvg/gtwvg.c
  * contrib/gtwvg/wvgclass.prg
  * contrib/gtwvg/wvgax.prg
  * contrib/gtwvg/wvgphdlr.prg
  * contrib/gtwvg/wvgpaint.prg
  * contrib/gtwvg/wvgcore.c
  * contrib/gtwvg/wvgwin.c
  * contrib/gtwvg/wvgwnd.prg
  * contrib/gtwvg/wvgcrt.prg
  * contrib/gtwvg/wvgutils.c
  * contrib/gtwvg/wvgsink.c
    ! SVN IDs missing, mistyped. SVN tags now reset.
    ; TOFIX: GTWVG is now broken with MSVC 8 and/or C++ and/or 64-bit modes, 
             also unsafe string function is used:
             - strcat() should be hb_strncat().
             - Usual but wrong HRESULT to ULONG conversions break in 64-bit.
             - Some newest Windows features should be probably guarded.
      .\gtwvg.c(1913) : warning C4013: 'TrackMouseEvent' undefined; assuming extern returning int
      .\gtwvg.c(3205) : error C2065: 'WS_EX_LAYERED' : undeclared identifier
      .\wvgsink.c(128) : warning C4244: 'return' : conversion from 'HB_THREAD_NO' to 'int', possible loss of data
      .\wvgsink.c(339) : warning C4245: 'return' : conversion from 'HRESULT' to 'ULONG', signed/unsigned mismatch
      .\wvgsink.c(352) : warning C4245: 'return' : conversion from 'HRESULT' to 'ULONG', signed/unsigned mismatch
      .\wvgsink.c(368) : warning C4245: 'return' : conversion from 'HRESULT' to 'ULONG', signed/unsigned mismatch
      .\wvgsink.c(392) : warning C4245: 'return' : conversion from 'HRESULT' to 'ULONG', signed/unsigned mismatch
      .\wvgsink.c(455) : error C2039: 'n1' : is not a member of 'tagVARIANT'
      .\wvgsink.c(457) : error C2039: 'n1' : is not a member of 'tagVARIANT'
      .\wvgsink.c(460) : error C2039: 'n1' : is not a member of 'tagVARIANT'
      .\wvgsink.c(463) : error C2039: 'n1' : is not a member of 'tagVARIANT'
      .\wvgsink.c(466) : error C2039: 'n1' : is not a member of 'tagVARIANT'
      .\wvgsink.c(469) : error C2039: 'n1' : is not a member of 'tagVARIANT'
      .\wvgsink.c(472) : error C2039: 'n1' : is not a member of 'tagVARIANT'
      .\wvgsink.c(475) : error C2039: 'n1' : is not a member of 'tagVARIANT'
      .\wvgsink.c(633) : warning C4305: 'type cast' : truncation from 'HB_LONG' to 'device_interface *'
      .\wvgsink.c(652) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
2008-11-15 00:54:22 +00:00
Viktor Szakats
1a8f4b4f80 2008-11-14 19:55:16 +00:00
Viktor Szakats
7c7756a853 2008-11-12 19:11 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_b32.bat
  * make_b32.mak
  * make_vc.bat
  * make_vc.mak
  * make_gcc.mak
  * contrib/mtpl_b32.mak
  * contrib/mtpl_gcc.mak
  * contrib/mtpl_vc.mak
    + Added 'set HB_BUILD_OPTIM=no' option to disable 
      all C compiler optimization for all compilers in 
      non-GNU make system. This replaces old envvars 
      BCC_NOOPTIM and GCC_NOOPTIM and add MSVC support 
      for this option.

  * common.mak
    * Formatting.
2008-11-12 18:12:56 +00:00
Viktor Szakats
20b768bbce 2008-11-12 14:44 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_vc.mak
    + TOFIX added for the case when HB_CC_NAME is overridden 
      by user and MT/DLL targets are being created.

  * common.mak
  * source/common/hbver.c
    % Minor opts.
2008-11-12 13:45:27 +00:00
Viktor Szakats
bc980240ea 2008-11-12 12:13 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
  * common.mak
  * utils/hbdoc/Makefile
  * utils/hbmake/Makefile
  * utils/hbtest/Makefile
  * utils/hbrun/Makefile
    % Setup to build shipped Harbour executables with -gc0.
    ; TODO: Please update make_gcc.mak.

  * ChangeLog
    + Marked one change as [TOMERGE 1.0]
2008-11-12 11:34:50 +00:00
Viktor Szakats
1c58580a01 2008-11-11 13:30 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
    + hbmk.bat and hbmk_*.bat will now be installed on 'make*.bat install'
2008-11-11 12:57:42 +00:00
Viktor Szakats
3c1f2fdeb4 2008-11-11 13:16 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
  * ChangeLog
    ! Fixed MT mode .dll not starting up properly. IOW now 
      'hbmk -shared -mt' works. Relevant entries marked as 
      [DONE]

  * bin/hbmk.bat
    + Added '-debug' switch. Currently supported in BCC and MSVC.
2008-11-11 12:18:46 +00:00
Viktor Szakats
1eba9cf55f 2008-11-11 05:34 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
  * common.mak
  * bin/hbmk.bat
    + Added generation of MT harbour .dlls for BCC and MSVC.
    ; TOFIX: 'hbmk -shared -mt' doesn't seem to work, resulting 
             app simply exists for both BCC and MSVC.
    ; TODO: Please update make_gcc.mak.
2008-11-11 04:35:28 +00:00
Viktor Szakats
ff29cb14e2 2008-11-11 04:22 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
  * make_gcc.mak
  * common.mak
    * Changed dll and mt obj locations to reside inside the platform dir:
      obj/dll/* -> obj/*/dll
      obj/*_mt -> obj/*/mt
    + Added provisions for new obj location:
      obj/*/mt_dll
2008-11-11 03:22:56 +00:00
Viktor Szakats
0342c6c8da 2008-11-11 03:56 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
  * make_gcc.mak
  * common.mak
    + Added generation of hbmainstd and hbmainwin libs.

  * bin/hbmk.bat
    + Changed to use above libs. This also means that '-shared' 
      can now be used in Harbour binary distributions, too.
2008-11-11 02:58:14 +00:00
Viktor Szakats
9a28707aba 2008-11-11 02:35 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
  * make_gcc.mak
    + Added -DHB_TR_LEVEL_DEBUG C compiler option when 
      HB_BUILD_DEBUG=yes.

  * source/rtl/hbinet.c
    * Minor formatting.
2008-11-11 01:36:18 +00:00
Viktor Szakats
8f6aa8e802 2008-11-11 00:39 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
    ! Fixed linking hbtest-dll.exe with tracing enabled.

  * bin/hbmk.bat
    + Added '-shared' option.
    ; TOFIX: - '-shared' won't work in binary installations.
             - '-shared' cannot create MT apps.
             - '-shared' only works for BCC32 yet.

  - tests/hbmk_b32_dll.bat
    - Removed. Use 'hbmk_b32 -shared' instead.

  * source/rtl/treport.prg
    * Minor formatting.

  * make_b32.bat
  * make_vc.bat
  * common.mak
    * Changed default of HB_BUILD_DLL to 'yes'.
2008-11-10 23:44:17 +00:00
Viktor Szakats
3abe82bcc0 2008-11-09 17:44 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_vc.mak
  * config/rules.cf
  * config/w32/mingwce.cf
  * config/w32/poccce.cf
  * config/w32/msvcce.cf
    * Use Harbour option -gc0 for WinCE builds.
    * Use C option -O2 (instead of -O3) for MinGWCE builds.
    ; None of these were tested.
2008-11-09 16:45:26 +00:00
Viktor Szakats
0b765b9181 2008-11-09 16:00 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
    ! Added hbpp.lib and hbcommon.lib to HBRUN_DLL liblist.

  * include/hbapi.h
  * source/vm/cmdarg.c
  * source/common/hbver.c
  * source/common/hbverdsp.c
  * source/rtl/console.c
  * source/rtl/setcolor.c
  * source/rtl/setcurs.c
    + Added HB_EXPORT to some functions to make it possible 
      to build hbrun-dll.exe.
      For other reasons, it only works if Harbour built with 
      set C_USR=-DHB_DYNLIB.
    ; TODO: Make HB_DYNLIB the default build mode, do gradual 
            steps to remove separate DLL building pass, and 
            finally to remove HB_BUILD_DLL option.
            The only drawback will be about 10-100K 
            (currently) overhead in final executable size due 
            to included export table for BCC and MSVC builds.
2008-11-09 15:04:03 +00:00
Viktor Szakats
42732bfe70 2008-11-09 14:29 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
    + Added HBRUN_DLL.
    ; TOFIX: It doesn't work. Maybe more eyeballs will spot the 
             problem more easily.
2008-11-09 13:29:41 +00:00
Viktor Szakats
642efdc827 2008-11-09 14:02 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* make_vc.mak
    + Added /nxcompat linker flag for non-WinCE, non-DLL, 
      HB_VISUALC_VER >= 80 MSVC executables. 
      This should add extra safety.

  * include/hbextern.ch
  * source/rtl/rat.c
    + Added HB_RAT() which is similar to RAT(), but also accepts 
      <nStart> and <nEnd> optional paramaters, similarly to HB_AT().
    ; Please test.

  * source/rtl/at.c
    * Minor formatting.
2008-11-09 13:03:31 +00:00
Viktor Szakats
efa79fba05 2008-11-05 13:15 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_vc.mak
    * -GA option only used for HB_VISUALC_VER >= 70.
      Please update this if older versions also support it.

  * include/hbver.ch
  * source/common/hbver.c
    * Some more fiddling with version number terminology and 
      hb_version() values:
      HB_VERSION_MICRO          -> HB_VERSION_RELEASE
      HB_VERSION_BLD_DATE_STR   -> HB_VERSION_BUILD_DATE_STR
      HB_VERSION_BLD_DATE       -> HB_VERSION_BUILD_DATE
      HB_VERSION_BLD_TIME       -> HB_VERSION_BUILD_TIME
      HB_VERSION_CHANGELOG_REV  -> HB_VERSION_CHANGELOG_ID
      Third part of version number could also be: PATCH, MICRO, BUILD
      SVN revision could also be: BUILD
      BUILD is inherently connected with a physical binary, so 
      I dropped it, PATCH is limiting and negativ, MICRO is not 
      very common (otherwise good), so a finally opted for 
      RELEASE. REVISION kept as is.
    ; If there are no objections I'll HB_VER_REVISION macro to 
      HB_VER_RELEASE. This will be an INCOMPATIBLE change, but 
      I expect not too many ppl being affected.

  * TODO
    - Removed MT as a TODO. Thanks Przemek for the nice job.
2008-11-05 12:16:30 +00:00
Viktor Szakats
402d8cabd5 2008-10-31 02:26 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_vc.mak
    - Removed -GS- option for WinCE. MS recommends this to 
      be there for safety. If someone wants to disable, it 
      can be done with C_USR.
2008-10-31 01:26:59 +00:00
Viktor Szakats
cc2e8c09b9 2008-10-31 02:05 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * contrib/mtpl_b32.mak
  * config/w32/bcc32.cf
    - Added -4 switch, which means Intel 386 CPUs are not 
      not supported by default.

  * make_vc.mak
    + Added -GA switch to MSVC 32/64 which creates smaller 
      (and only slightly faster) TLS access code.

  * source/compiler/cmdcheck.c
  * source/compiler/hbusage.c
    + Added -/+ suboptions to -k? options to make it 
      possible to set them to the opposite setting.
    ; NOTE: BTW, shouldn't -ki option also disable 
            #pragma BEGINDUMP/ENDDUMP? IMO it should, 
            otherwise it doesn't really enforce C 
            out of .prg code.

  * config/w32/gcc.cf
  * config/w32/mingw.cf
    * Changed -march=i486 to -march=i586.

  ; NOTE: Please comment on CPU optimization switches, IMO 
          we can quite safely target Pentium/586 as the 
          minimum CPU requirement these days for default 
          Harbour builds. If someone needs to run it on 
          386 (Win95) or 486 (Win98/WinME), a special built 
          can be created.
2008-10-31 01:07:44 +00:00
Viktor Szakats
d1dc70f971 2008-10-27 12:03 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_vc.mak
  * contrib/mtpl_vc.mak
    - Removed no longer necessary '-D_CRT_SECURE_NO_DEPRECATE' 
      for MSVS 2005 and upper.

  * include/hbsetup.h
    * Mapping snprintf() calls to hb_snprintf().
    ; TODO: Replace the calls in source code.

  * source/common/hbstr.c
    ! Fixed hb_snprintf(). Please verify on your platforms.
    ; TODO: It may need further tweaking to smooth out the 
            platform implementation differences.
2008-10-27 11:11:02 +00:00
Viktor Szakats
8ef12af6d4 2008-10-23 12:17 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_vc.mak
    ! Changed '!' (non-working) echo supression char to '@'.

  * contrib/mtpl_b32.mak
  * contrib/mtpl_vc.mak
    % Changed to create the obj dir as a separate build rule 
      (just like for core) rather than for each file.
2008-10-23 10:18:03 +00:00
Viktor Szakats
aba5b928cb 2008-10-23 12:00 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
  * contrib/mtpl_b32.mak
  * contrib/mtpl_vc.mak
    * "IF EXIST" -> "if exist" for consistency.
    * "-" echo supression char consistently changed to "@", 
      and added where it was missing (for 'if exist' commands).

  * make_vc.mak
    % Cleaned WinCE C options from unnecessary quotes.
    % Minor opt in .dll flag assembly.
    % Some commented options removed.
    * WinCE LDFLAGS uppercase to lowercase.
    % Minor opt in non-WinCE LDFLAGSDLL assembly.

  * source/rtl/gtwvt/gtwvt.c
    * Minor formatting.
2008-10-23 10:03:10 +00:00
Viktor Szakats
97a39f0123 2008-10-22 20:01 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* bin/hbmk.bat
    ! Fix to previous change. (MT and GUI status was reset in the loop).

  * bin/hbmk.bat
  * bin/hbmk_os2.cmd
    ! Help message corrections.

  * bin/hbmk.bat
  * make_vc.mak
  * config/w32/msvc.cf
  * config/w32/msvcce.cf
    * Using lowercase linker options for MSVC. Just for consistency.
    * Using '/' as a switch char for MSVC linker. This works fo all 
      old version.

  * contrib/mtpl_vc.mak
    * Minor formatting.
2008-10-22 18:02:52 +00:00
Viktor Szakats
cc61d55d91 2008-10-22 14:08 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* tests/rto_get.prg
    + Added tests for assigments as function calls (o:col( 10 ) 
      and some for assigments as _function calls (o:_col( 10 )).

  * bin/hbmk.bat
  * make_vc.mak
    - Removed /subsystem:console from LDFLAGS. This seems to 
      be the default so it's not necessary.

  * bin/hbmk.bat
    + Added L_USR support for MSVC. Now it's possible to 
      build GUI (and GTWVT) programs using 
      'set L_USR=/subsystem:WINDOWS' switch.

  * contrib/gtwvg/tests/bld_vc.bat
    ! Using above method to make it work with MSVC.
2008-10-22 12:17:14 +00:00
Viktor Szakats
967c149c42 2008-10-18 10:56 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* common.mak
   * make_b32.mak
   * make_vc.mak
   * make_gcc.mak
     % Harbour command line configuration moved to common.mak.

   * source/rtl/tclass.prg
   * source/rtl/tget.prg
     + NOTE added to tclass.prg.
     * Minor formatting.
2008-10-18 08:58:34 +00:00
Viktor Szakats
126b02960f 2008-10-16 14:33 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* common.mak
  * make_b32.bat
  * make_b32.mak
  * make_vc.bat
  * make_vc.mak
  * make_gcc.mak
    * HB_BUILD_VERBOSE=yes is now the default. If someone 
      is wanting to build Harbour from source and is bothered 
      by the compiler command-lines being shown, these can 
      be turned off with HB_BUILD_VERBOSE=no.
      These lines are IMO very important to see, which options 
      were exactly used when Harbour was built, I personally 
      archive these logs along with the builds.
2008-10-16 12:34:30 +00:00
Viktor Szakats
0817945bc4 2008-10-16 14:22 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
  * make_gcc.mak
  * contrib/mtpl_b32.mak
  * contrib/mtpl_gcc.mak
  * contrib/mtpl_vc.mak
    * Changed -b switch to -l-.
      -b debug mode causes more problems than good for Harbour 
      core/contrib.
2008-10-16 12:24:03 +00:00
Viktor Szakats
296b308154 2008-10-16 13:21 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
  * make_gcc.mak
    + Readded -b when HB_BUILD_STATIC=yes.
      Now it should work.

  * make_b32.mak
  * make_vc.mak
  * make_gcc.mak
  * contrib/mtpl_b32.mak
  * contrib/mtpl_gcc.mak
  * contrib/mtpl_vc.mak
    % Deleted -l- switch when HB_BUILD_STATIC=yes.
      Line numbers are automatically enabled when 
      -b switch is used.

  * source/debug/debugger.prg
    * Renamed getdbginput() -> __dbgInput()

  ; NOTE to TOFIX: Do we need "Mono display" these days? :)
2008-10-16 11:22:07 +00:00
Viktor Szakats
d54f03c81e 2008-10-15 10:09 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
  * make_gcc.mak
    * Removed disabling -b for non-debug builds.
    ; We aim to remove RTL .prg dependencies from hbdebug.lib, 
      either by local implementation, .c rewrite, or force 
      disabling debug mode in more core files.
      Until this happens, one will have to be careful with 
      using -b switch to compile Harbour. These are the core .prg 
      modules currently used by hbdebug.lib:
      - HBGETLIST(), GET(), __GET(), __GETLISTACTIVE(), __GETLISTSETACTIVE(), READINSERT(), READMODAL()
      - HBCLASS()
      - HBOBJECT()
      - HBEDITOR()
      - TBCOLUMNNEW()
      - ACHOICE()
      - ALERT()

  * source/debug/dbgtobj.prg
  * source/debug/dbgbrwsr.prg
  * source/debug/dbgtwin.prg
  * source/debug/dbgmenu.prg
  * source/debug/dbgthsh.prg
  * source/debug/tbrwtext.prg
  * source/debug/dbgwa.prg
  * source/debug/debugger.prg
  * source/debug/dbghelp.prg
  * source/debug/dbgtarr.prg
  * source/debug/dbgtmenu.prg
  * source/debug/dbgtmitm.prg
    + Readded '#pragma DEBUGINFO=OFF'.
2008-10-15 08:13:42 +00:00
Viktor Szakats
5c252e761e 2008-10-15 01:56 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/debug/dbgtobj.prg
  * source/debug/dbgbrwsr.prg
  * source/debug/dbgtwin.prg
  * source/debug/dbgmenu.prg
  * source/debug/dbgthsh.prg
  * source/debug/tbrwtext.prg
  * source/debug/dbgwa.prg
  * source/debug/debugger.prg
  * source/debug/dbghelp.prg
  * source/debug/dbgtarr.prg
  * source/debug/dbgtmenu.prg
  * source/debug/dbgtmitm.prg
    - Removed '#pragma DEBUGINFO=OFF'. See solution below.

  * make_b32.mak
  * make_gcc.mak
  * make_vc.mak
    * Forcing -b- (disabling debug info) for all core 
      .prg functions. Compiling anything in core with 
      -b would cause infinite loops, when trying to use 
      the debugger.
      QUESTION: Is HB_NO_READDBG still needed?
2008-10-14 23:59:06 +00:00
Viktor Szakats
b05759968e 2008-10-13 13:51 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_gcc.mak
  * make_vc.mak
  * contrib/mtpl_b32.mak
  * contrib/mtpl_gcc.mak
  * contrib/mtpl_vc.mak
    + Added -l switch to default Harbour options.
    + Enabling Harbour debug options (-b -l-) when HB_DEBUG_BUILD=yes.
2008-10-13 11:52:42 +00:00
Viktor Szakats
ec38a6cdae 2008-10-13 12:34 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/teditor.prg
    ! Typo in previous modification.

  * make_b32.mak
  * make_vc.mak
  * make_gcc.mak
    ! Minor formatting.
2008-10-13 10:35:25 +00:00
Viktor Szakats
51de53494c 2008-10-11 16:59 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
  * make_gcc.mak
    ! Minor formatting.

  * include/hbapierr.h
    ! Fixed casting in macro HB_ERR_FUNCNAME, as it was 
      generating a new warning with MSVC in 64-bit mode.
      '( ( char * ) 1 )' -> '( ( const char * ) NULL + 1 )'
      ('const' keyword was not enough to silence it)

  * include/hbapierr.h
  * source/rtl/errorapi.c
    - Disabled (marked with HB_LEGACY_LEVEL) hb_errFuncName 
      symbol. No longer supported, pls use HB_ERR_FUNCNAME 
      instead.
2008-10-12 15:00:30 +00:00
Viktor Szakats
7f7c61cf2a 2008-10-11 13:27 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_vc.mak
  * contrib/mtpl_vc.mak
    + Added /nologo to lib commands.

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

  * ChangeLog
    + Marked change as TOMERGE 1.0.
2008-10-12 11:32:17 +00:00
Viktor Szakats
50253c5cdb 2008-10-10 20:12 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_vc.bat
  * make_vc.mak
    * Cleanups.
2008-10-10 18:13:05 +00:00
Viktor Szakats
ed8bb45de8 2008-10-10 10:42 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* make_b32.mak
  * make_vc.mak
  * make_gcc.mak
    * Removed special 'set HB_GT_LIB=gtXXX' support. For the exact 
      same effect - in case you want to modify default GT at 
      build time, which is not recommended -, pls use this:
      'set C_USR=-DHB_GT_LIB=XXX' where XXX is 'wvt', 'std', etc.
    - Removed HARBOURFLAGSDLL, LDFLAGSDLL, CFLAGSDLL as public options. 
      It's better to keep these settings common IMO, and handle 
      all DLL subtleties in our make files.
    + L_USR is now respected for .dlls, too.
    ! Fixed make_gcc.mak internal HARBOURFLAGSDLL to be in sync 
      with the other .mak files (removed -l switch).
    - Removed HB_BUILD_MODE for VC builds. Now C/C++ is left to 
      the default value (which is C mode for core), and it's possible 
      to override using:
      'set C_USR=-TP' for C++ mode (or -TC for forced C mode).
    % Other minor cleanups.

  * contrib/mtpl_b32.mak
  * contrib/mtpl_vc.mak
    - Removed HB_BUILD_MODE undocumented options from contrib 
      make files. For Borland C++ mode, use 'set C_USR=-P'.
      For VC, see above.
    - Removed HB_BUILD_ST undocumented option.
    % Other minor cleanups.
      
  * contrib/xhb/hbcompat.ch
  * contrib/xhb/xhb.ch
    ! Moved __COPYFILE() translation to xhb.ch.
2008-10-10 08:47:25 +00:00
Viktor Szakats
0e119bdb15 2008-10-10 09:41 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* common.mak
  * make_b32.mak
  * make_vc.mak
  * make_gcc.mak
    - Removed option HB_BUILD_ST to build another version 
      of Harbour MT build [for non-GNU builds], or forced 
      SingleThreaded (non -tWM) Harbour builds.
    * Modified to not allow CFLAGSMT to be tweaked from the 
      outside [for non-GNU builds].
2008-10-10 07:43:25 +00:00