diff options
| author | Risto Hietala | 2013-09-07 22:47:33 +0300 |
|---|---|---|
| committer | Adam Vandenberg | 2013-09-10 20:40:22 -0700 |
| commit | 8b7fab2dfb5a6e6dcdb2374d6e13ba952cc4a418 (patch) | |
| tree | aabf1f273890fce1d762edaab08489b78d2c0a5c /Library | |
| parent | 9f478c5e6a26a91162edc3dbecea0a9f46783161 (diff) | |
| download | homebrew-8b7fab2dfb5a6e6dcdb2374d6e13ba952cc4a418.tar.bz2 | |
tiny-fugue: fix to pcre_fullinfo calls to prevent tf warn about every custom variable
Closes #22382.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/tiny-fugue.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Formula/tiny-fugue.rb b/Library/Formula/tiny-fugue.rb index d3f2bcccf..e3f4122f8 100644 --- a/Library/Formula/tiny-fugue.rb +++ b/Library/Formula/tiny-fugue.rb @@ -38,12 +38,13 @@ __END__ #include "signals.h" --- a/src/macro.c 2007-01-13 15:12:39.000000000 -0800 +++ b/src/macro.c 2012-10-26 08:15:31.000000000 -0700 -@@ -893,7 +893,7 @@ +@@ -893,7 +893,8 @@ } spec->attr &= ~F_NONE; if (spec->nsubattr) { - int n = pcre_info(spec->trig.ri->re, NULL, NULL); -+ int n = pcre_fullinfo(spec->trig.ri->re, NULL, 0, NULL); ++ int n; ++ pcre_fullinfo(spec->trig.ri->re, NULL, PCRE_INFO_CAPTURECOUNT, &n); for (i = 0; i < spec->nsubattr; i++) { spec->subattr[i].attr &= ~F_NONE; if (spec->subattr[i].subexp > n) { @@ -54,7 +55,7 @@ __END__ goto tf_reg_compile_error; } - n = pcre_info(ri->re, NULL, NULL); -+ n = pcre_fullinfo(ri->re, NULL, 0, NULL); ++ pcre_fullinfo(ri->re, NULL, PCRE_INFO_CAPTURECOUNT, &n); if (n < 0) goto tf_reg_compile_error; ri->ovecsize = 3 * (n + 1); ri->ovector = dmalloc(NULL, sizeof(int) * ri->ovecsize, file, line); |
