Skip to content

Commit

Permalink
Allow global definition of DDEBUG.
Browse files Browse the repository at this point in the history
From Yichun Zhang (agentzh).
  • Loading branch information
PiotrSikora committed Nov 10, 2011
1 parent 6705c75 commit bcdcc62
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ngx_postgres_escape.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions src/ngx_postgres_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions src/ngx_postgres_keepalive.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
* SUCH DAMAGE.
*/

#ifndef DDEBUG
#define DDEBUG 0
#endif

#include "ngx_postgres_ddebug.h"
#include "ngx_postgres_keepalive.h"

Expand Down
3 changes: 3 additions & 0 deletions src/ngx_postgres_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions src/ngx_postgres_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions src/ngx_postgres_processor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions src/ngx_postgres_rewrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions src/ngx_postgres_upstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions src/ngx_postgres_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
* SUCH DAMAGE.
*/

#ifndef DDEBUG
#define DDEBUG 0
#endif

#include <nginx.h>

Expand Down
3 changes: 3 additions & 0 deletions src/ngx_postgres_variable.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bcdcc62

Please sign in to comment.