Commit Graph

19803 Commits

Author SHA1 Message Date
Przemysław Czerpak
de72cb0c79 2024-01-28 12:53 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/hbfimage/core.c
    * use FreeImage_Rotate() instead of FreeImage_RotateClassic() in new
      FreeImage versions which do not support this function

  * contrib/hbsqlit3/core.c
    * added missing casting reported as bug in C++ mode

  * contrib/hbssl/hbssl.h
  * contrib/hbssl/rsa.c
    * added HB_SSL_CONST_BYTE() macro to pacify unconst warnings
      in old SSL versions

  * src/rdd/wacore.c
    * inlined macro to pacify still returning false warning
2024-01-28 12:53:29 +01:00
Przemysław Czerpak
ae62f2effe 2024-01-28 12:50 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/hbfimage/core.c
    * use FreeImage_Rotate() instead of FreeImage_RotateClassic() in new
      FreeImage versions which do not support this function

  * contrib/hbsqlit3/core.c
    * added missing casting reported as bug in C++ mode

  * contrib/hbssl/hbssl.h
  * contrib/hbssl/rsa.c
    * added HB_SSL_CONST_BYTE() macro to pacify unconst warnings
      in old SSL versions

  * src/rdd/wacore.c
    * inlined macro to pacify still returning false warning
2024-01-28 12:50:51 +01:00
Phil Krylov
8405632197 2023-12-08 23:17 UTC+0100 Phil Krylov (phil a t krylov.eu)
* contrib/sddsqlt3/core.c
    ! Fixed a different signedness compare warning.
