Skip to content

Commit

Permalink
2025-02-03 12:26 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
Browse files Browse the repository at this point in the history
  * include/hbdefs.h
  * contrib/sddsqlt3/core.c
    - removed HB_WATCOM_64BUG macro - new versions of OW 2.0 supports 64bit
      integers in preprocessor directives - Many thanks to Aleksander who
      reported the problem on OpenWatcom V2 forum
    + added test for 64bit support in C preprocessor suggested by Aleksander

  * .github/workflows/windows-ci.yml
    * minor simplification
  • Loading branch information
druzus committed Feb 3, 2025
1 parent f39adf0 commit 91e06d0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/windows-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ jobs:
case ${{matrix.strictness}} in
normal) ;;
strict) case ${{matrix.compiler}} in
(mingw64) HB_USER_CFLAGS="$HB_USER_CFLAGS -Werror" ;;
(bcc) HB_USER_CFLAGS="$HB_USER_CFLAGS -w!" ;;
(*) HB_USER_CFLAGS="$HB_USER_CFLAGS -Werror" ;;
esac ;;
Expand Down
11 changes: 11 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
Entries may not always be in chronological/commit order.
See license at the end of file. */

2025-02-03 12:26 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* include/hbdefs.h
* contrib/sddsqlt3/core.c
- removed HB_WATCOM_64BUG macro - new versions of OW 2.0 supports 64bit
integers in preprocessor directives - Many thanks to Aleksander who
reported the problem on OpenWatcom V2 forum
+ added test for 64bit support in C preprocessor suggested by Aleksander

* .github/workflows/windows-ci.yml
* minor simplification

2025-02-03 10:50 UTC+0100 Aleksander Czajczynski (hb fki.pl)
* contrib/hbcurl/core.c
* formatting, use HB_IT_EVALITEM instead ( HB_IT_BLOCK | HB_IT_SYMBOL )
Expand Down
2 changes: 1 addition & 1 deletion contrib/sddsqlt3/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ static HB_ERRCODE sqlite3GoTo( SQLBASEAREAP pArea, HB_ULONG ulRecNo )
break;

case HB_FT_INTEGER:
#if HB_VMLONG_MAX != INT32_MAX && ! defined( HB_LONG_LONG_OFF )
#if HB_VMLONG_MAX > INT32_MAX && ! defined( HB_LONG_LONG_OFF )
pItem = hb_itemPutNInt( NULL, sqlite3_column_int64( st, ui ) );
break;
#else
Expand Down
12 changes: 8 additions & 4 deletions include/hbdefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,12 @@ typedef HB_U32 HB_SYMCNT;
# define HB_ULL( num ) num##ULL
#endif

#if defined( __WATCOMC__ ) && LONGLONG_MAX < LONG_MAX
#define HB_WATCOM_64BUG
#if LONGLONG_MAX < LONG_MAX
#if defined( __WATCOMC__ )
#error "Your Watcom C can't preprocess 64-bit constants, use HB_USER_CFLAGS=-za99 or upgrade/downgrade"
#else
#error "Your C compiler wrongly preprocess 64-bit constants"
#endif
#endif

/* HB_*_EXPLENGTH() macros are used by HVM to set the size of
Expand Down Expand Up @@ -540,10 +544,10 @@ typedef HB_U32 HB_SYMCNT;
#endif

#if ! defined( HB_LONG_LONG_OFF )
# if HB_VMLONG_MAX > HB_LL( 9999999999 ) || defined( HB_WATCOM_64BUG )
# if HB_VMLONG_MAX > HB_LL( 9999999999 )
# define HB_LONG_LENGTH( l ) ( ( (l) < -999999999 || (l) > HB_LL( 9999999999 ) ) ? 20 : 10 )
# endif
# if HB_VMINT_MAX > HB_LL( 9999999999 ) && ! defined( HB_WATCOM_64BUG )
# if HB_VMINT_MAX > HB_LL( 9999999999 )
# define HB_INT_EXPLENGTH( i ) HB_LONG_LENGTH( i )
# endif
#endif
Expand Down

0 comments on commit 91e06d0

Please sign in to comment.