From bdf211d8e2819fa93446bedf7cacd6a211f7d27b Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Mon, 15 May 2017 10:08:09 +0200 Subject: [PATCH] tiny-fugue: patch for 5.0b8 --- tiny-fugue/5.0b8.patch | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 tiny-fugue/5.0b8.patch diff --git a/tiny-fugue/5.0b8.patch b/tiny-fugue/5.0b8.patch new file mode 100644 index 00000000..5c7fcca1 --- /dev/null +++ b/tiny-fugue/5.0b8.patch @@ -0,0 +1,44 @@ +--- a/src/malloc.c 2007-01-13 15:12:39.000000000 -0800 ++++ b/src/malloc.c 2012-10-26 08:23:30.000000000 -0700 +@@ -7,6 +7,7 @@ + ************************************************************************/ + static const char RCSid[] = "$Id: malloc.c,v 35004.22 2007/01/13 23:12:39 kkeys Exp $"; + ++#include "sys/types.h" + #include "tfconfig.h" + #include "port.h" + #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,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, PCRE_INFO_CAPTURECOUNT, &n); + for (i = 0; i < spec->nsubattr; i++) { + spec->subattr[i].attr &= ~F_NONE; + if (spec->subattr[i].subexp > n) { +--- a/src/pattern.c 2007-01-13 15:12:39.000000000 -0800 ++++ b/src/pattern.c 2012-10-26 08:16:19.000000000 -0700 +@@ -151,7 +151,7 @@ + emsg ? emsg : "unknown error"); + goto tf_reg_compile_error; + } +- n = pcre_info(ri->re, NULL, 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); +--- a/src/pattern.h 2007-01-13 15:12:39.000000000 -0800 ++++ b/src/pattern.h 2012-10-26 08:17:54.000000000 -0700 +@@ -10,7 +10,7 @@ + #ifndef PATTERN_H + #define PATTERN_H + +-#include "pcre-2.08/pcre.h" ++#include + + typedef struct RegInfo { + pcre *re;