chiark / gitweb /
Import debian/ directory from 2:8.38-3.1
[pcre3.git] / debian / patches / pcre_info.patch
1 From: Mark Baker <mark@mnb.org.uk>
2 Description: Restore obsolete pcre_info() API for compatiblity
3
4 Index: pcre3/Makefile.am
5 ===================================================================
6 --- pcre3.orig/Makefile.am      2014-04-04 14:39:50.000000000 +0100
7 +++ pcre3/Makefile.am   2015-12-22 12:37:59.000000000 +0000
8 @@ -233,6 +233,7 @@
9    pcre_fullinfo.c \
10    pcre_get.c \
11    pcre_globals.c \
12 +  pcre_info.c \
13    pcre_internal.h \
14    pcre_jit_compile.c \
15    pcre_maketables.c \
16 @@ -647,7 +648,7 @@
17  # nice DLL for Windows use". (It is used by the pcre.dll target.)
18  DLL_OBJS= pcre_byte_order.o pcre_compile.o pcre_config.o \
19         pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
20 -       pcre_globals.o pcre_jit_compile.o pcre_maketables.o \
21 +       pcre_globals.o pcre_info.o pcre_jit_compile.o pcre_maketables.o \
22         pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
23         pcre_study.o pcre_tables.o pcre_ucd.o \
24         pcre_valid_utf8.o pcre_version.o pcre_chartables.o \
25 Index: pcre3/Makefile.in
26 ===================================================================
27 --- pcre3.orig/Makefile.in      2015-11-23 12:37:21.000000000 +0000
28 +++ pcre3/Makefile.in   2015-12-22 12:37:59.000000000 +0000
29 @@ -218,11 +218,11 @@
30  libpcre_la_DEPENDENCIES =
31  am__libpcre_la_SOURCES_DIST = pcre_byte_order.c pcre_compile.c \
32         pcre_config.c pcre_dfa_exec.c pcre_exec.c pcre_fullinfo.c \
33 -       pcre_get.c pcre_globals.c pcre_internal.h pcre_jit_compile.c \
34 -       pcre_maketables.c pcre_newline.c pcre_ord2utf8.c \
35 -       pcre_refcount.c pcre_string_utils.c pcre_study.c pcre_tables.c \
36 -       pcre_ucd.c pcre_valid_utf8.c pcre_version.c pcre_xclass.c \
37 -       ucp.h
38 +       pcre_get.c pcre_globals.c pcre_info.c pcre_internal.h \
39 +       pcre_jit_compile.c pcre_maketables.c pcre_newline.c \
40 +       pcre_ord2utf8.c pcre_refcount.c pcre_string_utils.c \
41 +       pcre_study.c pcre_tables.c pcre_ucd.c pcre_valid_utf8.c \
42 +       pcre_version.c pcre_xclass.c ucp.h
43  @WITH_PCRE8_TRUE@am_libpcre_la_OBJECTS =  \
44  @WITH_PCRE8_TRUE@      libpcre_la-pcre_byte_order.lo \
45  @WITH_PCRE8_TRUE@      libpcre_la-pcre_compile.lo \
46 @@ -232,6 +232,7 @@
47  @WITH_PCRE8_TRUE@      libpcre_la-pcre_fullinfo.lo \
48  @WITH_PCRE8_TRUE@      libpcre_la-pcre_get.lo \
49  @WITH_PCRE8_TRUE@      libpcre_la-pcre_globals.lo \
50 +@WITH_PCRE8_TRUE@      libpcre_la-pcre_info.lo \
51  @WITH_PCRE8_TRUE@      libpcre_la-pcre_jit_compile.lo \
52  @WITH_PCRE8_TRUE@      libpcre_la-pcre_maketables.lo \
53  @WITH_PCRE8_TRUE@      libpcre_la-pcre_newline.lo \
54 @@ -251,7 +252,7 @@
55  AM_V_lt = $(am__v_lt_@AM_V@)
56  am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
57  am__v_lt_0 = --silent
58 -am__v_lt_1 =
59 +am__v_lt_1 = 
60  libpcre_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
61         $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libpcre_la_CFLAGS) \
62         $(CFLAGS) $(libpcre_la_LDFLAGS) $(LDFLAGS) -o $@
63 @@ -449,11 +450,11 @@
64  AM_V_GEN = $(am__v_GEN_@AM_V@)
65  am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
66  am__v_GEN_0 = @echo "  GEN     " $@;
67 -am__v_GEN_1 =
68 +am__v_GEN_1 = 
69  AM_V_at = $(am__v_at_@AM_V@)
70  am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
71  am__v_at_0 = @
72 -am__v_at_1 =
73 +am__v_at_1 = 
74  DEFAULT_INCLUDES = -I.@am__isrc@
75  depcomp = $(SHELL) $(top_srcdir)/depcomp
76  am__depfiles_maybe = depfiles
77 @@ -467,7 +468,7 @@
78  AM_V_CC = $(am__v_CC_@AM_V@)
79  am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
80  am__v_CC_0 = @echo "  CC      " $@;
81 -am__v_CC_1 =
82 +am__v_CC_1 = 
83  CCLD = $(CC)
84  LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
85         $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
86 @@ -475,7 +476,7 @@
87  AM_V_CCLD = $(am__v_CCLD_@AM_V@)
88  am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
89  am__v_CCLD_0 = @echo "  CCLD    " $@;
90 -am__v_CCLD_1 =
91 +am__v_CCLD_1 = 
92  CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
93         $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
94  LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
95 @@ -485,7 +486,7 @@
96  AM_V_CXX = $(am__v_CXX_@AM_V@)
97  am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
98  am__v_CXX_0 = @echo "  CXX     " $@;
99 -am__v_CXX_1 =
100 +am__v_CXX_1 = 
101  CXXLD = $(CXX)
102  CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
103         $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
104 @@ -493,7 +494,7 @@
105  AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
106  am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
107  am__v_CXXLD_0 = @echo "  CXXLD   " $@;
108 -am__v_CXXLD_1 =
109 +am__v_CXXLD_1 = 
110  SOURCES = $(libpcre_la_SOURCES) $(nodist_libpcre_la_SOURCES) \
111         $(libpcre16_la_SOURCES) $(nodist_libpcre16_la_SOURCES) \
112         $(libpcre32_la_SOURCES) $(nodist_libpcre32_la_SOURCES) \
113 @@ -832,9 +833,6 @@
114  PCRE_MINOR = @PCRE_MINOR@
115  PCRE_PRERELEASE = @PCRE_PRERELEASE@
116  PCRE_STATIC_CFLAG = @PCRE_STATIC_CFLAG@
117 -PKG_CONFIG = @PKG_CONFIG@
118 -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
119 -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
120  PTHREAD_CC = @PTHREAD_CC@
121  PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
122  PTHREAD_LIBS = @PTHREAD_LIBS@
123 @@ -844,8 +842,6 @@
124  SHELL = @SHELL@
125  SHTOOL = @SHTOOL@
126  STRIP = @STRIP@
127 -VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
128 -VALGRIND_LIBS = @VALGRIND_LIBS@
129  VERSION = @VERSION@
130  VISIBILITY_CFLAGS = @VISIBILITY_CFLAGS@
131  VISIBILITY_CXXFLAGS = @VISIBILITY_CXXFLAGS@
132 @@ -988,7 +984,7 @@
133  # The Libtool libraries to install.  We'll add to this later.
134  lib_LTLIBRARIES = $(am__append_4) $(am__append_5) $(am__append_6) \
135         $(am__append_20) $(am__append_22)
136 -check_SCRIPTS =
137 +check_SCRIPTS = 
138  dist_noinst_SCRIPTS = RunTest $(am__append_39)
139  
140  # Additional files to delete on 'make clean' and 'make maintainer-clean'.
141 @@ -1093,6 +1089,7 @@
142  @WITH_PCRE8_TRUE@  pcre_fullinfo.c \
143  @WITH_PCRE8_TRUE@  pcre_get.c \
144  @WITH_PCRE8_TRUE@  pcre_globals.c \
145 +@WITH_PCRE8_TRUE@  pcre_info.c \
146  @WITH_PCRE8_TRUE@  pcre_internal.h \
147  @WITH_PCRE8_TRUE@  pcre_jit_compile.c \
148  @WITH_PCRE8_TRUE@  pcre_maketables.c \
149 @@ -1110,7 +1107,7 @@
150  
151  @WITH_PCRE8_TRUE@libpcre_la_CFLAGS = $(VISIBILITY_CFLAGS) $(AM_CFLAGS) \
152  @WITH_PCRE8_TRUE@      $(am__append_7) $(am__append_10)
153 -@WITH_PCRE8_TRUE@libpcre_la_LIBADD =
154 +@WITH_PCRE8_TRUE@libpcre_la_LIBADD = 
155  @WITH_PCRE8_TRUE@nodist_libpcre_la_SOURCES = \
156  @WITH_PCRE8_TRUE@  pcre_chartables.c
157  
158 @@ -1141,7 +1138,7 @@
159  @WITH_PCRE16_TRUE@libpcre16_la_CFLAGS = $(VISIBILITY_CFLAGS) \
160  @WITH_PCRE16_TRUE@     $(AM_CFLAGS) $(am__append_8) \
161  @WITH_PCRE16_TRUE@     $(am__append_11)
162 -@WITH_PCRE16_TRUE@libpcre16_la_LIBADD =
163 +@WITH_PCRE16_TRUE@libpcre16_la_LIBADD = 
164  @WITH_PCRE16_TRUE@nodist_libpcre16_la_SOURCES = \
165  @WITH_PCRE16_TRUE@  pcre_chartables.c
166  
167 @@ -1172,7 +1169,7 @@
168  @WITH_PCRE32_TRUE@libpcre32_la_CFLAGS = $(VISIBILITY_CFLAGS) \
169  @WITH_PCRE32_TRUE@     $(AM_CFLAGS) $(am__append_9) \
170  @WITH_PCRE32_TRUE@     $(am__append_12)
171 -@WITH_PCRE32_TRUE@libpcre32_la_LIBADD =
172 +@WITH_PCRE32_TRUE@libpcre32_la_LIBADD = 
173  @WITH_PCRE32_TRUE@nodist_libpcre32_la_SOURCES = \
174  @WITH_PCRE32_TRUE@  pcre_chartables.c
175  
176 @@ -1227,7 +1224,7 @@
177  # nice DLL for Windows use". (It is used by the pcre.dll target.)
178  DLL_OBJS = pcre_byte_order.o pcre_compile.o pcre_config.o \
179         pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
180 -       pcre_globals.o pcre_jit_compile.o pcre_maketables.o \
181 +       pcre_globals.o pcre_info.o pcre_jit_compile.o pcre_maketables.o \
182         pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
183         pcre_study.o pcre_tables.o pcre_ucd.o \
184         pcre_valid_utf8.o pcre_version.o pcre_chartables.o \
185 @@ -1313,8 +1310,8 @@
186  @WITH_GCOV_TRUE@COVERAGE_NAME = $(PACKAGE)-$(VERSION)
187  @WITH_GCOV_TRUE@COVERAGE_OUTPUT_FILE = $(COVERAGE_NAME)-coverage.info
188  @WITH_GCOV_TRUE@COVERAGE_OUTPUT_DIR = $(COVERAGE_NAME)-coverage
189 -@WITH_GCOV_TRUE@COVERAGE_LCOV_EXTRA_FLAGS =
190 -@WITH_GCOV_TRUE@COVERAGE_GENHTML_EXTRA_FLAGS =
191 +@WITH_GCOV_TRUE@COVERAGE_LCOV_EXTRA_FLAGS = 
192 +@WITH_GCOV_TRUE@COVERAGE_GENHTML_EXTRA_FLAGS = 
193  @WITH_GCOV_TRUE@coverage_quiet = $(coverage_quiet_$(V))
194  @WITH_GCOV_TRUE@coverage_quiet_ = $(coverage_quiet_$(AM_DEFAULT_VERBOSITY))
195  @WITH_GCOV_TRUE@coverage_quiet_0 = --quiet
196 @@ -1364,7 +1361,7 @@
197  stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
198         @rm -f stamp-h1
199         cd $(top_builddir) && $(SHELL) ./config.status config.h
200 -$(srcdir)/config.h.in:  $(am__configure_deps)
201 +$(srcdir)/config.h.in:  $(am__configure_deps) 
202         ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
203         rm -f stamp-h1
204         touch $@
205 @@ -1425,19 +1422,19 @@
206           rm -f $${locs}; \
207         }
208  
209 -libpcre.la: $(libpcre_la_OBJECTS) $(libpcre_la_DEPENDENCIES) $(EXTRA_libpcre_la_DEPENDENCIES)
210 +libpcre.la: $(libpcre_la_OBJECTS) $(libpcre_la_DEPENDENCIES) $(EXTRA_libpcre_la_DEPENDENCIES) 
211         $(AM_V_CCLD)$(libpcre_la_LINK) $(am_libpcre_la_rpath) $(libpcre_la_OBJECTS) $(libpcre_la_LIBADD) $(LIBS)
212  
213 -libpcre16.la: $(libpcre16_la_OBJECTS) $(libpcre16_la_DEPENDENCIES) $(EXTRA_libpcre16_la_DEPENDENCIES)
214 +libpcre16.la: $(libpcre16_la_OBJECTS) $(libpcre16_la_DEPENDENCIES) $(EXTRA_libpcre16_la_DEPENDENCIES) 
215         $(AM_V_CCLD)$(libpcre16_la_LINK) $(am_libpcre16_la_rpath) $(libpcre16_la_OBJECTS) $(libpcre16_la_LIBADD) $(LIBS)
216  
217 -libpcre32.la: $(libpcre32_la_OBJECTS) $(libpcre32_la_DEPENDENCIES) $(EXTRA_libpcre32_la_DEPENDENCIES)
218 +libpcre32.la: $(libpcre32_la_OBJECTS) $(libpcre32_la_DEPENDENCIES) $(EXTRA_libpcre32_la_DEPENDENCIES) 
219         $(AM_V_CCLD)$(libpcre32_la_LINK) $(am_libpcre32_la_rpath) $(libpcre32_la_OBJECTS) $(libpcre32_la_LIBADD) $(LIBS)
220  
221 -libpcrecpp.la: $(libpcrecpp_la_OBJECTS) $(libpcrecpp_la_DEPENDENCIES) $(EXTRA_libpcrecpp_la_DEPENDENCIES)
222 +libpcrecpp.la: $(libpcrecpp_la_OBJECTS) $(libpcrecpp_la_DEPENDENCIES) $(EXTRA_libpcrecpp_la_DEPENDENCIES) 
223         $(AM_V_CXXLD)$(libpcrecpp_la_LINK) $(am_libpcrecpp_la_rpath) $(libpcrecpp_la_OBJECTS) $(libpcrecpp_la_LIBADD) $(LIBS)
224  
225 -libpcreposix.la: $(libpcreposix_la_OBJECTS) $(libpcreposix_la_DEPENDENCIES) $(EXTRA_libpcreposix_la_DEPENDENCIES)
226 +libpcreposix.la: $(libpcreposix_la_OBJECTS) $(libpcreposix_la_DEPENDENCIES) $(EXTRA_libpcreposix_la_DEPENDENCIES) 
227         $(AM_V_CCLD)$(libpcreposix_la_LINK) $(am_libpcreposix_la_rpath) $(libpcreposix_la_OBJECTS) $(libpcreposix_la_LIBADD) $(LIBS)
228  install-binPROGRAMS: $(bin_PROGRAMS)
229         @$(NORMAL_INSTALL)
230 @@ -1498,31 +1495,31 @@
231         echo " rm -f" $$list; \
232         rm -f $$list
233  
234 -dftables$(EXEEXT): $(dftables_OBJECTS) $(dftables_DEPENDENCIES) $(EXTRA_dftables_DEPENDENCIES)
235 +dftables$(EXEEXT): $(dftables_OBJECTS) $(dftables_DEPENDENCIES) $(EXTRA_dftables_DEPENDENCIES) 
236         @rm -f dftables$(EXEEXT)
237         $(AM_V_CCLD)$(LINK) $(dftables_OBJECTS) $(dftables_LDADD) $(LIBS)
238  
239 -pcre_jit_test$(EXEEXT): $(pcre_jit_test_OBJECTS) $(pcre_jit_test_DEPENDENCIES) $(EXTRA_pcre_jit_test_DEPENDENCIES)
240 +pcre_jit_test$(EXEEXT): $(pcre_jit_test_OBJECTS) $(pcre_jit_test_DEPENDENCIES) $(EXTRA_pcre_jit_test_DEPENDENCIES) 
241         @rm -f pcre_jit_test$(EXEEXT)
242         $(AM_V_CCLD)$(pcre_jit_test_LINK) $(pcre_jit_test_OBJECTS) $(pcre_jit_test_LDADD) $(LIBS)
243  
244 -pcre_scanner_unittest$(EXEEXT): $(pcre_scanner_unittest_OBJECTS) $(pcre_scanner_unittest_DEPENDENCIES) $(EXTRA_pcre_scanner_unittest_DEPENDENCIES)
245 +pcre_scanner_unittest$(EXEEXT): $(pcre_scanner_unittest_OBJECTS) $(pcre_scanner_unittest_DEPENDENCIES) $(EXTRA_pcre_scanner_unittest_DEPENDENCIES) 
246         @rm -f pcre_scanner_unittest$(EXEEXT)
247         $(AM_V_CXXLD)$(pcre_scanner_unittest_LINK) $(pcre_scanner_unittest_OBJECTS) $(pcre_scanner_unittest_LDADD) $(LIBS)
248  
249 -pcre_stringpiece_unittest$(EXEEXT): $(pcre_stringpiece_unittest_OBJECTS) $(pcre_stringpiece_unittest_DEPENDENCIES) $(EXTRA_pcre_stringpiece_unittest_DEPENDENCIES)
250 +pcre_stringpiece_unittest$(EXEEXT): $(pcre_stringpiece_unittest_OBJECTS) $(pcre_stringpiece_unittest_DEPENDENCIES) $(EXTRA_pcre_stringpiece_unittest_DEPENDENCIES) 
251         @rm -f pcre_stringpiece_unittest$(EXEEXT)
252         $(AM_V_CXXLD)$(pcre_stringpiece_unittest_LINK) $(pcre_stringpiece_unittest_OBJECTS) $(pcre_stringpiece_unittest_LDADD) $(LIBS)
253  
254 -pcrecpp_unittest$(EXEEXT): $(pcrecpp_unittest_OBJECTS) $(pcrecpp_unittest_DEPENDENCIES) $(EXTRA_pcrecpp_unittest_DEPENDENCIES)
255 +pcrecpp_unittest$(EXEEXT): $(pcrecpp_unittest_OBJECTS) $(pcrecpp_unittest_DEPENDENCIES) $(EXTRA_pcrecpp_unittest_DEPENDENCIES) 
256         @rm -f pcrecpp_unittest$(EXEEXT)
257         $(AM_V_CXXLD)$(pcrecpp_unittest_LINK) $(pcrecpp_unittest_OBJECTS) $(pcrecpp_unittest_LDADD) $(LIBS)
258  
259 -pcregrep$(EXEEXT): $(pcregrep_OBJECTS) $(pcregrep_DEPENDENCIES) $(EXTRA_pcregrep_DEPENDENCIES)
260 +pcregrep$(EXEEXT): $(pcregrep_OBJECTS) $(pcregrep_DEPENDENCIES) $(EXTRA_pcregrep_DEPENDENCIES) 
261         @rm -f pcregrep$(EXEEXT)
262         $(AM_V_CCLD)$(pcregrep_LINK) $(pcregrep_OBJECTS) $(pcregrep_LDADD) $(LIBS)
263  
264 -pcretest$(EXEEXT): $(pcretest_OBJECTS) $(pcretest_DEPENDENCIES) $(EXTRA_pcretest_DEPENDENCIES)
265 +pcretest$(EXEEXT): $(pcretest_OBJECTS) $(pcretest_DEPENDENCIES) $(EXTRA_pcretest_DEPENDENCIES) 
266         @rm -f pcretest$(EXEEXT)
267         $(AM_V_CCLD)$(pcretest_LINK) $(pcretest_OBJECTS) $(pcretest_LDADD) $(LIBS)
268  install-binSCRIPTS: $(bin_SCRIPTS)
269 @@ -1623,6 +1620,7 @@
270  @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpcre_la-pcre_fullinfo.Plo@am__quote@
271  @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpcre_la-pcre_get.Plo@am__quote@
272  @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpcre_la-pcre_globals.Plo@am__quote@
273 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpcre_la-pcre_info.Plo@am__quote@
274  @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpcre_la-pcre_jit_compile.Plo@am__quote@
275  @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpcre_la-pcre_maketables.Plo@am__quote@
276  @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpcre_la-pcre_newline.Plo@am__quote@
277 @@ -1726,6 +1724,13 @@
278  @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
279  @am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpcre_la_CFLAGS) $(CFLAGS) -c -o libpcre_la-pcre_globals.lo `test -f 'pcre_globals.c' || echo '$(srcdir)/'`pcre_globals.c
280  
281 +libpcre_la-pcre_info.lo: pcre_info.c
282 +@am__fastdepCC_TRUE@   $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpcre_la_CFLAGS) $(CFLAGS) -MT libpcre_la-pcre_info.lo -MD -MP -MF $(DEPDIR)/libpcre_la-pcre_info.Tpo -c -o libpcre_la-pcre_info.lo `test -f 'pcre_info.c' || echo '$(srcdir)/'`pcre_info.c
283 +@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/libpcre_la-pcre_info.Tpo $(DEPDIR)/libpcre_la-pcre_info.Plo
284 +@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='pcre_info.c' object='libpcre_la-pcre_info.lo' libtool=yes @AMDEPBACKSLASH@
285 +@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
286 +@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpcre_la_CFLAGS) $(CFLAGS) -c -o libpcre_la-pcre_info.lo `test -f 'pcre_info.c' || echo '$(srcdir)/'`pcre_info.c
287 +
288  libpcre_la-pcre_jit_compile.lo: pcre_jit_compile.c
289  @am__fastdepCC_TRUE@   $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpcre_la_CFLAGS) $(CFLAGS) -MT libpcre_la-pcre_jit_compile.lo -MD -MP -MF $(DEPDIR)/libpcre_la-pcre_jit_compile.Tpo -c -o libpcre_la-pcre_jit_compile.lo `test -f 'pcre_jit_compile.c' || echo '$(srcdir)/'`pcre_jit_compile.c
290  @am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/libpcre_la-pcre_jit_compile.Tpo $(DEPDIR)/libpcre_la-pcre_jit_compile.Plo
291 Index: pcre3/pcre_info.c
292 ===================================================================
293 --- /dev/null   1970-01-01 00:00:00.000000000 +0000
294 +++ pcre3/pcre_info.c   2015-12-22 12:37:59.000000000 +0000
295 @@ -0,0 +1,90 @@
296 +/*************************************************
297 +*      Perl-Compatible Regular Expressions       *
298 +*************************************************/
299 +
300 +/* PCRE is a library of functions to support regular expressions whose syntax
301 +and semantics are as close as possible to those of the Perl 5 language.
302 +
303 +                       Written by Philip Hazel
304 +           Copyright (c) 1997-2009 University of Cambridge
305 +
306 +-----------------------------------------------------------------------------
307 +Redistribution and use in source and binary forms, with or without
308 +modification, are permitted provided that the following conditions are met:
309 +
310 +    * Redistributions of source code must retain the above copyright notice,
311 +      this list of conditions and the following disclaimer.
312 +
313 +    * Redistributions in binary form must reproduce the above copyright
314 +      notice, this list of conditions and the following disclaimer in the
315 +      documentation and/or other materials provided with the distribution.
316 +
317 +    * Neither the name of the University of Cambridge nor the names of its
318 +      contributors may be used to endorse or promote products derived from
319 +      this software without specific prior written permission.
320 +
321 +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
322 +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
323 +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
324 +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
325 +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
326 +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
327 +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
328 +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
329 +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
330 +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
331 +POSSIBILITY OF SUCH DAMAGE.
332 +-----------------------------------------------------------------------------
333 +*/
334 +
335 +
336 +/* This module contains the external function pcre_info(), which gives some
337 +information about a compiled pattern. However, use of this function is now
338 +deprecated, as it has been superseded by pcre_fullinfo(). */
339 +
340 +
341 +#ifdef HAVE_CONFIG_H
342 +#include "config.h"
343 +#endif
344 +
345 +#include "pcre_internal.h"
346 +
347 +
348 +/*************************************************
349 +* (Obsolete) Return info about compiled pattern  *
350 +*************************************************/
351 +
352 +/* This is the original "info" function. It picks potentially useful data out
353 +of the private structure, but its interface was too rigid. It remains for
354 +backwards compatibility. The public options are passed back in an int - though
355 +the re->options field has been expanded to a long int, all the public options
356 +at the low end of it, and so even on 16-bit systems this will still be OK.
357 +Therefore, I haven't changed the API for pcre_info().
358 +
359 +Arguments:
360 +  argument_re   points to compiled code
361 +  optptr        where to pass back the options
362 +  first_byte    where to pass back the first character,
363 +                or -1 if multiline and all branches start ^,
364 +                or -2 otherwise
365 +
366 +Returns:        number of capturing subpatterns
367 +                or negative values on error
368 +*/
369 +
370 +PCRE_EXP_DEFN int PCRE_CALL_CONVENTION
371 +pcre_info(const pcre *argument_re, int *optptr, int *first_byte)
372 +{
373 +const real_pcre *re = (const real_pcre *)argument_re;
374 +if (re == NULL) return PCRE_ERROR_NULL;
375 +if (re->magic_number != MAGIC_NUMBER)
376 +  return PCRE_ERROR_BADMAGIC;
377 +
378 +if (optptr != NULL) *optptr = (int)(re->options & PUBLIC_COMPILE_OPTIONS);
379 +if (first_byte != NULL)
380 +  *first_byte = ((re->flags & PCRE_FIRSTSET) != 0)? re->first_char :
381 +     ((re->flags & PCRE_STARTLINE) != 0)? -1 : -2;
382 +return re->top_bracket;
383 +}
384 +
385 +/* End of pcre_info.c */