summaryrefslogtreecommitdiff
path: root/pcre_compile.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-12-14 16:49:20 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-12-14 16:49:20 +0000
commitf852abd1323afc800c9a761e7041b961f03c1de2 (patch)
treed3bd200fa2f58f97cac266e9b71b5a7614d6e0e9 /pcre_compile.c
parent99b75fb8c82fcc4587c405f3c58df82a056a5b3c (diff)
downloadpcre-f852abd1323afc800c9a761e7041b961f03c1de2.tar.gz
Preliminary work on pcretest for 16-bit (not complete by any means).
git-svn-id: svn://vcs.exim.org/pcre/code/branches/pcre16@805 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_compile.c')
-rw-r--r--pcre_compile.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/pcre_compile.c b/pcre_compile.c
index cd3de55..1a13eb4 100644
--- a/pcre_compile.c
+++ b/pcre_compile.c
@@ -53,12 +53,13 @@ supporting internal functions that are not used by other modules. */
#include "pcre_internal.h"
-/* When PCRE_DEBUG is defined, we need the pcre_printint() function, which is
-also used by pcretest. PCRE_DEBUG is not defined when building a production
-library. */
+/* When PCRE_DEBUG is defined, we need the pcre(16)_printint() function, which
+is also used by pcretest. PCRE_DEBUG is not defined when building a production
+library. We do not need to select pcre16_printint.c specially, because the
+COMPILE_PCREx macro will already be appropriately set. */
#ifdef PCRE_DEBUG
-#include "pcre_printint.src"
+#include "pcre_printint.c"
#endif
@@ -8061,7 +8062,11 @@ if ((re->flags & PCRE_REQCHSET) != 0)
else printf("Req char = \\x%02x%s\n", ch, caseless);
}
+#ifdef COMPILE_PCRE8
pcre_printint(re, stdout, TRUE);
+#else
+pcre16_printint(re, stdout, TRUE);
+#endif
/* This check is done here in the debugging case so that the code that
was compiled can be seen. */