Final file tidies for 10.10-RC2.

This commit is contained in:
Philip.Hazel 2015-02-26 17:36:29 +00:00
parent 869f0271cf
commit 67800ba810
8 changed files with 33 additions and 36 deletions

View File

@ -394,7 +394,7 @@ SET(PCRE2_SOURCES
src/pcre2_newline.c src/pcre2_newline.c
src/pcre2_ord2utf.c src/pcre2_ord2utf.c
src/pcre2_pattern_info.c src/pcre2_pattern_info.c
src/pcre2_serialize.c src/pcre2_serialize.c
src/pcre2_string_utils.c src/pcre2_string_utils.c
src/pcre2_study.c src/pcre2_study.c
src/pcre2_substitute.c src/pcre2_substitute.c
@ -566,7 +566,7 @@ IF(PCRE2_BUILD_TESTS)
# exes in Debug location tested by the RunTest shell script # exes in Debug location tested by the RunTest shell script
# via "make test" # via "make test"
IF(PCRE2_BUILD_PCRE2GREP) IF(PCRE2_BUILD_PCRE2GREP)
GET_TARGET_PROPERTY(PCRE2GREP_EXE pcre2grep DEBUG_LOCATION) GET_TARGET_PROPERTY(PCRE2GREP_EXE pcre2grep DEBUG_LOCATION)
ENDIF(PCRE2_BUILD_PCRE2GREP) ENDIF(PCRE2_BUILD_PCRE2GREP)

View File

@ -82,19 +82,19 @@ ovector too small to capture the group.
16. Improved error message in pcre2test when setting the stack size (-S) fails. 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 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" 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 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. 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. only on Windows.
19. Use binary input when reading back saved serialized patterns in pcre2test. 19. Use binary input when reading back saved serialized patterns in pcre2test.
20. Added RunTest.bat for running the tests under Windows. 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. with CMake.

5
NEWS
View File

@ -1,7 +1,7 @@
News about PCRE2 releases 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, 1. Serialization and de-serialization functions have been added to the API,
@ -11,7 +11,8 @@ restoration must be done in the same environment that was used for compilation.
2. The (*NO_JIT) feature has been added; this makes it possible for a pattern 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. 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 Version 10.00 05-January-2015

View File

@ -11,7 +11,7 @@ dnl be defined as -RC2, for example. For real releases, it should be empty.
m4_define(pcre2_major, [10]) m4_define(pcre2_major, [10])
m4_define(pcre2_minor, [10]) m4_define(pcre2_minor, [10])
m4_define(pcre2_prerelease, [-RC2]) 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 # 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. # 50 lines of this file. Please update that if the variables above are moved.

View File

@ -20,10 +20,6 @@ This document contains the following sections:
GENERAL 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 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 should compile successfully on any system that has a Standard C compiler and
library. library.
@ -186,9 +182,12 @@ The default processor stack size of 1Mb in some Windows environments is too
small for matching patterns that need much recursion. In particular, test 2 may 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 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 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 documentation for how to increase stack size if you experience problems. If you
Linux default of 8Mb is a reasonable choice for the stack, though even that can are using CMake (see "BUILDING PCRE2 ON WINDOWS WITH CMAKE" below) and the gcc
be too small for some pattern/subject combinations. 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 PCRE2 has a compile configuration option to disable the use of stack for
recursion so that heap is used instead. However, pattern matching is recursion so that heap is used instead. However, pattern matching is
@ -330,22 +329,19 @@ cache can be deleted by selecting "File > Delete Cache".
12. If during configuration with cmake-gui you've elected to build the test 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 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 most recent build configuration is targeted by the tests. A summary of
test results is presented. Complete test output is subsequently test results is presented. Complete test output is subsequently
available for review in Testing\Temporary under your build dir. 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 ALL_TESTS in Visual Studio) creates (and runs) pcre2_test.bat (and depending
on your configuration options, possibly other test programs) in the build 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 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 the source directory: Open command shell window. Chdir to the location
@ -392,4 +388,4 @@ The site currently has ports for PCRE1 releases, but PCRE2 should follow in due
course. course.
============================= =============================
Last Updated: 19 January 2015 Last Updated: 25 February 2015

View File

@ -200,7 +200,7 @@ sure both macros are undefined; an emulation function will then be used. */
#define PACKAGE_NAME "PCRE2" #define PACKAGE_NAME "PCRE2"
/* Define to the full name and version of this package. */ /* 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 to the one symbol short name of this package. */
#define PACKAGE_TARNAME "pcre2" #define PACKAGE_TARNAME "pcre2"
@ -209,7 +209,7 @@ sure both macros are undefined; an emulation function will then be used. */
#define PACKAGE_URL "" #define PACKAGE_URL ""
/* Define to the version of this package. */ /* 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 /* 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 parentheses (of any kind) in a pattern. This limits the amount of system
@ -287,7 +287,7 @@ sure both macros are undefined; an emulation function will then be used. */
/* #undef SUPPORT_VALGRIND */ /* #undef SUPPORT_VALGRIND */
/* Version number of package */ /* 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. */ /* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */ /* #undef const */

View File

@ -43,8 +43,8 @@ POSSIBILITY OF SUCH DAMAGE.
#define PCRE2_MAJOR 10 #define PCRE2_MAJOR 10
#define PCRE2_MINOR 10 #define PCRE2_MINOR 10
#define PCRE2_PRERELEASE -RC1 #define PCRE2_PRERELEASE -RC2
#define PCRE2_DATE 2015-02-20 #define PCRE2_DATE 2015-02-26
/* When an application links to a PCRE DLL in Windows, the symbols that are /* 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 imported have to be identified as such. When building PCRE2, the appropriate

View File

@ -102,7 +102,7 @@ environments, so it was added for release 5.0 to both the input and output. (It
makes no difference on Unix-like systems.) Later I was told that it is wrong 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 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 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. */ patterns. */
#if defined(_WIN32) || defined(WIN32) #if defined(_WIN32) || defined(WIN32)
@ -6466,16 +6466,16 @@ while (argc > 1 && argv[op][0] == '-' && argv[op][1] != 0)
rlim.rlim_cur = stack_size * 1024 * 1024; rlim.rlim_cur = stack_size * 1024 * 1024;
if (rlim.rlim_cur > rlim.rlim_max) if (rlim.rlim_cur > rlim.rlim_max)
{ {
fprintf(stderr, fprintf(stderr,
"pcre2test: requested stack size %luM is greater than hard limit %lu\n", "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)); (unsigned long int)(rlim.rlim_max));
exit(1); exit(1);
} }
rc = setrlimit(RLIMIT_STACK, &rlim); rc = setrlimit(RLIMIT_STACK, &rlim);
if (rc != 0) 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)); (unsigned long int)stack_size, strerror(errno));
exit(1); exit(1);
} }