summaryrefslogtreecommitdiff
path: root/pcretest.c
diff options
context:
space:
mode:
authorchpe <chpe@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-10-16 15:56:13 +0000
committerchpe <chpe@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-10-16 15:56:13 +0000
commitcd603468f19fd836eba261890ee2329413e86ac0 (patch)
tree58a271613ff9e23b5e62431cf8880091cec7953e /pcretest.c
parentd0218a33e22bb848982b17dd43c874516dd0d2cb (diff)
downloadpcre-cd603468f19fd836eba261890ee2329413e86ac0.tar.gz
pcre32: pcretest: Add explicit -8 option
Even though 8-bit mode is the default, it's still useful to have an -8 option for symmetry. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1097 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcretest.c')
-rw-r--r--pcretest.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/pcretest.c b/pcretest.c
index 92625ed..a4a58b6 100644
--- a/pcretest.c
+++ b/pcretest.c
@@ -2807,6 +2807,15 @@ while (argc > 1 && argv[op][0] == '-')
force_study_options = jit_study_bits[*arg - '1'];
else goto BAD_ARG;
}
+ else if (strcmp(arg, "-8") == 0)
+ {
+#ifdef SUPPORT_PCRE8
+ pcre_mode = PCRE8_MODE;
+#else
+ printf("** This version of PCRE was built without 8-bit support\n");
+ exit(1);
+#endif
+ }
else if (strcmp(arg, "-16") == 0)
{
#ifdef SUPPORT_PCRE16