Commit Graph

12854 Commits

Author SHA1 Message Date
Viktor Szakats
5fafefc19c 2009-12-16 18:28 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* harbour-win-spec
  * harbour-wce-spec
  * include/hbver.h
  * package/winuni/RELNOTES
  * package/winuni/mpkg_win_uni.bat
  * package/winuni/mpkg_win_uni.nsi
  * harbour.spec
  * config/global.mk
    * Changed version to 2.0.0rc1 (from 2.0.0beta3)
    ; TODO: Please also change debian/changelog.
    ; Rehearsing version change, I don't plan to make binary
      release of this interim version.

  * doc/codestyl.txt
    * Minor update.
      I don't plan a full update this time, as we have a huge
      amount of well formatted source code, and it's pretty
      consistent too, so it's enough to peek into any one of
      them for a perfect example. So if someone needs and 
      example, just look under src/* for both .c and .prg.
2009-12-16 17:38:13 +00:00
Przemyslaw Czerpak
b258738f10 2009-12-16 09:59 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/common/hbdate.c
    * casting for some more pedantic C/C++ compilers

  * harbour/include/hbinit.h
    * allow to force static C++ initialization as startup code in
      GCC and SunPRO builds by HB_STATIC_STARTUP macro
2009-12-16 08:59:41 +00:00
Viktor Szakats
6f26003775 2009-12-16 04:53 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed watcom targets to switch to single input file mode
      when C mode (now default) is used.
      Maybe OpenWatcom developers should finally sync such
      basic behavior between their C and C++ compilers. Until
      then we keep adding hacks.
2009-12-16 03:54:07 +00:00
Viktor Szakats
423051c834 2009-12-16 03:54 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbbtree/tests/ctest.c
    ! Changed sprintf() to safe hb_snprintf() to avoid MSVC 
      warnings.
2009-12-16 02:55:28 +00:00
Viktor Szakats
ce675e64c9 2009-12-16 03:17 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* config/common/watcom.mk
    ! Fixed for dos/watcom after previous change.
2009-12-16 02:18:08 +00:00
Viktor Szakats
3da406eb95 2009-12-16 03:11 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* config/common/watcom.mk
  * config/global.mk
  * config/rules.mk
    ! Added relatively ugly hack to change dir separators in CC_RULE in 
      a generic way. It's ugly because it's only needed for non-linux 
      Watcom C (not C++!) builds, but this way it's possible to avoid 
      CC_RULE override in common/watcom.mk. CC_RULE override didn't 
      implement dynlib support, which meant that after switching 
      to C mode as default for watcom, dynlib generation got broken 
      on win and os2.
2009-12-16 02:12:27 +00:00
Viktor Szakats
782ae37170 2009-12-16 02:10 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/hbqt_hbqmainwindow.cpp
    * Minor formatting after latest changes.
2009-12-16 01:10:59 +00:00
Viktor Szakats
036644d8be 2009-12-16 01:53 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/rddsql/sddmy/mysqldd.c
    ! Fixed warning reported by linux/watcom.

  * src/rtl/gtwin/gtwin.c
    * Minor formatting.
2009-12-16 00:54:21 +00:00
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