Commit Graph

2119 Commits

Author SHA1 Message Date
Viktor Szakats
7bdb1a9ea4 2009-02-26 10:24 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/hb-mkdyn.bat
    + Moving .lib and .exp (if they are generated) files
      to LIB dir.

  * source/vm/maindllp.c
    + Added owatcom flavour of .dll name.

  * contrib/hbwin/win_misc.c
    + Added WAPI_GETLASTERROR(), WAPI_SETLASTERROR(), WAPI_SETERRORMODE().

  * utils/hbmk2/hbmk2.prg
    + Added TODO to create temp .c files in temp location.
      Looks this can create a few problems (-hbcc, .ppo output
      location when -p is used by user).
    + '/o' flavour of -o option is now ignored on non-*nix
      systems to make sure users cannot mess up the hbmk process
      flow.
    * -o option modified to reset any previous explicit -o settings.
    * Some minor internal renames, comments.
    + Added new hbmk.cfg / .hbp option: 'shareddef='. This can
      change the default state of shared/static setting, so it
      can be used by installers or user to override default
      behaviour. NOTE: HB_SHARED envvar can also be used.
    * Changed hbmk.cfg lookup preferences to this:
      1. $HOME/.harbour
      2. /etc/harbour
      3. <hbmkdir>/../etc/harbour
      4. <hbmkdir>/../etc
      5. <hbmkdir>
      (NOTE: I've deleted /etc as etc/harbour seems superior
             and we already store a .def file there.
             I've also deleted /usr/local/etc)
2009-02-26 09:25:29 +00:00
Pritpal Bedi
fa6220892b 2009-02-25 18:57 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/gtwvg.c
  * harbour/contrib/gtwvg/wvgcrt.prg
  * harbour/contrib/gtwvg/wvgwnd.prg
    ! More types of consoles. Mainly modal windows implementation.
2009-02-26 03:01:10 +00:00
Pritpal Bedi
51c941326e 2009-02-25 15:35 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/hbwin/wapi_winuser.c
    ! Commented out WAPI_GETSCROLLBARINFO().
2009-02-25 23:36:00 +00:00
Viktor Szakats
2f538dad8d 2009-02-25 23:44 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/postinst.cmd
  * bin/postinst.bat
  * bin/postinst.sh
    - Removed creation of hb*.bat files.

  * contrib/make_b32_all.bat
  * contrib/make_gcc_all.sh
  * contrib/make_vc_all.bat
  * contrib/Makefile
    * Disabled hbwhat.

  * contrib/gtwvg/wvggui.c
    ! Fixed a few warnings.
2009-02-25 22:45:12 +00:00
Przemyslaw Czerpak
6c88a6c549 2009-02-25 20:17 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/gtwvg/wvgwin.c
    ! added dirty hack for borland C compiler and #define NONAMELESSUNION
      in oledlg.h

  * harbour/config/linux/owatcom.cf
    ! added missing support for HB_USER_LDFLAGS
2009-02-25 19:12:35 +00:00
Pritpal Bedi
351b46e87d 2009-02-25 09:25 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/wvgpaint.prg
    ! Removed THREAD STATIC implimentation hack introduced
      when behavior of THREAD STATIC was different.
2009-02-25 17:26:52 +00:00
Miguel Angel Marchuet Frutos
d121797e91 2009-02-25 16:27 UTC+0100 Miguel Angel Marchuet <miguelangel@marchuet.net>
* contrib/hbbmcdx/hbbmcdx.h
    ! updated to current rdd subsystem.
2009-02-25 15:22:40 +00:00
Viktor Szakats
3c4c8c85a5 2009-02-25 14:36 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/postinst.sh
    ! Fixed hb_mkslib link generation.
  * contrib/gtwvg/wvgwin.c
    ! Fixed owatcom error. (removed Windows structure redefinition)
  * utils/hbmk2/hbmk2.prg
    * Some screen messages slightly refined.
  * doc/whatsnew.txt
    * Minor.
  * ChangeLog
    * Fixed dates.
2009-02-25 13:37:13 +00:00
Miguel Angel Marchuet Frutos
06db8d6b99 2009-02-25 13:54 UTC+0100 Miguel Angel Marchuet <miguelangel@marchuet.net>
* contrib/hbbmcdx/bmdbfcdx.c
    ! updated to current rdd subsystem.
2009-02-25 12:57:00 +00:00
Przemyslaw Czerpak
4f7bb3e481 2009-02-25 03:37 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
+ harbour/config/linux/icc.cf
  * harbour/config/linux/gcc.cf
  * harbour/bin/hb-func.sh
  * harbour/bin/postinst.sh
  * harbour/source/common/hbver.c
    + added support for Intel(R) C/C++ compiler

  * harbour/bin/postinst.sh
    % use hb-mkdyn symlink instead of regenerating it as hb-mkslib
      It will work also in DOS/Windows (MSys/DJGPP emulates ln -s ...)

  * harbour/source/vm/thread.c
    * removed all references to HB_THREAD_EQUAL()/HB_THREAD_SELF() in
      non MT builds

  * harbour/source/rtl/console.c
    ! fixed default color setting in hb_dispOutAtBox()

  * harbour/contrib/gtwvg/wvggui.h
  * harbour/contrib/gtwvg/wvgwin.c
  * harbour/contrib/gtwvg/wincallb.c
  * harbour/contrib/gtwvg/wvgsink.c
    ! fixes for C++ compilation:
      - this is reserved word in C++ - do not use it as variable name
      - class is reserved word in C++ - do not use it as variable name
      - use macros to hide differences between C and C++ WinAPI
      - casting
2009-02-25 02:32:40 +00:00
Viktor Szakats
35eae99081 2009-02-23 23:19 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbgd/gdwrp.c
    ! Added required Windows initialization for GD headers.
      This become an issue because I've recently removed 
      windows system headers (which weren't needed for 
      local code) from this file.
2009-02-23 22:20:00 +00:00
Przemyslaw Czerpak
3c6eaa76cb 2009-02-23 19:36 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/estack.c
    ; added TODO note for TSD handles recovery system to document dynamic
      (not static) TSD access as public API. Otherwise it's a risk to give
      such interface for 3-rd party code developers due to potential
      resource leak.

  * harbour/contrib/hbct/ctwin.c
    + added support for thread local current window pointer in CT Windows.
      Warning: each new thread uses window 0 as default.

  * harbour/contrib/hbct/files.c
    + added MT support FILESEEK(), FILEATTR(), FILESIZE(), FILEDATE().
      Warning: now each thread operates on it's own directory handle.
      The directory handle is open until is not scanned to the end by
      subsequent calls to FILESEEK() without parameters or by explicit
      call with NIL or empty string "" as file name, f.e.: FILESEEK( NIL ).
      Such method of closing directory handle is compatible with original
      CT3 behavior.
2009-02-23 18:31:45 +00:00
Pritpal Bedi
485b8a7f20 2009-02-23 09:04 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/wvgwin.c
    + #define NONAMELESSUNION
      It may fix OW' few warnings. Please test.
2009-02-23 17:05:51 +00:00
Viktor Szakats
a403aeb9f5 2009-02-23 16:40 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/hb-mkdll.bat
    - Removed no longer relevant NOTE. BCC tlib can actually
      handle dots in pathname if put between quotes, which
      is how it is.

  * contrib/gtwvg/gtwvg.h
  * contrib/gtwvg/wvggui.h
    ! Applied former owatcom fix to GTWVG, too. Please retry,
      I didn't test it.
    ! Converted failing declarations to use HB_ID_REF().
    ! Applied more casting fixes shown by owatcom 1.8.

    ; Remaining errors and warnings posted on the list.
2009-02-23 15:43:05 +00:00
Viktor Szakats
1a0ef66629 2009-02-23 14:51 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed bug which made gtwvt the default GT for mingw.
    ! Fixed to create final exe in current dir if no output
      filename was specified and the first input file
      contained a path.
    * Changed to use version-less harbour shared lib names
      on *nixes.
    ! Fixed to pass full path with harbour.so to gcc.
      (even when Harbour isn't run from a system location)
    ! Fixed compilation/linking/cleanup if an input file
      wasn't in current dir.
    * Temp stub file is now created in system default temp dir,
      instead of the current one.
    + Harbour shared lib path is normalized when Harbour
      is found on system locations. (so '*/bin/../lib/' becomes
      '*/lib')
    * Better I hope handling of .so/.dylib/.sl/.dll files passed
      on the command line.

  * bin/hb-mkdll.bat
    ! Fixed typo in Borland MT .dll name.
    ! Fixed to not include maindll.obj, maindllp.obj in
      Borland .dlls.
    * Minor formatting and cleanup on internal names.
    + Added checking for source lib existence, showing
      message if not found.
    + Better user feedback.

  * bin/postinst.bat
    + Added running hb_mkdll.bat at the end of the build
      process. For now users have to use 'set HB_DLL=yes'
      to enable this features. It's experimental yet,
      see previous comments.

  * source/vm/Makefile
    + Now generating hbmainstd and hbmainwin for remaining
      (non-mingw and non-mingwce) compilers. MSVC and BCC
      need this for -shared linkage, I'm not sure about the
      rest, anyhow we can disable it for other compilers
      if it isn't needed in future.

  * bin/hb-func.sh
    % Refined hbmkcfg.hbp setup to better detect conditions.

  * contrib/hbcurl/hbcurl.c
    ! Pacified this only one new gcc 4.3.3 warning.

  * config/win/gcc.cf
  * config/win/mingw.cf
    + Added -mtune=pentiumpro gcc optimization.
2009-02-23 13:53:42 +00:00
Pritpal Bedi
643d0291d2 2009-02-22 19:32 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/wvgwin.c
  * harbour/contrib/gtwvg/wvg3stat.prg
  * harbour/contrib/gtwvg/wvgcheck.prg
  * harbour/contrib/gtwvg/wvgcombo.prg
  * harbour/contrib/gtwvg/wvgdarea.prg
  * harbour/contrib/gtwvg/wvglistb.prg
  * harbour/contrib/gtwvg/wvgmle.prg
  * harbour/contrib/gtwvg/wvgpushb.prg
  * harbour/contrib/gtwvg/wvgradio.prg
  * harbour/contrib/gtwvg/wvgscrlb.prg
  * harbour/contrib/gtwvg/wvgsle.prg
  * harbour/contrib/gtwvg/wvgstatb.prg
  * harbour/contrib/gtwvg/wvgstatc.prg
  * harbour/contrib/gtwvg/wvgtoolb.prg
  * harbour/contrib/gtwvg/wvgtreev.prg
  * harbour/contrib/gtwvg/wvgwnd.prg
    ! Code cleanup.
    ! Implemented generic callback functionality taking 
      use of SetProp()/GetProp() functions of WINAPI. It 
      effectively eliminates the use of AsCallBack() 
      function which has been discussed as non-scalable
      in multi-processor architect.

    ; TODO: To use hb_gcAlloc() mechanism to hold the 
            codeblock. Please review wvgwnd():SetWindowProcCallback()
            and wvgwin:WVG_SetWindowProcBlock( ::hWnd, bBlock ).
            I did try but could not resolve it properly.
2009-02-23 03:40:33 +00:00
Viktor Szakats
0eea0e3932 2009-02-22 18:33 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/hb-func.sh
    ! Fixed stupid typos after testing on Linux.

  * contrib/examples/terminal/terminal.hbp
  * contrib/examples/terminal/trm_appn.hbm
    * Minor change.
2009-02-22 17:34:06 +00:00
Viktor Szakats
0d04b875e1 2009-02-22 18:00 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbbtree/tests/test.hbm
  * contrib/examples/guestbk/guestbk.hbm
  * contrib/examples/pe/pe.hbm
  * contrib/examples/terminal/trm_appn.hbm
  * contrib/examples/hscript/hscript.hbm
  * utils/hbdoc/hbdoc.hbm
  + utils/hbmk2/hbmk2.hbm
    + Added -n switch to .hbm files.

  * contrib/examples/uhttpd/hbmk.bat
  + contrib/examples/uhttpd/uhttpd.hbm
    + Moved most make params to new .hbm file.
2009-02-22 17:06:44 +00:00
Viktor Szakats
a2d19fb47d 2009-02-22 17:49 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* config/lib.cf
   * config/bin.cf
     + Added -n to Harbour flags to bin.cf.
     + Added -n1 to Harbour flags to lib.cf.
     ; TOFIX: The former works, the latter doesn't.
              Could someone please help why is this
              happening?

   * utils/hbmk2/hbmk2.prg
     - Removed -n from default Harbour switches.
     ; TODO: Add prgflags=-n to all .hbp files.
     ; TODO: Add -n to all .hbm files.
     ; TODO: Add .hbp file to dirs where there are .prgs
             needing -n flag.

   + bin/hb-mkdll.bat
     + Added .dll creation for GNU-make. Not yet enabled,
       only MSVC supported, and by the nature of the
       wonderful world of Microsoft, whole Harbour needs
       to be compiled with HB_USER_CFLAGS=-DHB_DYNLIB to
       make this work. -DHB_DYNLIB has some drawbacks
       though: export table will be generated for all
       executables made from these .libs, .exp/.lib will
       also be generated for all executables.
     ; TODO: Solve to compile Harbour lib .prgs using 
             -n1 switch. (needed for .dll, and this
             one has only befenefits for other scenarios)
     ; TODO: Add hb-mkdll.bat to postinst.bat.
     ; TODO: Add BCC support, if possible.
     ; TODO: Rename hb-mkslib.sh to 8.3 name and sync
             name with the .bat version (not necessarily
             mkdll, but something short.)

   * bin/hb-func.sh
     ! Added system libs for optional components included
       in the harbour dynlib. I plan to make some more
       changes here, but this should fix missing system
       libs with shared option enabled in hbmk2.

   * contrib/examples/dbu/dbu.hbm
   * contrib/examples/rl/rl.hbm
     + Added -n.

   * utils/hbdoc/Makefile
   * utils/hbmk2/Makefile
   * utils/hbtest/Makefile
   * utils/hbi18n/Makefile
   * utils/hbrun/Makefile
     - Removed explicit -gc0 -n override.
       Should now be set automatically for all binaries.
2009-02-22 16:53:11 +00:00
Viktor Szakats
62545cf25f 2009-02-22 00:51 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/gtwvg/wvgtoolb.prg
    ! Enabled disabling debug calls (requiring xhb) in non-debug mode.

  * contrib/gtwvg/tests/gtwvg.hbp
    - Removed xhb lib.
    + Added mt=yes line.

  * source/vm/extrap.c
    ! Extended line buffer used for module listing. 64 bytes
      just isn't enough in 64-bit mode.
2009-02-21 23:52:08 +00:00
Viktor Szakats
4bbd27fde5 2009-02-21 22:11 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
+ contrib/examples/dbu/dbu.hbm
  - contrib/examples/dbu/hbmk.bat
  * contrib/examples/dbu/readme.txt
  + contrib/examples/rl/rl.hbm
  - contrib/examples/rl/hbmk.bat
  * contrib/examples/rl/readme.txt
    + Replace Win/DOS specific batch files with hbmk make
      file, so now all platforms are equally supported.

  - contrib/examples/dbu/hb_dbu.dif
  + contrib/examples/dbu/dbu.dif
    * Renamed.
2009-02-21 21:17:36 +00:00
Pritpal Bedi
9ae8cd0497 2009-02-21 13:00 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/wvgsink.c
  * harbour/contrib/gtwvg/wvgutils.c
  * harbour/contrib/gtwvg/wvgwin.c
    ! Pacified more warnings on 64bits.
2009-02-21 21:01:51 +00:00
Pritpal Bedi
1518335505 2009-02-21 09:28 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/wincallb.c
    ! Pacified warnings on 64 bits.
2009-02-21 17:30:10 +00:00
Pritpal Bedi
7fe143ec04 2009-02-21 09:01 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/wvgwin.c
    ! Pacified warnings on 64 bits.
2009-02-21 17:02:55 +00:00
Pritpal Bedi
70db9756b1 2009-02-21 07:28 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/gtwvg.c
  * harbour/contrib/gtwvg/wvggui.c
    ! Pacified warnings on 64 bits.
2009-02-21 16:04:50 +00:00
Pritpal Bedi
7cfb40c937 2009-02-21 07:28 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/gtwvg.c
  * harbour/contrib/gtwvg/wvggui.c
    ! Pacified warnings on 64 bits.
2009-02-21 15:29:36 +00:00
Pritpal Bedi
bb65350139 2009-02-21 07:15 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/wvgwin.c
  * harbour/contrib/gtwvg/wvgdarea.prg
    ! WIN_FillRect() => WVG_FillRect() 
      Namespace lashed with hbwin/win_prn1.c.
2009-02-21 15:09:44 +00:00
Viktor Szakats
445f4da00c 2009-02-21 13:37 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Added internal function to check for linked GTs, so that
      platform/compiler code can act accordingly.
    + Added required system libs and paths for gtsln, gtcrs
      and gtxwc. So now it's 100% hbmk script compatible.
      This effectively added support for gtsln and gtcrs
      (for *nix only). ncur194 support is missing though,
      plus maybe some build-time modifier switches aren't
      honored (the WITHOUT* ones, but I'm not positive that
      all of them have to be handled on hbmk2 level).
      Probably some clever autodetection can be used on 
      hbmk2 level for such cases.
    ! Fixed to not be case-sensitive when dealing with GT names.
    + Added NOTE about 3rd party/contrib stuff handling.
    * Minor formatting.

    ; NOTE: What remains is cross compilation support, which
            is a new topic. -n support tweak, if needed.
            And testing, adding missing compilers, fixing
            existing ones if needed, syncing with build-time
            switches, clean Win32 system libs.

  * contrib/gtwvg/tests/gtwvg.hbp
    + Readded gui=yes to better separate compontents.
  * ChangeLog
    * Entry marked done.
2009-02-21 12:45:46 +00:00
Viktor Szakats
83918637bb 2009-02-21 11:13 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/gtwvg/tests/gtwvg.hbp
    * Moved gtwvg from libs= to gt=. gui=yes no longer needed.
    * Added xhb, Windows libs.
2009-02-21 10:13:42 +00:00
Viktor Szakats
d652fcf04d 2009-02-21 09:52 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/gtwvg/wvgtoolb.prg
    ! Fixed unused variable.
2009-02-21 08:53:02 +00:00
Pritpal Bedi
116c96a016 2009-02-21 00:15 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/gtwvg.c
  * harbour/contrib/gtwvg/wvggui.c
  * harbour/contrib/gtwvg/wvgsink.c
  * harbour/contrib/gtwvg/wvgwin.c
  * harbour/contrib/gtwvg/wvgutils.c
  * harbour/contrib/gtwvg/wvgtoolb.prg
  * harbour/contrib/gtwvg/wvgwnd.prg
  * harbour/contrib/gtwvg/wvgparts.ch
  * harbour/contrib/gtwvg/wvtwin.ch
  * harbour/contrib/hbwin/hbwapi.h
  * harbour/contrib/hbwin/wapi_commctrl.c
  * harbour/contrib/hbwin/wapi_winbase.c
  * harbour/contrib/hbwin/wapi_winuser.c
    ! Mostly warning fixes for 64bits.

      ; Viktor, review me and plese send list of warnings 
        left after this.
2009-02-21 08:18:38 +00:00
Viktor Szakats
75a9fee614 2009-02-21 08:15 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbfimage/fi_wrp.c
    ! Added hack to trick around FreeImage.h header not to 
      #include <inttypes.h> on Borland compilers. Maybe newers
      than 5.8.1 versions have it, so this can be made BCC version 
      dependend.
2009-02-21 07:15:54 +00:00
Viktor Szakats
153d0aa5b6 2009-02-21 08:05 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/hbdefs.h
    + Added similar to HB_DONT_DEFINE_BOOL hack: HB_DONT_DEFINE_LONG.
      (needed until we clear up our types.)

  * contrib/hbfimage/fi_winfu.c
  * contrib/hbfimage/fi_wrp.c
  * contrib/hbfimage/Makefile
  * doc/whatsnew.txt
    % Deleted #includes/macro checks not necessary.
    ! Disabled body of fi_winfu.c when not compiled under
      Windows. This fixes one Linux compilation error.
    % Replaced HB_OS_WIN_USED with HB_DONT_DEFINE_BOOL and
      HB_DONT_DEFINE_LONG, moved foreign headers before
      Harbour headers, added non-Harbour Windows detection
      in fi_wrp.c (I'm not sure that is necessary), so that
      it now compiles on both Windows and non-Windows (Linux
      tested) systems.
    + Renabled on Linux in Makefile.
    ; Please review/test these changes.
2009-02-21 07:06:13 +00:00
Pritpal Bedi
a10ce79f88 2009-02-20 17:23 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/wvgsink.c
    ! Fixes as per Przemek's observations.
      ;TOREVIEW :    return( ( ULONG ) ( ( MyRealIEventHandler * ) this )->count < 0 ? 
                                      ( ( MyRealIEventHandler * ) this )->count : 0 );
       Actually I was having some problem with some old active-x 
       and was trying to fix that, that is why, now I do not remeber...
2009-02-21 01:26:37 +00:00
Viktor Szakats
1a82ec1c3e 2009-02-21 01:49 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbgd/gdwrp.c
    % Deleted #includes not necessary.
2009-02-21 00:49:35 +00:00
Viktor Szakats
71928f06cb 2009-02-20 22:41 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbgd/gdwrp.c
    ! Fixed double implementation of GDIMAGEELLIPSE().
      The so far inactive .c version got enabled by recently
      making lib version detection automatic, which made it
      collide with the existing .prg implementation.
      Left the .prg one active because it works regardless
      of the lib gd version. Francesco, please verify me.
    - Deleted disabled, probably older copy of GDIMAGEELLIPSE()
      from .c source.

  * utils/hbmk2/hbmk2.prg
    * Help screen update.
2009-02-20 21:42:40 +00:00
Viktor Szakats
84a89f08ff 2009-02-20 19:03 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/hb-func.sh
    ! Fixed gtalleg lib name.
    % Removed explicit harbour -gc0 option. This is now the default.

  * utils/hbmk2/hbmk2.prg
    + Added fmstat/nofmstat support.
    ! Minor fix to allow more freedom in formatting inside .hbp files.
    ! Fixed to delete prg stub file when using -hbcc option.
    + Added Copyright section for Przemek for the ideas I've
      borrowed from hbmk script and contributed code.
    + Detect platform default GT and only create stub if the
      user selected GT is different.
    + Now using versions shared libs on *nixes.
    + Mode detection now regards the ending or the beginning
      of the original name, so prefixed or postfixed names will
      also be recognized: xhbcmp, hbcmpx, myhbcmp.
    ! Fixed to multiple -gt options override each other so the
      last one will be effective.
    ! Fixed error message text when stub cannot be created.
      Furthermore in this case hbmk will now quit.
    + Also using '-Wl,--start-group' for bsd (from hbmk script).
    + Added '-bind_at_load', '-multiply_defined suppress' gcc
      options for darwin shared mode (from hbmk script).
    * Changed stub name to hbstub (from hbmkgt).
    * pthread lib handling streamlined based on hbmk script,
      but this probably needs further cleaning as the script
      isn't clear to me here.
    + Added fmstat/nofmstat switch. It most probably needs some
      tweaking, as the conditions seem rather sophisticated here.
      TODO: For non-*nix/non-gcc platforms (msvc/bcc32/owatcom
            most importantly).
    + Added system libs for darwin if gtcrs or gtsln are selected.
      (nslang isn't a default lib here, so it won't work on plain
      installations, slang however will).
    + Missed from previous commit: Fix so that -nohbp doesn't
      prevent processing the global config .hbp file.
    ! Fixed typo in prev commit.

  * utils/hbmk2/examples/contrib.hbp
    - Removed hbtip as it's not fully portable (dos).
  + utils/hbmk2/examples/contribf.hbp
    + Added complete database of contrib, with
      availability information.

  * contrib/xhb/Makefile
  * contrib/hbmsql/Makefile
  * contrib/hbmzip/Makefile
  * contrib/hbziparc/Makefile
  * contrib/hbnf/Makefile
  * contrib/hbmisc/Makefile
  * contrib/hbvpdf/Makefile
    * Formatting.
2009-02-20 18:06:33 +00:00
Przemyslaw Czerpak
886e51ebfc 2009-02-20 13:18 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/classes.c
    * cleanup comment

  * harbour/source/rtl/gttrm/gttrm.c
    + added support for HB_GTI_PALETTE - it's supported only by Linux console
      and PuTTY/PTerm

  * harbour/source/rtl/gtxwc/gtxwc.c
  * harbour/source/rtl/gtwvt/gtwvt.c
  * harbour/contrib/gtwvg/gtwvg.c
    ! fixed indexes in
         hb_gtInfo( HB_GTI_PALLETE, <nIndex> [, <nNewRGBcolor> ] )
      They should be the same as in our screen buffer: 0-based not one
      based.
2009-02-20 12:13:05 +00:00
Viktor Szakats
8f382cc445 2009-02-20 10:32 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed build compiler detection when GNU C++ was used on Linux.

  * contrib/hbwin/win_dll.c
    % Removed unncessary (potential build-breaker) #define _WIN32_WINNT.

  * contrib/hbwhat/whtdate.c
  * contrib/hbwhat/whtini.c
  * contrib/hbwhat/wincorec.c
  * contrib/hbwhat/whticon.c
  * contrib/hbwhat/whtcret.c
  * contrib/hbwhat/whtsock.c
  * contrib/hbwhat/whthead.c
  * contrib/hbwhat/whtseria.c
  * contrib/hbwhat/whtilst.c
  * contrib/hbwhat/whtreg.c
  * contrib/hbwhat/whtmem.c
  * contrib/hbwhat/whtclpb.c
  * contrib/hbwhat/whtmous.c
  * contrib/hbwhat/whtrgn.c
  * contrib/hbwhat/whtmeta.c
  * contrib/hbwhat/whttbar.c
  * contrib/hbwhat/whtrect.c
  * contrib/hbwhat/whtbrsh.c
  * contrib/hbwhat/whtgdi.c
  * contrib/hbwhat/whtscrlb.c
  * contrib/hbwhat/whtdlg.c
  * contrib/hbwhat/whtview.c
  * contrib/hbwhat/whtsys.c
  * contrib/hbwhat/whtlv.c
  * contrib/hbwhat/whtmisc.c
  * contrib/hbwhat/whtcomm.c
  * contrib/hbwhat/whtmmcap.c
  * contrib/hbwhat/whtprn.c
  * contrib/hbwhat/whtinet.c
  * contrib/hbwhat/whttab.c
  * contrib/hbwhat/whtfont.c
  * contrib/hbwhat/whtshell.c
  * contrib/hbwhat/whtcdlg.c
  * contrib/hbwhat/whtbmp.c
  * contrib/hbwhat/whtdir.c
  * contrib/hbwhat/whtpen.c
  * contrib/hbwhat/whtkbrd.c
  * contrib/hbwhat/whttext.c
  * contrib/hbwhat/whtmsg.c
  * contrib/hbwhat/whtdc.c
  * contrib/hbwhat/whtdraw.c
  * contrib/hbwhat/whtmenu.c
    ! Added #undef _WIN32_* where needed. This should fix compilation
      problems if these macros were already #defined by user.
      It's better however to honor the host setting.
      This fixed a pending TOFIX.
2009-02-20 09:33:44 +00:00
Pritpal Bedi
78984eea99 2009-02-19 12:42 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/wvgwin.c
    + More functions.

  * harbour/contrib/gtwvg/wvgdatar.prg
  * harbour/contrib/gtwvg/wvgscrlb.prg
  * harbour/contrib/gtwvg/wvgwnd.prg
    ! WvgScrollBar() class now works in toto as per 
      Xbase++ documentation.

    ; TODO: Implementation of WvgScrollBar() in demowvg.prg.
2009-02-19 20:48:17 +00:00
Viktor Szakats
4e73d2bdba 2009-02-19 20:44 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/Makefile
    ! Fixed broken GNU Make after recent directory rename.

  * utils/hbmk/hbmk2.prg
    * -q switch changed to -quiet to not collide with harbour option
      of the same name.
    + Following C flags will automatically be inheried to
      *nix/gcc|gpp compilers regardless of -bldf flag:
      -mlp64, -mlp32, -m64, -m32, -fPIC, -fpic
    + Following C flags will be automatically processed and
      relevent system libs added:
      -DHB_PCRE_REGEX - pcre
      -DHB_EXT_ZLIB   - z
      -DHAVE_GPM_H    - gpm
    ! Stripping 'lib' prefix from lib names for gcc-family compilers.
    ! Stripping extension from lib names for gcc-family compilers.
    ; Please review.

  * contrib/examples/uhttpd/hbmk.bat
    * .lib extensions removed from HB_USER_LIBS.
2009-02-19 19:46:12 +00:00
Viktor Szakats
a2eb6c9690 2009-02-18 13:14 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk/hbmk2.prg
    + Added new TODOs.
    + Now using GTCGI as the GT.
    + Added -info option to enable informational output.
      (currently this is the default for testing period)
    + Added -arch=<arch> command line option. Same as HB_ARCHITECTURE.
      Added -comp=<comp> command line option. Same as HB_COMPILER.
      envvars are kept for compatibility.
    + Added -hblnk option to give plave for hblnk script behaviour
      emulation.
    * Changed -cc, -cmp options to -hbcc, -hbcmp respecitvely.
    + Changed -hbcc, -hbcmp, -hblnk switches to turn off information
      output and turn on quiet mode by default.
    + Added autodetection of architecture when unique to
      architecture compiler is choosen manually. IOW, when
      -comp=msvc|mingw|pocc|dmc|xcc is passed the architecture will
      be set to win automatically. When -comp=djgpp is used,
      dos will be selected.
    ! Fixed ordering of compiler autodetection because f.e. owatcom
      bin dir holds a 'cl.exe', which made hbmk2 falsely detect msvc.
    + Added trick which I'm not sure I like, and may cause problems
      and seemingly unpredictable behaviour, but could also help
      in some environments where multiple compilers are setup in
      parallel (this isn't a recommended scenario for various other
      reasons, so maybe we shouldn't support it further). So from
      now on the compiler autodetection will first look for the
      compiler used to build hbmk2.exe, and check for the rest
      afterwards. This feature is turned off for msvc builds of
      hbmk2.exe because it breaks owatcom autodetection.
    + Added possibility to pass a plain dir by using -odir[\|/]
      switch. The final name will be determined by first input
      file name, if this one also has a dir, -o option will be
      ignored. Added logic to handle separator differences, this
      wasn't tested to a great deal.
    + Added -Wl,--start-group support for linux/gcc|gpp, win/mingw,
      dos/djgpp.
    ! Fixed owatcom support to setup library paths.
    ! Fixed linux/owatcom to use link script.
    * Some adjustments to win/owatcom C compiler settings. I guess
      the ones in .cf should also need a cleanup.
    * Few minor indentation problems fixed.
    ! C compiler and linker scripts now got an extension in
      the generated temp filename to make some of them happy
      (owatcom in this case). .cpl is used for compiler scripts,
      .lnk for linker ones.
    + Compiler autodetection now also looks in hbmk2 executable
      dir before looking into the PATH.
    ! Link script content was wrong due to typo.
    ! Fixed problem with library paths being wrong (doubly
      decorated) in the link command. This may also fix some
      problems with double extensions and final .c file cleanup.
    ! Fixed to add hbdebug lib when building in shared mode.
    ! Fixed typo in automatically adding './' on *nix systems.
    ; Please test, I definitely couldn't retest all scenaros
      after all these changes.

  * bin/postinst.bat
    * Adapted change in mode modifier switches, also
      added new -hblnk one.
  * utils/hbmk/examples/winapi.hbp
    + Added mapi32.
  + utils/hbmk/examples/contrib.hbp
    + Added .hbp file for popular and portable only contribs.
  * config/win/owatcom.cf
    - Removed unnecessary system libs.
  * contrib/hbvpdf/hbvpdft.prg
    * hbwhat32 -> hbwhat in comment.
  * contrib/hbwin/wapi_commctrl.c
  * contrib/hbwin/wapi_winuser.c
    ! Fixed harbour-project page link in header.
  * contrib/hbwin/hbwapi.h
    * Formatting (indenting the whole file content inside
      self-guard isn't necessary.)
2009-02-19 12:46:19 +00:00
Pritpal Bedi
8a30a6104c 2009-02-18 17:05 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/wvgscrlb.prg
    * Disabled structure support for time being as 
      build process is unable to locate cstruct.c, etc. headers.
      Viktor?
2009-02-19 01:07:54 +00:00
Viktor Szakats
25c1a81179 2009-02-18 01:40 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
+ contrib/gtalleg/tests/gtallegs.hbp
  - contrib/gtalleg/tests/gtalleg-shared.hbp
  + contrib/gtalleg/tests/gtallegd.hbp
  - contrib/gtalleg/tests/gtalleg-static.hbp
    * Converted to short filenames.

  * utils/hbmk/hbmk2.prg
    ! Typos in prev. commit.
2009-02-19 00:41:52 +00:00
Pritpal Bedi
daa0e7e5fa 2009-02-18 16:25 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* harbour/contrib/gtwvg/Makefile
  * harbour/contrib/gtwvg/common.mak
    + Added wvgscrlb.prg.

  + harbour/contrib/gtwvg/wvgscrlb.prg
    + Implemented WvgScrollBar() class ( work-in-progress ).

  * harbour/contrib/gtwvg/gtwvg.c
  * harbour/contrib/gtwvg/gtwvg.h
  * harbour/contrib/gtwvg/hbgtwvg.ch
  * harbour/contrib/gtwvg/wvgcrt.prg
  * harbour/contrib/gtwvg/wvgdarea.prg
  * harbour/contrib/gtwvg/wvgdatar.prg
  * harbour/contrib/gtwvg/wvgdlg.prg
  * harbour/contrib/gtwvg/wvggui.c
  * harbour/contrib/gtwvg/wvggui.h
  * harbour/contrib/gtwvg/wvgparts.ch
  * harbour/contrib/gtwvg/wvgphdlr.prg
  * harbour/contrib/gtwvg/wvgstatb.prg
  * harbour/contrib/gtwvg/wvgstatc.prg
  * harbour/contrib/gtwvg/wvgwin.c
  * harbour/contrib/gtwvg/wvgwnd.prg
  * harbour/contrib/gtwvg/wvtwin.ch
    * Numerous changes and fixes and behavioral shifts.
    ! Started to implement CUI and GUI components in GTWVG.
    ! Started to use C STRUCTURES.

  * harbour/contrib/hbwin/Makefile
  * harbour/contrib/hbwin/common.mak
    + Added wapi_winuser.c

  * harbour/contrib/hbwin/hbwapi.h
    + added more WAPI macros to accomodate new types.

  + harbour/contrib/hbwin/wapi_winuser.c
    + Introduced wrapper function to manipulate scrollbars.

    ; NOTE: GTWVG now needs xhb.lib alongwith hbwin.lib.
2009-02-19 00:32:12 +00:00
Viktor Szakats
c516ba2778 2009-02-18 23:34 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbole/ole2.c
  * contrib/hbwin/win_ole.c
  * contrib/hbwin/win_misc.c
  * contrib/hbwin/win_prn1.c
    ! Fixed Open Watcom 1.8 related warnings/errors.
2009-02-18 22:35:06 +00:00
Viktor Szakats
19ab705e7d 2009-02-18 14:36 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/gtalleg/tests/gtalleg-static.hbp
    + Added some Windows libs. The libs seem compiler
      and/or SDK dependent, so pls update this, current state 
      is probably enough to get an idea of it.

  + utils/hbmk/examples/winapi.hbp
    + Created hbp file for Windows libs.

  * utils/hbmk/hbmk2.prg
  * utils/hbmk/examples/xbgtk.hbp
  * utils/hbmk/examples/xhgtk.hbp
    * Formatting.
2009-02-18 13:37:47 +00:00
Viktor Szakats
7d050222f1 2009-02-18 14:20 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk/hbmk2.prg
    + Added handling of quoted options (with double quotes) for
      items containing spaces. hb_AToken( , , .T. ) is used, so 
      these rules apply. Outer double quote pair will be stripped 
      from the quoted items.
      We will probably need extra code to add the quote back
      when forming the command lines. Anyway this feature mainly
      targets to support pkg-config options, which have their
      own special quotes anyway.
    ! Minor change to not use hb_cmdline() for -q option detection,
      and also to ignore -q in main option processing loop.
    ! Fixed explicit .hbp processing.

  * contrib/gtalleg/tests/gtalleg-shared.hbp
  * contrib/gtalleg/tests/gtalleg-static.hbp
  * utils/hbmk/examples/xbgtk.hbp
  * utils/hbmk/examples/hwgui.hbp
  * utils/hbmk/examples/xhgtk.hbp
    * Updated pkg-config related lines.
2009-02-18 13:20:27 +00:00
Viktor Szakats
409012d5e6 2009-02-18 02:03 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk/hbmk2.prg
    ! Fixed not recognising hbp lines if the filter was at BOL.
    ! Two minor fixes.

  * utils/hbmk/examples/xbgtk.hbp
    + Added cflags, it was already supported, just forgot about it.

  * contrib/hbblat/tests/hbblat.hbp
  * contrib/hbblat/tests/blatcmd.prg
    % Using WIN_GETCOMMANDLINEPARAM().

  * contrib/hbwin/win_misc.c
  * contrib/hbwin/tests/testreg.prg
    + Added WIN_GETCOMMANDLINEPARAM().
      Similar to WAPI_GETCOMMANDLINE() but returns
      only the parameter part. Handles UNICODE,
      _SET_OSCODEPAGE and appnames with spaces.

  * contrib/hbwin/tests/hbwin.hbp
    ! Fixed to include shell32 lib.

  * contrib/hbwin/Makefile
  * contrib/hbwin/common.mak
  + contrib/hbwin/wapi_winbase.c
  * contrib/hbwin/tests/testreg.prg
    + Added WAPI_GETCOMMANDLINE().
      With UNICODE and _SET_OSCODEPAGE support.

  * ChangeLog
    * TOFIX (hb_cmdline()) marked as POSTPONED with explanation.
2009-02-18 01:06:57 +00:00
Viktor Szakats
87a7f6d2f6 2009-02-17 23:31 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
+ contrib/gtalleg/tests
  + contrib/gtalleg/tests/gtalleg-shared.hbp
  + contrib/gtalleg/tests/gtalleg-static.hbp
  * utils/hbmk/examples/whoo.hbp
  * utils/hbmk/examples/c4w.hbp
  * utils/hbmk/examples/minigui.hbp
  * utils/hbmk/examples/hwgui.hbp
  * utils/hbmk/examples/fwh.hbp
  + utils/hbmk/examples/xbgtk.hbp
  + utils/hbmk/examples/xhgtk.hbp
    + Added new hbp files and settings to cover support by current
      hbmk script features.
    + Added new gtalleg hbp files for Windows, both static
      and shared. Added logic from hbmk script for Linux.
    ; NOTE: This is a work in progress, I'll have to investigate
            -I support needed for xbgtk, hbmk can't handle that yet.
            Also pkgconfig notation isn't parsed well yet, there needs
            to be added syntax to allow spaces inside items.
            Expect some possible incompatible changes in this area.
2009-02-17 23:02:00 +00:00