summaryrefslogtreecommitdiff
path: root/pcretest.c
diff options
context:
space:
mode:
authorchpe <chpe@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-10-16 15:56:30 +0000
committerchpe <chpe@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-10-16 15:56:30 +0000
commit5af1a2631ebd51c7dba340b27cb1ae6b640a4056 (patch)
tree52f51809fd319f68de433c8f6745a1395e65d66a /pcretest.c
parent191822033558082f127991f947ff50efa6aeefdc (diff)
downloadpcre-5af1a2631ebd51c7dba340b27cb1ae6b640a4056.tar.gz
pcre32: pcretest: Add missing pcre32 checks
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1101 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcretest.c')
-rw-r--r--pcretest.c24
1 files changed, 22 insertions, 2 deletions
diff --git a/pcretest.c b/pcretest.c
index a4a58b6..98f2d3e 100644
--- a/pcretest.c
+++ b/pcretest.c
@@ -4873,14 +4873,24 @@ while (!done)
int rc;
char copybuffer[256];
+#ifdef SUPPORT_PCRE32
+ if (pcre_mode == PCRE32_MODE)
+ {
+ if (*(pcre_uint32 *)cnptr == 0) break;
+ }
+#endif
+#ifdef SUPPORT_PCRE16
if (pcre_mode == PCRE16_MODE)
{
if (*(pcre_uint16 *)cnptr == 0) break;
}
- else
+#endif
+#ifdef SUPPORT_PCRE8
+ if (pcre_mode == PCRE8_MODE)
{
if (*(pcre_uint8 *)cnptr == 0) break;
}
+#endif
PCRE_COPY_NAMED_SUBSTRING(rc, re, bptr, use_offsets, count,
cnptr, copybuffer, sizeof(copybuffer));
@@ -4928,14 +4938,24 @@ while (!done)
int rc;
const char *substring;
+#ifdef SUPPORT_PCRE32
+ if (pcre_mode == PCRE32_MODE)
+ {
+ if (*(pcre_uint32 *)gnptr == 0) break;
+ }
+#endif
+#ifdef SUPPORT_PCRE16
if (pcre_mode == PCRE16_MODE)
{
if (*(pcre_uint16 *)gnptr == 0) break;
}
- else
+#endif
+#ifdef SUPPORT_PCRE8
+ if (pcre_mode == PCRE8_MODE)
{
if (*(pcre_uint8 *)gnptr == 0) break;
}
+#endif
PCRE_GET_NAMED_SUBSTRING(rc, re, bptr, use_offsets, count,
gnptr, &substring);