2023-12-08 23:39:21 +01:00
Phil Krylov
145cc37838 2023-12-07 21:25 UTC+0100 Phil Krylov (phil a t krylov.eu)
* contrib/3rd/sqlite3/*
    * Updated local sqlite3 from 3.8.2 to 3.44.2.
2023-12-08 23:39:21 +01:00
Phil Krylov
535f337971 2023-12-07 21:24 UTC+0100 Phil Krylov (phil a t krylov.eu)
* contrib/hbsqlit3/hbsqlit3.ch
    * Updated SQLite constants to version 3.44.2.
    % Reordered hbsqlit3.ch to simplify diffing from sqlite.h.
  * contrib/hbsqlit3/core.c
    + SQLITE3_CREATE_FUNCTION(): Added support for function flags.
2023-12-08 23:39:21 +01:00
Viktor Szakats
19452d2132 2023-12-07 21:23 UTC+0100 Phil Krylov (phil a t krylov.eu)
* contrib/hbsqlit3/core.c
  * contrib/hbsqlit3/hbsqlit3.ch
    % Minor updates to hbsqlit3, borrowed from @vszakats's fork.
  ; parts of original commits:
  ; * ca9f75850c
  ;   2015-05-13 21:07 UTC+0200 Viktor Szakats (vszakats users.noreply.github.com)
  ; * 949e77ae69
  ;   2015-07-15 20:26 UTC+0200 Viktor Szakats (vszakats users.noreply.github.com)
  ; * dae1a86985
  ;   2017-08-14 18:59 UTC Viktor Szakats (vszakats users.noreply.github.com)
2023-12-08 23:39:21 +01:00
Viktor Szakats
38f5ec7738 2023-12-07 21:21 UTC+0100 Phil Krylov (phil a t krylov.eu)
; merged:
  2015-04-09 11:34 UTC+0200 Viktor Szakats (vszakats users.noreply.github.com)
    * contrib/hbsqlit3/core.c
    * contrib/hbsqlit3/hbsqlit3.hbx
      + add sqlite3_status64()
      % adjust variable scopes
      ! fix to reset reference parameters in functions with
        functionality disabled
    ; origin: 5bcaa24c93

  2015-09-02 19:11 UTC+0200 Viktor Szakats (vszakats users.noreply.github.com)
    * contrib/hbsqlit3/core.c
      % use hb_fileLoad()
    ; Commit split from:
    ; origin: 8f534aaa77

  2017-08-01 20:23 UTC Viktor Szakats (vszakats users.noreply.github.com)
    * contrib/hbsqlit3/core.c
    * contrib/sddsqlt3/core.c
      * use new sqlite3_prepare_v3() when built against
        sqlite 3.20.0 or upper.
    * contrib/hbsqlit3/core.c
      + SQLITE3_PREPARE() add 3rd parameter <nPrepFlags>
        Usable if build against sqlite 3.20.0 or upper, ignored otherwise
    * contrib/hbsqlit3/hbsqlit3.ch
      + add SQLITE3_PREPARE_PERSISTENT constant
    ; origin: b33de96c81
2023-12-08 23:39:21 +01:00
Phil Krylov
8220d099e2 2023-12-07 21:00 UTC+0100 Phil Krylov (phil a t krylov.eu)
* config/win/bcc.mk
  * utils/hbmk2/hbmk2.prg
    ! Fixed Borland C 32-bit compiler warning flags.
2023-12-08 20:49:01 +01:00
Phil Krylov
7e7ca1d385 2023-12-07 20:00 UTC+0100 Phil Krylov (phil a t krylov.eu)
* .github/workflows/linux-ci.yml
    ! Linux CI build fix (outdated packages).
  * .github/workflows/vm1-ci.yml
  + .github/workflows/vm2-ci.yml
    + Added an OmniOS CI build.
    ! Switched FreeBSD CI build to vmactions/freebsd@v1 action as it's
      more stable.
2023-12-07 20:36:38 +01:00
Phil Krylov
1d4748a023 2023-12-01 11:00 UTC+0100 Phil Krylov (phil a t krylov.eu)
* src/rtl/fserr.c
    * Mapped ERROR_INVALID_NAME on Windows to DOS error 2.
      Makes hbtest pass on Windows.
2023-12-07 16:41:09 +01:00
Phil Krylov
1ba1f6b488 2023-11-30 22:36 UTC+0100 Phil Krylov (phil a t krylov.eu)
* src/3rd/Makefile
  - src/3rd/tiff/
  * package/harbour.spec
  * README.md
    - Removed third-party TIFF library. It's not clear why it was even
      included, it's not C90 compatible anymore, and a major pain to maintain.
2023-12-01 12:25:47 +01:00
Phil Krylov
e8de2ab8cc 2023-11-16 18:12 UTC+0100 Phil Krylov (phil a t krylov.eu)
* contrib/hbsqlit3/core.c
  * contrib/hbsqlit3/hbsqlit3.ch
  * contrib/hbsqlit3/hbsqlit3.hbx
    * Implemented SQLITE3_DB_FILENAME() on SQLite 3.7.10+.
    * Implemented SQLITE3_EXPANDED_SQL(), SQLITE3_TRACE_V2() on SQLite 3.14.0+.
    ; Thanks to Mindaugas Kavaliauskas for thorough reviewing!
  * contrib/hbsqlit3/tests/backup.prg
  * contrib/hbsqlit3/tests/demo.prg
    * Updated examples to use SQLITE3_TRACE_V2() on SQLite 3.14.0+.
2023-11-30 19:21:20 +01:00
Przemysław Czerpak
74322e702c 2023-11-22 09:06 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/hbssl/hbssl.hbm
  * contrib/hbssl/hbssl.hbx
  * contrib/hbssl/hbssl.h
  + contrib/hbssl/rsa.c
    + added PRG functions for RSA encryption/decryption:
         RSA_size( <pKey> ) -> <nCipherBlockSize>
         RSA_public_encrypt( <pKey>, <cData>, @<cDataEnc> ;
                              [, <nPadding> = HB_RSA_PKCS1_PADDING ] ) ;
                  -> <nSize> > 0 | <nError> <= 0
         RSA_private_decrypt( <pKey>, <cDataEnc>, @<cDataDec> ;
                              [, <nPadding> = HB_RSA_PKCS1_PADDING ] ) ;
                  -> <nSize> > 0 | <nError> <= 0
         RSA_private_encrypt( <pKey>, <cData>, @<cDataEnc> ;
                              [, <nPadding> = HB_RSA_PKCS1_PADDING ] ) ;
                  -> <nSize> > 0 | <nError> <= 0
         RSA_public_decrypt( <pKey>, <cDataEnc>, @<cDataDec> ;
                              [, <nPadding> = HB_RSA_PKCS1_PADDING ] ) ;
                  -> <nSize> > 0 | <nError> <= 0
    + added C functions for manipulating RSA keys inside HB_ITEMs:
         HB_BOOL hb_RSA_is( int iParam );
         RSA *   hb_RSA_par( int iParam );
         void    hb_RSA_ret( RSA * rsa );

  * contrib/hbssl/pem.c
    + added support for RSA keys.
      Now the following PRG functions return RSA key which can be passed to
      RSA_* functions:
         PEM_READ_BIO_RSAPRIVATEKEY()
         PEM_READ_BIO_RSAPUBLICKEY()
         PEM_READ_BIO_RSA_PUBKEY()

  * contrib/hbssl/evppkey.c
    + added functions for EVP_PKEY encryption/decryption:
         EVP_PKEY_base_id( <pKey> ) -> <nType>
         EVP_PKEY_CTX_new( <pKey> ) -> <pKeyCTX>
         EVP_PKEY_encrypt_init( <pKeyCTX> ) -> <nResult> (1 - OK, <=0 - Error)
         EVP_PKEY_encrypt( <pKeyCTX>, @<cDataEnc>, <cData> ) ;
                  -> <nSize> > 0 | <nError> <= 0
         EVP_PKEY_decrypt_init( <pKeyCTX> ) -> <nResult> (1 - OK, <=0 - Error)
         EVP_PKEY_decrypt( <pKeyCTX>, @<cDataDec>, <cDataEnc> ) ;
                  -> <nSize> > 0 | <nError> <= 0
      Above functions can be used with keys loaded by:
         PEM_READ_PRIVATEKEY()
         PEM_READ_PUBKEY()
      In OpenSSL 3.0 typed functions like *RSA*, *DSA*, *DH*, ... are
      depreciated and common for different methods EVP ones should be
      used instead.
    + added support for RSA encryption/decryption in above functions in
      OpenSSL libraries prior 1.0.0 which do not have EVP_PKEY_CTX. RSA
      support is emulated by direct calls to RSA_* functions so now for
      RSA it's possible to use new functions with old OpenSSL libraries.

  * contrib/hbssl/hbssl.ch
    + added constants for RSA padding: HB_RSA_*_PADDING
    + added constants for EVP PKEY types: HB_EVP_PKEY_*

  * contrib/hbssl/hbssl.hbx
    + added new functions
2023-11-22 09:06:29 +01:00
Phil Krylov
0000838d13 2023-11-15 15:57 UTC+0100 Phil Krylov (phil a t krylov.eu) (#342)
* contrib/hbsqlit3/tests/backup.prg
    + Simple change in test to provoke access to dangling pointer saved
      by SQLITE3_TRACE().
  * contrib/hbsqlit3/core.c
    ! Fixed dangling pointer access with SQLITE3_TRACE(), SQLITE3_PROFILE().
2023-11-16 18:18:41 +01:00
Phil Krylov
3939012c27 2023-11-14 22:27 UTC+0100 Phil Krylov (phil a t krylov.eu)
* .github/workflows/linux-ci.yml
    * On Linux CI workflow, run tests with Valgrind.
    + Added contrib/hbsqlit3/tests/backup.prg as a test.
2023-11-14 22:27:51 +01:00
Przemysław Czerpak
6bbb31e540 2023-11-13 23:58 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/hbct/ctwin.c
    ! typo in comment

  * include/hbexprb.c
  * include/hbexprop.h
  * src/common/expropt2.c
  * src/harbour.def
    * moved code for reducing NOT expression to new separate function
      hb_compExprReduceNot()
    ; added comments to mark places for possible compiletime warnings when
      incompatible types are used inside in logical expressions
      (.AND. / .OR. / .NOT.)
2023-11-13 23:58:30 +01:00
Phil Krylov
ffadb8459d 2023-11-12 16:40 UTC+0100 Phil Krylov (phil a t krylov.eu)
* .github/workflows/linux-ci.yml
  * .github/workflows/macos-ci.yml
  * .github/workflows/vm1-ci.yml
  * .github/workflows/windows-ci.yml
    * Enforce local SQLite3 usage in CI builds.
2023-11-12 16:41:13 +01:00
Phil Krylov
6f9560982b 2023-11-12 14:38 UTC+0100 Phil Krylov (phil a t krylov.eu)
* .github/workflows/linux-ci.yml
  * .github/workflows/macos-ci.yml
  * .github/workflows/vm1-ci.yml
  * .github/workflows/windows-ci.yml
    * Made strict CI build not that strict by adding
      -Wno-error=deprecated-declarations.
    ! Fixed ccache configuration under msys2.
2023-11-12 14:39:29 +01:00
Phil Krylov
9e989d3c52 2023-11-11 21:41 UTC+0100 Phil Krylov (phil a t krylov.eu) (#335)
2023-11-11 21:41 UTC+0100 Phil Krylov (phil a t krylov.eu)
* contrib/hbwin/win_bmp.c
    ! Fixed dangling pointer access (introduced in commit 64dba82) in
      WIN_DRAWBITMAP().
2023-11-11 21:46:45 +01:00
Phil Krylov
c2c175df31 2023-11-11 21:08 UTC+0100 Phil Krylov (phil a t krylov.eu)
* .github/workflows/linux-ci.yml
  * .github/workflows/macos-ci.yml
  * .github/workflows/vm1-ci.yml
  * .github/workflows/windows-ci.yml
    * Use `-Wno-error=array-bounds` in GCC strict mode CI builds as the array
      bounds checker is buggy in GCC 12-13.
2023-11-11 21:08:42 +01:00
Phil Krylov
821d53ebb2 2023-11-11 19:42 UTC+0100 Phil Krylov (phil a t krylov.eu) (#334)
2023-11-11 19:42 UTC+0100 Phil Krylov (phil a t krylov.eu)
  * contrib/gtwvg/gtwvg.h
  * contrib/gtwvg/wvgcore.c
  * contrib/gtwvg/wvgutils.c
  * contrib/gtwvg/wvgwing.c
  * contrib/hbwin/wapi_winuser_dlg.c
    ! Minor 64-bit Win32 API fixes.
2023-11-11 20:23:30 +01:00
Phil Krylov
2ed5940216 2023-11-11 19:42 UTC+0100 Phil Krylov (phil a t krylov.eu) (#333)
2023-11-11 19:42 UTC+0100 Phil Krylov (phil a t krylov.eu)
  * config/win/mingw.mk
  * utils/hbmk2/hbmk2.prg
    ! Use -D__USE_MINGW_ANSI_STDIO=0 to opt out of C99 printf emulation on
      MinGW-W64 10.0+.
2023-11-11 19:59:23 +01:00
Phil Krylov
d54bb0e3f0 2023-11-11 18:38 UTC+0100 Phil Krylov (phil a t krylov.eu) (#332)
2023-11-11 18:38 UTC+0100 Phil Krylov (phil a t krylov.eu)
  * include/hbwinuni.h
  * src/vm/maindllp/dllpcode.c
    * In `HB_WINAPI_GETPROCADDRESS[T]`, cast the return value to `void *`
      to pacify further cast warnings, as the exact function signature is almost
      never a `FARPROC` anyway.
  * src/compiler/harbour.yyc
  * src/macro/macro.yyc
    * Added `HB_SYMBOL_UNUSED( yynerrs )` to pacify compiler warnings.
  * src/rtl/replic.c
    * Added a cast to a comparison to pacify compiler warning.
  * src/vm/classes.c
    ! Fixed outdated format specifier in a trace message.
2023-11-11 19:37:58 +01:00
Phil Krylov
b85040eed7 2023-11-11 18:25 UTC+0100 Phil Krylov (phil a t krylov.eu)
* .github/workflows/vm1-ci.yml
    ! Fixed ccache and sysctl path in BSD CI builds.
2023-11-11 18:25:34 +01:00
Phil Krylov
d0a87d4ac0 2023-11-11 17:07 UTC+0100 Phil Krylov (phil a t krylov.eu) (#331)
* src/3rd/pcre
    ! Updated pcre to 8.45.
  * src/3rd/tiff
    ! Updated tiff to 4.6.0. Removed C99-isms.
  * src/3rd/jpeg
    ! Updated jpeg to 9e.
  * src/3rd/png
    ! Updated libpng to 1.6.40
  * src/3rd/zlib
    ! Updated zlib to 1.3.
2023-11-11 18:15:02 +01:00
Phil Krylov
84c5123341 2023-11-11 16:48 UTC+0100 Phil Krylov (phil a t krylov.eu)
* config/win/mingw.mk
    + Added support for HB_CCACHE in MinGW builds.
2023-11-11 16:48:42 +01:00
Phil Krylov
20483d43ae 2023-11-11 16:37 UTC+0100 Phil Krylov (phil a t krylov.eu)
* config/win/bcc.mk
    ! Fixed quoting when building under POSIX shell.
2023-11-11 16:37:45 +01:00
Phil Krylov
38c080a960 2023-11-11 16:00 UTC+0100 Phil Krylov (phil a t krylov.eu)
* .github/workflows/linux-ci.yml
  * .github/workflows/macos-ci.yml
  + .github/workflows/vm1-ci.yml
  * .github/workflows/windows-ci.yml
    + Added bcc (32-bit) Windows CI build.
    + Added FreeBSD, NetBSD, and OpenBSD CI builds.
    * Cosmetic changes to keep different workflows easily diffable.
2023-11-11 16:21:54 +01:00
Przemysław Czerpak
ae266a6222 2023-11-11 13:59 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/gtqtc/gtqtc.h
    ! synced declaration of QTConsole::repaintChars() with its implementation
2023-11-11 13:59:15 +01:00
Przemysław Czerpak
41bf0e17f4 2023-11-11 13:43 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/gtqtc/gtqtc.h
    * use QT_VERSION >= 0x050000 instead of QT_VERSION <= 0x040900
    * indenting
2023-11-11 13:43:23 +01:00
Przemysław Czerpak
d12558f0ca 2023-11-11 13:33 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/common/hbdate.c
    * accept timestamp values with trailing "Z" indicating UTC time
      (zero hour offset)
2023-11-11 13:33:23 +01:00
Phil Krylov
deda6c73fa 2023-11-09 15:07 UTC+0100 Phil Krylov (phil a t krylov.eu) (#336)
* .github/workflows/linux-ci.yml
  * .github/workflows/macos-ci.yml
  * .github/workflows/windows-ci.yml
    + Added GitHub Actions CI workflows.
2023-11-09 15:12:42 +01:00
Enrico Maria Giordano
a57a6c8d3e contrib/hbssl: Support for OpenSSL 3 (#329)
2023-10-29 14:27 UTC+0100 Enrico Maria Giordano (e.m.giordano@emagsoftware.it)
   * contrib/hbssl/hbssl.hbp
     ! added support for Openssl 3
2023-11-04 16:38:29 +01:00
Przemysław Czerpak
cd091a696a 2023-07-07 00:07 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/vm/classes.c
    ! fixed GPF when object item variable is passed by reference but the object
      is neither instance of standard class nor scalar class
2023-07-07 00:07:23 +02:00
Przemysław Czerpak
6c084dd649 2023-05-19 16:29 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* include/hbclass.ch
    ! fixed declaration stripping when HB_CLS_NO_DECLARATIONS is defined

  * src/compiler/hbmain.c
    ! do not generate warnings for undeclared methods when -w[12] is used.
      They should be emitted only for -w3 or higher (if any in the future).
      Thanks to Toninho for the information about the problem.
2023-05-19 16:30:00 +02:00
Przemysław Czerpak
ebc83d5d85 2023-05-12 18:13 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/compiler/hbmain.c
    ! fixed GPFs in dummy and never finished code for strong typing and message
      call validation.
2023-05-12 18:13:12 +02:00
Przemysław Czerpak
0477f62648 2023-04-21 13:01 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/tbrowse.prg
    ! disabled HB_CLS_NOTOBJECT in TBrowse class definition
2023-04-21 13:01:02 +02:00
Przemysław Czerpak
ec993d4753 2023-04-21 11:45 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* include/harbour.hbx
  * src/harbour.def
  * src/rtl/vfile.c
    + added new PRG function:
         hb_vfIsLocal( <cFileName> ) --> <lLocalFileSystem>
      It returns TRUE if <cFileName> is not redirected to any Harbour File IO
      driver but access local file system API.

  * contrib/xhb/traceprg.prg
    * merged with Victor's branch so now Harbour File IO API is used to
      access log file.
    * convert relative log file name to absolute file path name
    % write whole log entry in single IO operation.
2023-04-21 11:45:59 +02:00
Przemysław Czerpak
3e9c09053b 2023-04-20 23:35 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/xhb/hbcompat.ch
    ! fixed translations of xHarbour operators inside brackets,
      thanks to Ron.

  * contrib/xhb/xhb.hbx
  * contrib/xhb/xcstr.prg
    + added support for timestamp translations
    ! fixed few wrong translations
    ! fixed serialization of hash items with cyclic references
      in ValToPrg()
    % optimized cyclic references detection in ValToPrg()
    ! generate dummy code which cannot be compiled for codeblocks serialized
      by ValToPrg()

  * contrib/xhb/xhb.ch
    + added SET TRACE ... command, thanks to Ron.

  * contrib/xhb/xhberror.c
    * do not show __ERRRT_BASE() and __ERRRT_SBASE() in error call stack.

  * src/vm/classes.c
    ! added protection against possible GPF when manually created serialized object
      data with super class symbols longer then HB_SYMBOL_NAME_LEN is deserialized
2023-04-20 23:35:56 +02:00
Przemysław Czerpak
e11ee84e6a 2023-04-20 15:12 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/gtqtc/gtqtc1.cpp
    % minor optimization in HB_GTI_PALETTE

  * src/rtl/checkbox.prg
  * src/rtl/listbox.prg
  * src/rtl/pushbtn.prg
  * src/rtl/radiobtn.prg
  * src/rtl/radiogrp.prg
  * src/rtl/scrollbr.prg
  * src/rtl/tbcolumn.prg
  * src/rtl/tbrowse.prg
  * src/rtl/teditor.prg
  * src/rtl/tget.prg
  * src/rtl/tgetlist.prg
  * src/rtl/tlabel.prg
  * src/rtl/tmenuitm.prg
  * src/rtl/tmenusys.prg
  * src/rtl/tpopup.prg
  * src/rtl/treport.prg
  * src/rtl/tsymbol.prg
  * src/rtl/ttextlin.prg
  * src/rtl/ttopbar.prg
    ! use :Init() method instead of :New() to initialize object instance
      variables. In Class(y) :New() is class message not object one.
2023-04-20 15:12:07 +02:00
Przemysław Czerpak
b7b69eb00e 2023-03-09 15:50 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* include/hbvm.h
  * src/harbour.def
    * added HB_EXPORT to functions dedicated to overload dynamic symbols

  * src/rdd/hbsix/sxord.c
    ! use hb_itemRelease() instead of unnecessary hb_itemReturnRelease()
2023-03-09 15:50:03 +01:00
Przemysław Czerpak
8aae3108f4 2023-02-03 02:46 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/vm/arrays.c
    ! fixed buffer allocation in AClone()/hb_HClone() with possible cyclic
      references.
      I created the problem on 2023-01-30 15:18 UTC+0100 and it was reported
      as internal error 9024: hb_xrealloc requested to resize to zero bytes
2023-02-03 02:46:26 +01:00
Przemysław Czerpak
1aac73c6bf 2023-02-01 13:49 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/xhb/xhb.hbx
    * added reference to SetErrorMode()
2023-02-01 13:49:51 +01:00
Przemysław Czerpak
72538bb26c 2023-02-01 13:43 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/xhb/xhberrc.c
    + implemented Harbour version of SetUnhandledExceptionFilter() and
      SetErrorMode()

  * src/rtl/diskspac.c
    % use GetDiskFreeSpaceEx() directly on Win64 instead of accessing it
      by GetProcAddress()

  * ChangeLog.txt
    ! typo in file name in previous commit
2023-02-01 13:43:46 +01:00
Przemysław Czerpak
b94a8c4985 2023-01-31 23:19 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
+ contrib/xhb/xhberror.prg
    ! added file missing in previous commit:
      added code which extends Harbour error objects adding functionality
      known from xHarbour:
         oError:ProcName
         oError:ProcLine
         oError:ProcModule
      Above instance variables are initialized automatically when error
      object is created.
      To enable this functionality it's enough to add to PRG code:
         REQUEST xhb_ErrorNew
2023-01-31 23:19:40 +01:00
Przemysław Czerpak
807c7d8e8b 2023-01-31 14:59 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* include/hbapierr.h
  * src/harbour.def
  * src/rtl/errapi.c
    + added new C function:
         void hb_errReinit( PHB_ITEM pError );
      it allows to replace default error object with user custom one which
      support :Init() method

  * contrib/xhb/xhb.hbp
  + contrib/xhb/xhb.h
  + contrib/xhb/xhberror.prg
    + added code which extends Harbour error objects adding functionality
      known from xHarbour:
         oError:ProcName
         oError:ProcLine
         oError:ProcModule
      Above instance variables are initialized automatically when error
      object is created.
      To enable this functionality it's enough to add to PRG code:
         REQUEST xhb_ErrorNew

  * contrib/xhb/xhberr.prg
    * use error object :Proc*() methods if they are available
    - removed PRG version of xhb_ErrorNew()

  * contrib/xhb/xhbmemo.prg
  * contrib/xhb/xhbtedit.prg
    ! use xhb_ErrorNew() instead of ErrorNew() which does not support
      any parameters

  * include/hbapicls.h
    ; typo in comment
2023-01-31 14:59:17 +01:00
Przemysław Czerpak
c95f2a7ad5 2023-01-31 07:17 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/vm/fm.c
  * src/vm/garbage.c
    ! pacified warnings
2023-01-31 07:17:18 +01:00
Przemysław Czerpak
c3abd753c9 2023-01-30 15:18 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/arc4.c
    ! include hbarc4.h instead of arc4.h which does not contain
      required for dynamic libraries export attributes in function
      declaration

  * src/vm/classes.c
    ! cleaned module symbol range checking

  * src/vm/arrays.c
    % optimized AClone() and hb_HClone()

  * src/vm/hvmall.c
    % changed the order of included files to keep alive function macros
      undefined in garbage.c and fm.c

  * src/vm/hvm.c
    ! fixed hb_vmGetRealFuncSym() to work with PRG functions written in C
      and registered in HVM without their own symbol table

  * src/vm/dynsym.c
    ; comment updated
2023-01-30 15:18:58 +01:00
Przemysław Czerpak
a08bcb0a47 2023-01-23 12:46 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* include/harbour.hbx
    ! added missing hb_socketSetNoSigPipe()

  * src/rdd/dbfcdx/dbfcdx1.c
    * redirect all debug output to stderr
    * reenabled light debug code for early detection of index corruption
2023-01-23 12:46:36 +01:00
Przemysław Czerpak
004d53a594 2023-01-23 12:28 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/gtqtc/gtqtc.h
  * contrib/gtqtc/gtqtc1.cpp
    * replaced depreciated in 5.15 methods for mouse wheel events processing
      by modern ones
    * replaced depreciated in 5.15 methods for accessing screen geometry by
      modern ones

  * contrib/gtqtc/gtqtc1.cpp
    + added support for TAB key processing when other widgets are shown and
      TAB is use to switch focus

  * src/rtl/alert.prg
  * src/rtl/hbgtcore.c
    + added support for hb_Alert() parameters passed in hash array, i.e.
         hb_Alert( { "TXT" => <cMessage>, ;
                     "BTN" => <aButtons>, ;
                   [ "TIM" => <nTimeOut> ] } ) => <nButton>

  * contrib/gtqtc/gtqtc.h
  * contrib/gtqtc/gtqtc1.cpp
  * include/hbgtinfo.ch
    + added new hb_gtInfo() action: HB_GTI_MSGBOX
      It opens QMessageBox with given by user text and buttons, i.e.
         hb_gtInfo( HB_GTI_MSGBOX, <cMessage>, <aButtons> ) => <nButton>
      or:
         hb_gtInfo( HB_GTI_MSGBOX, ;
                    { "TXT" => <cMessage>, ;
                      "BTN" => <aButtons>, ;
                    [ "TIM" => <nTimeOut>, ] ;
                    [ "TIT" => <cTitle>, ] ;
                    [ "INF" => <cInfoText>, ] ;
                    [ "DTL" => <cDetailedText> ] } ) => <nButton>
    + added support for redirecting Alert() and hb_Alert() calls to QT GUI
      QMessageBox(). This functionality can be enabled by:
         hb_gtInfo( HB_GTI_MSGBOX, .t. )
      and then
         Alert( <cMessage>, <aButtons> )
      is redirected to QT GUI QMessageBox().

  * include/hbgtinfo.ch
  * contrib/gtqtc/gtqtc.h
  * contrib/gtqtc/gtqtc.hbc
  * contrib/gtqtc/gtqtc.hbp
  * contrib/gtqtc/gtqtc1.cpp
    + added new hb_gtInfo() action: HB_QT_SOUND
      It allows to play sound using the low level GUI library, i.e.
         hb_gtInfo( HB_QT_SOUND, <cSoundFile> )
      This modification needs additional QT5 library Qt5Multimedia so I decided
      to enable it conditionally by HB_QT_SOUND=yes environment variable.
2023-01-23 12:28:36 +01:00