summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_string.h
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2022-12-15 08:17:39 -0800
committerKonstantin Pavlov <thresh@nginx.com>2022-12-15 08:17:39 -0800
commite22669f2728814aba82da14702d18bfa9685311e (patch)
treec9c9471dab359e8e33fca24c5d4f035ab5b278db /src/nxt_string.h
parenta1d28488f9df8e28ee25ea438c275b96b9afe5b6 (diff)
parent4409a10ff0bd6bb45fb88716bd383cd867958a8a (diff)
downloadunit-e22669f2728814aba82da14702d18bfa9685311e.tar.gz
unit-e22669f2728814aba82da14702d18bfa9685311e.tar.bz2
Merged with the default branch.
Diffstat (limited to 'src/nxt_string.h')
-rw-r--r--src/nxt_string.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/nxt_string.h b/src/nxt_string.h
index a8673c61..18ea5490 100644
--- a/src/nxt_string.h
+++ b/src/nxt_string.h
@@ -66,14 +66,6 @@ nxt_cpymem(void *dst, const void *src, size_t length)
(void) memmove(dst, src, length)
-#define nxt_memcmp(s1, s2, length) \
- memcmp((char *) s1, (char *) s2, length)
-
-
-#define nxt_memchr(s, c, length) \
- memchr((char *) s, c, length)
-
-
#define nxt_strcmp(s1, s2) \
strcmp((char *) s1, (char *) s2)
@@ -132,7 +124,7 @@ NXT_EXPORT char *nxt_str_cstrz(nxt_mp_t *mp, const nxt_str_t *src);
#define nxt_strstr_eq(s1, s2) \
(((s1)->length == (s2)->length) \
- && (nxt_memcmp((s1)->start, (s2)->start, (s1)->length) == 0))
+ && (memcmp((s1)->start, (s2)->start, (s1)->length) == 0))
#define nxt_strcasestr_eq(s1, s2) \
@@ -141,11 +133,11 @@ NXT_EXPORT char *nxt_str_cstrz(nxt_mp_t *mp, const nxt_str_t *src);
#define nxt_str_eq(s, p, _length) \
- (((s)->length == _length) && (nxt_memcmp((s)->start, p, _length) == 0))
+ (((s)->length == _length) && (memcmp((s)->start, p, _length) == 0))
#define nxt_str_start(s, p, _length) \
- (((s)->length >= _length) && (nxt_memcmp((s)->start, p, _length) == 0))
+ (((s)->length >= _length) && (memcmp((s)->start, p, _length) == 0))
#define nxt_strchr_eq(s, c) \