Commit Graph

12846 Commits

Author SHA1 Message Date
Przemyslaw Czerpak
9ccc8edfb8 2009-12-16 01:26 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/mapi.c
    ! fixed compilation with OpenWatcom
2009-12-16 00:26:31 +00:00
Viktor Szakats
ba8ba39f53 2009-12-16 01:01 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* ChangeLog
    ! Typo in prev entry.
2009-12-16 00:03:39 +00:00
Viktor Szakats
7f2d6ff5eb 2009-12-16 00:58 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/Makefile
  + contrib/hbwin/wapi_winnls.c
    + Added WAPI_GETACP()
    + Added WAPI_GETOEMCP()
    ; NOTE: TODO? These values could be used as a base for
            default HB_GTI_CODEPAGE setting and _SET_CODEPAGE 
            for non-UNICODE Harbour builds.
2009-12-16 00:02:08 +00:00
Przemyslaw Czerpak
4c816bfdb7 2009-12-16 00:26 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/ChangeLog
    ! removed repeated entry
2009-12-15 23:26:43 +00:00
Przemyslaw Czerpak
6433838d9b 2009-12-16 00:24 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/bin/hb-func.sh
    * use -n2 as default harbour compiler parameter in hb* scripts

  * harbour/include/hbinit.h
    * added error messages when some mixed forms of startup initialization
      are defined
2009-12-15 23:24:29 +00:00
Przemyslaw Czerpak
ff2f644a97 2009-12-16 00:00 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/bin/hb-func.sh
    * use -n2 as default harbour compiler parameter in hb* scripts
2009-12-15 23:00:38 +00:00
Przemyslaw Czerpak
850fdf166a 2009-12-15 21:35 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbinit.h
    ! fixed typo in section name in last commit - thanks to Tamas again
    * in C++ mode encapsulate startup functions inside
      'extern "C" { ... }' to eliminate reallocation problems
2009-12-15 20:36:02 +00:00
Przemyslaw Czerpak
791d16c3fe 2009-12-15 21:15 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbinit.h
    * use more portable asm() directive instead of __asm__()
    * explicitly restore .text segment for compilers which do not make
      it automatically
      Thanks to Tamas for the information.
2009-12-15 20:15:33 +00:00
Przemyslaw Czerpak
cab0690455 2009-12-15 20:43 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbinit.h
    * eliminated from ASM code used in HB_INITSEG_STARTUP direct references
      to public functions - it resolves the problem with non relocatable
      code breaking Harbour shared library.
      TODO: find portable method to mark function as used for C compiler
            without using any public symbols (functions or variables)
            which may cause conflicts between modules.
            Compilers like modern GCC versions are clever enough to detect
            cyclic references (only compile time warnings are pacified in
            such case) and they strip even group of functions it they are
            not accessed externally.
2009-12-15 19:44:33 +00:00
Przemyslaw Czerpak
593d90a50b 2009-12-15 19:47 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbinit.h
    + added new alternative form for initialization code activated
      by HB_INITSEG_STARTUP macro. This method uses asm() directive
      to store call to startup function in .init segment.
      It's a work in progress though current code is working in Linux
      static builds and probably should work also with few other
      compilers. Final version should help in adding support for
      native non GCC based C compilers in some *nixes.
      Thanks to Tamas for his help.
2009-12-15 18:47:43 +00:00
Viktor Szakats
850cb7aa44 2009-12-15 18:11 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* package/winuni/RELNOTES
    ! Typo.

  * contrib/hbqt/qtgui/qtguis/Makefile
  * contrib/hbqt/qtcore/qtcores/Makefile
  * contrib/hbqt/hbqts/Makefile
  * contrib/hbqt/qtnetwork/qtnetworks/Makefile
    ! Fixed HB_QT_STATIC=yes mode.

  * contrib/hbclipsm/date.c
    ! Fixed DATEASARRAY() to return empty array instead of { NIL, NIL, NIL }
      if non-date was passed.
    % Optimized DATEASARRAY().

  * contrib/hbcairo/image.c
    ! Fixed two warnings.

  * INSTALL
    + Added CYGWIN= envvar to mingwarm example to suppress useless
      Cygwin warning.
