[njs] Style.
Dmitry Volyntsev
xeioex at nginx.com
Tue Feb 26 15:24:30 UTC 2019
details: https://hg.nginx.org/njs/rev/1d6e32892413
branches:
changeset: 807:1d6e32892413
user: hongzhidao <hongzhidao at gmail.com>
date: Tue Feb 26 17:32:59 2019 +0800
description:
Style.
diffstat:
njs/njs_disassembler.c | 48 ++++++++++++++++++++++++------------------------
1 files changed, 24 insertions(+), 24 deletions(-)
diffs (67 lines):
diff -r f70566bc1e62 -r 1d6e32892413 njs/njs_disassembler.c
--- a/njs/njs_disassembler.c Tue Feb 26 17:11:50 2019 +0300
+++ b/njs/njs_disassembler.c Tue Feb 26 17:32:59 2019 +0800
@@ -412,39 +412,39 @@ njs_disassemble(u_char *start, u_char *e
n = nxt_nitems(code_names);
do {
- if (operation == code_name->operation) {
- name = &code_name->name;
+ if (operation == code_name->operation) {
+ name = &code_name->name;
- if (code_name->size == sizeof(njs_vmcode_3addr_t)) {
- code3 = (njs_vmcode_3addr_t *) p;
+ if (code_name->size == sizeof(njs_vmcode_3addr_t)) {
+ code3 = (njs_vmcode_3addr_t *) p;
- printf("%05zd %*s %04zX %04zX %04zX\n",
- p - start, (int) name->length, name->start,
- (size_t) code3->dst, (size_t) code3->src1,
- (size_t) code3->src2);
+ printf("%05zd %*s %04zX %04zX %04zX\n",
+ p - start, (int) name->length, name->start,
+ (size_t) code3->dst, (size_t) code3->src1,
+ (size_t) code3->src2);
- } else if (code_name->size == sizeof(njs_vmcode_2addr_t)) {
- code2 = (njs_vmcode_2addr_t *) p;
+ } else if (code_name->size == sizeof(njs_vmcode_2addr_t)) {
+ code2 = (njs_vmcode_2addr_t *) p;
- printf("%05zd %*s %04zX %04zX\n",
- p - start, (int) name->length, name->start,
- (size_t) code2->dst, (size_t) code2->src);
+ printf("%05zd %*s %04zX %04zX\n",
+ p - start, (int) name->length, name->start,
+ (size_t) code2->dst, (size_t) code2->src);
- } else if (code_name->size == sizeof(njs_vmcode_1addr_t)) {
- code1 = (njs_vmcode_1addr_t *) p;
+ } else if (code_name->size == sizeof(njs_vmcode_1addr_t)) {
+ code1 = (njs_vmcode_1addr_t *) p;
- printf("%05zd %*s %04zX\n",
- p - start, (int) name->length, name->start,
- (size_t) code1->index);
- }
+ printf("%05zd %*s %04zX\n",
+ p - start, (int) name->length, name->start,
+ (size_t) code1->index);
+ }
- p += code_name->size;
+ p += code_name->size;
- goto next;
- }
+ goto next;
+ }
- code_name++;
- n--;
+ code_name++;
+ n--;
} while (n != 0);
More information about the nginx-devel
mailing list