[Pcre-svn] [1035] code/trunk: Add "kibibytes" to the output …

Inizio della pagina
Delete this message
Autore: Subversion repository
Data:  
To: pcre-svn
Oggetto: [Pcre-svn] [1035] code/trunk: Add "kibibytes" to the output of pcre2test -C to show the units of the heap
Revision: 1035
          http://www.exim.org/viewvc/pcre2?view=rev&revision=1035
Author:   ph10
Date:     2018-10-22 17:56:11 +0100 (Mon, 22 Oct 2018)
Log Message:
-----------
Add "kibibytes" to the output of pcre2test -C to show the units of the heap 
limit.


Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/src/pcre2test.c


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2018-10-22 16:47:55 UTC (rev 1034)
+++ code/trunk/ChangeLog    2018-10-22 16:56:11 UTC (rev 1035)
@@ -52,7 +52,10 @@
 overflow if the heap limit was set very large. This could cause incorrect "heap 
 limit exceeded" errors. 


+13. Add "kibibytes" to the heap limit output from pcre2test -C to make the
+units clear.

+
Version 10.32 10-September-2018
-------------------------------


Modified: code/trunk/src/pcre2test.c
===================================================================
--- code/trunk/src/pcre2test.c    2018-10-22 16:47:55 UTC (rev 1034)
+++ code/trunk/src/pcre2test.c    2018-10-22 16:56:11 UTC (rev 1035)
@@ -8152,7 +8152,7 @@
 (void)PCRE2_CONFIG(PCRE2_CONFIG_PARENSLIMIT, &optval);
 printf("  Parentheses nest limit = %d\n", optval);
 (void)PCRE2_CONFIG(PCRE2_CONFIG_HEAPLIMIT, &optval);
-printf("  Default heap limit = %d\n", optval);
+printf("  Default heap limit = %d kibibytes\n", optval);
 (void)PCRE2_CONFIG(PCRE2_CONFIG_MATCHLIMIT, &optval);
 printf("  Default match limit = %d\n", optval);
 (void)PCRE2_CONFIG(PCRE2_CONFIG_DEPTHLIMIT, &optval);