summaryrefslogtreecommitdiff
path: root/src/pcre2_config.c
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2020-03-20 18:09:59 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2020-03-20 18:09:59 +0000
commit2ec85e0009fc1808ed79b4697e8502795b46564b (patch)
tree8b7b8eb19fe4feecbd1f0fb9fed718d5c523259d /src/pcre2_config.c
parent9273b7d54f872ede1a3c77d628495065a4bfa206 (diff)
downloadpcre2-2ec85e0009fc1808ed79b4697e8502795b46564b.tar.gz
Renamed dftables as pcre2_dftables and enable it to write the tables in binary.
Update documentation about character tables. git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1237 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2_config.c')
-rw-r--r--src/pcre2_config.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/pcre2_config.c b/src/pcre2_config.c
index e487b10..5ef103c 100644
--- a/src/pcre2_config.c
+++ b/src/pcre2_config.c
@@ -7,7 +7,7 @@ and semantics are as close as possible to those of the Perl 5 language.
Written by Philip Hazel
Original API code Copyright (c) 1997-2012 University of Cambridge
- New API code Copyright (c) 2016-2017 University of Cambridge
+ New API code Copyright (c) 2016-2020 University of Cambridge
-----------------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
@@ -43,7 +43,8 @@ POSSIBILITY OF SUCH DAMAGE.
#endif
/* Save the configured link size, which is in bytes. In 16-bit and 32-bit modes
-its value gets changed by pcre2_internal.h to be in code units. */
+its value gets changed by pcre2_intmodedep.h (included by pcre2_internal.h) to
+be in code units. */
static int configured_link_size = LINK_SIZE;
@@ -94,6 +95,7 @@ if (where == NULL) /* Requests a length */
case PCRE2_CONFIG_NEWLINE:
case PCRE2_CONFIG_PARENSLIMIT:
case PCRE2_CONFIG_STACKRECURSE: /* Obsolete */
+ case PCRE2_CONFIG_TABLES_LENGTH:
case PCRE2_CONFIG_UNICODE:
return sizeof(uint32_t);
@@ -191,6 +193,10 @@ switch (what)
*((uint32_t *)where) = 0;
break;
+ case PCRE2_CONFIG_TABLES_LENGTH:
+ *((uint32_t *)where) = TABLES_LENGTH;
+ break;
+
case PCRE2_CONFIG_UNICODE_VERSION:
{
#if defined SUPPORT_UNICODE