Welcome! Log In Create A New Profile

Advanced

[njs] Style fixes.

July 03, 2018 08:50AM
details: http://hg.nginx.org/njs/rev/c1f9fe4022bc
branches:
changeset: 553:c1f9fe4022bc
user: Igor Sysoev <igor@sysoev.ru>
date: Tue Jul 03 15:48:04 2018 +0300
description:
Style fixes.

diffstat:

njs/njs_error.h | 3 ++-
njs/njs_fs.c | 4 ++--
njs/njs_object.c | 3 ++-
njs/njs_string.c | 4 ++--
njs/njs_string.h | 4 ++--
5 files changed, 10 insertions(+), 8 deletions(-)

diffs (69 lines):

diff -r 3aef480987d6 -r c1f9fe4022bc njs/njs_error.h
--- a/njs/njs_error.h Tue Jul 03 15:48:03 2018 +0300
+++ b/njs/njs_error.h Tue Jul 03 15:48:04 2018 +0300
@@ -13,7 +13,8 @@
#define njs_eval_error(vm, fmt, ...) \
njs_exception_error_create(vm, NJS_OBJECT_EVAL_ERROR, fmt, ##__VA_ARGS__)
#define njs_internal_error(vm, fmt, ...) \
- njs_exception_error_create(vm, NJS_OBJECT_INTERNAL_ERROR, fmt, ##__VA_ARGS__)
+ njs_exception_error_create(vm, NJS_OBJECT_INTERNAL_ERROR, fmt, \
+ ##__VA_ARGS__)
#define njs_range_error(vm, fmt, ...) \
njs_exception_error_create(vm, NJS_OBJECT_RANGE_ERROR, fmt, ##__VA_ARGS__)
#define njs_reference_error(vm, fmt, ...) \
diff -r 3aef480987d6 -r c1f9fe4022bc njs/njs_fs.c
--- a/njs/njs_fs.c Tue Jul 03 15:48:03 2018 +0300
+++ b/njs/njs_fs.c Tue Jul 03 15:48:04 2018 +0300
@@ -43,8 +43,8 @@ static njs_ret_t njs_fs_write_file_sync(
nxt_uint_t nargs, njs_index_t unused);
static njs_ret_t njs_fs_write_file_internal(njs_vm_t *vm, njs_value_t *args,
nxt_uint_t nargs, int default_flags);
-static njs_ret_t njs_fs_write_file_sync_internal(njs_vm_t *vm, njs_value_t *args,
- nxt_uint_t nargs, int default_flags);
+static njs_ret_t njs_fs_write_file_sync_internal(njs_vm_t *vm,
+ njs_value_t *args, nxt_uint_t nargs, int default_flags);
static njs_ret_t njs_fs_done(njs_vm_t *vm, njs_value_t *args,
nxt_uint_t nargs, njs_index_t unused);

diff -r 3aef480987d6 -r c1f9fe4022bc njs/njs_object.c
--- a/njs/njs_object.c Tue Jul 03 15:48:03 2018 +0300
+++ b/njs/njs_object.c Tue Jul 03 15:48:04 2018 +0300
@@ -631,7 +631,8 @@ njs_object_keys(njs_vm_t *vm, njs_value_
return NXT_OK;
}

-njs_array_t*
+
+njs_array_t *
njs_object_keys_array(njs_vm_t *vm, const njs_value_t *object)
{
size_t size;
diff -r 3aef480987d6 -r c1f9fe4022bc njs/njs_string.c
--- a/njs/njs_string.c Tue Jul 03 15:48:03 2018 +0300
+++ b/njs/njs_string.c Tue Jul 03 15:48:04 2018 +0300
@@ -716,8 +716,8 @@ njs_string_prototype_value_of(njs_vm_t *
*/

static njs_ret_t
-njs_string_prototype_to_string(njs_vm_t *vm, njs_value_t *args, nxt_uint_t nargs,
- njs_index_t unused)
+njs_string_prototype_to_string(njs_vm_t *vm, njs_value_t *args,
+ nxt_uint_t nargs, njs_index_t unused)
{
nxt_int_t ret;
nxt_str_t enc, str;
diff -r 3aef480987d6 -r c1f9fe4022bc njs/njs_string.h
--- a/njs/njs_string.h Tue Jul 03 15:48:03 2018 +0300
+++ b/njs/njs_string.h Tue Jul 03 15:48:04 2018 +0300
@@ -126,9 +126,9 @@ njs_ret_t njs_string_new(njs_vm_t *vm, n
njs_ret_t njs_string_hex(njs_vm_t *vm, njs_value_t *value,
const nxt_str_t *src);
njs_ret_t njs_string_base64(njs_vm_t *vm, njs_value_t *value,
- const nxt_str_t *src);
+ const nxt_str_t *src);
njs_ret_t njs_string_base64url(njs_vm_t *vm, njs_value_t *value,
- const nxt_str_t *src);
+ const nxt_str_t *src);
void njs_string_copy(njs_value_t *dst, njs_value_t *src);
njs_ret_t njs_string_validate(njs_vm_t *vm, njs_string_prop_t *string,
njs_value_t *value);
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Style fixes.

Igor Sysoev 550 July 03, 2018 08:50AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 44
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready