]> git.kaiwu.me - njs.git/commitdiff
Style.
authorhongzhidao <hongzhidao@gmail.com>
Mon, 28 Jan 2019 17:30:04 +0000 (01:30 +0800)
committerhongzhidao <hongzhidao@gmail.com>
Mon, 28 Jan 2019 17:30:04 +0000 (01:30 +0800)
njs/njs_lexer_keyword.c
njs/njs_module.h
njs/njs_parser.c

index 7db4146800915a0a17c335acb43003b43d8ab8dc..bdffdf0857214e79b7205806da84d3364bd3a32c 100644 (file)
@@ -88,10 +88,10 @@ static const njs_keyword_t  njs_keywords[] = {
     { nxt_string("encodeURIComponent"),  NJS_TOKEN_ENCODE_URI_COMPONENT, 0 },
     { nxt_string("decodeURI"),     NJS_TOKEN_DECODE_URI, 0 },
     { nxt_string("decodeURIComponent"),  NJS_TOKEN_DECODE_URI_COMPONENT, 0 },
-    { nxt_string("require"),      NJS_TOKEN_REQUIRE, 0 },
-    { nxt_string("setTimeout"),   NJS_TOKEN_SET_TIMEOUT, 0 },
-    { nxt_string("setImmediate"), NJS_TOKEN_SET_IMMEDIATE, 0 },
-    { nxt_string("clearTimeout"), NJS_TOKEN_CLEAR_TIMEOUT, 0 },
+    { nxt_string("require"),       NJS_TOKEN_REQUIRE, 0 },
+    { nxt_string("setTimeout"),    NJS_TOKEN_SET_TIMEOUT, 0 },
+    { nxt_string("setImmediate"),  NJS_TOKEN_SET_IMMEDIATE, 0 },
+    { nxt_string("clearTimeout"),  NJS_TOKEN_CLEAR_TIMEOUT, 0 },
 
     /* Reserved words. */
 
index 58091084ba3306ee0733d73ea15bdc957e10edfc..697d2a1c241f4370abe3c9ab8d15082614f8e44a 100644 (file)
@@ -7,6 +7,7 @@
 #ifndef _NJS_MODULE_H_INCLUDED_
 #define _NJS_MODULE_H_INCLUDED_
 
+
 typedef struct {
     nxt_str_t                   name;
     njs_object_t                object;
@@ -16,8 +17,9 @@ typedef struct {
 njs_ret_t njs_module_require(njs_vm_t *vm, njs_value_t *args,
     nxt_uint_t nargs, njs_index_t unused);
 
+
 extern const nxt_lvlhsh_proto_t  njs_modules_hash_proto;
+extern const njs_object_init_t   njs_require_function_init;
 
-extern const njs_object_init_t  njs_require_function_init;
 
 #endif /* _NJS_MODULE_H_INCLUDED_ */
index 1e4a393ac004e40fe5fbc10e8f1fc7ff3197e627..4827128e5dbd378cd736fb6aad00b3aae0e55945 100644 (file)
@@ -720,7 +720,7 @@ njs_parser_function_lambda(njs_vm_t *vm, njs_parser_t *parser,
         }
     }
 
-    token =  njs_parser_token(parser);
+    token = njs_parser_token(parser);
     if (nxt_slow_path(token <= NJS_TOKEN_ILLEGAL)) {
         return token;
     }