summaryrefslogtreecommitdiff
path: root/src/pcre2demo.c
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2014-08-16 09:46:58 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2014-08-16 09:46:58 +0000
commit258ffeb078daec58f94e67b872a1e391bc714529 (patch)
treea593807360f583bdeaf95fcc00696a3c5cc104c7 /src/pcre2demo.c
parent976b57b7349675feac40d0c761e75b4379e14486 (diff)
downloadpcre2-258ffeb078daec58f94e67b872a1e391bc714529.tar.gz
Change lengths to PCRE2_SIZE and revise OP_RECURSE processing.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@57 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2demo.c')
-rw-r--r--src/pcre2demo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pcre2demo.c b/src/pcre2demo.c
index e3846af..6153ffa 100644
--- a/src/pcre2demo.c
+++ b/src/pcre2demo.c
@@ -77,8 +77,8 @@ int utf8;
uint32_t option_bits;
uint32_t newline;
-PCRE2_OFFSET erroroffset;
-PCRE2_OFFSET *ovector;
+PCRE2_SIZE erroroffset;
+PCRE2_SIZE *ovector;
size_t subject_length;
pcre2_match_data *match_data;
@@ -314,7 +314,7 @@ crlf_is_newline = newline == PCRE2_NEWLINE_ANY ||
for (;;)
{
uint32_t options = 0; /* Normally no options */
- PCRE2_OFFSET start_offset = ovector[1]; /* Start at end of previous match */
+ PCRE2_SIZE start_offset = ovector[1]; /* Start at end of previous match */
/* If the previous match was for an empty string, we are finished if we are
at the end of the subject. Otherwise, arrange to run another match at the