From bcdcc62b68b1ffa70ae3c4b67bfdc91ac2259b51 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 10 Nov 2011 03:39:38 +0000 Subject: [PATCH] Allow global definition of DDEBUG. From Yichun Zhang (agentzh). --- src/ngx_postgres_escape.c | 3 +++ src/ngx_postgres_handler.c | 3 +++ src/ngx_postgres_keepalive.c | 3 +++ src/ngx_postgres_module.c | 3 +++ src/ngx_postgres_output.c | 3 +++ src/ngx_postgres_processor.c | 3 +++ src/ngx_postgres_rewrite.c | 3 +++ src/ngx_postgres_upstream.c | 3 +++ src/ngx_postgres_util.c | 2 ++ src/ngx_postgres_variable.c | 3 +++ 10 files changed, 29 insertions(+) diff --git a/src/ngx_postgres_escape.c b/src/ngx_postgres_escape.c index 5adf9304..3b589741 100644 --- a/src/ngx_postgres_escape.c +++ b/src/ngx_postgres_escape.c @@ -24,7 +24,10 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifndef DDEBUG #define DDEBUG 0 +#endif + #include "ngx_postgres_ddebug.h" #include "ngx_postgres_escape.h" #include "ngx_postgres_module.h" diff --git a/src/ngx_postgres_handler.c b/src/ngx_postgres_handler.c index 8f51e2de..5f2c3b72 100644 --- a/src/ngx_postgres_handler.c +++ b/src/ngx_postgres_handler.c @@ -26,7 +26,10 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifndef DDEBUG #define DDEBUG 0 +#endif + #include "ngx_postgres_ddebug.h" #include "ngx_postgres_handler.h" #include "ngx_postgres_module.h" diff --git a/src/ngx_postgres_keepalive.c b/src/ngx_postgres_keepalive.c index e0f6880d..82574a53 100644 --- a/src/ngx_postgres_keepalive.c +++ b/src/ngx_postgres_keepalive.c @@ -25,7 +25,10 @@ * SUCH DAMAGE. */ +#ifndef DDEBUG #define DDEBUG 0 +#endif + #include "ngx_postgres_ddebug.h" #include "ngx_postgres_keepalive.h" diff --git a/src/ngx_postgres_module.c b/src/ngx_postgres_module.c index 318c5f5d..fed41647 100644 --- a/src/ngx_postgres_module.c +++ b/src/ngx_postgres_module.c @@ -26,7 +26,10 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifndef DDEBUG #define DDEBUG 0 +#endif + #include "ngx_postgres_ddebug.h" #include "ngx_postgres_escape.h" #include "ngx_postgres_handler.h" diff --git a/src/ngx_postgres_output.c b/src/ngx_postgres_output.c index 015c70da..9fd96bc0 100644 --- a/src/ngx_postgres_output.c +++ b/src/ngx_postgres_output.c @@ -26,7 +26,10 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifndef DDEBUG #define DDEBUG 0 +#endif + #include "ngx_postgres_ddebug.h" #include "ngx_postgres_module.h" #include "ngx_postgres_output.h" diff --git a/src/ngx_postgres_processor.c b/src/ngx_postgres_processor.c index d007024e..2e8f0ef1 100644 --- a/src/ngx_postgres_processor.c +++ b/src/ngx_postgres_processor.c @@ -26,7 +26,10 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifndef DDEBUG #define DDEBUG 0 +#endif + #include "ngx_postgres_ddebug.h" #include "ngx_postgres_output.h" #include "ngx_postgres_processor.h" diff --git a/src/ngx_postgres_rewrite.c b/src/ngx_postgres_rewrite.c index 1e316dd3..beaef097 100644 --- a/src/ngx_postgres_rewrite.c +++ b/src/ngx_postgres_rewrite.c @@ -24,7 +24,10 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifndef DDEBUG #define DDEBUG 0 +#endif + #include "ngx_postgres_ddebug.h" #include "ngx_postgres_module.h" #include "ngx_postgres_rewrite.h" diff --git a/src/ngx_postgres_upstream.c b/src/ngx_postgres_upstream.c index 9732139c..c8f17492 100644 --- a/src/ngx_postgres_upstream.c +++ b/src/ngx_postgres_upstream.c @@ -26,7 +26,10 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifndef DDEBUG #define DDEBUG 0 +#endif + #include "ngx_postgres_ddebug.h" #include "ngx_postgres_module.h" #include "ngx_postgres_keepalive.h" diff --git a/src/ngx_postgres_util.c b/src/ngx_postgres_util.c index 61a44ad1..f2894c1a 100644 --- a/src/ngx_postgres_util.c +++ b/src/ngx_postgres_util.c @@ -25,7 +25,9 @@ * SUCH DAMAGE. */ +#ifndef DDEBUG #define DDEBUG 0 +#endif #include diff --git a/src/ngx_postgres_variable.c b/src/ngx_postgres_variable.c index 67ee2928..e7f4f381 100644 --- a/src/ngx_postgres_variable.c +++ b/src/ngx_postgres_variable.c @@ -24,7 +24,10 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifndef DDEBUG #define DDEBUG 0 +#endif + #include "ngx_postgres_ddebug.h" #include "ngx_postgres_module.h" #include "ngx_postgres_variable.h"