diff options
author | chpe <chpe@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2012-10-16 15:56:13 +0000 |
---|---|---|
committer | chpe <chpe@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2012-10-16 15:56:13 +0000 |
commit | cd603468f19fd836eba261890ee2329413e86ac0 (patch) | |
tree | 58a271613ff9e23b5e62431cf8880091cec7953e /pcretest.c | |
parent | d0218a33e22bb848982b17dd43c874516dd0d2cb (diff) | |
download | pcre-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.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |