]> git.kaiwu.me - njs.git/commitdiff
Style.
authorValentin Bartenev <vbart@nginx.com>
Sat, 4 May 2019 13:59:24 +0000 (16:59 +0300)
committerValentin Bartenev <vbart@nginx.com>
Sat, 4 May 2019 13:59:24 +0000 (16:59 +0300)
njs/njs_disassembler.c
njs/njs_function.c
njs/njs_json.c
njs/njs_object.c
njs/njs_parser.c
njs/njs_string.c
njs/test/njs_unit_test.c

index 57b9da4931104441e27f79475c69ab3e105ba120..d3b64b8e0aae8ff2486d11c64a959838e027e36a 100644 (file)
@@ -295,7 +295,6 @@ njs_disassemble(u_char *start, u_char *end)
                        (size_t) method->method, method->nargs,
                        method->code.ctor ? " CTOR" : "");
 
-
             p += sizeof(njs_vmcode_method_frame_t);
             continue;
         }
@@ -308,7 +307,6 @@ njs_disassemble(u_char *start, u_char *end)
                        (size_t) prop_foreach->object,
                        (size_t) prop_foreach->offset);
 
-
             p += sizeof(njs_vmcode_prop_foreach_t);
             continue;
         }
index 9d669bcc5d2cce4430d4858b52bf578b8311998a..41e9dbff66aca0d7d56117b2eeee6141b0627a47 100644 (file)
@@ -31,7 +31,6 @@ njs_function_alloc(njs_vm_t *vm, njs_function_lambda_t *lambda,
         goto fail;
     }
 
-
     /*
      * nxt_mp_zalloc() does also:
      *   nxt_lvlhsh_init(&function->object.hash);
index 203c236f67b086e46b6d4050cd2ca2070ad6d0e1..d4c73de8cb19f1a3d3c5cae81d262152e45ab594 100644 (file)
@@ -1916,10 +1916,10 @@ njs_json_append_number(njs_json_stringify_t *stringify,
 static njs_value_t *
 njs_json_wrap_value(njs_vm_t *vm, const njs_value_t *value)
 {
-    nxt_int_t             ret;
-    njs_value_t           *wrapper;
-    njs_object_prop_t     *prop;
-    nxt_lvlhsh_query_t    lhq;
+    nxt_int_t           ret;
+    njs_value_t         *wrapper;
+    njs_object_prop_t   *prop;
+    nxt_lvlhsh_query_t  lhq;
 
     wrapper = nxt_mp_alloc(vm->mem_pool, sizeof(njs_value_t));
     if (nxt_slow_path(wrapper == NULL)) {
index 3018d71feab6f423d8f62caa93b89506cc5ccfdb..5f6822e9fb6a423e13849cd648853a22d26a6102 100644 (file)
@@ -2619,11 +2619,11 @@ njs_value_t *
 njs_property_prototype_create(njs_vm_t *vm, nxt_lvlhsh_t *hash,
     njs_object_t *prototype)
 {
-    nxt_int_t                  ret;
-    njs_object_prop_t          *prop;
-    nxt_lvlhsh_query_t         lhq;
+    nxt_int_t                 ret;
+    njs_object_prop_t         *prop;
+    nxt_lvlhsh_query_t        lhq;
 
-    static const njs_value_t   proto_string = njs_string("prototype");
+    static const njs_value_t  proto_string = njs_string("prototype");
 
     prop = njs_object_prop_alloc(vm, &proto_string, &njs_value_undefined, 0);
     if (nxt_slow_path(prop == NULL)) {
index 4e1ac418df33114688becccd9a7fe7e376499ffc..82207334c2bb10220d824f231a1707a7579991f9 100644 (file)
@@ -1064,7 +1064,6 @@ njs_parser_var_statement(njs_vm_t *vm, njs_parser_t *parser, njs_token_t parent,
             return NJS_TOKEN_ILLEGAL;
         }
 
-
         name = njs_parser_variable_node(vm, parser,
                                         njs_parser_text(parser),
                                         njs_parser_key_hash(parser),
@@ -2179,9 +2178,9 @@ njs_token_t
 njs_parser_arrow_expression(njs_vm_t *vm, njs_parser_t *parser,
     njs_token_t token)
 {
-    njs_ret_t               ret;
-    njs_index_t             index;
-    njs_parser_node_t       *node, *body, *parent;
+    njs_ret_t              ret;
+    njs_index_t            index;
+    njs_parser_node_t      *node, *body, *parent;
     njs_function_lambda_t  *lambda;
 
     node = njs_parser_node_new(vm, parser, NJS_TOKEN_FUNCTION_EXPRESSION);
index 982399daebdc0a322d8d9507805b5a8d5429b857..7c8b610a366f2feec7f8590d19913c13c0b3fecd 100644 (file)
@@ -598,7 +598,6 @@ static const njs_object_prop_t  njs_string_constructor_properties[] =
                                      NJS_SKIP_ARG, NJS_STRING_ARG),
     },
 
-
     /* String.fromCharCode(). */
     {
         .type = NJS_METHOD,
index 15578bfe1b9dc7f5c679c9450e603f560f44f561..c4f892793105431ab6c0e53401d0d10bdc8fb8d9 100644 (file)
@@ -13104,11 +13104,11 @@ done:
 static nxt_int_t
 njs_timezone_optional_test(nxt_bool_t disassemble, nxt_bool_t verbose)
 {
-    size_t      size;
-    u_char      buf[16];
-    time_t      clock;
-    struct tm   tm;
-    nxt_int_t   ret;
+    size_t     size;
+    u_char     buf[16];
+    time_t     clock;
+    struct tm  tm;
+    nxt_int_t  ret;
 
     /*
      * Chatham Islands NZ-CHAT time zone.