Revision: 210
http://www.exim.org/viewvc/pcre2?view=rev&revision=210
Author: ph10
Date: 2015-02-26 17:36:29 +0000 (Thu, 26 Feb 2015)
Log Message:
-----------
Final file tidies for 10.10-RC2.
Modified Paths:
--------------
code/trunk/CMakeLists.txt
code/trunk/ChangeLog
code/trunk/NEWS
code/trunk/configure.ac
code/trunk/doc/html/NON-AUTOTOOLS-BUILD.txt
code/trunk/src/config.h.generic
code/trunk/src/pcre2.h.generic
code/trunk/src/pcre2test.c
Modified: code/trunk/CMakeLists.txt
===================================================================
--- code/trunk/CMakeLists.txt 2015-02-26 17:20:48 UTC (rev 209)
+++ code/trunk/CMakeLists.txt 2015-02-26 17:36:29 UTC (rev 210)
@@ -394,7 +394,7 @@
src/pcre2_newline.c
src/pcre2_ord2utf.c
src/pcre2_pattern_info.c
- src/pcre2_serialize.c
+ src/pcre2_serialize.c
src/pcre2_string_utils.c
src/pcre2_study.c
src/pcre2_substitute.c
@@ -566,7 +566,7 @@
# exes in Debug location tested by the RunTest shell script
# via "make test"
-
+
IF(PCRE2_BUILD_PCRE2GREP)
GET_TARGET_PROPERTY(PCRE2GREP_EXE pcre2grep DEBUG_LOCATION)
ENDIF(PCRE2_BUILD_PCRE2GREP)
Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog 2015-02-26 17:20:48 UTC (rev 209)
+++ code/trunk/ChangeLog 2015-02-26 17:36:29 UTC (rev 210)
@@ -82,19 +82,19 @@
16. Improved error message in pcre2test when setting the stack size (-S) fails.
-17. Fixed two bugs in CMakeLists.txt: (1) Some lines had got lost in the
-transfer from PCRE1, meaning that CMake configuration failed if "build tests"
-was selected. (2) The file src/pcre2_serialize.c had not been added to the list
+17. Fixed two bugs in CMakeLists.txt: (1) Some lines had got lost in the
+transfer from PCRE1, meaning that CMake configuration failed if "build tests"
+was selected. (2) The file src/pcre2_serialize.c had not been added to the list
of PCRE2 sources, which caused a failure to build pcre2test.
-18. Fixed typo in pcre2_serialize.c (DECL instead of DEFN) that causes problems
+18. Fixed typo in pcre2_serialize.c (DECL instead of DEFN) that causes problems
only on Windows.
19. Use binary input when reading back saved serialized patterns in pcre2test.
20. Added RunTest.bat for running the tests under Windows.
-21. "make distclean" was not removing config.h, a file that is created for use
+21. "make distclean" was not removing config.h, a file that is created for use
with CMake.
Modified: code/trunk/NEWS
===================================================================
--- code/trunk/NEWS 2015-02-26 17:20:48 UTC (rev 209)
+++ code/trunk/NEWS 2015-02-26 17:36:29 UTC (rev 210)
@@ -1,7 +1,7 @@
News about PCRE2 releases
-------------------------
-Version 10.10 20-February-2015
+Version 10.10 26-February-2015
------------------------------
1. Serialization and de-serialization functions have been added to the API,
@@ -11,7 +11,8 @@
2. The (*NO_JIT) feature has been added; this makes it possible for a pattern
creator to specify that JIT is not to be used.
-3. A number of bugs have been fixed.
+3. A number of bugs have been fixed. In particular, bugs that caused building
+on Windows using CMake have been mended.
Version 10.00 05-January-2015
Modified: code/trunk/configure.ac
===================================================================
--- code/trunk/configure.ac 2015-02-26 17:20:48 UTC (rev 209)
+++ code/trunk/configure.ac 2015-02-26 17:36:29 UTC (rev 210)
@@ -11,7 +11,7 @@
m4_define(pcre2_major, [10])
m4_define(pcre2_minor, [10])
m4_define(pcre2_prerelease, [-RC2])
-m4_define(pcre2_date, [2015-02-20])
+m4_define(pcre2_date, [2015-02-26])
# NOTE: The CMakeLists.txt file searches for the above variables in the first
# 50 lines of this file. Please update that if the variables above are moved.
Modified: code/trunk/doc/html/NON-AUTOTOOLS-BUILD.txt
===================================================================
--- code/trunk/doc/html/NON-AUTOTOOLS-BUILD.txt 2015-02-26 17:20:48 UTC (rev 209)
+++ code/trunk/doc/html/NON-AUTOTOOLS-BUILD.txt 2015-02-26 17:36:29 UTC (rev 210)
@@ -20,10 +20,6 @@
GENERAL
-I (Philip Hazel) have no experience of Windows or VMS sytems and how their
-libraries work. The items in the PCRE2 distribution and Makefile that relate to
-anything other than Linux systems are untested by me.
-
The basic PCRE2 library consists entirely of code written in Standard C, and so
should compile successfully on any system that has a Standard C compiler and
library.
@@ -186,9 +182,12 @@
small for matching patterns that need much recursion. In particular, test 2 may
fail because of this. Normally, running out of stack causes a crash, but there
have been cases where the test program has just died silently. See your linker
-documentation for how to increase stack size if you experience problems. The
-Linux default of 8Mb is a reasonable choice for the stack, though even that can
-be too small for some pattern/subject combinations.
+documentation for how to increase stack size if you experience problems. If you
+are using CMake (see "BUILDING PCRE2 ON WINDOWS WITH CMAKE" below) and the gcc
+compiler, you can increase the stack size for pcre2test and pcre2grep by
+setting the CMAKE_EXE_LINKER_FLAGS variable to "-Wl,--stack,8388608" (for
+example). The Linux default of 8Mb is a reasonable choice for the stack, though
+even that can be too small for some pattern/subject combinations.
PCRE2 has a compile configuration option to disable the use of stack for
recursion so that heap is used instead. However, pattern matching is
@@ -330,23 +329,20 @@
12. If during configuration with cmake-gui you've elected to build the test
programs, you can execute them by building the test project. E.g., for
- MinGW: "make check"; for Visual Studio build the RUN_TESTS project. The
+ MinGW: "make test"; for Visual Studio build the RUN_TESTS project. The
most recent build configuration is targeted by the tests. A summary of
test results is presented. Complete test output is subsequently
available for review in Testing\Temporary under your build dir.
-TESTING WITH RUNTEST.BAT IS NOT YET TESTED/UPDATED
+TESTING WITH RUNTEST.BAT
-If configured with CMake, building the test project ("make check" or building
+If configured with CMake, building the test project ("make test" or building
ALL_TESTS in Visual Studio) creates (and runs) pcre2_test.bat (and depending
on your configuration options, possibly other test programs) in the build
-directory. Pcre_test.bat runs RunTest.Bat with correct source and exe paths.
+directory. The pcre2_test.bat script runs RunTest.bat with correct source and
+exe paths.
-INCOMPLETE: Nobody has yet provided a RunTest.Bat for PCRE2 and I have no means
-of doing so. These instructions are those for PCRE1, left here in the hope that
-one day they will be usable.
-
For manual testing with RunTest.bat, provided the build dir is a subdirectory
of the source directory: Open command shell window. Chdir to the location
of your pcre2test.exe and pcre2grep.exe programs. Call RunTest.bat with
@@ -392,4 +388,4 @@
course.
=============================
-Last Updated: 19 January 2015
+Last Updated: 25 February 2015
Modified: code/trunk/src/config.h.generic
===================================================================
--- code/trunk/src/config.h.generic 2015-02-26 17:20:48 UTC (rev 209)
+++ code/trunk/src/config.h.generic 2015-02-26 17:36:29 UTC (rev 210)
@@ -200,7 +200,7 @@
#define PACKAGE_NAME "PCRE2"
/* Define to the full name and version of this package. */
-#define PACKAGE_STRING "PCRE2 10.10-RC1"
+#define PACKAGE_STRING "PCRE2 10.10-RC2"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "pcre2"
@@ -209,7 +209,7 @@
#define PACKAGE_URL ""
/* Define to the version of this package. */
-#define PACKAGE_VERSION "10.10-RC1"
+#define PACKAGE_VERSION "10.10-RC2"
/* The value of PARENS_NEST_LIMIT specifies the maximum depth of nested
parentheses (of any kind) in a pattern. This limits the amount of system
@@ -287,7 +287,7 @@
/* #undef SUPPORT_VALGRIND */
/* Version number of package */
-#define VERSION "10.10-RC1"
+#define VERSION "10.10-RC2"
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
Modified: code/trunk/src/pcre2.h.generic
===================================================================
--- code/trunk/src/pcre2.h.generic 2015-02-26 17:20:48 UTC (rev 209)
+++ code/trunk/src/pcre2.h.generic 2015-02-26 17:36:29 UTC (rev 210)
@@ -43,8 +43,8 @@
#define PCRE2_MAJOR 10
#define PCRE2_MINOR 10
-#define PCRE2_PRERELEASE -RC1
-#define PCRE2_DATE 2015-02-20
+#define PCRE2_PRERELEASE -RC2
+#define PCRE2_DATE 2015-02-26
/* When an application links to a PCRE DLL in Windows, the symbols that are
imported have to be identified as such. When building PCRE2, the appropriate
Modified: code/trunk/src/pcre2test.c
===================================================================
--- code/trunk/src/pcre2test.c 2015-02-26 17:20:48 UTC (rev 209)
+++ code/trunk/src/pcre2test.c 2015-02-26 17:36:29 UTC (rev 210)
@@ -102,7 +102,7 @@
makes no difference on Unix-like systems.) Later I was told that it is wrong
for the input on Windows. I've now abstracted the modes into macros that are
set here, to make it easier to fiddle with them, and removed "b" from the input
-mode under Windows. The BINARY versions are used when saving/restoring compiled
+mode under Windows. The BINARY versions are used when saving/restoring compiled
patterns. */
#if defined(_WIN32) || defined(WIN32)
@@ -6466,16 +6466,16 @@
rlim.rlim_cur = stack_size * 1024 * 1024;
if (rlim.rlim_cur > rlim.rlim_max)
{
- fprintf(stderr,
+ fprintf(stderr,
"pcre2test: requested stack size %luM is greater than hard limit %lu\n",
- (unsigned long int)stack_size,
+ (unsigned long int)stack_size,
(unsigned long int)(rlim.rlim_max));
exit(1);
- }
+ }
rc = setrlimit(RLIMIT_STACK, &rlim);
if (rc != 0)
{
- fprintf(stderr, "pcre2test: setting stack size %luM failed: %s\n",
+ fprintf(stderr, "pcre2test: setting stack size %luM failed: %s\n",
(unsigned long int)stack_size, strerror(errno));
exit(1);
}