summaryrefslogtreecommitdiff
path: root/pcre_printint.c
diff options
context:
space:
mode:
authorzherczeg <zherczeg@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-12-15 11:57:39 +0000
committerzherczeg <zherczeg@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-12-15 11:57:39 +0000
commitedeb17f511c2d107140e8dadfb8755d70901e90b (patch)
tree4851202670a31315739c71bf94d8df3002c5f376 /pcre_printint.c
parentf852abd1323afc800c9a761e7041b961f03c1de2 (diff)
downloadpcre-edeb17f511c2d107140e8dadfb8755d70901e90b.tar.gz
lcc and inline printint.c fixes
git-svn-id: svn://vcs.exim.org/pcre/code/branches/pcre16@806 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_printint.c')
-rw-r--r--pcre_printint.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/pcre_printint.c b/pcre_printint.c
index a61a797..2fcf985 100644
--- a/pcre_printint.c
+++ b/pcre_printint.c
@@ -44,11 +44,13 @@ local functions. This source file is used in two places:
(1) It is #included by pcre_compile.c when it is compiled in debugging mode
(PCRE_DEBUG defined in pcre_internal.h). It is not included in production
-compiles.
+compiles. In this case PCRE_INCLUDED is defined.
(2) It is also compiled separately and linked with pcretest.c, which can be
asked to print out a compiled regex for debugging purposes. */
+#ifndef PCRE_INCLUDED
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -68,10 +70,14 @@ appropriately for an application, not for building PCRE. */
/* These are the funtions that are contained within. It doesn't seem worth
having a separate .h file just for this. */
+#endif /* PCRE_INCLUDED */
+
+#ifdef PCRE_INCLUDED
+static /* Keep the following function as private. */
+#endif
#ifdef COMPILE_PCRE8
void pcre_printint(pcre *external_re, FILE *f, BOOL print_lengths);
-#endif
-#ifdef COMPILE_PCRE16
+#else
void pcre16_printint(pcre *external_re, FILE *f, BOOL print_lengths);
#endif
@@ -230,6 +236,9 @@ print_lengths flag controls whether offsets and lengths of items are printed.
They can be turned off from pcretest so that automatic tests on bytecode can be
written that do not depend on the value of LINK_SIZE. */
+#ifdef PCRE_INCLUDED
+static /* Keep the following function as private. */
+#endif
#ifdef COMPILE_PCRE8
void
pcre_printint(pcre *external_re, FILE *f, BOOL print_lengths)