]> git.kaiwu.me - njs.git/commitdiff
Style.
authorhongzhidao <hongzhidao@gmail.com>
Mon, 20 May 2019 08:05:58 +0000 (16:05 +0800)
committerhongzhidao <hongzhidao@gmail.com>
Mon, 20 May 2019 08:05:58 +0000 (16:05 +0800)
njs/njs_builtin.c
njs/njs_builtin.h
njs/njs_parser_terminal.c
njs/njs_vm.h

index d40c7378815ec827dca8e838192f67073f7b26f2..14e03d1ce838657fa1bc46bee6d0a4f4024ec422 100644 (file)
@@ -30,11 +30,11 @@ static nxt_array_t *njs_vm_expression_completions(njs_vm_t *vm,
 static nxt_array_t *njs_object_completions(njs_vm_t *vm, njs_object_t *object);
 
 
-const njs_object_init_t     njs_njs_object_init;
-const njs_object_init_t     njs_global_this_init;
+const njs_object_init_t  njs_njs_object_init;
+const njs_object_init_t  njs_global_this_init;
 
 
-const njs_object_init_t    *njs_object_init[] = {
+const njs_object_init_t  *njs_object_init[] = {
     &njs_global_this_init,        /* global this        */
     &njs_njs_object_init,         /* global njs object  */
     &njs_math_object_init,        /* Math               */
@@ -43,9 +43,9 @@ const njs_object_init_t    *njs_object_init[] = {
 };
 
 
-const njs_object_init_t    *njs_module_init[] = {
-    &njs_fs_object_init,         /* fs                 */
-    &njs_crypto_object_init,     /* crypto             */
+const njs_object_init_t  *njs_module_init[] = {
+    &njs_fs_object_init,          /* fs                 */
+    &njs_crypto_object_init,      /* crypto             */
     NULL
 };
 
@@ -73,7 +73,7 @@ const njs_object_init_t  *njs_prototype_init[] = {
 };
 
 
-const njs_object_init_t    *njs_constructor_init[] = {
+const njs_object_init_t  *njs_constructor_init[] = {
     &njs_object_constructor_init,
     &njs_array_constructor_init,
     &njs_boolean_constructor_init,
@@ -97,7 +97,7 @@ const njs_object_init_t    *njs_constructor_init[] = {
 };
 
 
-const njs_object_init_t    *njs_function_init[] = {
+const njs_object_init_t  *njs_function_init[] = {
     &njs_eval_function_init,
     &njs_to_string_function_init,
     &njs_is_nan_function_init,
@@ -165,6 +165,7 @@ const njs_function_init_t  njs_native_constructors[] = {
     { njs_memory_error_constructor,  { NJS_SKIP_ARG, NJS_STRING_ARG } },
 };
 
+
 const njs_object_prototype_t  njs_prototype_values[] = {
     /*
      * GCC 4 complains about uninitialized .shared field,
index a5169b3dd065cf57d10a5535587a8fa776904f99..8c169f223b95d0969547f8b112f482650cbcc4f5 100644 (file)
@@ -13,4 +13,5 @@ extern const njs_object_init_t  *njs_module_init[];
 extern const njs_object_init_t  *njs_prototype_init[];
 extern const njs_object_init_t  *njs_constructor_init[];
 
+
 #endif /* _NJS_BUILTIN_H_INCLUDED_ */
index 72226c0ed436ba9d1eb5e4be44d2894faf2b9a41..8e97509733465f5ef1b43427a2ac07d59bdc969d 100644 (file)
@@ -805,7 +805,7 @@ njs_parser_template_expression(njs_vm_t *vm, njs_parser_t *parser)
 
     if (token != NJS_TOKEN_CLOSE_BRACE) {
         njs_parser_syntax_error(vm, parser,
-                            "Missing \"}\" in template expression");
+                                "Missing \"}\" in template expression");
         return NXT_ERROR;
     }
 
index 342d7bebe7c0764306eaf1572fd0b073e65ccc08..e1e18353d5d6786e71773d01fcff647702c7fc52 100644 (file)
@@ -894,6 +894,7 @@ typedef enum {
 #define njs_is_callee_argument_index(index)                                   \
     (((index) & NJS_SCOPE_CALLEE_ARGUMENTS) == NJS_SCOPE_CALLEE_ARGUMENTS)
 
+
 enum njs_prototypes_e {
     NJS_PROTOTYPE_OBJECT = 0,
     NJS_PROTOTYPE_ARRAY,