summaryrefslogtreecommitdiff
path: root/src/pcre2demo.c
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2014-07-04 16:26:09 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2014-07-04 16:26:09 +0000
commit9e3d44452fdc74a4a6a22a35a889050dd9b2c59b (patch)
tree5702bbcc37d61480d74f55d484213a4257697829 /src/pcre2demo.c
parent80d7f11a1c1523dd5e488c97d000cfd6c3d1a3e8 (diff)
downloadpcre2-9e3d44452fdc74a4a6a22a35a889050dd9b2c59b.tar.gz
Compiling with --disalbe-stack-for-recursion is working. Introduce PCRE2_OFFSET
for offset values. git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@26 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2demo.c')
-rw-r--r--src/pcre2demo.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pcre2demo.c b/src/pcre2demo.c
index 98d0d1c..e3846af 100644
--- a/src/pcre2demo.c
+++ b/src/pcre2demo.c
@@ -77,10 +77,10 @@ int utf8;
uint32_t option_bits;
uint32_t newline;
-size_t erroroffset;
-size_t *ovector;
-size_t subject_length;
+PCRE2_OFFSET erroroffset;
+PCRE2_OFFSET *ovector;
+size_t subject_length;
pcre2_match_data *match_data;
@@ -313,8 +313,8 @@ crlf_is_newline = newline == PCRE2_NEWLINE_ANY ||
for (;;)
{
- uint32_t options = 0; /* Normally no options */
- size_t start_offset = ovector[1]; /* Start at end of previous match */
+ uint32_t options = 0; /* Normally no options */
+ PCRE2_OFFSET 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