2009-12-15 17:12:19 +00:00
Viktor Szakats
5f0af4ba2b 2009-12-15 11:36 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/hbqt.hbc
  * contrib/gtqtc/gtqtcs.hbc
  * contrib/gtqtc/gtqtcs/Makefile
  * contrib/gtqtc/Makefile
  * contrib/gtqtc/gtqtc.hbc
    * Cleanups.
    ! Static mode fix for gtqtc.

  * contrib/gtqtc/gtqtc.cpp
    ! Deleted HB_TCHAR references in commented code.
2009-12-15 10:53:13 +00:00
Viktor Szakats
deae0cb7f9 2009-12-15 11:26 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* ChangeLog
    ! Fixed ChangeLog entry header of my last commit.
2009-12-15 10:27:17 +00:00
Przemyslaw Czerpak
7e72311637 2009-12-15 04:32 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbdefs.h
    * modified PHB_FUNC/HB_FUNC_PTR declaration to use external 'extern "C"'
      encapsulation for C++ compilers which do not accept it directly
      (i.e. BORLAND or GCC 2.xx)
2009-12-15 03:32:55 +00:00
Viktor Szakats
3c59e562f6 2009-12-15 00:44 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbwin/win_regc.c
    * Minor cleanup to make code more robust.

  * contrib/hbqt/qtgui/QTableView.cpp
    * Some minor changes after regenerating it with current generator tool.
2009-12-14 23:45:59 +00:00
Pritpal Bedi
285c753fe5 2009-12-14 10:01 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/hbqt.h
  * contrib/hbqt/hbqt_hbqtableview.cpp
  * contrib/hbqt/qtgui/QTableView.cpp
  * contrib/hbqt/qtgui/TQTableView.prg
  * contrib/hbqt/qth/QTableView.qth
  * contrib/hbxbp/xbpbrowse.prg
    + Implemented GC collectible pointers for HBTableView() class.
2009-12-14 23:16:30 +00:00
Pritpal Bedi
2fbfe2d315 2009-12-14 10:01 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/hbqt.h
  * contrib/hbqt/hbqt_hbdbfmodel.cpp
  * contrib/hbqt/hbqt_hbdbfmodel.h
  * contrib/hbqt/qtcore/QAbstractItemModel.cpp
  * contrib/hbqt/qtcore/TQAbstractItemModel.prg
  * contrib/hbqt/qth/QAbstractItemModel.qth
  * contrib/hbxbp/xbpbrowse.prg
    + Implemented GC collectible pointer for HBDbfModel() class.
2009-12-14 18:03:45 +00:00
Przemyslaw Czerpak
90a125c300 2009-12-14 17:25 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/rtl/hbcrc.c
    ! fixed hb_crcct() to work with polynomials smaller then 8 bit,
      i.e. parity bit: x^1+1 => 3
    % small simplification in hb_crc() function
2009-12-14 16:25:52 +00:00
Viktor Szakats
198c6b2804 2009-12-14 14:21 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_os.prg
  * contrib/hbwin/wapi_winuser.c
  * contrib/hbwin/axcore.c
  * contrib/hbwin/wapi_commctrl.c
    * Formatting.
2009-12-14 13:22:25 +00:00
Viktor Szakats
ebdd5086de 2009-12-14 13:52 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_prn2.c
    ! Missing hb_itemRelease() from prev commit.
2009-12-14 12:52:48 +00:00
Viktor Szakats
e4ec7db7e2 2009-12-14 13:45 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_prn2.c
    + Eliminated rest of HB_TCHAR*() calls.
      Please review, and test for memory leaks.
    ; No more HB_TCHAR*() macros in hbwin code.

  * contrib/hbwin/win_misc.c
    + Added cast.

  * contrib/hbqt/hbqt_base.cpp
    * Minor formatting.
2009-12-14 12:47:32 +00:00
Viktor Szakats
507e9d6ca9 2009-12-14 00:04 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_misc.c
    ! Fixed WIN_ANSITOWIDE() and WIN_WIDETOANSI() to return string with
      proper length in all cases.
      Peer-review me pls.
2009-12-13 23:07:28 +00:00
Viktor Szakats
b057507e3c 2009-12-13 22:47 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/compiler/hbmain.c
  * src/compiler/cmdcheck.c
  * src/compiler/hbcomp.c
  * src/compiler/hbusage.c
  * include/hbcompdf.h
    + Added support for -i- and -i+ options. They will disable/enable 
      handling of INCLUDE envvar.

  * config/rules.mk
    + Added -i- Harbour compiler switch to avoid any interference 
      with user set INCLUDE envvars.
2009-12-13 21:48:02 +00:00
Pritpal Bedi
7aecc89102 2009-12-03 12:43 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/hbqt_hbqmainwindow.cpp
  * contrib/hbqt/hbqt_hbqmainwindow.h
  * contrib/hbxbp/xbpwindow.prg
    + Implemented GC collectible pointer for HBQMainWindow().

      /* Please do not commit anything in HBQT/HBXBP/HBIDE as I will be cleaning 
         up the code. BTW how can I invoke HBXBP_DEBUG() functionality.

         I was just busy with the preparations of my daughter's wedding.
      */
2009-12-13 20:48:53 +00:00
Viktor Szakats
f3be4e51c5 2009-12-13 17:29 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/mapi.c
    ! Added back zeroing rcp/file structure list.

  * INSTALL
    * Minor.

  * contrib/gtwvg/wvgutils.c
  * contrib/hbwin/win_misc.c
  * contrib/hbwin/mapi.c
    * ZeroMemory() -> memset()
2009-12-13 16:30:16 +00:00
Viktor Szakats
b36077420e 2009-12-13 14:46 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/mapi.c
    + Added support for unlimited number of recipients and
      attached files. Please test and review.

  * utils/hbmk2/hbmk2.prg
    + Added support for linux/open64. (Please test)

  * INSTALL
    + Added open64.
2009-12-13 13:49:14 +00:00
Antonio Carlos Pantaglione
dea1ff16cd 2009-12-12 20:48 UTC-0300 Antonio Carlos Pantaglione <toninho@fwi.com.br>
* harbour/contrib/hbwin/tests/testmapi.prg
    ! Very small fix
2009-12-12 22:50:52 +00:00
Przemyslaw Czerpak
4e62cf97fe 2009-12-12 23:29 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbsetup.h
  * harbour/include/hbdefs.h
  * harbour/include/hbthread.h
  * harbour/src/common/hbver.c
  * harbour/bin/hb-func.sh
  * harbour/bin/postinst.sh
  * harbour/config/linux/gcc.mk
  + harbour/config/linux/open64.mk
    + added support for Open64 C/C++ compiler in Linux builds

  * harbour/src/common/hbver.c
    * removed unnecessary casting compiler version number parameters
      to 'short'
    * extended the size of szBuf buffer as requested by Tamas
2009-12-12 22:31:11 +00:00
Viktor Szakats
55f6219681 2009-12-12 21:24 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/tests/testmapi.prg
  * contrib/hbwin/mapi.c
    ! Fixes.
2009-12-12 20:24:27 +00:00
Viktor Szakats
93ad5ffadd 2009-12-12 19:55 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_misc.c
    ! Fixed declaration following code.
2009-12-12 18:56:14 +00:00
Viktor Szakats
2430d97b22 2009-12-12 19:27 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/mapi.c
    + Added support for UNICODE.
    ; Untested, I don't have a mailer on any Windows systems I have
      access to to try it.
      Please make tests with MSVC also, to check UNICODE.
    ! Fixed typo in prev modification.
    ! Added ( ULONG ) cast to -1 value.
    + Added copyright header.

  * contrib/hbwin/tests/testmapi.prg
    + Added some test data to make it work.
      (couldn't test it though, all I get is msgbox that I have no
      mailer)
2009-12-12 18:45:54 +00:00
Przemyslaw Czerpak
4148f3b01a 2009-12-12 18:41 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/vmmt/Makefile
    ! added missing strapi.c for some compilers which do not use hvmall.c
2009-12-12 17:42:26 +00:00
Viktor Szakats
880ef34931 2009-12-12 16:47 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtwin/gtwin.c
    * Using HB_SIZEOFARRAY().

  * include/hbapi.h
    * Typo in comment.

  * ChangeLog
    + Added missing item to prev.

  * contrib/hbwin/tests/testmapi.prg
    ! Fixed missing SVN props.
    ! Added missing SVN ID.
    * Formatting.
    ; TOFIX: This example expects arrays and logical value from command line, 
             so it won't work.
2009-12-12 15:48:11 +00:00
Viktor Szakats
8abe207283 2009-12-12 15:46 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbwinuni.h
    + Added HB_ARRAYGETSTR().

  * ChangeLog
    + Added missing item to prev.
2009-12-12 14:47:08 +00:00
Viktor Szakats
947362d444 2009-12-12 15:42 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/Makefile
  * contrib/hbwin/mapi.c
    + Added to Makefile.
    ! Added SVN ID.
    ! Added License header. (pls add your name to copyright headers)
    ! Fixed to use simple quote to include Harbour headers.
    ! Fixed Windows header inclusion.
    ! Disabled for UNICODE.
    ! Fixed to not use return value on stack as temporary variable.
    ! Fixed to not use static variable.
    ! Fixed UNICODE literals (also for WinCE).
    ! Fixed to not create NULL "holes" in passed to Windows lists
      if received arrays have wrong content.
    ! Fixed to check return value of GetProcAddress().
    % Optimized to only do parameter processing if MAPISendMail is available.
    * Cleaned string parameter defaulting to "".
    * Castings added and changed.
    * Optimizations.
    * Formatting (indentation, deleted unnecessary {}, variable scopes, ' ;' endings)
    * Variable scopes.
    * Using HB_SIZE.
    * Avoiding duplicating constants.
    + Added some provisions for UNICODE support. Otherwise whole
      code is disabled until this gets fully implemented.
    ; TODO: It'd be probably beneficial to remove artificial limit of
            100 recipients and file attachments.
    ; NOTE: I didn't make any functional tests, so please make some.
            An example/test code would be nice in tests subdir.
2009-12-12 14:43:52 +00:00
Przemyslaw Czerpak
9a6ed0a3e7 2009-12-12 14:36 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbwinuni.h
    ! fixed typo in last commit

  * harbour/contrib/hbwin/win_com.c
    * eliminated HB_TCHAR_*() usage
2009-12-12 13:36:46 +00:00
Antonio Carlos Pantaglione
8d0fba2d44 2009-12-12 10:45 UTC-0300 Antonio Carlos Pantaglione <toninho@fwi.com.br>
+ harbour/contrib/hbwin/mapi.c
  + harbour/contrib/hbwin/tests/testmapi.prg
    * MAPI send mail function.
2009-12-12 12:57:49 +00:00
Przemyslaw Czerpak
1afd3ffcb6 2009-12-12 13:52 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbwinuni.h
    + added new macro HB_ITEMGETSTR()

  * harbour/src/rtl/gtwin/gtwin.c
    * modified to use new UNICODE API instead of HB_TCHAR_*()

  * harbour/contrib/hbwin/win_misc.c
    * rewritten WIN_GETCOMMANDLINEPARAM()
      New version does not use old HB_TCHAR_*() API and respect multiple
      quoting by "" (i.e. .\"myapp"li"cation".exe)

      TOFIX: WIN_ANSITOWIDE() and WIN_WIDETOANSI() are wrong and have
             to be fixed. Please remember that number of character
             after conversion to/from UNICODE can be different then
             original number of chars, i.e. multibyte characters
             can be replaced by single Unicode character or one Unicode
             character may use few bytes representation.
