[njs] Renaming njs_value_void_set() to njs_value_undefined_set().

Dmitry Volyntsev xeioex at nginx.com
Tue Feb 26 15:24:30 UTC 2019


details:   https://hg.nginx.org/njs/rev/488278bde04a
branches:  
changeset: 805:488278bde04a
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Tue Feb 26 17:11:47 2019 +0300
description:
Renaming njs_value_void_set() to njs_value_undefined_set().

diffstat:

 njs/njs.h                |  2 +-
 njs/njs_vm.c             |  2 +-
 njs/test/njs_unit_test.c |  2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r e793d1b60427 -r 488278bde04a njs/njs.h
--- a/njs/njs.h	Tue Feb 26 17:11:42 2019 +0300
+++ b/njs/njs.h	Tue Feb 26 17:11:47 2019 +0300
@@ -254,7 +254,7 @@ NXT_EXPORT void njs_vm_value_error_set(n
     const char *fmt, ...);
 NXT_EXPORT void njs_vm_memory_error(njs_vm_t *vm);
 
-NXT_EXPORT void njs_value_void_set(njs_value_t *value);
+NXT_EXPORT void njs_value_undefined_set(njs_value_t *value);
 NXT_EXPORT void njs_value_boolean_set(njs_value_t *value, int yn);
 NXT_EXPORT void njs_value_number_set(njs_value_t *value, double num);
 NXT_EXPORT void njs_value_data_set(njs_value_t *value, void *data);
diff -r e793d1b60427 -r 488278bde04a njs/njs_vm.c
--- a/njs/njs_vm.c	Tue Feb 26 17:11:42 2019 +0300
+++ b/njs/njs_vm.c	Tue Feb 26 17:11:47 2019 +0300
@@ -3295,7 +3295,7 @@ njs_vmcode_value_to_string(njs_vm_t *vm,
 
 
 nxt_noinline void
-njs_value_void_set(njs_value_t *value)
+njs_value_undefined_set(njs_value_t *value)
 {
     *value = njs_value_void;
 }
diff -r e793d1b60427 -r 488278bde04a njs/test/njs_unit_test.c
--- a/njs/test/njs_unit_test.c	Tue Feb 26 17:11:42 2019 +0300
+++ b/njs/test/njs_unit_test.c	Tue Feb 26 17:11:47 2019 +0300
@@ -11675,7 +11675,7 @@ njs_unit_test_r_get_vars(njs_vm_t *vm, n
         return NXT_OK;
     }
 
-    njs_value_void_set(value);
+    njs_value_undefined_set(value);
 
     return NXT_OK;
 }


More information about the nginx-devel mailing list