chiark / gitweb /
Rebase patch queue onto upstream 8.39:
[pcre3.git] / debian / patches / pcreposix.patch
1 From: Mark Baker <mark@mnb.org.uk>
2 Date: Wed, 13 Jul 2016 21:20:13 +0100
3 Subject: pcreposix
4
5 ---
6  pcreposix.h | 13 +++++++++----
7  1 file changed, 9 insertions(+), 4 deletions(-)
8
9 diff --git a/pcreposix.h b/pcreposix.h
10 index c77c0b0..4527f78 100644
11 --- a/pcreposix.h
12 +++ b/pcreposix.h
13 @@ -133,14 +133,19 @@ file. */
14  
15  /* The functions */
16  
17 -PCREPOSIX_EXP_DECL int regcomp(regex_t *, const char *, int);
18 -PCREPOSIX_EXP_DECL int regexec(const regex_t *, const char *, size_t,
19 +PCREPOSIX_EXP_DECL int pcreposix_regcomp(regex_t *, const char *, int);
20 +PCREPOSIX_EXP_DECL int pcreposix_regexec(const regex_t *, const char *, size_t,
21                       regmatch_t *, int);
22 -PCREPOSIX_EXP_DECL size_t regerror(int, const regex_t *, char *, size_t);
23 -PCREPOSIX_EXP_DECL void regfree(regex_t *);
24 +PCREPOSIX_EXP_DECL size_t pcreposix_regerror(int, const regex_t *, char *, size_t);
25 +PCREPOSIX_EXP_DECL void pcreposix_regfree(regex_t *);
26  
27  #ifdef __cplusplus
28  }   /* extern "C" */
29  #endif
30  
31 +#define regcomp pcreposix_regcomp
32 +#define regexec pcreposix_regexec
33 +#define regerror pcreposix_regerror
34 +#define regfree pcreposix_regfree
35 +
36  #endif /* End of pcreposix.h */