2009-12-12 12:52:56 +00:00
Viktor Szakats
a7379d23f3 2009-12-12 12:48 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/hbqt_hbqmainwindow.cpp
    * Temporarily disabled mutex for HBMainWindow.
      Please report any problems and experiences, or any reason
      for the mutex implemented here, it's possible that I'm
      missing something.

  * contrib/hbqt/qtgui/qtguis/Makefile
  * contrib/hbqt/qtgui/Makefile
  * contrib/hbqt/Makefile
  * contrib/hbqt/detect.mk
  * contrib/hbqt/hbqts/Makefile
  * contrib/hbqt/qtnetwork/qtnetworks/Makefile
  * contrib/hbqt/qtnetwork/Makefile
    * Generalized the way QT component header dirs are enabled.
      This makes it possible to use this logic with gtqtc.

  * contrib/gtqtc/gtqtcs/Makefile
  * contrib/gtqtc/Makefile
    + 'moc' logic synced with hbqt.
    ! Fixed to use QT component header inclusion.

  * contrib/hbqt/hbqt_slots.cpp
    * Line ending spaces.
2009-12-12 11:54:25 +00:00
Viktor Szakats
ec1d1c5000 2009-12-12 12:28 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/dynlibhb.c
    + Using new UNICODE conversion macros in HB_LIBLOAD().

  * INSTALL
    * Minor.

  * contrib/xhb/hbsyslog.c
    + HB_SYSLOGOPEN(): Added UNICODE support. (this bug was hidden
      by explicit cast)
    * Using HB_TRUE/HB_FALSE.
    + Using new UNICODE conversion macros in HB_SYSLOGMESSAGE().
      (functionally not tested)
    * Formatting.

  * contrib/xhb/hblogdef.ch
    + Added comment that the header is used by C code.

  * contrib/hbqt/detect.mk
    ! Fixed static build after last commit.

  * contrib/hbwin/wapi_winbase.c
  * contrib/hbwin/win_dll.c
    * Variable renamed.

  * contrib/hbwin/win_prn2.c
    % Minor optimization.

  * contrib/hbwin/win_osc.c
    + Using new UNICODE conversion macros in WIN_OSVERSIONINFO().

  ; NOTE: Remaining "problem area" is HB_TCHAR_* usage in low level 
          code, when conversion needs to be done from/to C buffer 
          instead of Harbour parameter/return value. The problem 
          is that I don't have a pattern for that.
2009-12-12 11:33:08 +00:00
Viktor Szakats
79186f75a5 2009-12-12 02:43 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/strapi.c
    % Minor optimization (using cdp variable instead of repeated hb_vmCDP() calls.)

  * include/hbwinuni.h
    + Added HB_ITEMPUTSTR[LEN]() macros.
    + Added HB_STRUNSHARE() macro.
    ! Fixed typos in HB_ARRAYSETSTRLEN() macro values.

  * contrib/hbwin/win_prn2.c
    + Using new HB_ITEMPUTSTR() macro instead of HB_TCHAR*().

  * contrib/hbwin/win_misc.c
    ! WIN_RUNDETACHED(): Fixed to guarantee writable buffer in second 
      parameter of CreateProcess(). I've choosen to always pass a writable
      buffer, although MS requires this only for UNICODE mode.

  * contrib/hbwin/wapi_commctrl.c
    + Using new UNICODE parameter passing macros instead of HB_TCHAR*() ones.
    ! Fixed return values of WAPI_IMAGELIST_GETIMAGEINFO() to be empty
      string instead of unset (NIL) in case of error.

  + contrib/hbqt/filelist.mk
    ! Missed from previous commit.

  * contrib/hbwin/win_regc.c
    * Removed trailing spaces (realized I used a temp instance
      of 64-bit Far Manager for the last couple of days)
      (there will be more)
2009-12-12 02:07:01 +00:00
Przemyslaw Czerpak
51a5487cb8 2009-12-12 01:42 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/strapi.c
  * harbour/include/hbapistr.h
    + added new functions:
         hb_itemPutStr(), hb_itemPutStrUTF8(), hb_itemPutStrU16(),
         hb_arrayGetStr(), hb_arrayGetStrUTF8(), hb_arrayGetStrU16(),
         hb_arraySetStrLen(), hb_arraySetStrLenUTF8(), hb_arraySetStrLenU16(),
         hb_arraySetStr(), hb_arraySetStrUTF8(), hb_arraySetStrU16(),

  * harbour/include/hbwinuni.h
    * removed unnecessary and danger casting in UNICODE version of
      HB_RETSTR(), HB_RETSTRLEN(), HB_STORSTR() and HB_STORSTRLEN() macros
    * modify HB_ARRAYSETSTR() and HB_ARRAYSETSTRLEN() macros to use new
      STR API functions

  * harbour/external/Makefile
    * modified the order of compiled libraries for better performance in
      parallel compilation (-j<N>)
