Skip to content

Commit bcdcc62

Browse files
committed
Allow global definition of DDEBUG.
From Yichun Zhang (agentzh).
1 parent 6705c75 commit bcdcc62

10 files changed

+29
-0
lines changed

src/ngx_postgres_escape.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2525
*/
2626

27+
#ifndef DDEBUG
2728
#define DDEBUG 0
29+
#endif
30+
2831
#include "ngx_postgres_ddebug.h"
2932
#include "ngx_postgres_escape.h"
3033
#include "ngx_postgres_module.h"

src/ngx_postgres_handler.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2727
*/
2828

29+
#ifndef DDEBUG
2930
#define DDEBUG 0
31+
#endif
32+
3033
#include "ngx_postgres_ddebug.h"
3134
#include "ngx_postgres_handler.h"
3235
#include "ngx_postgres_module.h"

src/ngx_postgres_keepalive.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
* SUCH DAMAGE.
2626
*/
2727

28+
#ifndef DDEBUG
2829
#define DDEBUG 0
30+
#endif
31+
2932
#include "ngx_postgres_ddebug.h"
3033
#include "ngx_postgres_keepalive.h"
3134

src/ngx_postgres_module.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2727
*/
2828

29+
#ifndef DDEBUG
2930
#define DDEBUG 0
31+
#endif
32+
3033
#include "ngx_postgres_ddebug.h"
3134
#include "ngx_postgres_escape.h"
3235
#include "ngx_postgres_handler.h"

src/ngx_postgres_output.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2727
*/
2828

29+
#ifndef DDEBUG
2930
#define DDEBUG 0
31+
#endif
32+
3033
#include "ngx_postgres_ddebug.h"
3134
#include "ngx_postgres_module.h"
3235
#include "ngx_postgres_output.h"

src/ngx_postgres_processor.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2727
*/
2828

29+
#ifndef DDEBUG
2930
#define DDEBUG 0
31+
#endif
32+
3033
#include "ngx_postgres_ddebug.h"
3134
#include "ngx_postgres_output.h"
3235
#include "ngx_postgres_processor.h"

src/ngx_postgres_rewrite.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2525
*/
2626

27+
#ifndef DDEBUG
2728
#define DDEBUG 0
29+
#endif
30+
2831
#include "ngx_postgres_ddebug.h"
2932
#include "ngx_postgres_module.h"
3033
#include "ngx_postgres_rewrite.h"

src/ngx_postgres_upstream.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2727
*/
2828

29+
#ifndef DDEBUG
2930
#define DDEBUG 0
31+
#endif
32+
3033
#include "ngx_postgres_ddebug.h"
3134
#include "ngx_postgres_module.h"
3235
#include "ngx_postgres_keepalive.h"

src/ngx_postgres_util.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
* SUCH DAMAGE.
2626
*/
2727

28+
#ifndef DDEBUG
2829
#define DDEBUG 0
30+
#endif
2931

3032
#include <nginx.h>
3133

src/ngx_postgres_variable.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2525
*/
2626

27+
#ifndef DDEBUG
2728
#define DDEBUG 0
29+
#endif
30+
2831
#include "ngx_postgres_ddebug.h"
2932
#include "ngx_postgres_module.h"
3033
#include "ngx_postgres_variable.h"

0 commit comments

Comments
 (0)