Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / version-management / monotone / monotone-1.1-Adapt-to-changes-in-pcre-8.42.patch
blob1ecda436c25165d300d51c9e3667e361ebf2d8f5
1 From 70f209ad582121750d54e3692b1e62c7f36af6f9 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
3 Date: Mon, 7 May 2018 14:09:06 +0200
4 Subject: [PATCH] Adapt to changes in pcre-8.42
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 pcre-8.42 replaced internal real_pcre with real_pcre8_or_16. This
10 broke monotone that decided not to use the public "pcre" type.
12 This patch adapts monotone to the pcre >= 8.42.
14 Signed-off-by: Petr Písař <ppisar@redhat.com>
15 ---
16 src/pcrewrap.cc | 4 ++--
17 src/pcrewrap.hh | 4 ++--
18 2 files changed, 4 insertions(+), 4 deletions(-)
20 diff --git a/src/pcrewrap.cc b/src/pcrewrap.cc
21 index 8c0c9d1..30bafff 100644
22 --- a/src/pcrewrap.cc
23 +++ b/src/pcrewrap.cc
24 @@ -74,7 +74,7 @@ get_capturecount(void const * bd)
25 namespace pcre
27 typedef map<char const *,
28 - pair<struct real_pcre const *, struct pcre_extra const *> >
29 + pair<struct real_pcre8_or_16 const *, struct pcre_extra const *> >
30 regex_cache;
32 class regex_cache_manager
33 @@ -86,7 +86,7 @@ public:
36 void store(char const * pattern,
37 - pair<struct real_pcre const *, struct pcre_extra const *>
38 + pair<struct real_pcre8_or_16 const *, struct pcre_extra const *>
39 data)
41 cache[pattern] = data;
42 diff --git a/src/pcrewrap.hh b/src/pcrewrap.hh
43 index 3359cdd..5008e88 100644
44 --- a/src/pcrewrap.hh
45 +++ b/src/pcrewrap.hh
46 @@ -18,7 +18,7 @@
47 // definitions and so we don't actually expose it here. Unfortunately, this
48 // means we have to hope this pair of forward declarations will not change...
50 -struct real_pcre;
51 +struct real_pcre8_or_16;
52 struct pcre_extra;
54 namespace pcre
55 @@ -61,7 +61,7 @@ namespace pcre
56 regex & operator=(regex const &);
58 // data
59 - struct real_pcre const * basedat;
60 + struct real_pcre8_or_16 const * basedat;
61 struct pcre_extra const * extradat;
63 // used by constructors
64 --
65 2.14.3