[njs] Style.

Dmitry Volyntsev xeioex at nginx.com
Mon Jul 29 13:23:43 UTC 2019


details:   https://hg.nginx.org/njs/rev/57a50d1ad5cc
branches:  
changeset: 1083:57a50d1ad5cc
user:      hongzhidao <hongzhidao at gmail.com>
date:      Fri Jul 26 23:01:38 2019 -0400
description:
Style.

diffstat:

 njs/njs_object_property.c |  2 +-
 njs/njs_vmcode.c          |  6 +++---
 njs/njs_vmcode.h          |  3 ++-
 3 files changed, 6 insertions(+), 5 deletions(-)

diffs (54 lines):

diff -r 19aec8a00867 -r 57a50d1ad5cc njs/njs_object_property.c
--- a/njs/njs_object_property.c	Mon Jul 29 16:22:39 2019 +0300
+++ b/njs/njs_object_property.c	Fri Jul 26 23:01:38 2019 -0400
@@ -322,7 +322,7 @@ njs_string_property_query(njs_vm_t *vm, 
         pq->lhq.value = prop;
 
         if (pq->query != NJS_PROPERTY_QUERY_GET) {
-            /* pq->lhq.key is used by njs_vmcode_property_set for TypeError */
+            /* pq->lhq.key is used by NJS_VMCODE_PROPERTY_SET for TypeError */
             njs_uint32_to_string(&pq->value, index);
             njs_string_get(&pq->value, &pq->lhq.key);
         }
diff -r 19aec8a00867 -r 57a50d1ad5cc njs/njs_vmcode.c
--- a/njs/njs_vmcode.c	Mon Jul 29 16:22:39 2019 +0300
+++ b/njs/njs_vmcode.c	Fri Jul 26 23:01:38 2019 -0400
@@ -14,7 +14,7 @@ struct njs_property_next_s {
     njs_array_t  *array;
 };
 
-static njs_ret_t njs_vmcode_object(njs_vm_t *vm, u_char *pc);
+static njs_ret_t njs_vmcode_object(njs_vm_t *vm);
 static njs_ret_t njs_vmcode_array(njs_vm_t *vm, u_char *pc);
 static njs_ret_t njs_vmcode_function(njs_vm_t *vm, u_char *pc);
 static njs_ret_t njs_vmcode_arguments(njs_vm_t *vm, u_char *pc);
@@ -532,7 +532,7 @@ next:
                 goto next;
 
             case NJS_VMCODE_OBJECT:
-                ret = njs_vmcode_object(vm, pc);
+                ret = njs_vmcode_object(vm);
                 break;
 
             case NJS_VMCODE_ARRAY:
@@ -871,7 +871,7 @@ done:
 
 
 static njs_ret_t
-njs_vmcode_object(njs_vm_t *vm, u_char *pc)
+njs_vmcode_object(njs_vm_t *vm)
 {
     njs_object_t  *object;
 
diff -r 19aec8a00867 -r 57a50d1ad5cc njs/njs_vmcode.h
--- a/njs/njs_vmcode.h	Mon Jul 29 16:22:39 2019 +0300
+++ b/njs/njs_vmcode.h	Fri Jul 26 23:01:38 2019 -0400
@@ -374,6 +374,7 @@ typedef struct {
 } njs_vmcode_reference_error_t;
 
 
-nxt_int_t njs_vmcode_interpreter(njs_vm_t *vm, u_char *code);
+nxt_int_t njs_vmcode_interpreter(njs_vm_t *vm, u_char *pc);
+
 
 #endif /* _NJS_VMCODE_H_INCLUDED_ */


More information about the nginx-devel mailing list