comparison xml/en/docs/dev/development_guide.xml @ 2009:9b7302e3b21f

DevGuide: fixed variables example.
author Vladimir Homutov <vl@nginx.com>
date Wed, 05 Jul 2017 15:30:48 +0300
parents 1f2f9fa97065
children ec34516cbd1b
comparison
equal deleted inserted replaced
2008:1f2f9fa97065 2009:9b7302e3b21f
4853 by a module and processed at the preconfiguration stage to add variables 4853 by a module and processed at the preconfiguration stage to add variables
4854 into the configuration, for example: 4854 into the configuration, for example:
4855 <programlisting> 4855 <programlisting>
4856 static ngx_http_variable_t ngx_http_foo_vars[] = { 4856 static ngx_http_variable_t ngx_http_foo_vars[] = {
4857 4857
4858 { ngx_string("foo_v1"), NULL, ngx_http_foo_v1_variable, NULL, 0, 0 }, 4858 { ngx_string("foo_v1"), NULL, ngx_http_foo_v1_variable, 0, 0, 0 },
4859 4859
4860 { ngx_null_string, NULL, NULL, 0, 0, 0 } 4860 { ngx_null_string, NULL, NULL, 0, 0, 0 }
4861 }; 4861 };
4862 4862
4863 static ngx_int_t 4863 static ngx_int_t