2009-12-12 00:43:01 +00:00
Przemyslaw Czerpak
cb65540d4e 2009-12-11 20:42 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/strapi.c
  * harbour/include/hbapistr.h
    + added new functions to operate on Harbour wide character strings:
         ULONG hb_wstrlen( const HB_WCHAR * szText );
         HB_WCHAR * hb_wstrdup( const HB_WCHAR * szText );
         HB_WCHAR * hb_wstrndup( const HB_WCHAR * szText, ULONG ulLen );
         int hb_wstrcmp( const HB_WCHAR * s1, const HB_WCHAR * s2 );
         int hb_wstrncmp( const HB_WCHAR * s1,
                          const HB_WCHAR * s2, ULONG count );
    + added new functions to convert NULL pointers to empty strings:
         const char * hb_strnull( const char * str );
         const HB_WCHAR * hb_wstrnull( const HB_WCHAR * str );
    + added new functions to convert string buffer returned by Harbour
      string functions to writable state:
         char * hb_strunshare( void ** phStr,
                               const char * pStr, ULONG ulLen );
         HB_WCHAR * hb_wstrunshare( void ** phStr,
                                    const HB_WCHAR * pStr, ULONG ulLen );
  * harbour/include/hbwinuni.h
    ! fixed HB_PARSTRDEF() to return empty string instead of NULL
    ! fixed HB_ARRAYSETSTR() to accept NULL as string parameter
2009-12-11 19:42:40 +00:00
Viktor Szakats
dd2d2762fc 2009-12-11 20:25 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_regc.c
    ! WIN_REGSETVALUEEX(): Off by one bug fixed in prev commit.
2009-12-11 19:25:45 +00:00
Viktor Szakats
aa13701479 2009-12-11 20:16 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/wapi_winbase.c
    * Eliminated hb_parclen() call in WAPI_FORMATMESSAGE() function.

  * contrib/hbwin/win_regc.c
    * WIN_REGSETVALUEEX(): Adjusted casting to not drop const.
    ! WIN_REGSETVALUEEX(): Added support for UNICODE builds when 
      string types (non-binary data) are passed.

  * contrib/hbwin/tests/testreg.prg
    + Extended with basic test for above.
2009-12-11 19:21:56 +00:00
Viktor Szakats
81effeca0c 2009-12-11 19:56 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/wce_smsc.c
    + Eliminated hb_parclen() usage.

  * contrib/hbwin/win_prn3.c
    ! Fixed typos.
2009-12-11 18:59:21 +00:00
Przemyslaw Czerpak
2c87340571 2009-12-11 19:51 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/wapi_winbase.c
    ! fixed casting

  * harbour/contrib/hbwin/wce_simc.c
    * use Harbour API functions to change items passed by reference

  * harbour/contrib/hbwin/win_prn3.c
    % eliminated unnecessary hb_parclen() call
2009-12-11 18:51:54 +00:00
Viktor Szakats
3ff24fff7e 2009-12-11 19:41 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/Makefile
  * contrib/hbqt/detect.mk
  + contrib/hbqt/moc.mk
  * contrib/hbqt/hbqts/Makefile
  * contrib/hbqt/qtgui/qtguis/Makefile
  * contrib/hbqt/qtgui/Makefile
  * contrib/hbqt/qtcore/qtcores/Makefile
  * contrib/hbqt/qtcore/Makefile
  * contrib/hbqt/qtnetwork/qtnetworks/Makefile
  * contrib/hbqt/qtnetwork/Makefile
    + Moved 'moc' build logic to separate file.
    + Added support for MOC_HEADERS in all sub-libs.
      This allows to avoid hacks to place every custom 
      created component in central lib. (It probably allows 
      to avoid central lib altogether.)
    ! Fixed broken static build after recent changes.
      (I've readded central filelist.mk to avoid 
      redundancy, but the file isn't an automatically 
      generated one anymore)
    % Optimized build to not provide all subsystem header 
      dirs for each QT sub-libs, only those which are needed.
      Now QtCore header dir is passed to all components, 
      but QtGui and QtNetwork is passed only to these 
      subcomponents.
      Central hbqt lib gets all dirs, but hopefully this 
      will be cleaned eventually.
    % Cleaned to not use /Qt include dir. It's apparently 
      not needed.

  * contrib/hbqt/qth/QObject.qth
  * contrib/hbqt/qtcore/QObject.cpp
    ! Core component was referring to a GUI one, and hbqt_par_QWidget() 
      was used to retieve a QObject inside QObject wrappers.
      Please fix me if it was intentional, but it didn't look right and 
      came out after cleaning header dir usage.

  * contrib/hbide/hbide.hbp
    + Added MSVC link switched sent by Andi to make QT 4.6.0 
      libs to default Harbour build.
2009-12-11 18:43:42 +00:00
Viktor Szakats
fbafd6c259 2009-12-11 18:17 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbwinuni.h
    + Added HB_ARRAYSETSTR*(). Based on Przemek's post.

  * contrib/hbwin/wce_simc.c
  * contrib/hbwin/wce_smsc.c
  * contrib/hbwin/win_prn1.c
  * contrib/hbwin/win_prn2.c
  * contrib/hbwin/win_regc.c
    + Using new UNICODE parameter passing macros instead of HB_TCHAR*() ones.
    * Minor rework WIN_TEXTOUT() and WIN_GETTEXTSIZE() to not use hb_parclen() 
      and protect some more against wrong length parameter.
    ; TOFIX: HB_ARRAYSETSTR() usage crashes (tested in non-UNICODE with testprn3)
             I didn't want to undo the whole thing, but can't find the err either.
    ; TOFIX: hb_parclen() usage.
    ; TOFIX: HB_ARRAYSETSTR() with NULL string parameter.
    ; TOFIX: HB_PARSTRDEF() to really default to empty string for non-string params.
    ; TODO: Remaining HB_TCHAR_*() usages.
    ; TODO: Peer-review what I did.

  * contrib/hbwin/wapi_winbase.c
    ! Fixed for WinCE after recent addition of new wrappers.
      This means exclusion of WAPI_WAITFORSINGLEOBJECTEX() and 
      WAPI_WAITFORMULTIPLEOBJECTSEX() for this platform.
    ! Minor fix in size of allocated buffer in WAPI_FORMATMESSAGE().
      (buffer was too large in non-UNICODE).
2009-12-11 17:27:41 +00:00
Viktor Szakats
32bf41944d 2009-12-11 10:59 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* include/hbextern.ch
    + Added HB_THREADONCEINIT().

  * contrib/hbqt/hbqt.ch
  * contrib/hbxbp/xbp.ch
    ! Moved XBP specific macro to HBXBP header.

  * contrib/hbqt/tests/demoqt.prg
    ! Deleted no more needed init calls.

  * contrib/hbqt/hbqt_events.cpp
    + Added TOFIX about GC collected pointer stored in low level 
      structure. (source of GPF).

  * contrib/hbwin/win_misc.c
  * contrib/hbwin/wapi_winbase.c
  * contrib/hbwin/wapi_winuser.c
  * contrib/hbwin/win_regc.c
  * contrib/hbwin/win_prn1.c
  * contrib/hbwin/win_prn3.c
  * contrib/hbwin/wapi_shellapi.c
  * contrib/hbwin/legacyco.c
    - Deleted now unnecessary '( LP[C]TSTR )' casts.
    + Cleaned const usage in WIN_PRINTERSETDEFAULT().
      F.e. OpenPrinter() has apparently wrong winapi declaration, 
      so a cast must have been added.

    ; TOFIX: CreateProcessW() second parameter has to be a read/write 
             buffer. Przemek, do you have an idea how to solve that 
             the cleanest way?
             (for now I kept a cast, assuming that a buffer is 
             created by Harbour conversion API, but that's not 
             something it guarantees in the future.)
2009-12-11 10:01:12 +00:00