[njs] Style.
Dmitry Volyntsev
xeioex at nginx.com
Wed Jan 30 11:58:41 UTC 2019
details: https://hg.nginx.org/njs/rev/c7e18bd12776
branches:
changeset: 742:c7e18bd12776
user: hongzhidao <hongzhidao at gmail.com>
date: Tue Jan 29 01:30:04 2019 +0800
description:
Style.
diffstat:
njs/njs_lexer_keyword.c | 8 ++++----
njs/njs_module.h | 6 ++++--
njs/njs_parser.c | 2 +-
3 files changed, 9 insertions(+), 7 deletions(-)
diffs (53 lines):
diff -r 348a34597bab -r c7e18bd12776 njs/njs_lexer_keyword.c
--- a/njs/njs_lexer_keyword.c Tue Jan 29 18:15:03 2019 +0300
+++ b/njs/njs_lexer_keyword.c Tue Jan 29 01:30:04 2019 +0800
@@ -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. */
diff -r 348a34597bab -r c7e18bd12776 njs/njs_module.h
--- a/njs/njs_module.h Tue Jan 29 18:15:03 2019 +0300
+++ b/njs/njs_module.h Tue Jan 29 01:30:04 2019 +0800
@@ -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 nxt_lvlhsh_proto_t njs_modules_hash_proto;
+extern const njs_object_init_t njs_require_function_init;
+
#endif /* _NJS_MODULE_H_INCLUDED_ */
diff -r 348a34597bab -r c7e18bd12776 njs/njs_parser.c
--- a/njs/njs_parser.c Tue Jan 29 18:15:03 2019 +0300
+++ b/njs/njs_parser.c Tue Jan 29 01:30:04 2019 +0800
@@ -720,7 +720,7 @@ njs_parser_function_lambda(njs_vm_t *vm,
}
}
- token = njs_parser_token(parser);
+ token = njs_parser_token(parser);
if (nxt_slow_path(token <= NJS_TOKEN_ILLEGAL)) {
return token;
}
More information about the nginx-devel
mailing list