[njs] Making njs_vm_invoke() public.

Dmitry Volyntsev xeioex at nginx.com
Wed Feb 20 14:26:01 UTC 2019


details:   https://hg.nginx.org/njs/rev/b23c0a90e37f
branches:  
changeset: 784:b23c0a90e37f
user:      hongzhidao <hongzhidao at gmail.com>
date:      Sat Feb 16 23:18:43 2019 +0800
description:
Making njs_vm_invoke() public.

diffstat:

 njs/njs.c |  6 ++----
 njs/njs.h |  2 ++
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r 64278ad1e14c -r b23c0a90e37f njs/njs.c
--- a/njs/njs.c	Sat Feb 16 23:18:43 2019 +0800
+++ b/njs/njs.c	Sat Feb 16 23:18:43 2019 +0800
@@ -10,8 +10,6 @@
 
 
 static nxt_int_t njs_vm_init(njs_vm_t *vm);
-static nxt_int_t njs_vm_invoke(njs_vm_t *vm, njs_function_t *function,
-    const njs_value_t *args, nxt_uint_t nargs, njs_index_t retval);
 static nxt_int_t njs_vm_handle_events(njs_vm_t *vm);
 
 
@@ -458,11 +456,11 @@ nxt_int_t
 njs_vm_call(njs_vm_t *vm, njs_function_t *function, const njs_value_t *args,
     nxt_uint_t nargs)
 {
-    return  njs_vm_invoke(vm, function, args, nargs, NJS_INDEX_GLOBAL_RETVAL);
+    return njs_vm_invoke(vm, function, args, nargs, NJS_INDEX_GLOBAL_RETVAL);
 }
 
 
-static nxt_int_t
+nxt_int_t
 njs_vm_invoke(njs_vm_t *vm, njs_function_t *function, const njs_value_t *args,
     nxt_uint_t nargs, njs_index_t retval)
 {
diff -r 64278ad1e14c -r b23c0a90e37f njs/njs.h
--- a/njs/njs.h	Sat Feb 16 23:18:43 2019 +0800
+++ b/njs/njs.h	Sat Feb 16 23:18:43 2019 +0800
@@ -193,6 +193,8 @@ NXT_EXPORT nxt_int_t njs_vm_posted(njs_v
  */
 NXT_EXPORT nxt_int_t njs_vm_call(njs_vm_t *vm, njs_function_t *function,
     const njs_value_t *args, nxt_uint_t nargs);
+NXT_EXPORT nxt_int_t njs_vm_invoke(njs_vm_t *vm, njs_function_t *function,
+    const njs_value_t *args, nxt_uint_t nargs, njs_index_t retval);
 
 /*
  * Runs posted events.


More information about the nginx-devel mailing list