Markus Mottl avatar Markus Mottl committed 6d8dd1e

Fixed build problem with newer versions of PCRE

Comments (0)

Files changed (4)

+2008-05-06:  Fixed build problem with newer versions of PCRE.
+
 2008-03-14:  Synced with Jane Street tree.
 
 2008-01-25:  Added new function:
-release-5-14-0
+release-5-15-0
 name="pcre"
-version="5.14.0"
+version="5.15.0"
 description="Perl Compatibility Regular Expressions"
 requires=""
 archive(byte)="pcre.cma"
       int ret;
       struct cod cod = { (value *) NULL, (value *) NULL, (value) NULL };
       struct pcre_extra new_extra =
+#ifdef PCRE_CONFIG_MATCH_LIMIT_RECURSION
+        { PCRE_EXTRA_CALLOUT_DATA, NULL, 0, NULL, NULL, 0 };
+#else
         { PCRE_EXTRA_CALLOUT_DATA, NULL, 0, NULL, NULL };
+#endif
 
       memcpy(subj, ocaml_subj, len);
 
           new_extra.study_data = extra->study_data;
           new_extra.match_limit = extra->match_limit;
           new_extra.tables = extra->tables;
+#ifdef PCRE_CONFIG_MATCH_LIMIT_RECURSION
+          new_extra.match_limit_recursion = extra->match_limit_recursion;
+#endif
 
           ret = pcre_exec(code, &new_extra, subj, len, ofs, opt, ovec,
                           subgroups3);
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.