summaryrefslogtreecommitdiff
path: root/src/pcre2_internal.h
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2016-05-14 16:35:20 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2016-05-14 16:35:20 +0000
commitc437ff3a5799b0a567d8c58e860a3af050a20ae2 (patch)
tree3806d879b4cf0801b197b668b6a48ec233574ce7 /src/pcre2_internal.h
parenta46b55db33ebd734bdb37ba9bc2e417d38aef098 (diff)
downloadpcre2-c437ff3a5799b0a567d8c58e860a3af050a20ae2.tar.gz
Refactor pcre2posix.c so as not to #include pcre2_internal.h.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@513 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2_internal.h')
-rw-r--r--src/pcre2_internal.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/pcre2_internal.h b/src/pcre2_internal.h
index 5f49129..1752c7a 100644
--- a/src/pcre2_internal.h
+++ b/src/pcre2_internal.h
@@ -242,8 +242,15 @@ Unicode doesn't go beyond 0x0010ffff. */
#define MAX_UTF_CODE_POINT 0x10ffff
-/* Compile-time errors are added to this value. As they are documented, it
-should probably never be changed. */
+/* Compile-time positive error numbers (all except UTF errors, which are
+negative) start at this value. It should probably never be changed, in case
+some application is checking for specific numbers. There is a copy of this
+#define in pcre2posix.c (which now no longer includes this file). Ideally, a
+way of having a single definition should be found, but as the number is
+unlikely to change, this is not a pressing issue. The original reason for
+having a base other than 0 was to keep the absolute values of compile-time and
+run-time error numbers numerically different, but in the event the code does
+not rely on this. */
#define COMPILE_ERROR_BASE 100