comparison src/http/modules/ngx_http_ssi_filter_module.c @ 2091:9f15e5f8ff9e stable-0.6

r2007, r2025, r2042 merge: style fixes
author Igor Sysoev <igor@sysoev.ru>
date Mon, 07 Jul 2008 10:18:41 +0000
parents 685048830623
children c5e8484b22ab
comparison
equal deleted inserted replaced
2090:72b09c4dd8f7 2091:9f15e5f8ff9e
98 ngx_http_ssi_ctx_t *ctx, ngx_str_t **params); 98 ngx_http_ssi_ctx_t *ctx, ngx_str_t **params);
99 static ngx_int_t ngx_http_ssi_endblock(ngx_http_request_t *r, 99 static ngx_int_t ngx_http_ssi_endblock(ngx_http_request_t *r,
100 ngx_http_ssi_ctx_t *ctx, ngx_str_t **params); 100 ngx_http_ssi_ctx_t *ctx, ngx_str_t **params);
101 101
102 static ngx_int_t ngx_http_ssi_date_gmt_local_variable(ngx_http_request_t *r, 102 static ngx_int_t ngx_http_ssi_date_gmt_local_variable(ngx_http_request_t *r,
103 ngx_http_variable_value_t *v, uintptr_t gmt); 103 ngx_http_variable_value_t *v, uintptr_t gmt);
104 104
105 static char *ngx_http_ssi_types(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); 105 static char *ngx_http_ssi_types(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
106 106
107 static ngx_int_t ngx_http_ssi_preconfiguration(ngx_conf_t *cf); 107 static ngx_int_t ngx_http_ssi_preconfiguration(ngx_conf_t *cf);
108 static void *ngx_http_ssi_create_main_conf(ngx_conf_t *cf); 108 static void *ngx_http_ssi_create_main_conf(ngx_conf_t *cf);
1635 } 1635 }
1636 } 1636 }
1637 1637
1638 quoted = 0; 1638 quoted = 0;
1639 1639
1640 for (i = 0 ; i < text->len; i++) { 1640 for (i = 0; i < text->len; i++) {
1641 ch = text->data[i]; 1641 ch = text->data[i];
1642 1642
1643 if (!quoted) { 1643 if (!quoted) {
1644 1644
1645 if (ch == '\\') { 1645 if (ch == '\\') {
2645 } 2645 }
2646 2646
2647 2647
2648 static ngx_int_t 2648 static ngx_int_t
2649 ngx_http_ssi_date_gmt_local_variable(ngx_http_request_t *r, 2649 ngx_http_ssi_date_gmt_local_variable(ngx_http_request_t *r,
2650 ngx_http_variable_value_t *v, uintptr_t gmt) 2650 ngx_http_variable_value_t *v, uintptr_t gmt)
2651 { 2651 {
2652 ngx_http_ssi_ctx_t *ctx; 2652 ngx_http_ssi_ctx_t *ctx;
2653 ngx_time_t *tp; 2653 ngx_time_t *tp;
2654 struct tm tm; 2654 struct tm tm;
2655 char buf[NGX_HTTP_SSI_DATE_LEN]; 2655 char buf[NGX_HTTP_SSI_DATE_LEN];