2024-02-16 18:23 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

183 views
Skip to first unread message

Przemysław Czerpak

unread,
Feb 16, 2024, 1:46:30 PMFeb 16
to harbou...@googlegroups.com
2024-02-16 18:23 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/hbexpat/3rd/expat/expat.diff
* contrib/hbexpat/3rd/expat/loadlibr.c
! use HB_WINAPI_GETPROCADDRESS() instead of GetProcAddress()
in WinCE builds

* contrib/hbhpdf/3rd/libhpdf/hpdfstre.c
* contrib/hbhpdf/3rd/libhpdf/libhpdf.diff
! include <windows.h> in WinCE builds, it's necessary for GetLastError()

* src/3rd/jpeg/Makefile
! do not use getenv() in all WinCE builds

* src/common/hbver.c
* cast revision number to HB_ULONG to pacify warning

* src/vm/extrap.c
! do not compile unused in WinCE builds hb_winExceptionHandler()

* include/hbapi.h
* added HB_EXPORT attribute to hb_macroTextValue() function

* include/hbvm.h
* src/vm/hvm.c
+ added C function:
PHB_ITEM hb_vmCompileMacro( const char * szExpr, PHB_ITEM pDest );
It returns Harbour item or NULL at error (wrong macro text).
The result should be used with hb_vmEvalBlockOrMacro() and then freed
by hb_vmDestroyBlockOrMacro(). It hides low level macro representation
so we can change it in the future. Now it's still simple pointer item
without autodestructor.

* src/rdd/hsx/hsx.c
* src/rdd/workarea.c
* use hb_vmCompileMacro() instead of hb_macroCompile()

* src/vm/runner.c
* changed 6101 error message for "Unknown or unregistered symbol"
to "Unknown or unregistered function symbol".
* report above error when HRB module is loaded and its external function
is not registered or not marked as DYNAMIC by earlier registered modules
in HVM symbol table.
Warning. This modification may exploit problems in code loading HRB files
with cross references which has worked so far. In such case user should
pass to hb_hrbLoad()/hb_hrbRun() as first parameters flags containing
HB_HRB_BIND_LAZY or declare the problematic function in his main code
as dynamic, i.e.:
DYNAMIC <funcName>

* src/rdd/dbf1.c
* declare internal function hb_dbfTransCheckCounters() as static one

* src/harbour.def
! added missing exported Harbour functions

best regards
Przemek

Charly Nou mil

unread,
Feb 16, 2024, 3:10:54 PMFeb 16
to Harbour Developers
Dear Przemyslaw,

Test with new runner.c module oks !

Thx.
Charly Aubia.

Lailton Fernando Mariano

unread,
Feb 16, 2024, 6:24:39 PMFeb 16
to Harbour Developers
Hi Przemek,

One question, it works fine, but from what I see the SYMBOL still exists after hb_hrbUnload.

Isn't it correct to expect hb_hrbUnload to remove all symbols?

and what do you think about it: https://groups.google.com/g/harbour-devel/c/9zL9_aN73ww

Thanks

Reply all
Reply to author
Forward
0 new messages