summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conf_validation.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2018-01-18 09:08:16 +0300
committerMax Romanov <max.romanov@nginx.com>2018-01-18 09:08:16 +0300
commitc2918a001465ada671bffba4e01a37e3904cfe45 (patch)
treed7ee029123e629bc437e1e59a5a41e506a1d9dcd /src/nxt_conf_validation.c
parenta949c2f08818bb9a8c8e54ed35e2a4a95a07acd3 (diff)
downloadunit-c2918a001465ada671bffba4e01a37e3904cfe45.tar.gz
unit-c2918a001465ada671bffba4e01a37e3904cfe45.tar.bz2
Introducing pretty NXT_CONF_VLDT_END macro.
Diffstat (limited to 'src/nxt_conf_validation.c')
-rw-r--r--src/nxt_conf_validation.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/nxt_conf_validation.c b/src/nxt_conf_validation.c
index a0b2664c..f134ba41 100644
--- a/src/nxt_conf_validation.c
+++ b/src/nxt_conf_validation.c
@@ -18,6 +18,9 @@ typedef struct {
} nxt_conf_vldt_object_t;
+#define NXT_CONF_VLDT_END { nxt_null_string, 0, NULL, NULL }
+
+
typedef nxt_int_t (*nxt_conf_vldt_member_t)(nxt_conf_validation_t *vldt,
nxt_str_t *name,
nxt_conf_value_t *value);
@@ -58,7 +61,7 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_root_members[] = {
&nxt_conf_vldt_object_iterator,
(void *) &nxt_conf_vldt_app },
- { nxt_null_string, 0, NULL, NULL }
+ NXT_CONF_VLDT_END
};
@@ -68,7 +71,7 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_listener_members[] = {
&nxt_conf_vldt_app_name,
NULL },
- { nxt_null_string, 0, NULL, NULL }
+ NXT_CONF_VLDT_END
};
@@ -88,7 +91,7 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_app_limits_members[] = {
NULL,
NULL },
- { nxt_null_string, 0, NULL, NULL }
+ NXT_CONF_VLDT_END
};
@@ -138,7 +141,7 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_python_members[] = {
NULL,
NULL },
- { nxt_null_string, 0, NULL, NULL }
+ NXT_CONF_VLDT_END
};
@@ -188,7 +191,7 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_php_members[] = {
NULL,
NULL },
- { nxt_null_string, 0, NULL, NULL }
+ NXT_CONF_VLDT_END
};
@@ -228,7 +231,7 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_go_members[] = {
NULL,
NULL },
- { nxt_null_string, 0, NULL, NULL }
+ NXT_CONF_VLDT_END
};