diff src/http/ngx_http_script.h @ 64:5db440287648 NGINX_0_1_32

nginx 0.1.32 *) Bugfix: the arguments were omitted in the redirects, issued by the "rewrite" directive; bug appeared in 0.1.29. *) Feature: the "if" directive supports the captures in regular expressions. *) Feature: the "set" directive supports the variables and the captures of regular expressions. *) Feature: the "X-Accel-Redirect" response header line is supported in proxy and FastCGI mode.
author Igor Sysoev <http://sysoev.ru>
date Thu, 19 May 2005 00:00:00 +0400
parents b55cbf18157e
children 818201e5a553
line wrap: on
line diff
--- a/src/http/ngx_http_script.h
+++ b/src/http/ngx_http_script.h
@@ -19,7 +19,7 @@ typedef struct {
     ngx_http_variable_value_t      *sp;
 
     ngx_str_t                       buf;
-    ngx_str_t                      *line;
+    ngx_str_t                       line;
 
     /* the start of the rewritten arguments */
     u_char                         *args;
@@ -29,6 +29,7 @@ typedef struct {
     unsigned                        log:1;
 
     int                            *captures;
+    ngx_uint_t                      ncaptures;
 
     ngx_int_t                       status;
     ngx_http_request_t             *request;
@@ -130,6 +131,12 @@ typedef struct {
 
 typedef struct {
     ngx_http_script_code_pt          code;
+    ngx_array_t                     *lengths;
+} ngx_http_script_complex_value_code_t;
+
+
+typedef struct {
+    ngx_http_script_code_pt          code;
     uintptr_t                        value;
     uintptr_t                        text_len;
     uintptr_t                        text_data;
@@ -155,6 +162,7 @@ void ngx_http_script_copy_capture_code(n
 void ngx_http_script_start_args_code(ngx_http_script_engine_t *e);
 void ngx_http_script_return_code(ngx_http_script_engine_t *e);
 void ngx_http_script_if_code(ngx_http_script_engine_t *e);
+void ngx_http_script_complex_value_code(ngx_http_script_engine_t *e);
 void ngx_http_script_value_code(ngx_http_script_engine_t *e);
 void ngx_http_script_set_var_code(ngx_http_script_engine_t *e);
 void ngx_http_script_var_code(ngx_http_script_engine_t *e);