[PATCH 2 of 6] Stream: style

Maxim Dounin mdounin at mdounin.ru
Fri May 2 00:43:05 UTC 2025


# HG changeset patch
# User Maxim Dounin <mdounin at mdounin.ru>
# Date 1746114908 -10800
#      Thu May 01 18:55:08 2025 +0300
# Node ID 01f2cc76e1a892ff2a9c848db91a0de1b3eb23a2
# Parent  0705780fc64d7088c91a98650c82bdda56820ad5
Stream: style.

Unless actually required for some reason, line continuation should be
in column 79, not 80.

diff --git a/src/stream/ngx_stream.h b/src/stream/ngx_stream.h
--- a/src/stream/ngx_stream.h
+++ b/src/stream/ngx_stream.h
@@ -264,20 +264,20 @@ typedef struct {
 #define ngx_stream_delete_ctx(s, module)       s->ctx[module.ctx_index] = NULL;
 
 
-#define ngx_stream_get_module_main_conf(s, module)                             \
+#define ngx_stream_get_module_main_conf(s, module)                            \
     (s)->main_conf[module.ctx_index]
-#define ngx_stream_get_module_srv_conf(s, module)                              \
+#define ngx_stream_get_module_srv_conf(s, module)                             \
     (s)->srv_conf[module.ctx_index]
 
-#define ngx_stream_conf_get_module_main_conf(cf, module)                       \
+#define ngx_stream_conf_get_module_main_conf(cf, module)                      \
     ((ngx_stream_conf_ctx_t *) cf->ctx)->main_conf[module.ctx_index]
-#define ngx_stream_conf_get_module_srv_conf(cf, module)                        \
+#define ngx_stream_conf_get_module_srv_conf(cf, module)                       \
     ((ngx_stream_conf_ctx_t *) cf->ctx)->srv_conf[module.ctx_index]
 
-#define ngx_stream_cycle_get_module_main_conf(cycle, module)                   \
-    (cycle->conf_ctx[ngx_stream_module.index] ?                                \
-        ((ngx_stream_conf_ctx_t *) cycle->conf_ctx[ngx_stream_module.index])   \
-            ->main_conf[module.ctx_index]:                                     \
+#define ngx_stream_cycle_get_module_main_conf(cycle, module)                  \
+    (cycle->conf_ctx[ngx_stream_module.index] ?                               \
+        ((ngx_stream_conf_ctx_t *) cycle->conf_ctx[ngx_stream_module.index])  \
+            ->main_conf[module.ctx_index]:                                    \
         NULL)
 
 



More information about the nginx mailing list