]> git.kaiwu.me - njs.git/commit
Fixed using of internal NJS headers in nginx modules.
authorDmitry Volyntsev <xeioex@nginx.com>
Mon, 12 Feb 2018 11:57:24 +0000 (14:57 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Mon, 12 Feb 2018 11:57:24 +0000 (14:57 +0300)
commit325ec498ade702ebfa71e464b71f3b7d0ee0812f
tree172b73551852b463446482e63f8531c4739b3415
parent85ba858683c72b3bcccc027c4fe0f895bedef020
Fixed using of internal NJS headers in nginx modules.

Public API is rectified to make it easier to work with the private
structure njs_value_t from the outside:
    1) njs_vm_retval() is split into njs_vm_retval() which now returns
    the njs_value_t * as a return value and njs_vm_value_to_ext_string()
    which stringifies an njs_value_t * passed as an argument.

    2) njs_value_*_set() methods are added.
    3) Similar public methods are grouped together.
18 files changed:
nginx/ngx_http_js_module.c
nginx/ngx_stream_js_module.c
njs/njs.c
njs/njs_array.c
njs/njs_date.c
njs/njs_math.c
njs/njs_number.c
njs/njs_regexp.c
njs/njs_string.c
njs/njs_string.h
njs/njs_vm.c
njs/njs_vm.h
njs/njscript.c
njs/njscript.h
njs/test/njs_benchmark.c
njs/test/njs_expect_test.exp
njs/test/njs_interactive_test.c
njs/test/njs_unit_test.c