summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_var.c
diff options
context:
space:
mode:
authorZhidao HONG <z.hong@f5.com>2022-06-15 14:27:50 +0800
committerZhidao HONG <z.hong@f5.com>2022-06-15 14:27:50 +0800
commit6a8081d71e805b12d0f7fd32ce72d60babadfc85 (patch)
tree39e5475df3118622289e0e334ad6a35f873786e0 /src/nxt_var.c
parent862f51bcd834d58fadc322720107be64ba0b70b1 (diff)
downloadunit-6a8081d71e805b12d0f7fd32ce72d60babadfc85.tar.gz
unit-6a8081d71e805b12d0f7fd32ce72d60babadfc85.tar.bz2
Var: relocated nxt_var_is_const() and nxt_var_raw().
No functional changes.
Diffstat (limited to 'src/nxt_var.c')
-rw-r--r--src/nxt_var.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/nxt_var.c b/src/nxt_var.c
index 458ba678..a7cbb898 100644
--- a/src/nxt_var.c
+++ b/src/nxt_var.c
@@ -91,21 +91,6 @@ static uint32_t nxt_var_count;
static nxt_var_handler_t *nxt_var_index;
-void
-nxt_var_raw(nxt_var_t *var, nxt_str_t *str)
-{
- str->length = var->length;
- str->start = nxt_var_raw_start(var);
-}
-
-
-nxt_bool_t
-nxt_var_is_const(nxt_var_t *var)
-{
- return (var->vars == 0);
-}
-
-
static nxt_int_t
nxt_var_hash_test(nxt_lvlhsh_query_t *lhq, void *data)
{
@@ -420,6 +405,21 @@ nxt_var_next_part(u_char *start, size_t length, nxt_str_t *part,
}
+inline void
+nxt_var_raw(nxt_var_t *var, nxt_str_t *str)
+{
+ str->length = var->length;
+ str->start = nxt_var_raw_start(var);
+}
+
+
+inline nxt_bool_t
+nxt_var_is_const(nxt_var_t *var)
+{
+ return (var->vars == 0);
+}
+
+
nxt_int_t
nxt_var_query_init(nxt_var_query_t **query_p, void *ctx, nxt_mp_t *mp)
{