From 2d4624f05dd613701fb1c764c189a2ded7b1cbe5 Mon Sep 17 00:00:00 2001 From: Zhidao HONG Date: Mon, 28 Oct 2024 15:11:52 +0800 Subject: Make nxt_tstr_is_js() macro public in header This is a preparatory refactoring for upcoming JSON format support in access log. No functional changes. --- src/nxt_tstr.c | 4 ---- src/nxt_tstr.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nxt_tstr.c b/src/nxt_tstr.c index 36d77e69..d939d44e 100644 --- a/src/nxt_tstr.c +++ b/src/nxt_tstr.c @@ -41,10 +41,6 @@ struct nxt_tstr_query_s { }; -#define nxt_tstr_is_js(str) \ - nxt_strchr_start(str, '`') - - nxt_tstr_state_t * nxt_tstr_state_new(nxt_mp_t *mp, nxt_bool_t test) { diff --git a/src/nxt_tstr.h b/src/nxt_tstr.h index 8e3cdb93..7fb02631 100644 --- a/src/nxt_tstr.h +++ b/src/nxt_tstr.h @@ -64,6 +64,10 @@ nxt_int_t nxt_tstr_query(nxt_task_t *task, nxt_tstr_query_t *query, void nxt_tstr_query_release(nxt_tstr_query_t *query); +#define nxt_tstr_is_js(str) \ + nxt_strchr_start(str, '`') + + nxt_inline nxt_bool_t nxt_is_tstr(nxt_str_t *str) { -- cgit