[njs] Style.

Dmitry Volyntsev xeioex at nginx.com
Wed Feb 27 13:41:23 UTC 2019


details:   https://hg.nginx.org/njs/rev/984b7794c5f2
branches:  
changeset: 809:984b7794c5f2
user:      hongzhidao <hongzhidao at gmail.com>
date:      Wed Feb 27 17:49:03 2019 +0800
description:
Style.

diffstat:

 njs/njs_lexer_keyword.c |  4 ++--
 njs/njs_parser.h        |  2 +-
 njs/njs_variable.c      |  4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diffs (54 lines):

diff -r 7345fd14d1b4 -r 984b7794c5f2 njs/njs_lexer_keyword.c
--- a/njs/njs_lexer_keyword.c	Tue Feb 26 17:30:02 2019 +0800
+++ b/njs/njs_lexer_keyword.c	Wed Feb 27 17:49:03 2019 +0800
@@ -142,7 +142,7 @@ const nxt_lvlhsh_proto_t  njs_keyword_ha
 
 
 nxt_int_t
-njs_lexer_keywords_init(nxt_mp_t *mcp, nxt_lvlhsh_t *hash)
+njs_lexer_keywords_init(nxt_mp_t *mp, nxt_lvlhsh_t *hash)
 {
     nxt_uint_t           n;
     nxt_lvlhsh_query_t   lhq;
@@ -153,7 +153,7 @@ njs_lexer_keywords_init(nxt_mp_t *mcp, n
 
     lhq.replace = 0;
     lhq.proto = &njs_keyword_hash_proto;
-    lhq.pool = mcp;
+    lhq.pool = mp;
 
     do {
         lhq.key_hash = nxt_djb_hash(keyword->name.start, keyword->name.length);
diff -r 7345fd14d1b4 -r 984b7794c5f2 njs/njs_parser.h
--- a/njs/njs_parser.h	Tue Feb 26 17:30:02 2019 +0800
+++ b/njs/njs_parser.h	Wed Feb 27 17:49:03 2019 +0800
@@ -310,7 +310,7 @@ typedef struct {
 njs_token_t njs_lexer_token(njs_lexer_t *lexer);
 void njs_lexer_rollback(njs_lexer_t *lexer);
 njs_token_t njs_lexer_peek_token(njs_lexer_t *lexer);
-nxt_int_t njs_lexer_keywords_init(nxt_mp_t *mcp, nxt_lvlhsh_t *hash);
+nxt_int_t njs_lexer_keywords_init(nxt_mp_t *mp, nxt_lvlhsh_t *hash);
 njs_token_t njs_lexer_keyword(njs_lexer_t *lexer);
 
 nxt_int_t njs_parser(njs_vm_t *vm, njs_parser_t *parser,
diff -r 7345fd14d1b4 -r 984b7794c5f2 njs/njs_variable.c
--- a/njs/njs_variable.c	Tue Feb 26 17:30:02 2019 +0800
+++ b/njs/njs_variable.c	Wed Feb 27 17:49:03 2019 +0800
@@ -175,7 +175,7 @@ njs_reference_hash_test(nxt_lvlhsh_query
 }
 
 
-const nxt_lvlhsh_proto_t  njs_reference_hash_proto
+const nxt_lvlhsh_proto_t  njs_references_hash_proto
     nxt_aligned(64) =
 {
     NXT_LVLHSH_DEFAULT,
@@ -205,7 +205,7 @@ njs_variable_reference(njs_vm_t *vm, njs
 
         lhq.key_hash = hash;
         lhq.key = vr->name;
-        lhq.proto = &njs_reference_hash_proto;
+        lhq.proto = &njs_references_hash_proto;
         lhq.replace = 0;
         lhq.value = node;
         lhq.pool = vm->mem_pool;


More information about the nginx-devel mailing list