summaryrefslogtreecommitdiff
path: root/pcre_printint.src
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-10-04 16:38:05 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-10-04 16:38:05 +0000
commit81c06c3725f4e173b64711b722b645efc206665d (patch)
treefa18759451292c297ce3a411a53773a843ad604a /pcre_printint.src
parentb77d63d3165d1678324a4bf4531fb881103f6012 (diff)
downloadpcre-81c06c3725f4e173b64711b722b645efc206665d.tar.gz
Make (*THEN) work as in Perl in subpatterns that do not contain | alternatives.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@716 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_printint.src')
-rw-r--r--pcre_printint.src13
1 files changed, 3 insertions, 10 deletions
diff --git a/pcre_printint.src b/pcre_printint.src
index 3afcafc..df36a13 100644
--- a/pcre_printint.src
+++ b/pcre_printint.src
@@ -587,19 +587,12 @@ for(;;)
break;
case OP_THEN:
- if (print_lengths)
- fprintf(f, " %s %d", OP_names[*code], GET(code, 1));
- else
- fprintf(f, " %s", OP_names[*code]);
+ fprintf(f, " %s", OP_names[*code]);
break;
case OP_THEN_ARG:
- if (print_lengths)
- fprintf(f, " %s %d %s", OP_names[*code], GET(code, 1),
- code + 2 + LINK_SIZE);
- else
- fprintf(f, " %s %s", OP_names[*code], code + 2 + LINK_SIZE);
- extra += code[1+LINK_SIZE];
+ fprintf(f, " %s %s", OP_names[*code], code + 2);
+ extra += code[1];
break;
case OP_CIRCM: