eb214d1e4b7f5665ce46ba1e85594de5027af488
110 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
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.
|
||
|
|
c8f03dd0c7 |
2009-02-17 01:03 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/gtwvg/make_b32.bat
* contrib/gtwvg/make_vc.bat
* contrib/gtwvg/Makefile
* Trying new method to point to hbwin, so that
we're not relying on hbwin headers being installed.
; Please test.
* contrib/Makefile
+ Added hbblat.
* contrib/make_vc_all.bat
* contrib/make_b32_all.bat
* contrib/make_gcc_all.sh
* contrib/hbblat/Makefile
* contrib/hbblat/common.mak
* contrib/hbblat/make_b32.bat
* contrib/hbblat/make_vc.bat
* contrib/hbblat/blatwrp.c
* contrib/hbblat/tests/hbmk.bat
* contrib/hbblat/tests/blatcmd.prg
+ Added support for HB_INC_BLAT (needed for releases).
* Some EOLs added.
* Minor correction to .ch name in make files.
% Replaced command line retrieval with hb_cmdline() call.
* Cleaned some headers/#defines.
* GNU make file got protection to only compile for win,
and to install headers.
* make_gnu.bat
* contrib/hbct/Makefile
* contrib/hbwin/Makefile
* Minor formatting.
|
||
|
|
6b15363e5d |
2009-02-16 18:48 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
- contrib/hbct/tests/hbmk.bat
- contrib/hbcurl/tests/hbmk.bat
+ contrib/hbcurl/tests/hbcurl.hbp
- contrib/hbclipsm/tests/hbmk.bat
+ contrib/hbclipsm/tests/hbclipsm.hbp
- contrib/hbcrypt/tests/hbmk.bat
+ contrib/hbcrypt/tests/hbcrypt.hbp
- contrib/examples/pp/hbmk.bat
+ contrib/examples/pp/pp.hbm
- contrib/examples/guestbk/hbmk.bat
+ contrib/examples/guestbk/guestbk.hbm
- contrib/examples/pe/hbmk.bat
+ contrib/examples/pe/pe.hbm
- contrib/examples/hbsqlit2/tests/hbmk.bat
+ contrib/examples/hbsqlit2/tests/hbsqlit2.hbp
- contrib/examples/hscript/hbmk.bat
+ contrib/examples/hscript/hscript.hbm
- utils/hbdoc/hbmk.bat
+ utils/hbdoc/hbdoc.hbm
* Converted some DOS/WIN batch files to platform
independent .hbm/.hbp files.
; Please test them.
* ChangeLog
+ Marked DBCREATETEMP() as DONE.
|
||
|
|
50d7dbd784 |
2009-02-16 20:54 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk/hbmk.prg
+ Added support for '#' comment lines in .hbm files.
+ Added support to automatically convert slashes/backslashes
in passed libnames and prg options.
* Cleanup on computing Harbour location. I didn't test all
situations here. This should fix previous versions not
honoring explicit HB_*_INSTALL envvars.
+ Added support for POCC (untested).
+ contrib/hbct/tests/hbct.hbp
+ contrib/examples/terminal/terminal.hbp
+ contrib/examples/terminal/trm_appn.hbm
+ Added new hbmk files to show what it takes to replace
the current system, but this time fully supporting
all Harbour platforms.
To use these just run hbmk, either from the path, or
by directly pointing to it:
..\..\..\bin\hbmk.exe <test.prg>
..\..\..\bin\hbmk.exe trm_appn.hbm
.exe can be dropped as soon as we delete out hbmk.bat file.
|
||
|
|
e5713107b1 |
2009-02-14 14:23 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk/hbmk.prg
- Added support for -o option for win/bcc32.
- tests/hbmk_vc.bat
- tests/hbmk_b32.bat
+ contrib/hbmysql/utils/hbmk.bat
- contrib/hbmysql/utils/hbmk_b32.bat
- contrib/hbmysql/utils/hbmk_vc.bat
+ contrib/hbmysql/tests/hbmk.bat
- contrib/hbmysql/tests/hbmk_b32.bat
- contrib/hbmysql/tests/hbmk_vc.bat
+ contrib/hbct/tests/hbmk.bat
- contrib/hbct/tests/hbmk_b32.bat
- contrib/hbct/tests/hbmk_vc.bat
+ contrib/hbodbc/tests/hbmk.bat
- contrib/hbodbc/tests/hbmk_b32.bat
- contrib/hbodbc/tests/hbmk_vc.bat
+ contrib/xhb/tests/hbmk.bat
- contrib/xhb/tests/hbmk_b32.bat
- contrib/xhb/tests/hbmk_vc.bat
+ contrib/hbtpathy/tests/hbmk.bat
- contrib/hbtpathy/tests/hbmk_b32.bat
- contrib/hbtpathy/tests/hbmk_vc.bat
+ contrib/hbmsql/tests/hbmk.bat
- contrib/hbmsql/tests/hbmk_b32.bat
- contrib/hbmsql/tests/hbmk_vc.bat
+ contrib/hbsqlit3/tests/hbmk.bat
- contrib/hbsqlit3/tests/hbmk_b32.bat
- contrib/hbsqlit3/tests/hbmk_vc.bat
+ contrib/hbole/tests/hbmk.bat
- contrib/hbole/tests/hbmk_b32.bat
- contrib/hbole/tests/hbmk_vc.bat
+ contrib/hbmzip/tests/hbmk.bat
- contrib/hbmzip/tests/hbmk_b32.bat
- contrib/hbmzip/tests/hbmk_vc.bat
+ contrib/hbapollo/tests/hbmk.bat
- contrib/hbapollo/tests/hbmk_b32.bat
- contrib/hbapollo/tests/hbmk_vc.bat
+ contrib/hbfbird/tests/hbmk.bat
- contrib/hbfbird/tests/hbmk_b32.bat
- contrib/hbfbird/tests/hbmk_vc.bat
+ contrib/hbziparc/tests/hbmk.bat
- contrib/hbziparc/tests/hbmk_b32.bat
- contrib/hbziparc/tests/hbmk_vc.bat
+ contrib/hbnf/tests/hbmk.bat
- contrib/hbnf/tests/hbmk_b32.bat
- contrib/hbnf/tests/hbmk_vc.bat
+ contrib/hbcurl/tests/hbmk.bat
- contrib/hbcurl/tests/hbmk_b32.bat
- contrib/hbcurl/tests/hbmk_vc.bat
+ contrib/rddsql/tests/hbmk.bat
- contrib/rddsql/tests/hbmk_b32.bat
- contrib/rddsql/tests/hbmk_vc.bat
+ contrib/hbhpdf/tests/hbmk.bat
- contrib/hbhpdf/tests/hbmk_b32.bat
- contrib/hbhpdf/tests/hbmk_vc.bat
+ contrib/rddado/tests/hbmk.bat
- contrib/rddado/tests/hbmk_b32.bat
- contrib/rddado/tests/hbmk_vc.bat
+ contrib/gtwvg/tests/hbmk.bat
- contrib/gtwvg/tests/hbmk_b32.bat
- contrib/gtwvg/tests/hbmk_vc.bat
+ contrib/hbpgsql/tests/hbmk.bat
- contrib/hbpgsql/tests/hbmk_b32.bat
- contrib/hbpgsql/tests/hbmk_vc.bat
+ contrib/rddads/tests/hbmk.bat
- contrib/rddads/tests/hbmk_b32.bat
- contrib/rddads/tests/hbmk_vc.bat
+ contrib/hbclipsm/tests/hbmk.bat
- contrib/hbclipsm/tests/hbmk_b32.bat
- contrib/hbclipsm/tests/hbmk_vc.bat
+ contrib/hbfimage/tests/hbmk.bat
- contrib/hbfimage/tests/hbmk_b32.bat
- contrib/hbfimage/tests/hbmk_vc.bat
+ contrib/hbgd/tests/hbmk.bat
- contrib/hbgd/tests/hbmk_b32.bat
- contrib/hbgd/tests/hbmk_vc.bat
+ contrib/hbmisc/tests/hbmk.bat
- contrib/hbmisc/tests/hbmk_b32.bat
- contrib/hbmisc/tests/hbmk_vc.bat
+ contrib/hbgf/tests/hbmk.bat
- contrib/hbgf/tests/hbmk_b32.bat
- contrib/hbgf/tests/hbmk_vc.bat
+ contrib/hbtip/tests/hbmk.bat
- contrib/hbtip/tests/hbmk_b32.bat
- contrib/hbtip/tests/hbmk_vc.bat
+ contrib/hbwin/tests/hbmk.bat
- contrib/hbwin/tests/hbmk_b32.bat
- contrib/hbwin/tests/hbmk_vc.bat
+ contrib/hbvpdf/tests/hbmk.bat
- contrib/hbvpdf/tests/hbmk_b32.bat
- contrib/hbvpdf/tests/hbmk_vc.bat
+ contrib/hbbtree/tests/hbmk.bat
- contrib/hbbtree/tests/hbmk_djg.bat
- contrib/hbbtree/tests/hbmk_b32.bat
- contrib/hbbtree/tests/hbmk_vc.bat
+ contrib/hbcrypt/tests/hbmk.bat
- contrib/hbcrypt/tests/hbmk_b32.bat
- contrib/hbcrypt/tests/hbmk_vc.bat
+ contrib/hbssl/tests/hbmk.bat
- contrib/hbssl/tests/hbmk_b32.bat
- contrib/hbssl/tests/hbmk_vc.bat
+ contrib/hbwhat/tests/hbmk.bat
- contrib/hbwhat/tests/hbmk_b32.bat
- contrib/hbwhat/tests/hbmk_vc.bat
- source/rdd/usrrdd/example/hbmk_b32.bat
- source/rdd/usrrdd/example/hbmk_vc.bat
% Updated for new hbmk.bat and hbmk.exe.
|
||
|
|
bdc6e81793 |
2009-02-13 11:08 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbpp.h
* harbour/source/pp/hbpp.c
* harbour/source/pp/ppcore.c
* harbour/source/compiler/hbmain.c
+ added support for dynamically calculated #define results
! removed old code which was adding __FILE__ #define constant
It was not working correctly like in other compilers ignoring
#include
+ added __FILE__ and __LINE__ #define directives using dynamically
calculated results - now it works as expected respecting #include
directives and the implementation is local to PP without any hacks
in core compiler code.
* harbour/contrib/hbct/files.c
* added support for optional milliseconds part in HB_FSETDATETIME()/
HB_FGETDATETIME().
* harbour/source/rtl/philes.c
! minor fix in return value
|
||
|
|
fab2396d7f |
2009-02-11 19:44 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbct/files.c
* source/common/hbfsapi.c
* source/rtl/gtgui/gtgui.c
* source/rtl/gttone.c
* W32 -> Windows. In comments.
|
||
|
|
4c6372e8ff |
2009-02-11 19:40 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* doc/en/diskspac.txt
* doc/en/terminal.txt
* doc/en/setmode.txt
* doc/es/diskspac.txt
* doc/es/dirstruc.txt
* doc/inet.txt
* contrib/hbmysql/readme.txt
* contrib/hbct/disk.c
* contrib/hbtpathy/telepath.prg
* contrib/hbole/tests/testole.prg
* contrib/gtwvg/gtwvg.c
* contrib/gtwvg/wvgclass.prg
* contrib/gtwvg/gtwvg.h
* contrib/gtwvg/wvggui.c
* contrib/gtwvg/wvggui.h
* contrib/gtwvg/wvgwin.c
* contrib/gtwvg/wvgutils.c
* contrib/gtwvg/wvgcore.c
* contrib/hbgf/hbgfos2/winctrl.prg
* contrib/hbgf/hbgfos2/tform.prg
* source/common/hbver.c
* source/rtl/run.c
* source/rtl/gtwin/gtwin.c
* source/rtl/oemansi.c
* source/rtl/gtwvt/gtwvt.h
* source/rtl/gtwvt/gtwvt.c
* source/rtl/hbrandom.c
* source/rtl/filesys.c
* Win32 -> Windows. In comments / docs.
|
||
|
|
4961857b2d |
2009-02-10 04:15 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/classes.c
* covered some old functions marked as deprecated long time ago
by HB_LEGACY_LEVEL2 macro
* harbour/source/rtl/hbgtcore.c
* harbour/contrib/hbct/ctwin.c
* harbour/contrib/hbct/keyset.c
* harbour/contrib/hbct/misc3.c
* harbour/contrib/hbnf/numlock.c
* harbour/contrib/hbnf/shift.c
* harbour/contrib/hbnf/alt.c
* harbour/contrib/hbnf/ctrl.c
* harbour/contrib/hbnf/caplock.c
* use memset( >Info, 0, sizeof( gtInfo ) ); to initialize
HB_GT_INFO structure - it also fixes possible problems with
uninitialized pNewVal2 member in few cases.
|
||
|
|
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.
|
||
|
|
c8c773d604 |
2009-02-06 21:35 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/hbdefs.h
- Removed HB_ISSPACE(). It was already defined.
* include/hbset.h
* contrib/hbct/ctwin.c
* contrib/hbct/ctwin.h
* source/vm/set.c
* BYTE -> UCHAR
|
||
|
|
b129b78a47 |
2009-02-06 19:03 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/hbdefs.h
+ Added HB_ISALNUM() macro.
+ Added HB_ISSPACE() macro. Please review.
* source/contrib/hbver.c
* isspace() -> HB_ISSPACE().
* contrib/rddads/ads1.c
! toupper() -> HB_TOUPPER()
* contrib/xhb/hbxml.c
+ Readded #include <ctype.h> because this one still uses isspace().
* include/hbcomp.h
* include/hbmacro.h
* contrib/hbct/token1.c
* contrib/hbodbc/odbc.c
* contrib/xhb/freadlin.c
* contrib/rddsql/sqlmix.c
* contrib/gtwvg/gtwvg.h
* contrib/gtwvg/wvggui.h
* contrib/rddads/adsx.c
* contrib/rddads/ads1.c
* contrib/hbclipsm/time.c
* contrib/hbclipsm/status.c
* contrib/hbmisc/dates2.c
* contrib/hbwin/win_ole.c
* contrib/examples/pp/pp.c
* source/debug/dbgentry.c
* source/common/hbver.c
* source/rtl/chrasc.c
* source/rtl/philes.c
* source/rtl/dirdrive.c
* source/rtl/dateshb.c
* source/rtl/philesx.c
* source/rtl/disksphb.c
* source/rtl/soundex.c
* source/rtl/gtapi.c
* source/rtl/filesys.c
* source/codepage/cppt850.c
* source/codepage/cpuawin.c
* source/codepage/cpde850.c
* source/codepage/cpsv850.c
* source/codepage/cpeswinc.c
* source/codepage/cptr857.c
* source/codepage/cpru866.c
* source/codepage/cproiso.c
* source/codepage/cprowin.c
* source/codepage/cpeswinm.c
* source/codepage/cpes850.c
* source/codepage/cpcs852.c
* source/codepage/cpitisb.c
* source/codepage/cphu852.c
* source/codepage/cpsk852.c
* source/codepage/cpplmaz.c
* source/codepage/cpesisoc.c
* source/codepage/cppliso.c
* source/codepage/cpbgmik.c
* source/codepage/cpplwin.c
* source/codepage/cpbg866.c
* source/codepage/cpltwin.c
* source/codepage/cphu852s.c
* source/codepage/cpptiso.c
* source/codepage/cpel737.c
* source/codepage/cpsrwin.c
* source/codepage/cpsviso.c
* source/codepage/cpdeiso.c
* source/codepage/cpfr850.c
* source/codepage/cpsvwin.c
* source/codepage/cpdewin.c
* source/codepage/cphr437.c
* source/codepage/cpes850c.c
* source/codepage/cphr852.c
* source/codepage/cpua866.c
* source/codepage/cpit850.c
* source/codepage/cpit437.c
* source/codepage/cpsl437.c
* source/codepage/cpsl852.c
* source/codepage/cphuwins.c
* source/codepage/cpcsiso.c
* source/codepage/cpesiso.c
* source/codepage/cpcswin.c
* source/codepage/cpeswin.c
* source/codepage/cphuiso.c
* source/codepage/cpskiso.c
* source/codepage/cprukoi.c
* source/codepage/cphuwin.c
* source/codepage/cpskwin.c
* source/codepage/cp_tpl.c
* source/codepage/cpruiso.c
* source/codepage/cpruwin.c
* source/codepage/cphuisos.c
* source/codepage/cpelwin.c
* source/codepage/cpro852.c
* source/codepage/cpfriso.c
* source/codepage/cpfrwin.c
* source/codepage/cpitiso.c
* source/codepage/cphrwin.c
* source/codepage/cpsliso.c
* source/codepage/cpitwin.c
* source/codepage/cpslwin.c
* source/codepage/cpcskam.c
* source/codepage/cpsvclip.c
* source/codepage/cpbgiso.c
* source/codepage/cptrwin.c
* source/codepage/cpskkam.c
* source/codepage/cpbgwin.c
* source/codepage/cpuakoi.c
* source/codepage/cppl852.c
* utils/hbdoc/hbdfrdln.c
* utils/hbmake/hbmfrdln.c
% Removed #include <ctype.h>. Most of these didn't need it anyway.
|
||
|
|
1e894d019e |
2009-02-06 18:46 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/hbdefs.h
+ Added HB_ISALNUM() macro.
* include/hbpp.h
* include/hbapicdp.h
* contrib/hbct/pos1.c
* contrib/hbct/ascpos.c
* contrib/xhb/hbxml.c
* contrib/hbtip/utils.c
* contrib/examples/pp/hbppcore.c
* source/vm/itemapi.c
* source/vm/memvars.c
* source/vm/set.c
* source/vm/classes.c
* source/debug/dbgentry.c
* source/common/hbstr.c
* source/common/expropt2.c
* source/rtl/strcase.c
* source/rtl/cdpapi.c
* source/rtl/is.c
* source/rtl/transfrm.c
* source/rtl/dates.c
* source/rtl/natmsg.c
* source/rtl/soundex.c
* source/rtl/hbffind.c
* source/rdd/workarea.c
* source/compiler/hbmain.c
* source/compiler/harbour.yyc
* source/compiler/harbour.y
* Replaced:
isdigit() -> HB_ISDIGIT()
isalpha() -> HB_ISALPHA()
isalnum() -> HB_ISALNUM()
isupper() -> HB_ISUPPER()
islower() -> HB_ISLOWER()
tolower() -> HB_TOLOWER()
toupper() -> HB_TOUPPER()
* source/rtl/natmsg.c
! Fixed to use CP sensitive case conversion in
__NATISNEGATIVE() and __NATISAFFIRM().
* source/rtl/is.c
! Fixed typo in recently added hb_charIsUpper()/hb_charIsLower()
functions.
; TODO: Remove DJGPP to*() hack.
; TODO: Replace HB_PP_UPPER(), HB_PP_ISDIGIT() with equivalent
new macros.
; TOFIX: Some of the above macros should better be replaced
by CP sensitive versions. F.e. the one in hbtip.
; TOFIX: Remove remaining #include <ctype.h> lines.
|
||
|
|
c414570a23 |
2009-02-04 23:04 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/examples/hbsqlit2/tests/hbmk_b32.bat
* contrib/examples/hbsqlit2/tests/hbmk_vc.bat
* contrib/gtwvg/tests/hbmk_b32.bat
* contrib/gtwvg/tests/hbmk_vc.bat
* contrib/hbapollo/tests/hbmk_b32.bat
* contrib/hbapollo/tests/hbmk_vc.bat
* contrib/hbclipsm/tests/hbmk_b32.bat
* contrib/hbclipsm/tests/hbmk_vc.bat
* contrib/hbcrypt/tests/hbmk_b32.bat
* contrib/hbcrypt/tests/hbmk_vc.bat
* contrib/hbct/tests/hbmk_b32.bat
* contrib/hbct/tests/hbmk_vc.bat
* contrib/hbcurl/tests/hbmk_b32.bat
* contrib/hbcurl/tests/hbmk_vc.bat
* contrib/hbfbird/tests/hbmk_b32.bat
* contrib/hbfbird/tests/hbmk_vc.bat
* contrib/hbfimage/tests/hbmk_b32.bat
* contrib/hbfimage/tests/hbmk_vc.bat
* contrib/hbgd/tests/hbmk_b32.bat
* contrib/hbgd/tests/hbmk_vc.bat
* contrib/hbgf/tests/hbmk_b32.bat
* contrib/hbgf/tests/hbmk_vc.bat
* contrib/hbhpdf/tests/hbmk_b32.bat
* contrib/hbhpdf/tests/hbmk_vc.bat
* contrib/hbmisc/tests/hbmk_b32.bat
* contrib/hbmisc/tests/hbmk_vc.bat
* contrib/hbmsql/tests/hbmk_b32.bat
* contrib/hbmsql/tests/hbmk_vc.bat
* contrib/hbmysql/tests/hbmk_b32.bat
* contrib/hbmysql/tests/hbmk_vc.bat
* contrib/hbmysql/utils/hbmk_b32.bat
* contrib/hbmysql/utils/hbmk_vc.bat
* contrib/hbmzip/tests/hbmk_b32.bat
* contrib/hbmzip/tests/hbmk_vc.bat
* contrib/hbnf/tests/hbmk_b32.bat
* contrib/hbnf/tests/hbmk_vc.bat
* contrib/hbodbc/tests/hbmk_b32.bat
* contrib/hbodbc/tests/hbmk_vc.bat
* contrib/hbole/tests/hbmk_b32.bat
* contrib/hbole/tests/hbmk_vc.bat
* contrib/hbpgsql/tests/hbmk_b32.bat
* contrib/hbpgsql/tests/hbmk_vc.bat
* contrib/hbsqlit3/tests/hbmk_b32.bat
* contrib/hbsqlit3/tests/hbmk_vc.bat
* contrib/hbssl/tests/hbmk_b32.bat
* contrib/hbssl/tests/hbmk_vc.bat
* contrib/hbtip/tests/hbmk_b32.bat
* contrib/hbtip/tests/hbmk_vc.bat
* contrib/hbtpathy/tests/hbmk_b32.bat
* contrib/hbtpathy/tests/hbmk_vc.bat
* contrib/hbvpdf/tests/hbmk_b32.bat
* contrib/hbvpdf/tests/hbmk_vc.bat
* contrib/hbwhat/tests/hbmk_b32.bat
* contrib/hbwhat/tests/hbmk_vc.bat
* contrib/hbwin/tests/hbmk_b32.bat
* contrib/hbwin/tests/hbmk_vc.bat
* contrib/hbziparc/tests/hbmk_b32.bat
* contrib/hbziparc/tests/hbmk_vc.bat
* contrib/rddado/tests/hbmk_b32.bat
* contrib/rddado/tests/hbmk_vc.bat
* contrib/rddads/tests/hbmk_b32.bat
* contrib/rddads/tests/hbmk_vc.bat
* contrib/rddsql/tests/hbmk_b32.bat
* contrib/rddsql/tests/hbmk_vc.bat
* contrib/xhb/tests/hbmk_b32.bat
* contrib/xhb/tests/hbmk_vc.bat
* source/rdd/usrrdd/example/hbmk_b32.bat
* source/rdd/usrrdd/example/hbmk_vc.bat
* tests/hbmk_b32.bat
* tests/hbmk_vc.bat
* HB_ARCHITECTURE w32 -> win transition. Pass 2.
; NOTE: HB_ARCHITECURE=w32 still works, but it's
strongly recommended to switch to 'win'.
|
||
|
|
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.
|
||
|
|
1d13959a7b |
2009-02-04 01:09 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/extend.api
* include/hbgtcore.h
* include/hbwince.h
* include/hbthread.h
* include/hbdefs.h
* include/hbsetup.h
* include/hbapi.h
* include/clipdefs.h
* include/hbatomic.h
* contrib/hbmysql/mysql.c
* contrib/hbct/ctnet.c
* contrib/hbct/files.c
* contrib/hbct/dattime3.c
* contrib/hbct/disk.c
* contrib/hbodbc/odbc.c
* contrib/xhb/hboutdbg.c
* contrib/xhb/hbsyslog.c
* contrib/xhb/filestat.c
* contrib/hbmsql/msql.c
* contrib/hbole/ole2.c
* contrib/hbmzip/hbmzip.c
* contrib/hbapollo/apollo.c
* contrib/hbfbird/firebird.c
* contrib/hbnf/descendn.c
* contrib/hbnf/getenvrn.c
* contrib/rddsql/sqlmix.c
* contrib/gtwvg/gtwvg.c
* contrib/gtwvg/wvggui.c
* contrib/gtwvg/wvgwin.c
* contrib/gtwvg/wvgutils.c
* contrib/gtwvg/wvgcore.c
* contrib/rddads/adsx.c
* contrib/rddads/rddads.h
* contrib/rddads/adsmgmnt.c
* contrib/rddads/adsfunc.c
* contrib/rddads/ads1.c
* contrib/hbfimage/fi_winfu.c
* contrib/hbfimage/fi_wrp.c
* contrib/hbgd/gd.ch
* contrib/hbgd/gdwrp.c
* contrib/hbgf/hbgfwin/winapi.c
* contrib/hbtip/utils.c
* contrib/hbtip/ChangeLog
* contrib/hbwin/win_prn2.c
* contrib/hbwin/win_osc.c
* contrib/hbwin/win_misc.c
* contrib/hbwin/win_prt.c
* contrib/hbwin/win_dll.c
* contrib/hbwin/win_ole.c
* contrib/hbwin/win_prn1.c
* contrib/hbwin/win_regc.c
* contrib/hbssl/sslsess.c
* contrib/hbssl/sslrand.c
* contrib/hbwhat/whtdate.c
* contrib/hbwhat/whtini.c
* contrib/hbwhat/whtcret.c
* contrib/hbwhat/whthead.c
* contrib/hbwhat/whtilst.c
* contrib/hbwhat/whtreg.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/whtdlg.c
* contrib/hbwhat/whtview.c
* contrib/hbwhat/whtsys.c
* contrib/hbwhat/whtmain.c
* contrib/hbwhat/whtwnd.c
* contrib/hbwhat/whtmmcap.c
* contrib/hbwhat/whtfont.c
* contrib/hbwhat/whtdir.c
* contrib/hbwhat/whtbmp.c
* contrib/hbwhat/whtkbrd.c
* contrib/hbwhat/whtpen.c
* contrib/hbwhat/whttext.c
* contrib/hbwhat/whtdc.c
* contrib/hbwhat/whtdraw.c
* contrib/examples/uhttpd/socket.c
* contrib/examples/uhttpd/uhttpdc.c
* source/vm/mainwin.c
* source/vm/maindll.c
* source/vm/maindllh.c
* source/vm/hvm.c
* source/vm/cmdarg.c
* source/vm/maindllp.c
* source/vm/fm.c
* source/vm/extrap.c
* source/vm/thread.c
* source/vm/dynlibhb.c
* source/vm/set.c
* source/common/hbgete.c
* source/common/hbver.c
* source/common/hbfsapi.c
* source/common/hbwince.c
* source/common/hbdate.c
* source/rtl/diskspac.c
* source/rtl/console.c
* source/rtl/gtwin/gtwin.c
* source/rtl/fserror.c
* source/rtl/hbgtcore.c
* source/rtl/gtclip.c
* source/rtl/fstemp.c
* source/rtl/idle.c
* source/rtl/oemansi.c
* source/rtl/disksphb.c
* source/rtl/net.c
* source/rtl/gtgui/gtgui.c
* source/rtl/seconds.c
* source/rtl/gttone.c
* source/rtl/hbproces.c
* source/rtl/gtkeycod.c
* source/rtl/version.c
* source/rtl/gtwvt/gtwvt.c
* source/rtl/hbrandom.c
* source/rtl/hbinet.c
* source/rtl/hbffind.c
* source/rtl/gtsys.c
* source/rtl/filesys.c
* source/rtl/gtkbstat.c
* source/rtl/isprint.c
* source/compiler/cmdcheck.c
* utils/hbmake/hbmlang.c
* #defines renamed to be bitwidth-independent.
- HB_OS_WIN_32_USED -> HB_OS_WIN_USED
- HB_OS_WIN_32 -> HB_OS_WIN
; Please modify your code accordingly.
* include/hbdefs.h
* include/hbsetup.h
+ Added compatibility to still understand HB_OS_WIN_32_USED,
and to #define HB_OS_WIN_32 in addition to HB_OS_WIN.
This means that old code will still work, but these
compatibility features will be removed in the future,
so it's recommended to change the code as above.
|
||
|
|
dc70d7602c |
2009-02-03 18:24 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* doc/en/hb_api.txt
* doc/en/hb_apird.txt
* include/hbrdddbf.h
* include/hbrddcdx.h
* include/hbapi.h
* include/hbrddfpt.h
* include/hbrddntx.h
* contrib/hbct/dbftools.c
* contrib/rddado/adordd.prg
* contrib/hbpgsql/pgrdd.prg
* contrib/rddads/adsx.c
* contrib/rddads/adsfunc.c
* contrib/examples/rdddbt/hbrdddbt.h
* contrib/examples/rdddbt/dbfdbt1.c
* source/vm/hvm.c
* source/vm/memvars.c
* source/debug/dbgentry.c
* SUCCESS -> HB_SUCCESS
* FAILURE -> HB_FAILURE
* ERRCODE -> HB_ERRCODE
; Migration finished.
|
||
|
|
b438524f5e |
2009-02-03 15:03 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* include/hbapigt.h
* contrib/hbct/screen1.c
* source/rtl/console.c
* source/rtl/hbrunfun.c
* source/rtl/gx.c
* source/rtl/gtapi.c
* SUCCESS -> HB_SUCCESS
* FAILURE -> HB_FAILURE
* ERRCODE -> HB_ERRCODE
|
||
|
|
d81d19db75 |
2009-02-03 02:07 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbct/strdiff.c
* contrib/hbct/token2.c
* contrib/hbct/atadjust.c
* contrib/hbct/ctmath.c
* contrib/hbct/charsort.c
* contrib/hbct/charmix.c
* contrib/hbct/wordrepl.c
* contrib/hbct/charrepl.c
* contrib/hbct/strswap.c
* contrib/hbct/trig.c
* contrib/hbct/charswap.c
* contrib/hbct/charop.c
* contrib/hbct/num1.c
* contrib/hbct/ctstr.c
* contrib/hbct/token1.c
* contrib/hbct/charmirr.c
* contrib/hbct/ctc.c
* contrib/hbct/relation.c
* contrib/hbct/atnum.c
* contrib/hbct/posdiff.c
* contrib/hbct/finan.c
* contrib/hbct/range.c
* contrib/hbct/addascii.c
* contrib/hbct/ctmath2.c
* contrib/hbct/tab.c
* contrib/hbct/asciisum.c
* contrib/hbct/pos2.c
* contrib/hbct/numat.c
* contrib/hbct/atrepl.c
* contrib/hbct/wordtoch.c
% Using HB_ERR_FUNCNAME.
* contrib/hbct/charop.c
! Fixed CHARADD(), CHARSUB(), CHARAND(), CHAROR(), CHARXOR()
showing wrong function name in error message when first
passed parameter is invalid.
|
||
|
|
3ebad5fb4e |
2009-02-03 01:49 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbct/charop.c
! Fixed CHARADD(), CHARSUB(), CHARAND(), CHAROR(), CHARXOR()
to not crash when second parameter is an empty string.
|
||
|
|
7ae3169542 |
2009-02-02 23:25 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbct/keysec.prg
* contrib/hbct/keytime.prg
* contrib/hbct/showtime.prg
* contrib/hbct/ctdummy.prg
* STATICs converted to THREAD STATICs.
* contrib/xhb/hblognet.prg
* contrib/xhb/hblog.prg
+ Permanently enabled conditional HB_THREAD_SUPPORT.
; TOFIX: - hbwhat/wincore.prg
- xhb/cstruct.prg
Needs reviewing and either mutex protection
for STATICs or conversion to THREAD STATIC.
; TOFIX: C code uses much more statics, some of these make
code clearly broken for MT.
Shouldn't we add core support for thread specific
cargo (user defined data) area available for 3rd
party libs/apps?
Same could be added to GT structure to hold
GT instance specific user defined data.
|
||
|
|
11b824d53b |
2009-02-02 22:40 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbct/fcopy.prg
* contrib/hbtpathy/telepath.prg
* contrib/hbziparc/hbziparc.prg
* contrib/rddado/adordd.prg
* contrib/gtwvg/wvgpaint.prg
* contrib/gtwvg/tests/demowvg.prg
* contrib/hbpgsql/pgrdd.prg
* contrib/hbwin/win_tole.prg
* contrib/hbvpdf/hbvpdf.prg
* contrib/hbwhat/wincore.prg
* Renamed THREAD STATIC vars to t_* (from s_*).
|
||
|
|
4f94ab2609 |
2009-01-19 21:38 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbct/ctwin.c
* harbour/contrib/hbct/ctwin.h
+ added support for nested window shadows
|
||
|
|
eea5355ce8 |
2009-01-19 19:34 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbct/ctwin.c
* harbour/contrib/hbct/ctwin.h
* harbour/contrib/hbct/ctwfunc.c
+ added support for window shadows which clears highlight attributes
instead of using fixed shadow color attribute
|
||
|
|
507ea35468 |
2009-01-17 03:39 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbgtcore.h
* harbour/source/rtl/hbgtcore.c
+ added two new methods:
TOUCHLINE() - marks line as modified
REDRAWDIFF() - it contains REFRESH() from which is now called so
it's possible to overload this method by upper level RDDs without
touching REFRESH() method which can be overloaded by intermediate
RDDs
* harbour/contrib/hbct/ctwin.c
% do not use EXPOSEAREA() and TOUCHCELL() methods but TOUCHLINE()
only and overloaded REDRAWDIFF() - it should gives noticeable
speed improvement in some where cost of screen update is very
big and GT does not calculate minimal update area.
* harbour/source/rdd/dbfnsx/dbfnsx1.c
% minor speed improvement in key decoding
|
||
|
|
bb03d2bc41 |
2009-01-16 01:30 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbct/video.c
* contrib/hbct/pack.c
* contrib/hbct/disk.c
* Minor formatting.
* contrib/hbct/common.mak
* contrib/hbct/Makefile
! C headers are now installed.
(committed in a previous session)
* config/global.cf
* make_b32.bat
* make_gcc.mak
+ Added file ending EOLs.
(committed in a previous session)
|
||
|
|
e35f05643b | Added ending EOLs | ||
|
|
b8ada85edc |
2009-01-15 21:27 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbct/ctwin.c
* added small hack for scrolling console output when client area
is set
|
||
|
|
4967de721b |
2009-01-15 13:48 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/set.c
* do not check for HVM stack existence in ST HVM to avoid compiler
warning
* harbour/contrib/hbct/ctextern.ch
! removed HB_GT_CTW and HB_GT_CTW_DEFAULT added by mistake
It caused GPF at HVM startup because CTW was register as
default GT driver
* harbour/contrib/hbbmcdx/bmdbfcdx.c
! added missing hbstack.h
! fixed accessing RDD node structure
* harbour/contrib/hbct/ctwin.h
* harbour/contrib/hbct/ctwin.c
* harbour/contrib/hbct/ctwfunc.c
+ extended internal CTW API functions to hide/show window, create
new window without displaying it, selecting window without moving
it to top level, changing existing window shadow attribute.
+ added support user window levels controlled by user
(BOTTOM, DEFAULT, TOP)
+ added support for selecting client area (possible to update square)
in each CT Window
It's a work in progress and the above modifications will be updated yet.
|
||
|
|
1e62fb550e |
2009-01-14 16:15 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/net.c
* contrib/hbziparc/hbziparc.prg
* contrib/hbct/files.c
* Minor formatting.
* source/rtl/gtxwc/gtxwc.c
! Fix to recent fix. An '!' was missing, Przemek pls check me.
* source/rtl/philes.c
+ HB_PROGNAME() now returns absolute path in *NIX systems, too.
(please test and refine)
* source/lang/msgca.c
! Fixes from xhb.
* contrib/hbziparc/hbziparc.prg
* Minor correction ( = -> := )
* source/rtl/gtwin/gtwin.c
+ Added HB_GTI_CODEPAGE support.
As per MS docs, this works only when non-raster font is used
in the console window. Notice that the accepted CP values are
different from the GTWVT ones (GTWIN being the more "logical"
one, since it's a newer API). Currently, Harbour doesn't try
to hide these interface details.
; TODO: UNICODE and BOX char support for GTWIN mode.
* source/rtl/tbrowse.prg
* Using HB_DISPOUTATBOX() to draw column/header/footer separators.
; NOTE: This may cause problems if someone wants to use native
CP (accented or other special CP specific) chars to draw
these screen elements. Maybe an option should be added,
or some sort of markings in the separator strings to
control that.
Pls REVIEW.
* include/hbextern.ch
* source/rtl/console.c
+ Added HB_DISPOUTATBOX() which is similar to HB_DISPOUTAT(),
but marks the text drawn as HB_GT_ATTR_BOX, so these chars
can be properly displayed as drawing chars, regardless of
the selected codepage. Another difference is that this
function only supports strings to be printed. Other types
don't print anything.
; NOTE: Maybe this function could use a better name, pls
review and decide.
* source/rtl/gtwvt/gtwvt.c
* source/rtl/gtwvt/gtwvt.h
! Fixed not accepting zero as a HB_GTI_CODEPAGE value.
! Fixed HB_GTI_CODEPAGE to change the codepage.
+ Added box char support in Unicode mode.
For chars marked as HB_GT_ATTR_BOX, chars will be
mapped to Unicode according to CP437.
+ Added box char support in non-Unicode mode.
For chars marked as HB_GT_ATTR_BOX, OEM_CHARSET will
always be used.
; NOTE: This way it's possible to use ISO/WIN codepages with
GTWVT, while still being able to use various drawing
chars (lines, blocks, arrows).
; NOTE: The available set of drawing chars depends on the
OS OEM_CHARSET mapping _for non-Unicode Harbour_.
For Unicode Harbour, full CP437 codepage is
always available.
; NOTE: This solution doesn't go as far as (GTWXC) to
graphically draw / emulate these chars.
; TODO: Add HB_GTI_BOXCP support to change hard-wired "EN" CP.
* include/hbapigt.h
* include/hbgtcore.h
! Moved HB_GT_ATTR_* macros to public headers, because they
are needed for public API functions.
* contrib/hbwin/win_reg.prg
+ w32_regRead(): Added second parameter to specify the default
value returned in case the reg entry doesn't exist.
If not specified, NIL will be returned, just like before.
+ GetRegistry(): Added 4th parameter with same purpose as above.
* source/rtl/hbregex.c
* Minor opt.
* contrib/hbwin/win_misc.c
* Added command line option parameter to WIN_RUNDETACHED().
* include/hbapi.h
+ HB_ERRCODE (to replace ERRCODE)
+ HB_SUCCESS (to replace SUCCESS)
+ HB_FAILURE (to replace FAILURE)
+ contrib/hbwin/win_misc.c
* contrib/hbwin/common.mak
* contrib/hbwin/Makefile
+ WIN_SHELLEXECUTE()
WIN_RUNDETACHED()
WIN_LOADRESOURCE()
Added some new Windows API wrappers.
; TODO: Add hb_osEncode() to them.
* source/rtl/diskspac.c
* source/rtl/disksphb.c
! Fixed DISKSPACE() and HB_DISKSPACE() for Darwin.
Previously they had returned erroneous values.
; TOFIX: Probably HB_DISKSPACE() should be implemented for Watcom and CEGCC,
just like DISKSPACE() is.
* source/rtl/filesys.c
! hb_fsGetAttr() to set the returned attribute to zero
in case of error.
* include/hbextern.ch
* source/rtl/philes.c
+ HB_FSETATTR( <cFileName>, @<nAttr> ) -> <lSuccess>
+ HB_FGETATTR( <cFileName>, <nAttr> ) -> <lSuccess>
+ HB_FSETDATETIME( <cFileName>, [<dDate>], [<cTime HH:MM:SS>] ) -> <lSuccess>
* source/rtl/direct.c
! Fixed DIRECTORY() when called with "V" (label) parameter.
Tested under Windows. Please test/correct for other platforms.
On Windows, the dirspec should not contain a filemask in order
to work.
* contrib/hbtip/base64x.c
% HB_BASE64(): Optimized, cleaned.
! HB_BASE64(): Removed second parameter allowing to pass the length of
the string. This could cause GPF if passed incorrectly. Now length
is simply determined using hb_parclen().
; TOFIX: Input string size limit checking.
* include/hbdefs.h
+ HB_SIZEOFARRAY() macro, which does: ( sizeof( var ) / sizeof( *var ) )
To be really precise, f.e. all hb_strncpy() calls should use
'hb_strncpy( d, s, HB_SIZEOFARRAY( d ) );' instead of:
'hb_strncpy( d, s, sizeof( d ) );' (given that 'd' is allocated at compile time).
So that the code adapts to changing character sizes (like UTF-16/32).
It's useful in some other places, too.
* contrib/hbct/dattime2.c
* 0 -> FALSE for BOOL types.
* include/hbextern.ch
* source/rtl/strmatch.c
+ HB_WILDMATCHI(). Case-instenstive, exact match. First
two parameters and return value are the same as for
HB_WILDMATCH().
* include/hbextern.ch
* source/rtl/cdpapi.c
+ HB_CDPSELECT() which does the same as HB_SETCODEPAGE(), but
aligns well with function naming rules and namespace.
HB_SETCODEPAGE() still works, but usage is not recommended.
+ Added HB_CDPUNIID( <cHarbourCP> ) -> <cCPName>
This will return the std CP ID of a Harbour CP, or empty
if the Harbour CP isn't linked.
* include/hbapi.h
* source/rtl/is.c
! Fixed compile error when HB_CDP_SUPPORT_OFF is defined.
+ Added following functions:
hb_charIsDigit()
hb_charIsAlpha()
hb_charIsLower()
hb_charIsUpper()
* include/hbapi.h
- hb_strUpperCopy() removed. Implementation was missing.
* source/rtl/strcase.c
* Minor formatting.
* source/rtl/filesys.c
! hb_fsCurDirBuff() fixed potential buffer overrun by one byte.
* source/rtl/hbrunfun.c
* source/rtl/run.c
! Fixed missing header hbapiitm.h (after previous local change).
* include/hbapi.h
* include/hbset.h
* include/hbapifs.h
* include/set.ch
* source/rtl/hbffind.c
* source/rtl/gete.c
* source/rtl/filesys.c
* source/rtl/hbrunfun.c
* source/rtl/run.c
* source/rtl/philes.c
* source/vm/set.c
* source/vm/cmdarg.c
+ Added file system CP translation.
Set( _SET_FNAMECP[, <cCPID> ] ) -> <cOldCPID>
All operations passing filenames to/from the
OS will convert them to/from the host CP from/to
the FS CP specified using _SET_FNAMECP.
* hb_fsNameConv() extended to deal with CP
conversion, if requested by the app.
+ hb_fsNameConvFrom() (exported) added to deal
with CP conversions for filenames received from OS.
+ hb_fsNameConvTo() (exported) added to deal
with CP conversions for filenames/string sent to the OS.
+ Added hb_setGetFNAMECP() (exported) function.
+ Added hb_setGetFileCPTransTo(), hb_setGetFileCPTransFrom()
(non-exported) functions.
+ hb_fsCurDirBuff() and hb_fsFindNextLow() extended
to use hb_fsNameConvFrom().
+ Added hb_fsBaseDirBuff() to return the base
directory on the C level (based on argv[0]).
+ Added HB_PROGNAME() to return the executable
program name (based on argv[0]).
+ Added HB_DIRBASE() to return the executable
base directory (based on argv[0]).
* Renames done regarding OS/FS CP conversion:
hb_fsNameConvFrom() -> hb_osDecode()
hb_fsNameConvTo() -> hb_osEncode()
hb_setGetFileCPTransTo() -> -
hb_setGetFileCPTransFrom() -> -
hb_setGetFNAMECP() -> hb_setGetOSCODEPAGE()
_SET_FNAMECP -> _SET_OSCODEPAGE
* hb_osDecode()/hb_osEncode() extended to have a second
parameter BOOL * fFree.
Changed all calls to handle the case when fFree is set
to TRUE by hb_osDecode()/hb_osEncode().
+ HB_GETENV(): Added 3rd logical parameter to control wether
to convert the returned value from OS CP to Harbour CP.
The default is TRUE to be in sync with GETE[NV]() and the
rest of core.
* hb_fsNameConv() is now doing OS CP conversion using std APIs,
rather than duplicating such logic. I've traded some speed
for modularity.
* hb_osDecode/hb_osEncode() function declarations moved to hbapi.h
* hb_osDecode/hb_osEncode() function definitions moved to set.c
; NOTE: None of these were extensively tested, and I tend
to make mistakes when dealing with pointers.
It compiles cleanly with BCC, and some basic tests
worked, but bFree = TRUE codepaths are not yet
working so this needs more review.
* source/rtl/teditor.prg
* source/rtl/tpersist.prg
* utils/hbmake/hbmake.prg
* MemoRead() -> hb_MemoRead()
* contrib/hbct/files.c
; TOFIX: Many functions here are possibly not thread safe.
; TOFIX: Calling hb_fsFindClose() at app exit (and thus keeping
the FF handles open for the whole app lifetime) doesn't
play well with server side apps (as the app may run for
months or even longer), and even worse, they
will lock the passed directory so that they cannot be
removed (maybe even renamed), until the app exists.
At least on Windows.
* source/rtl/dirdrive.c
! Fixed to use F_ERROR instead of -1.
* include/hbextern.ch
! Added missing HB_GCSTEP().
* source/vm/extrap.c
+ Added CPU dump code for Windows x64.
+ Enabled module listing for Windows 64-bit platforms.
% Minor cleanup in Windows x86 CPU dump code.
+ Added TODO for Windows IA64 CPU dump.
+ Added TODO for Windows x64 stack walk, with pointers.
+ Added TOFIX regarding displaying module names in Windows x64 mode.
* source/rtl/fstemp.c
! Minor formatting.
* source/rtl/gete.c
* source/rtl/run.c
* source/rtl/hbrunfun.c
* source/vm/cmdarg.c
+ Added CP conversion to:
GETE[NV](), HB_GETENV(), __RUN(), HB_RUN(),
HB_ARGSTRING(), HB_CMDLINE().
; TODO: dbCreateTemp( <cAlias>, <aStruct>, <cRDD>, <cDelimArg>, <nConnection> ) -> <lSuccess>
Generates and opens a new dbf with a temporary filename
in exclusive mode, deletes it automatically when closed.
All indexes created for this table, should ideally have
the temporary flag on, so those get deleted too, when closed.
; TOFIX: hb_regex*() functions will not honor Harbour CP setting,
when case insensitivity is selected.
; TOFIX: hbct / SetFDaTi() to move any local logic into Harbour core
functions and use a simple Harbour API call only.
I'm not sure what is the reason with keeping the logic
duplicated here; if this isn't by intent, this function
could be much simplified.
; TOFIX: Avoid using C level toupper()/tolower()/islower()/isupper()
; TOFIX: hb_regexMatch()'s 3rd parameter has a double meaning.
It controls case-sensitivity (in sync with the documentation),
but it also controls if hb_regexMatch() behaves like
hb_regexLike() (.T.), or hb_regexHas() (.F.). This means
that hb_regexMatch(,, .T.) == hb_regexLike(,, .T.) (case-sensitive) and
hb_regexMatch(,, .F.) == hb_regexHas(,, .F.) (case-insensitive)
Maybe this was the intent of the original developers, but
to me it looks a rather strange behaviour which was added by
accidentally forgetting about the 3rd parameter already being
utilized. This either needs to be fixed, or properly documented.
; NOTE: Noteworthy links:
http://docs.python.org/3.0/whatsnew/3.0.html
- Unicode/text section
- Removed <> (use != instead)
http://sphinx.pocoo.org/
- Documentation format
http://fredeaker.blogspot.com/2007/01/character-encoding-detection.html
- Character encoding detection
|
||
|
|
2f646dcc29 |
2009-01-09 17:59 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbct/ftoc.c
* harbour/contrib/hbct/misc1.c
* changed XTOC(), FTOC() and CTOF() to always store/retirve numbers as
double value in little endian order to reduce platform differences
; TOFIX intorduce new macro which can be used instead sizeof( double )
for platforms where double size is different then 8 and macro
HB_FORCE_IEEE754_DOUBLE is set
* harbour/contrib/hbct/dattime2.c
* changed date functions to use default date like in CT3
|
||
|
|
b8e1c81cba |
2008-12-29 20:23 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbct/disk.c
! fixed dirname() - thanks to Saulius
|
||
|
|
70425cd2eb |
2008-11-09 20:27 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
- contrib/examples/dbu/bld_b32.bat
- contrib/examples/dbu/bld_vc.bat
+ contrib/examples/dbu/hbmk_b32.bat
+ contrib/examples/dbu/hbmk_vc.bat
- contrib/examples/guestbk/bld_b32.bat
- contrib/examples/guestbk/bld_vc.bat
+ contrib/examples/guestbk/hbmk_b32.bat
+ contrib/examples/guestbk/hbmk_vc.bat
- contrib/examples/hbsqlit2/tests/bld_b32.bat
- contrib/examples/hbsqlit2/tests/bld_vc.bat
+ contrib/examples/hbsqlit2/tests/hbmk_b32.bat
+ contrib/examples/hbsqlit2/tests/hbmk_vc.bat
- contrib/examples/hscript/bld_b32.bat
- contrib/examples/hscript/bld_vc.bat
+ contrib/examples/hscript/hbmk_b32.bat
+ contrib/examples/hscript/hbmk_vc.bat
- contrib/examples/pe/bld_b32.bat
- contrib/examples/pe/bld_vc.bat
+ contrib/examples/pe/hbmk_b32.bat
+ contrib/examples/pe/hbmk_vc.bat
- contrib/examples/pp/bld_b32.bat
- contrib/examples/pp/bld_vc.bat
+ contrib/examples/pp/hbmk_b32.bat
+ contrib/examples/pp/hbmk_vc.bat
- contrib/gtwvg/tests/bld_b32.bat
- contrib/gtwvg/tests/bld_vc.bat
+ contrib/gtwvg/tests/hbmk_b32.bat
+ contrib/gtwvg/tests/hbmk_vc.bat
- contrib/hbapollo/tests/bld_b32.bat
- contrib/hbapollo/tests/bld_vc.bat
+ contrib/hbapollo/tests/hbmk_b32.bat
+ contrib/hbapollo/tests/hbmk_vc.bat
- contrib/hbbtree/tests/bld_b32.bat
- contrib/hbbtree/tests/bld_djgp.bat
- contrib/hbbtree/tests/bld_vc.bat
+ contrib/hbbtree/tests/hbmk_b32.bat
+ contrib/hbbtree/tests/hbmk_djg.bat
+ contrib/hbbtree/tests/hbmk_vc.bat
- contrib/hbclipsm/tests/bld_b32.bat
- contrib/hbclipsm/tests/bld_vc.bat
+ contrib/hbclipsm/tests/hbmk_b32.bat
+ contrib/hbclipsm/tests/hbmk_vc.bat
- contrib/hbct/tests/bld_b32.bat
- contrib/hbct/tests/bld_vc.bat
+ contrib/hbct/tests/hbmk_b32.bat
+ contrib/hbct/tests/hbmk_vc.bat
- contrib/hbcurl/tests/bld_b32.bat
- contrib/hbcurl/tests/bld_vc.bat
+ contrib/hbcurl/tests/hbmk_b32.bat
+ contrib/hbcurl/tests/hbmk_vc.bat
- contrib/hbfbird/tests/bld_b32.bat
- contrib/hbfbird/tests/bld_vc.bat
+ contrib/hbfbird/tests/hbmk_b32.bat
+ contrib/hbfbird/tests/hbmk_vc.bat
- contrib/hbfimage/tests/bld_b32.bat
- contrib/hbfimage/tests/bld_vc.bat
+ contrib/hbfimage/tests/hbmk_b32.bat
+ contrib/hbfimage/tests/hbmk_vc.bat
- contrib/hbgd/tests/bld_b32.bat
- contrib/hbgd/tests/bld_vc.bat
+ contrib/hbgd/tests/hbmk_b32.bat
+ contrib/hbgd/tests/hbmk_vc.bat
- contrib/hbgf/tests/bld_b32.bat
- contrib/hbgf/tests/bld_vc.bat
+ contrib/hbgf/tests/hbmk_b32.bat
+ contrib/hbgf/tests/hbmk_vc.bat
- contrib/hbhpdf/tests/bld_b32.bat
- contrib/hbhpdf/tests/bld_vc.bat
+ contrib/hbhpdf/tests/hbmk_b32.bat
+ contrib/hbhpdf/tests/hbmk_vc.bat
- contrib/hbmisc/tests/bld_b32.bat
- contrib/hbmisc/tests/bld_vc.bat
+ contrib/hbmisc/tests/hbmk_b32.bat
+ contrib/hbmisc/tests/hbmk_vc.bat
- contrib/hbmysql/tests/bld_b32.bat
- contrib/hbmysql/tests/bld_vc.bat
+ contrib/hbmysql/tests/hbmk_b32.bat
+ contrib/hbmysql/tests/hbmk_vc.bat
- contrib/hbmzip/tests/bld_b32.bat
- contrib/hbmzip/tests/bld_vc.bat
+ contrib/hbmzip/tests/hbmk_b32.bat
+ contrib/hbmzip/tests/hbmk_vc.bat
- contrib/hbnf/tests/bld_b32.bat
- contrib/hbnf/tests/bld_vc.bat
+ contrib/hbnf/tests/hbmk_b32.bat
+ contrib/hbnf/tests/hbmk_vc.bat
- contrib/hbodbc/tests/bld_b32.bat
- contrib/hbodbc/tests/bld_vc.bat
+ contrib/hbodbc/tests/hbmk_b32.bat
+ contrib/hbodbc/tests/hbmk_vc.bat
- contrib/hbole/tests/bld_b32.bat
- contrib/hbole/tests/bld_vc.bat
+ contrib/hbole/tests/hbmk_b32.bat
+ contrib/hbole/tests/hbmk_vc.bat
- contrib/hbpgsql/tests/bld_b32.bat
- contrib/hbpgsql/tests/bld_vc.bat
+ contrib/hbpgsql/tests/hbmk_b32.bat
+ contrib/hbpgsql/tests/hbmk_vc.bat
- contrib/hbsqlit3/tests/bld_b32.bat
- contrib/hbsqlit3/tests/bld_vc.bat
+ contrib/hbsqlit3/tests/hbmk_b32.bat
+ contrib/hbsqlit3/tests/hbmk_vc.bat
- contrib/hbtip/tests/bld_b32.bat
- contrib/hbtip/tests/bld_vc.bat
+ contrib/hbtip/tests/hbmk_b32.bat
+ contrib/hbtip/tests/hbmk_vc.bat
- contrib/hbtpathy/tests/bld_b32.bat
- contrib/hbtpathy/tests/bld_vc.bat
+ contrib/hbtpathy/tests/hbmk_b32.bat
+ contrib/hbtpathy/tests/hbmk_vc.bat
- contrib/hbvpdf/tests/bld_b32.bat
- contrib/hbvpdf/tests/bld_vc.bat
+ contrib/hbvpdf/tests/hbmk_b32.bat
+ contrib/hbvpdf/tests/hbmk_vc.bat
- contrib/hbwhat/tests/bld_b32.bat
- contrib/hbwhat/tests/bld_vc.bat
+ contrib/hbwhat/tests/hbmk_b32.bat
+ contrib/hbwhat/tests/hbmk_vc.bat
- contrib/hbwin/tests/bld_b32.bat
- contrib/hbwin/tests/bld_vc.bat
+ contrib/hbwin/tests/hbmk_b32.bat
+ contrib/hbwin/tests/hbmk_vc.bat
- contrib/hbziparc/tests/bld_b32.bat
- contrib/hbziparc/tests/bld_vc.bat
+ contrib/hbziparc/tests/hbmk_b32.bat
+ contrib/hbziparc/tests/hbmk_vc.bat
- contrib/rddado/tests/bld_b32.bat
- contrib/rddado/tests/bld_vc.bat
+ contrib/rddado/tests/hbmk_b32.bat
+ contrib/rddado/tests/hbmk_vc.bat
- contrib/rddads/tests/bld_b32.bat
- contrib/rddads/tests/bld_vc.bat
+ contrib/rddads/tests/hbmk_b32.bat
+ contrib/rddads/tests/hbmk_vc.bat
- contrib/rddsql/tests/bld_b32.bat
- contrib/rddsql/tests/bld_vc.bat
+ contrib/rddsql/tests/hbmk_b32.bat
+ contrib/rddsql/tests/hbmk_vc.bat
- contrib/xhb/tests/bld_b32.bat
- contrib/xhb/tests/bld_vc.bat
+ contrib/xhb/tests/hbmk_b32.bat
+ contrib/xhb/tests/hbmk_vc.bat
- tests/bld_b32.bat
- tests/bld_b32_dll.bat
- tests/bld_gnu.bat
- tests/bld_vc.bat
+ tests/hbmk_b32.bat
+ tests/hbmk_b32_dll.bat
+ tests/hbmk_gnu.bat
+ tests/hbmk_vc.bat
- utils/hbdoc/bld_b32.bat
- utils/hbdoc/bld_vc.bat
+ utils/hbdoc/hbmk_b32.bat
+ utils/hbdoc/hbmk_vc.bat
- utils/hbmake/bld_b32.bat
- utils/hbmake/bld_vc.bat
+ utils/hbmake/hbmk_b32.bat
+ utils/hbmake/hbmk_vc.bat
* bld*.bat -> hbmk*.bat
* contrib/mtpl_b32.mak
* /P32 -> /P64
+ contrib/hbmsql/tests/hbmk_b32.bat
+ contrib/hbmsql/tests/hbmk_vc.bat
+ Added make files.
- contrib/hbclip
- Removed this contrib. It was incomplete and not
updated since 2001.
|
||
|
|
ecc87c1bf3 |
2008-10-31 13:54 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/dynlibhb.c
* harbour/source/common/hbgete.c
* harbour/source/common/hbfsapi.c
* harbour/source/rtl/hbinet.c
* harbour/source/rtl/hbffind.c
* harbour/source/rtl/filesys.c
* harbour/contrib/hbct/files.c
* harbour/contrib/hbmzip/hbmzip.c
* harbour/contrib/hbgf/hbgfos2/os2pm.c
* cleanup casting in OS2 builds (use PCSZ/PSZ)
|
||
|
|
c4636942ec |
2008-10-27 21:43 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/Makefile
* contrib/make_vc_all.bat
* contrib/make_b32_all.bat
* contrib/make_gcc_all.sh
+ Added rddsql to default builds.
Please test.
* contrib/hbdbgfx/dbgfxc.c
* Added TODO. (multiplatform support in one the functions)
* include/hbsetup.h
* include/hbexprb.c
* contrib/hbct/ctnet.c
* contrib/hbct/color.c
* contrib/hbct/dattime2.c
* contrib/xhb/hboutdbg.c
* contrib/hbtpathy/tpwin32.c
* contrib/hbmzip/hbmzip.c
* contrib/hbsqlit3/hbsqlit3.c
* contrib/hbfbird/firebird.c
* contrib/hbziparc/hbzipcpp.old
* contrib/hbnf/getver.c
* contrib/hbpgsql/postgres.c
* contrib/hbclipsm/gauge.c
* contrib/rddads/adsfunc.c
* contrib/rddads/ads1.c
* contrib/hbgd/gdwrp.c
* contrib/hbmisc/spd.c
* contrib/hbtip/utils.c
* contrib/hbwin/win_prt.c
* contrib/examples/pp/hbppcore.c
* contrib/examples/pp/hbppcomp.c
* source/pp/pplib.c
* source/pp/ppcore.c
* source/pp/hbpp.c
* source/vm/estack.c
* source/vm/debug.c
* source/vm/itemapi.c
* source/vm/hvm.c
* source/vm/cmdarg.c
* source/vm/fm.c
* source/vm/extrap.c
* source/vm/classes.c
* source/main/harbour.c
* source/common/hbver.c
* source/common/hbverdsp.c
* source/common/hbstr.c
* source/common/hbdate.c
* source/rtl/gtxwc/gtxwc.c
* source/rtl/hbgtcore.c
* source/rtl/gtcrs/gtcrs.c
* source/rtl/errorint.c
* source/rtl/gtsln/gtsln.c
* source/rtl/gttrm/gttrm.c
* source/rtl/gtpca/gtpca.c
* source/rtl/fkmax.c
* source/rtl/langapi.c
* source/rtl/hbffind.c
* source/rdd/workarea.c
* source/rdd/sdf1.c
* source/rdd/delim1.c
* source/rdd/dbf1.c
* source/rdd/wafunc.c
* source/compiler/hbmain.c
* source/compiler/cmdcheck.c
* source/compiler/hbpcode.c
* source/compiler/genhrb.c
* source/compiler/gencobj.c
* source/compiler/genobj32.c
* source/compiler/genc.c
* source/compiler/hbusage.c
* source/compiler/hbfunchk.c
* source/compiler/hbgenerr.c
* utils/hbmake/hbmgauge.c
* Changed snprintf() calls to hb_snprintf().
; TODO: Finish the mappings in headers.
* tests/wvtext.prg
* include/inkey.ch
* source/rtl/gtwvt/gtwvt.c
* Changed K_HB_RESIZE to HB_K_RESIZE. The reason is
that we already got a HB_K_MULTICODE code (few lines
below, I didn't know about it before), and it's better
to keep consistency with that.
|
||
|
|
8f2b17341b |
2008-10-23 04:39 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtwvt/gtwvt.c
* removed unnecessary initialization
* harbour/contrib/hbct/screen2.c
* removed unused variable
|
||
|
|
0acecef1af |
2008-10-23 04:35 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtapi.c
* LOCK/UNLOCK GT in hb_gtBeginWrite()/hb_gtEndWrite()
* harbour/contrib/hbct/showtime.prg
! added missing common.ch
* harbour/contrib/hbct/screen2.c
% use hb_gtPutText() in _HB_CTDSPTIME()
* harbour/contrib/hbct/screen1.c
* forrmatting
|
||
|
|
0cef1d4902 |
2008-10-21 22:18 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapigt.h
* harbour/source/rtl/console.c
* harbour/source/rtl/filesys.c
* use HB_STD{IN,OUT,ERR}_HANDLE macros instead of hard coded values
* harbour/include/hbgtcore.h
* harbour/source/rtl/hbgtcore.c
* harbour/source/rtl/gtapi.c
+ added optional support for dynamic supertables
+ added reference counter to HB_GT_BASE structure
- removed hb_gtUnLoad() function
+ added hb_gtAlloc(), hb_gtRelease(), hb_gtAttach()
+ added hb_gtRealod() function which unloads current GT driver
and loads given new one
+ added .prg function HB_GTRELOAD( <cGtName> ) -> <lSuccess>
This function allow to switch active GT driver at run time.
It can be also used to simulate removed HB_NOSTARTUPWINDOW()
functionality. F.e.:
REQUEST HB_GT_WVT
REQUEST HB_GT_NUL_DEFAULT
proc main()
// do some initializations...
hb_gtReload( "WVT" )
// rest of code...
return
Please remember that some GTs may refuse initialization due to
missing required resources and instead of return FALSE they can
interrupt program with internal error, just like at application
startup so it's not guarantied that this function always returns.
* harbour/contrib/hbct/ctwin.c
* updated for new GT API
+ added support for dynamic supertable to allow using CTWIN in the
same time with different GTs.
* harbour/contrib/xhb/hbcompat.h
- removed hb_retclenAdoptRaw translation
|
||
|
|
8b8b86a386 |
2008-10-21 02:40 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/common.mak
* harbour/source/lang/Makefile
+ harbour/source/lang/msgptiso.c
+ added PTISO lang module
* harbour/source/lang/msgpt.c
* formatting
* harbour/contrib/hbct/ctwin.c
! fixed restoring active window after executing CTWIN alert()
with window 0 active
|
||
|
|
c7ffafd2d0 |
2008-10-20 21:16 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbct/ctwin.c
* moved internal CTW data to structure allocated dynamically and
hold by inside current thread GT (HB_GT) to eliminate static
variables used by GTCTW. Now each thread can have its own
independent set of CTWindows if it allocated new GT.
* harbour/contrib/hbct/tests/ctwtest.prg
* removed two unused local variables
|
||
|
|
a0bf4555ef |
2008-10-18 16:15 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
- bin/bld.bat
+ bin/hbmk.bat
- bin/bld_os2.cmd
+ bin/hbmk_os2.cmd
- bin/bld_b32.bat
+ bin/hbmk_b32.bat
- bin/bld_vc.bat
+ bin/hbmk_vc.bat
* tests/bld_b32.bat
* tests/bld_vc.bat
* contrib/hbmysql/tests/bld_b32.bat
* contrib/hbmysql/tests/bld_vc.bat
* contrib/hbct/tests/bld_b32.bat
* contrib/hbct/tests/bld_vc.bat
* contrib/xhb/tests/bld_b32.bat
* contrib/xhb/tests/bld_vc.bat
* contrib/hbodbc/tests/bld_b32.bat
* contrib/hbodbc/tests/bld_vc.bat
* contrib/hbtpathy/tests/bld_b32.bat
* contrib/hbtpathy/tests/bld_vc.bat
* contrib/hbmzip/tests/bld_b32.bat
* contrib/hbmzip/tests/bld_vc.bat
* contrib/hbole/tests/bld_b32.bat
* contrib/hbole/tests/bld_vc.bat
* contrib/hbsqlit3/tests/bld_b32.bat
* contrib/hbsqlit3/tests/bld_vc.bat
* contrib/hbapollo/tests/bld_b32.bat
* contrib/hbapollo/tests/bld_vc.bat
* contrib/hbfbird/tests/bld_b32.bat
* contrib/hbfbird/tests/bld_vc.bat
* contrib/hbziparc/tests/bld_b32.bat
* contrib/hbziparc/tests/bld_vc.bat
* contrib/hbnf/tests/bld_b32.bat
* contrib/hbnf/tests/bld_vc.bat
* contrib/hbcurl/tests/bld_b32.bat
* contrib/hbcurl/tests/bld_vc.bat
* contrib/hbhpdf/tests/bld_b32.bat
* contrib/hbhpdf/tests/bld_vc.bat
* contrib/rddado/tests/bld_b32.bat
* contrib/rddado/tests/bld_vc.bat
* contrib/gtwvg/tests/bld_vc.bat
* contrib/gtwvg/tests/bld_b32.bat
* contrib/hbpgsql/tests/bld_b32.bat
* contrib/hbpgsql/tests/bld_vc.bat
* contrib/hbclipsm/tests/bld_b32.bat
* contrib/hbclipsm/tests/bld_vc.bat
* contrib/rddads/tests/bld_b32.bat
* contrib/rddads/tests/bld_vc.bat
* contrib/hbfimage/tests/bld_b32.bat
* contrib/hbfimage/tests/bld_vc.bat
* contrib/hbgd/tests/bld_vc.bat
* contrib/hbgd/tests/bld_b32.bat
* contrib/hbmisc/tests/bld_b32.bat
* contrib/hbmisc/tests/bld_vc.bat
* contrib/hbgf/tests/bld_b32.bat
* contrib/hbgf/tests/bld_vc.bat
* contrib/hbtip/tests/bld_vc.bat
* contrib/hbtip/tests/bld_b32.bat
* contrib/hbwin/tests/bld_b32.bat
* contrib/hbwin/tests/bld_vc.bat
* contrib/hbvpdf/tests/bld_b32.bat
* contrib/hbvpdf/tests/bld_vc.bat
* contrib/hbwhat/tests/bld_b32.bat
* contrib/hbwhat/tests/bld_vc.bat
* contrib/examples/hbsqlit2/tests/bld_b32.bat
* contrib/examples/hbsqlit2/tests/bld_vc.bat
* Renamed bin\bld*.* files to bin\hbmk*.*. This
dir may be put in the path in user environments,
so it's necessary to put the name into the Harbour
namespace. The new name is also the one supported
on *nix/bash platforms, albeit with slightly
different usage.
INCOMPATIBLE. Please update your environment.
To achieve compatbility with older Harbour versions
and xhb, you can locally add a bld.bat file with
the content: '@call hbmk.bat %1 %2 %3 %4 %5 %6 %7 %8 %9'
* source/common/hbgete.c
* Minor.
|
||
|
|
9d3a557435 |
2008-10-17 15:55 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/pp/hbpp.c
* workaround for warning in some GCC versions which can lost
user casting during function autoinline optimization.
* harbour/source/rtl/console.c
* harbour/source/rtl/gtapi.c
* moved //INFO message from hb_gtInit() to hb_conInit()
* harbour/source/rtl/hbgtcore.c
* harbour/contrib/hbct/ctwin.c
* minor cleanup
|
||
|
|
992016b359 |
2008-10-16 08:42 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/common.ch
* contrib/hbziparc/hbziparc.prg
* source/rtl/tclass.prg
* source/rtl/hbini.prg
* Minor formatting. (hb_Is*() -> hb_is*())
* contrib/hbct/ctrand.prg
* contrib/hbct/numconv.prg
* contrib/hbct/cttime.prg
* contrib/hbct/showtime.prg
* contrib/hbwhat/hbwhat.ch
* utils/hbrun/hbrun.prg
* source/debug/dbgtobj.prg
* source/debug/dbgbrwsr.prg
* source/debug/dbgthsh.prg
* source/debug/dbgtarr.prg
* source/rtl/alert.prg
* source/rtl/tbrowse.prg
% ValType() -> IS*() / hb_is*()
* contrib/hbwhat/hbwhat.ch
% Using common.ch instead of replicating logic.
* Some formatting.
* utils/hbtest/hbtest.prg
* Minor formatting.
|
||
|
|
738b3391e8 |
2008-10-02 20:25 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbct/Makefile
* contrib/hbct/common.mak
* contrib/hbct/ctmisc.prg
+ contrib/hbct/ctdummy.prg
* Recently added dummy CT functions moved to a separate file.
* source/vm/thread.c
! Fixed warning in HB_THREADID().
|
||
|
|
5a89aba522 |
2008-10-02 10:08 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbct/ctmisc.prg
+ Added dummy functions:
GETKXLAT(), SETKXLAT(), DSETKBIOS()
|
||
|
|
7b30a375cc | fix to prev | ||
|
|
d3c7a63353 |
2008-10-01 14:46 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbct/ctmisc.prg
! Fix to CENTER() when 3rd param is logical.
+ Added ALLOFREE().
|
||
|
|
3584141c98 |
2008-09-19 11:00 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbct/fcopy.prg
* contrib/hbnf/dfile.prg
* contrib/hbpgsql/pgrdd.prg
* contrib/hbtpathy/telepath.prg
* contrib/rddado/adordd.prg
+ Some STATICs converted to THREAD STATIC.
* contrib/hbtip/ftpcln.prg
* STATIC var renamed.
|
||
|
|
86333ba271 |
2008-09-18 07:21 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbthread.h
* use assembler version of atomic inc/dec operation in all x86 based
GCC builds - it should noticeable improve OS2 MT build speed,
please test.
* harbour/include/hbcomp.h
* harbour/include/hbapicdp.h
* harbour/include/hbcompdf.h
* harbour/include/hbgtcore.h
* harbour/include/hbapifs.h
* harbour/include/hbwince.h
* harbour/include/hbexpra.c
* harbour/include/hbexprop.h
* harbour/include/hbmacro.h
* harbour/include/hbapigt.h
* harbour/include/hbapi.h
* harbour/include/hbapiitm.h
* harbour/include/hbexprb.c
* harbour/source/pp/ppcore.c
* harbour/source/pp/hbpp.c
* harbour/source/vm/macro.c
* harbour/source/vm/cmdarg.c
* harbour/source/vm/arrays.c
* harbour/source/vm/extrap.c
* harbour/source/vm/memvars.c
* harbour/source/vm/eval.c
* harbour/source/vm/extend.c
* harbour/source/vm/set.c
* harbour/source/main/harbour.c
* harbour/source/common/hbfsapi.c
* harbour/source/common/reserved.c
* harbour/source/common/expropt1.c
* harbour/source/macro/macro.yyc
* harbour/source/macro/macro.y
* harbour/source/macro/macro.yyh
* harbour/source/macro/macrolex.c
* harbour/source/rtl/gtdos/gtdos.c
* harbour/source/rtl/gtwin/gtwin.c
* harbour/source/rtl/gtxwc/gtxwc.c
* harbour/source/rtl/gtos2/gtos2.c
* harbour/source/rtl/hbgtcore.c
* harbour/source/rtl/cdpapi.c
* harbour/source/rtl/gtcrs/gtcrs.c
* harbour/source/rtl/hbtoken.c
* harbour/source/rtl/gtchrmap.c
* harbour/source/rtl/gtstd/gtstd.c
* harbour/source/rtl/gtsln/mousesln.c
* harbour/source/rtl/gtsln/gtsln.c
* harbour/source/rtl/gtsln/kbsln.c
* harbour/source/rtl/gttrm/gttrm.c
* harbour/source/rtl/gtpca/gtpca.c
* harbour/source/rtl/hbhex.c
* harbour/source/rtl/gtgui/gtgui.c
* harbour/source/rtl/gt_tpl/gt_tpl.c
* harbour/source/rtl/gtcgi/gtcgi.c
* harbour/source/rtl/gtwvt/gtwvt.c
* harbour/source/rtl/strtran.c
* harbour/source/rtl/hbinet.c
* harbour/source/rtl/gtapi.c
* harbour/source/rtl/filesys.c
* harbour/source/rdd/dbfntx/dbfntx1.c
* harbour/source/rdd/dbsql.c
* harbour/source/rdd/dbfcdx/dbfcdx1.c
* harbour/source/rdd/dbffpt/dbffpt1.c
* harbour/source/rdd/hbsix/sxfname.c
* harbour/source/compiler/ppcomp.c
* harbour/source/compiler/hbmain.c
* harbour/source/compiler/cmdcheck.c
* harbour/source/compiler/hbdbginf.c
* harbour/source/compiler/genc.c
* harbour/source/compiler/hbident.c
* harbour/source/compiler/hbusage.c
* harbour/source/compiler/gencc.c
* harbour/source/compiler/harbour.yyc
* harbour/source/compiler/harbour.y
* harbour/contrib/gtalleg/gtalleg.c
* harbour/contrib/hbct/charlist.c
* harbour/contrib/hbct/charmix.c
* harbour/contrib/hbct/screen1.c
* harbour/contrib/hbct/atrepl.c
* harbour/contrib/xhb/hboutdbg.c
* harbour/contrib/xhb/hbxml.c
* harbour/contrib/xhb/hbxml.h
* harbour/contrib/hbgt/strexpan.c
* harbour/contrib/hbsqlit3/sqlite3/sqlite3.c
* harbour/contrib/gtwvg/gtwvg.c
* harbour/contrib/hbclipsm/status.c
* harbour/contrib/hbclipsm/gauge.c
* harbour/contrib/hbmisc/stringsx.c
* harbour/contrib/hbtip/utils.c
* harbour/contrib/hbgf/hbgfgtk/msginfo.c
* harbour/contrib/hbgf/hbgfgtk/harbgtk.h
* harbour/contrib/hbbmcdx/bmdbfcdx.c
* harbour/utils/hbmake/hbmgauge.c
* use const char * instead of char * in places which should be marked
as const
|
||
|
|
64f97582d9 |
2008-09-13 18:49 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbpp.h
* harbour/include/hbvm.h
* harbour/include/hbcomp.h
* harbour/include/hbcompdf.h
* harbour/include/hbtrace.h
* harbour/include/hbapilng.h
* harbour/include/hbinit.h
* harbour/source/rtl/langapi.c
* harbour/source/pp/ppcore.c
* harbour/source/pp/hbpp.c
* harbour/source/vm/itemapi.c
* harbour/source/vm/hvm.c
* harbour/source/common/hbver.c
* harbour/source/common/hbtrace.c
* harbour/source/common/expropt2.c
* harbour/source/compiler/complex.c
* harbour/source/compiler/hbident.c
* harbour/source/compiler/hbfunchk.c
* changed some declarations from 'char *' to 'const char *' and
fixed casting for some more pedantic compilers
* harbour/source/pp/ppcore.c
! fixed one typo which could cause memory leak and even GPF
* harbour/common.mak
* harbour/source/vm/Makefile
* harbour/source/rtl/Makefile
- harbour/source/rtl/set.c
+ harbour/source/vm/set.c
* harbour/include/hbstack.h
* harbour/source/vm/estack.c
* moved from RTL to HVM
* eliminated hb_set global structure
* moved set structure to HVM stack
+ added internal function hb_setClone() which is used to create
copy of SET structure for child threads
* hidden HB_SET_STRUCT declaration - 3-rd part code must not access it
directly. Dedicated hb_set*() functions should be used instead.
+ added new function:
BOOL hb_setSetItem( HB_set_enum set_specifier, PHB_ITEM pItem )
which allow to change some set by 3-rd party code.
TODO: not all SETs can be changed yet - if someone have a while
then please add code for missing ones.
* harbour/include/set.ch
* harbour/include/hbset.h
+ added _SET_CODEPAGE which works like _SET_LANGUAGE giving common
interface
* harbour/include/hbsetup.h
+ added HB_CODEPAGE_DEFAULT which works like HB_LANG_DEFAULT
* harbour/source/vm/hvm.c
! fixed builds which uses non EN lang or code page modules
by forcing linking the chosen ones
* harbour/include/hbstack.h
* harbour/source/vm/estack.c
* harbour/include/hbapicdp.h
* harbour/source/rtl/cdpapi.c
- removed global code page variable: hb_cdp_page and moved
code page settings to HVM stack
+ added new function hb_cdpID() which returns current code page
character ID
+ added new functions hb_vmCDP() and hb_vmSetCDP() to get/set
active for given thread code page structure
* harbour/include/hbstack.h
* harbour/source/vm/estack.c
* harbour/include/hbapilng.h
* harbour/source/rtl/langapi.c
+ moved lang setting to HVM stack
+ added new functions hb_vmLang() and hb_vmSetLang() to get/set
active for given thread language module
* harbour/include/hbvmpub.h
* harbour/include/hbstack.h
* harbour/include/hbapi.h
* harbour/source/vm/estack.c
* harbour/source/vm/dynsym.c
* harbour/source/vm/itemapi.c
* harbour/source/vm/memvars.c
* changed memvar handles for HB_HANDLE to void * which is directly
casted to PHB_ITEM - new memvar references
* changed HB_DYNS declarations for MT mode. In MT mode HB_DYNS does
not contain area and memvar handles which are moved to thread
local HVM stack
+ added array for thread local memvar and area handles to HVM stack
% eliminated global continues array with all memvars and detached locals
% changed HB_IT_MEMVAR to use pointers to HB_ITEM directly - it resolve
synchronization problems in MT mode and should also improve the speed
and reduce memory usage. It should be well visible in applications which
uses lot of detached locals.
- removed hb_memvarsInit() and hb_memvarsFree() - they are not necessary
now because we do not longer use array with all allocated memvars
and detached local and private stack initialization is made
automatically
+ added internal functions hb_dynsymGetMemvar()/hb_dynsymSetMemvar()
+ added hb_memvarGetValueBySym() for debugger
* moved PRIVATE variable stack to HVM stack
* eliminated all static variables in memvars module
* harbour/include/hbstack.h
* harbour/source/vm/estack.c
* harbour/source/rtl/fserror.c
* moved IO errors to HVM stack
+ added special IO error handling which works without HVM stack
It allows to use hb_fs*() functions without allocated stack
by 3-rd party threads.
* harbour/source/rtl/filesys.c
* moved hb_fsCurDir() to HVM stack with special handling to work
with HVM stack like IO errors
* harbour/source/rdd/workarea.c
* allocated RDD node array in bigger peaces to reduce later RT
reallocations in MT mode. If user want to add dynamically more
then 64 RDDs then it should synchronize this operation himself.
* harbour/source/rdd/wacore.c
* moved WA list, current WA, default RDD and neteer() flag to HVM stack
* harbour/include/hbdefs.h
- removed HB_HANDLE declaration
* harbour/include/hbapi.h
- removed HB_VALUE structure - it's not longer used due to different
memvar handling
* updated hb_struMemvar to new memvar handling
* replaced hb_vmIsLocalRef() and hb_memvarsIsMemvarRef() with
hb_vmIsStackRef() which respect multiple stack and new memvar
and static structures and location in GC mark pass.
* harbour/include/hbstack.h
* harbour/source/vm/estack.c
* harbour/source/vm/hvm.c
+ added support for thread specific data located on HVM stack
Now it's possible to allocate static variables which are
local to thread. Such variables are allocated on HVM stack
and automatically destroyed. To declare new TSD variable use:
HB_TSD_NEW( <name>, <size>, <init>, <destruct> )
<name> - name of variable which holds TSD handler
<size> - size of TSD are which has to be allocated
<init> - init function, executed when new TSD is allocated by thread
(thread access given TSD 1-st time). This function receives
void * pointer to allocated area.
<destruct> - destructor function executed when HVM stack is destroyed
f.e.:
static HB_TSD_NEW( s_scrData, sizeof( HB_SCRDATA ),
NULL, hb_xSaveRestRelease );
To initialize dynamically allocated TSD variable use:
HB_TSD_INIT( <name>, <size>, <init>, <destruct> )
Pointer to TSD can be accessed using hb_stackGetTSD( &<name> )
where <name> is name of variable which holds TSD handler, f.e.:
PHB_SCRDATA pScrData = ( PHB_SCRDATA ) hb_stackGetTSD( &s_scrData );
See source/rtl/xsavescr.c as an example
It's also possible to test if data has been already allocated for
current thread by:
hb_stackTestTSD( &<name> ) => pData
it works like hb_stackGetTSD() but return NULL if current thread data
has not been allocated yet.
* harbour/include/hbstack.h
* harbour/source/vm/estack.c
* changed hb_stack location to thread local storage in MT mode
+ added functions and macros to access/assign new HVM stack members
+ changed garbage collection mark functions to work with multiple
stacks, thread local static and memvar variables
* harbour/source/rtl/xsavescr.c
* use TSD data for screen buffer to make __XSAVESCREEN()/__XRESTSCREEN()
thread independent
* harbour/source/rtl/idle.c
* use TSD data for idle task settings and codeblocks
- removed hb_idleShutDown() - it's not longer necessary
* harbour/source/rtl/setkey.c
* use TSD data for allocated keys to make SETKEY() thread independent
* harbour/source/rtl/math.c
* moved math error handler, math error block, math error mode and
math error structure to TSD
* harbour/source/rtl/errorapi.c
* moved error handler, error block, error launch counter and DOS error
value to TSD
* harbour/source/rtl/inkey.c
* moved inkey "before" and "after" blocks to TSD
* harbour/source/rdd/hsx/hsx.c
* moved HSX handles array to TSD
* harbour/include/hbapigt.h
* harbour/source/rtl/console.c
- removed hb_setkeyInit() and hb_setkeyExit() - they are not longer
necessary, allocated resources will be freed by TSD destructor
function
* harbour/include/hbapi.h
* harbour/source/rtl/console.c
* removed hb_conXSaveRestRelease() - it's not longer necessary,
allocated resources will be freed by TSD destructor function
* harbour/source/vm/macro.c
* moved s_macroFlags to TSD
* harbour/source/rtl/accept.c
* moved accept buffer to TSD
* harbour/include/hbcomp.h
* harbour/include/hbcompdf.h
* harbour/include/hbxvm.h
* harbour/source/compiler/hbmain.c
* harbour/source/compiler/hbfix.c
* harbour/source/compiler/hbpcode.c
* harbour/source/compiler/hbdead.c
* harbour/source/compiler/complex.c
* harbour/source/compiler/genc.c
* harbour/source/compiler/gencc.c
* harbour/source/compiler/hbopt.c
* harbour/source/compiler/hblbl.c
* harbour/source/compiler/hbstripl.c
* harbour/source/compiler/harbour.y
* harbour/source/compiler/harbour.yyc
* harbour/source/compiler/harbour.yyh
* harbour/source/vm/hvm.c
+ added new PCODE HB_P_THREADSTATICS
+ added support for static variables which are local to thread:
THREAD STATIC <varname [:= <exp>], ...>
They work like normal static variables but each thread operates
on its own copy.
* added protection against possible double call to hb_xfree()
It can happen due to wrong marking expressions as used by bison
and executing destructors after our free code when syntax error
appear.
* harbour/source/rtl/perfuncs.prg
* harbour/source/rtl/menuto.prg
* harbour/source/rtl/getlist.prg
* harbour/source/rtl/readvar.prg
* harbour/source/rtl/text.prg
* use THREAD STATIC variables to make above code MT safe
* harbour/include/hbgtcore.h
* harbour/source/rtl/hbgtcore.c
+ added hb_gt_BaseFree() which will release current GT pointer
locked by hb_gt_Base() function. This function will be used
to optional automatic GT access synchronization when threads
share the same GT.
* harbour/source/rtl/gtapi.c
* harbour/source/rtl/inkeyapi.c
* harbour/source/rtl/mouseapi.c
* harbour/contrib/hbct/ctwin.c
* free GT pointer by hb_gt_BaseFree()
TODO: CTWIN is not MT safe yet - it will be updated together
with core GT when we add multi window interface for
thread with own console window.
* harbour/bin/hb-func.sh
* harbour/config/linux/gcc.cf
+ added rt lib to Linux builds
* harbour/bin/postinst.sh
* create MT safe version of FM stat library: fmmt
* harbour/bin/pack_src.sh
+ added support for ZIP packing
* harbour/include/hbapi.h
* harbour/include/hbvm.h
* harbour/source/vm/hvm.c
+ added hb_vmThreadInit()/hb_vmThreadQuit() functions - they initialize
HVM for calling thread so it can execute .prg code and call HVM
functions. They can be used by 3-rd party code threads.
+ added hb_vmUnlock()/hb_vmLock() functions which informs that
thread will not operate on HVM structures for some time allowing
to execute single thread only processes like GC.
+ added hb_vmThreadQuitRequest() which sends stop request to given
thread
+ added hb_vmWaitForThreads() which stops main thread execution waiting
for other threads
+ added hb_vmSuspendThreads() and hb_vmResumeThreads() used be GC
to stop all HVM threads before mark/swap scan
+ added linked list of HVM stacks
+ added hb_vmTerminateThreads() used by main HVM thread in QUIT state
* moved EXIT procedures execution from QUIT request to HVM QUIT state
in MT mode. It may effects some non structural code which tries to
access private variables in EXIT functions but it's much cleaner
and understandable for user. Please remember that we guaranties
that ALWAYS code in BEGIN SEQUENCE is _always_ executed even after
HVM QUIT request just like destructs. Personally I think that we
should move EXIT procedures execution also in ST mode.
* changed startup and cleanup code for new internal structures
* changes startup and cleanup code for MT mode
% removed some redundant HB_ITEM type settings
! eliminated non MT safe code which was using reference counters
without protection
* harbour/common.mak
* harbour/source/vm/Makefile
+ harbour/include/hbthread.h
+ harbour/source/vm/thread.c
+ added C level functions to manage threads and synchronization objects
See hbthread.h for detail description. They are based on PTHREAD API
and PTHREAD documentation can be used as reference. I intentionally
keep this list small for easier multiplatform porting.
Now they have been implemented for PTHREADS (POSIX threads supported by
many different OSes), MS-Win32/64 and OS2. The OS2 version is not tested
at all. I do not even know if it can be compiled so please make tests.
I used Internet resources and some part of xHarbour code as documentation
for OS2 MT API. It should be quite easy to add other platforms if necessary.
Harbour core code needs non recursive mutexes, conditional variables and
TLS for one pointer. If platforms does not support conditional variables
(f.e. MS-Win or OS2) then they can be emulated using multistate semaphores.
+ added .prg functions to manage threads and synchronization objects:
hb_threadStart( <@sStart()> | <bStart> [, <params,...> ] ) -> <pThID>
hb_threadJoin( <pThID> [, @<xRetCode> ] ) -> <lOK>
hb_threadDetach( <pThID> ) -> <lOK>
hb_threadQuitRequest( <pThID> ) -> <lOK>
hb_threadWaitForAll() -> NIL
hb_mutexCreate() -> <pMtx>
hb_mutexLock( <pMtx> [, <nTimeOut> ] ) -> <lLocked>
hb_mutexUnlock( <pMtx> ) -> <lOK>
hb_mutexNotify( <pMtx> [, <xVal>] ) -> NIL
hb_mutexNotifyAll( <pMtx> [, <xVal>] ) -> NIL
hb_mutexSubscribe( <pMtx>, [ <nTimeOut> ] [, @<xSubscribed> ] ) -> <lSubscribed>
hb_mutexSubscribeNow( <pMtx>, [ <nTimeOut> ] [, @<xSubscribed> ] ) -> <lSubscribed>
The function list should give similar to xHarbour API but they are not exactly
the same and except of hb_mutex*() functions which should replicate xHarbour behavior.
+ harbour/source/vm/vmmt
+ harbour/source/vm/vmmt/Makefile
+ added hbvmmt library to GNU make builds.
Non GNU make builds should be updated.
* harbour/contrib/hbct/pos1.c
* harbour/contrib/gtwvg/gtwvg.c
* harbour/contrib/rddads/ads1.c
* harbour/contrib/hbmisc/spd.c
* harbour/contrib/hbbmcdx/bmdbfcdx.c
* harbour/contrib/examples/rdddbt/dbfdbt1.c
* harbour/source/vm/runner.c
* harbour/source/vm/itemapi.c
* harbour/source/vm/hvm.c
* harbour/source/rtl/console.c
* harbour/source/rtl/strcase.c
* harbour/source/rtl/spfiles.c
* harbour/source/rtl/defpath.c
* harbour/source/rtl/hbgtcore.c
* harbour/source/rtl/dateshb.c
* harbour/source/rtl/mlcfunc.c
* harbour/source/rtl/fstemp.c
* harbour/source/rtl/is.c
* harbour/source/rtl/setcolor.c
* harbour/source/rtl/errorint.c
* harbour/source/rtl/transfrm.c
* harbour/source/rtl/dates.c
* harbour/source/rtl/filesys.c
* harbour/source/rtl/gtdos/gtdos.c
* harbour/source/rtl/gtwin/gtwin.c
* harbour/source/rtl/gtwvt/gtwvt.c
* harbour/source/rtl/gtxwc/gtxwc.c
* harbour/source/rtl/gttrm/gttrm.c
* harbour/source/rtl/gtpca/gtpca.c
* harbour/source/rtl/gtcgi/gtcgi.c
* harbour/source/rtl/gtcrs/gtcrs.c
* harbour/source/rtl/gtstd/gtstd.c
* harbour/source/rtl/gtsln/gtsln.c
* harbour/source/rtl/gtsln/gtsln.h
* harbour/source/rdd/dbf1.c
* harbour/source/rdd/sdf1.c
* harbour/source/rdd/delim1.c
* harbour/source/rdd/dbcmd.c
* harbour/source/rdd/hbdbsort.c
* harbour/source/rdd/workarea.c
* harbour/source/rdd/dbffpt/dbffpt1.c
* harbour/source/rdd/dbfcdx/dbfcdx1.c
* harbour/source/rdd/dbfntx/dbfntx1.c
* harbour/source/rdd/hsx/hsx.c
* harbour/source/rdd/hbsix/sxfname.c
* use API functions instead of direct accessing to hb_cdp_page or hb_set
* harbour/source/rtl/fstemp.c
* harbour/source/rtl/fssize.c
* harbour/source/rtl/hbffind.c
* harbour/source/rtl/filesys.c
* encapsulate potentially slow IO operation inside
hb_vmUnlock()/hb_vmLock() calls to allow other thread GC
activation
* harbour/contrib/hbnf/fttext.c
! fixed casting
* harbour/contrib/gtwvg/gtwvg.h
- removed #include <comctl32.h> - my MinGW and MinGW/CE instalations do
not have them. If it exists in some newer ones then it has to be
covered by #if version checking.
* harbour/source/vm/dynsym.c
- removed hb_dynsymLog() and hb_dynsymMemvarHandle()
* modified code to be MT safe and improved speed of some operations
* added MUEXT protection for global dynamic table access
* harbour/include/hbapi.h
* harbour/source/vm/garbage.c
* changed to work with MT HVM
* changed to work with new memvar structures and thread local static and
memvar variables
* added MUEXT protection for linked block lists
+ added parameter to hb_gcCollectAll() which will force GC activation
in MT mode by temporary suspending all executed threads.
+ added logical parameter to HB_GCALL() functions which is passed to
hb_gcCollectAll()
* harbour/source/vm/fm.c
* added MUEXT protection for FM statistic module
* added MT protection for reference counters. For platforms
which supports atomic incrmenetation/decrementation (f.e.
Interlocked*() functions in MS-Win) such operations are
used. For other it's MUTEX protection. It gives MT safe
readonly access for HVM complex variables without user
synchronization. The MUTEX protection can cause some speed
overhead so it's good to define MT safe version of
HB_ATOM_INC()/HB_ATOM_DEC() in hbthread.h if given platform
has them. Now they are defined only for Windows. For other
platforms We can define can define them in assembler for some
most popular CPUs in the future.
* harbour/source/vm/classes.c
* changed class definition array. Now it keeps pointers to class
structures.
* In MT mode allocated at HVM startup big enough array for class
definitions to avoid later RT reallocations. It effectively eliminates
MUTEX synchronization for class structure access.
* protect by MUTEX code for new class creation
* harbour/source/debug/dbgentry.c
* eliminated hbvmopt.h and direct accessing to HVM structures
* harbour/source/rtl/gtclip.c
* protect with MUTEX access to internal clipboard data
* harbour/source/rdd/nulsys/nulsys.c
+ added hb_rddCloseAll()
+ harbour/tests/mt
+ harbour/tests/mt/mttest01.prg
+ harbour/tests/mt/mttest02.prg
+ harbour/tests/mt/mttest03.prg
+ harbour/tests/mt/mttest04.prg
+ harbour/tests/mt/mttest05.prg
+ harbour/tests/mt/mttest06.prg
+ harbour/tests/mt/mttest07.prg
+ added some demonstration/test small MT programs written
using Harbour language. Some of them can be also compiled
by xHarbour but xHarbour does not pass any of my tests in
real multi-CPU machine so do not expect they will work
correctly.
Harbour threads needs OS threads support. Each Harbour thread is directly
mapped to OS thread. It's not very efficient on some older system where
cost of thread creation and/or task switching is very expensive but it
should not be bigger problem for modern OS-es which can support threads
in practice nearly in user space only.
I haven't touched Harbour function calling convention which comes from
Clipper. It means that we do not pass pointer to VM to each functions
like CLIP or xBase++. To resolve the problem I have to use thread local
storage (TLS) where such pointer is kept. If platform does not support
TLS then it can be emulated by us. Anyhow the speed of accessing TLS
data and extracting HB_STACK poitner is critical for performance.
Some compilers depending on used hardware and OS give native support
for TLS (f.e. __thread keyword in GCC/BCC or __declspec( thread ) in MSVC).
This should give optimal performance. On other Harbour uses TLS functions
like TlsGetValue() (MS-WIN) or pthread_getspecific() (PTHREAD) are used.
OS2 gives quite interesting TLS functionality which seems to be quite fast
though it will be interesting to know how it is iplemented internally for
real multi CPU machines (if it depends on CPU exception then the
performance will be bad). We need TLS only for one pointer to HB_STACK
structure.
I haven't added any tricks like HB_THREAD_STUB in xHarbour to reduce
the cost of TLS access. If it will be necessary for some platform the we
can add it.
Except TLS Harbour threads needs OS support for non recursive mutexes or
critical sections and conditional variables. If platforms does not support
conditional variables (f.e. MS-Win or OS2) then they can be emulated using
multistate semaphores. I intentionally didn't create code which may need
recursive mutexes. The non recursive ones are often faster and some
platforms may not support recursive mutexes so they will have to be
emulated by us.
Harbour uses reference counters for complex variables. It means that even
readonly access to complex item causes internal write operations necessary
to increment/decrement its reference counter. To make such readonly access
MT safe we have to make incrementation and decrementation with result
checking atomic. By default it's done by mutex inside vm/fm.c but some
platforms have native support for atomic inc/dec operations, f.e.
Interlocked*() functions in MS-Win. If they are available then such
functions should be used to not reduce the performance by mutex call
very often used functions. For many CPUs it should be quite easy to
implement such atomic inc/dec functionality in assembler. F.e. for
GCC and x86@32 it may looks like:
static __inline__ void hb_atomic_inc32( volatile int * p )
{
__asm__ __volatile__(
"lock incl %0"
:"=m" (*p) :"m" (*p)
);
}
static __inline__ int hb_atomic_dec32( volatile int * p )
{
unsigned char c;
__asm__ __volatile__(
"lock decl %0"
"sete %1"
:"=m" (*p), "=qm" (c) :"m" (*p) : "memory"
);
return c == 0;
}
and then it's enough to define in hbthreads.h:
#define HB_ATOM_INC( p ) hb_atomic_inc32( ( volatile int * ) p )
#define HB_ATOM_DEC( p ) hb_atomic_dec32( ( volatile int * ) p )
Probably I'll make it for some most popular CPUs in the future.
In Harbour each thread which wants to call HVM functions have to allocate
it's own HVM stack. It's done hb_vmThreadInit(). The HVM stack is freed
by calling hb_vmThreadQuit(). This functions can be called also by 3-rd
party threads if they want to call HVM functions or execute .prg code.
Calling HVM functions without allocated stack will cause GPF.
I moved most of static variables to HVM stack to make them thread
local. But some of them like FS errors have their own alternative
copy which is used when thread does not allocate HVM stack. It allows
to use hb_fs*() functions without HVM stack but programmer have to
know that error codes return by hb_fs*Error() functions can be
overwritten by other threads which also didn't allocated HVM stack.
To execute garbage collector scan and mark pass it's necessary to
stop other HVM threads. Otherwise the scan may give false results.
It's also possible to not stop threads but protect with mutex all
operations on GC items but it will probably cause performance reduction
and will force some other modifications. Maybe I'll implement it
in the future.
I didn't use any OS level thread KILL or CANCEL calls. All HVM threads
have to be cleanly removed without any resource leaks.
QUIT command terminate only calling thread. If main (startup) HVM
thread call QUIT then it sends QUIT request to all existing threads.
In QUIT state ALWAYS statements and destructors are executed.
New thread is created by:
hb_threadStart( <@sStart()> | <bStart> [, <params,...> ] ) -> <pThID>
The returned value is a pointer to internal thread structure which
can be used in JOIN or DETACH operations. Each thread should be Joined
or DETACHED to avoid resource leaks. If programmer does not store
<pThID> or all instances of <pThID> are destroyed then thread is
automatically detached. I do not know clear method of thread detaching
in OS2. If some OS2 users knows it then plase update vm/hbthread.c.
When thread terminates then all locked by this thread mutexes are
released.
Each thread uses its own memvars (PRIVATEs and PUBLICs) and work areas.
When new thread is created then it inherits from parent thread:
- code page
- language
- SETs
- default RDD
error block is initialized to default value by calling ERRORSYS()
and PUBLIC variable GetList := {} is created.
The following objects are initialized to default value:
- error block
- math error handler and math error block
- macro compiler features setting (hb_setMacro())
or move them to SETs.
We can think about inheriting them. It's also possible to add
inheriting of all visible memvars but I do not know it's good
idea.
Compilation and linking:
For MT mode HVM library should be compiled with HB_MT_VM macro.
GNU make automatically creates hbvmmt library which should be
linked with Harbour MT programs instead of hbvm.
Non GNU make files should be updated.
If given compiler support TLS then you can try to set HB_USE_TLS
to force using native compiler TLS support. Now it's enabled by
default only for BCC. For Linux and GCC builds it may depend also
on used GLIBC version. In older system there is no TLS support
at all or TLS works only for shared binaries so I haven't enabled
it. If you will test some other compiler then please add default
native TLS support for them in hbthread.h
Users using hb* scripts can simply use -mt switch when they want
to create MT program, f.e.:
hbmk -n -w3 -es2 -mt mttest01.prg
There are still some minor things which should be done but I'll
do them later. Current state seems to be fully functional.
The most important and still missing is our own file lock server
for RDD synchronization in POSIX systems. Kernel internally
recognize POSIX locks by PID and file i-node - not PID and file
handle. It means that the same file open more then once by one
process shares locks. Because POSIX locks can be overwritten
then we do not have any synchronization between aliased workareas
or threads using the same table in *nixes. We have to make
synchronization ourselves. I'll create such lock server ASAP.
Please test and enjoy using Harbour threads.
|