Revision: 1101
http://vcs.pcre.org/viewvc?view=rev&revision=1101
Author: chpe
Date: 2012-10-16 16:56:30 +0100 (Tue, 16 Oct 2012)
Log Message:
-----------
pcre32: pcretest: Add missing pcre32 checks
Modified Paths:
--------------
code/trunk/pcretest.c
Modified: code/trunk/pcretest.c
===================================================================
--- code/trunk/pcretest.c 2012-10-16 15:56:26 UTC (rev 1100)
+++ code/trunk/pcretest.c 2012-10-16 15:56:30 UTC (rev 1101)
@@ -4873,14 +4873,24 @@
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 @@
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);