From edbafd4e1dad68784566dbbd48c9068ba772bf63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Czerpak?= Date: Thu, 11 Apr 2019 17:33:24 +0200 Subject: [PATCH] 2019-04-11 17:33 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * src/common/hbverdsp.c * src/nortl/nortl.c * use HB_MEM_STATISTICS instead of HB_MEM_USEDMAX to check if memory statistic module is enabled in harbour compiler -build message --- ChangeLog.txt | 6 ++++++ src/common/hbverdsp.c | 2 +- src/nortl/nortl.c | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 52ae9170a8..ba87964f67 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -7,6 +7,12 @@ Entries may not always be in chronological/commit order. See license at the end of file. */ +2019-04-11 17:33 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * src/common/hbverdsp.c + * src/nortl/nortl.c + * use HB_MEM_STATISTICS instead of HB_MEM_USEDMAX to check if memory + statistic module is enabled in harbour compiler -build message + 2019-04-11 17:23 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * include/dbinfo.ch * src/rdd/dbf1.c diff --git a/src/common/hbverdsp.c b/src/common/hbverdsp.c index 92bb2cf2ef..a711cdcac7 100644 --- a/src/common/hbverdsp.c +++ b/src/common/hbverdsp.c @@ -132,7 +132,7 @@ void hb_verBuildInfo( void ) } hb_conOutErr( "Build options: ", 0 ); - if( hb_xquery( HB_MEM_USEDMAX ) != 0 ) + if( hb_xquery( HB_MEM_STATISTICS ) != 0 ) hb_conOutErr( "(memory tracking) ", 0 ); #if defined( HB_TR_INFO ) && ( HB_TR_LEVEL == HB_TR_INFO || HB_TR_LEVEL == HB_TR_DEBUG ) hb_conOutErr( "(tracing) ", 0 ); diff --git a/src/nortl/nortl.c b/src/nortl/nortl.c index 5209979d0d..609c9672a8 100644 --- a/src/nortl/nortl.c +++ b/src/nortl/nortl.c @@ -233,6 +233,10 @@ HB_SIZE hb_xquery( int iMode ) case HB_MEM_USEDMAX: nResult = s_nMemoryMaxConsumed; break; + + case HB_MEM_STATISTICS: + nResult = 1; + break; } #else HB_SYMBOL_UNUSED( iMode );