~ubuntu-branches/ubuntu/precise/nginx/precise-security

« back to all changes in this revision

Viewing changes to debian/modules/chunkin-nginx-module/src/ddebug.h

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry, Kartik Mistry, Michael Lustfield
  • Date: 2011-11-18 23:44:00 UTC
  • mfrom: (4.2.39 sid)
  • Revision ID: package-import@ubuntu.com-20111118234400-atj8d0zog78vgdte
Tags: 1.1.8-1
[Kartik Mistry]
* New upstream release.
* debian/modules/chunkin-nginx-module:
  + Removed as of now, as it breaks with Perl 5.14 (Closes: #649061)

[Michael Lustfield]
* debian/control:
  + Added Map module to nginx-light modules list.
* debian/rules:
  + Removed --without-http_map_module form nginx-light.
* debian/nginx-common.install:
  + Changed ufw profile installation (LP: #825349).
    - debian/ufw.profile -> debian/ufw/nginx.
* debian/nginx-common.preinst:
  + Cleanup of moved nginx profile.
* debian/conf/nginx.conf:
  + Added a default map for $server_https (on|off).
* debian/conf/fastcgi_params:
  + Pass HTTPS so $_SERVER['HTTPS'] is set (LP: #857831).
* debian/conf/mime.types:
  + Added json type (LP: #883440).
* debian/conf/sites-available/default:
  + Added notes about PHP (Closes: #642995).
  + Changed location /doc from root to alias.
  + Changed location /doc to /doc/ for people that don't bother reading or
    learning anything about Nginx configuration files (LP: #840358).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) agentzh */
2
 
 
3
 
#ifndef DDEBUG_H
4
 
#define DDEBUG_H
5
 
 
6
 
#include <ngx_core.h>
7
 
 
8
 
#if defined(DDEBUG) && (DDEBUG)
9
 
 
10
 
#   if (NGX_HAVE_VARIADIC_MACROS)
11
 
 
12
 
#       define dd(...) fprintf(stderr, "chunkin *** "); \
13
 
            fprintf(stderr, __VA_ARGS__); \
14
 
            fprintf(stderr, " at %s line %d.\n", __FILE__, __LINE__)
15
 
 
16
 
#   else
17
 
 
18
 
#include <stdarg.h>
19
 
#include <stdio.h>
20
 
 
21
 
#include <stdarg.h>
22
 
 
23
 
static void dd(const char* fmt, ...) {
24
 
}
25
 
 
26
 
#    endif
27
 
 
28
 
#else
29
 
 
30
 
#   if (NGX_HAVE_VARIADIC_MACROS)
31
 
 
32
 
#       define dd(...)
33
 
 
34
 
#   else
35
 
 
36
 
#include <stdarg.h>
37
 
 
38
 
static void dd(const char* fmt, ...) {
39
 
}
40
 
 
41
 
#   endif
42
 
 
43
 
#endif
44
 
 
45
 
#if defined(DDEBUG) && (DDEBUG)
46
 
 
47
 
#define dd_check_read_event_handler(r)   \
48
 
    dd("r->read_event_handler = %s", \
49
 
        r->read_event_handler == ngx_http_block_reading ? \
50
 
            "ngx_http_block_reading" : \
51
 
        r->read_event_handler == ngx_http_test_reading ? \
52
 
            "ngx_http_test_reading" : \
53
 
        r->read_event_handler == ngx_http_request_empty_handler ? \
54
 
            "ngx_http_request_empty_handler" : "UNKNOWN")
55
 
 
56
 
#define dd_check_write_event_handler(r)   \
57
 
    dd("r->write_event_handler = %s", \
58
 
        r->write_event_handler == ngx_http_handler ? \
59
 
            "ngx_http_handler" : \
60
 
        r->write_event_handler == ngx_http_core_run_phases ? \
61
 
            "ngx_http_core_run_phases" : \
62
 
        r->write_event_handler == ngx_http_request_empty_handler ? \
63
 
            "ngx_http_request_empty_handler" : "UNKNOWN")
64
 
 
65
 
#else
66
 
 
67
 
#define dd_check_read_event_handler(r)
68
 
#define dd_check_write_event_handler(r)
69
 
 
70
 
#endif
71
 
 
72
 
#endif /* DDEBUG_H */
73