]> git.kaiwu.me - nginx.git/commit
Added ngx_http_set_complex_value_size_slot().
authorRuslan Ermilov <ru@nginx.com>
Wed, 24 Apr 2019 13:38:51 +0000 (16:38 +0300)
committerRuslan Ermilov <ru@nginx.com>
Wed, 24 Apr 2019 13:38:51 +0000 (16:38 +0300)
commit2ace7fc3e683fcfa44ff9c355face60983db7eae
treef02d592ebc883346884f35a1438acdcb765e4840
parent2eb2a93d8a3ad17eb25b2220ffe1f54d09b3fc4c
Added ngx_http_set_complex_value_size_slot().

If a complex value is expected to be of type size_t, and the compiled
value is constant, the constant size_t value is remembered at compile
time.

The value is accessed through ngx_http_complex_value_size() which
either returns the remembered constant or evaluates the expression
and parses it as size_t.
src/http/ngx_http_script.c
src/http/ngx_http_script.h
src/stream/ngx_stream_script.c
src/stream/ngx_stream_script.h