summaryrefslogtreecommitdiff
path: root/src/buffer.h
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2020-09-10 21:02:18 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2020-10-11 12:19:26 -0400
commit9c8981a7d10b14bc213941e3f39058314519fea3 (patch)
treeb82695523c7ba5b9c126f594fac7f58b05d1c350 /src/buffer.h
parentc58b95f2976a0563884a09a6aafb5e1332e3ca3b (diff)
downloadlighttpd-git-9c8981a7d10b14bc213941e3f39058314519fea3.tar.gz
[core] tst,set,clr macros for r->{rqst,resp}_htags
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 989164f2..b0006e93 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -217,6 +217,11 @@ static inline int light_isalnum(int c) {
#define light_isupper(c) ((uint32_t)(c)-'A' <= 'Z'-'A')
#define light_islower(c) ((uint32_t)(c)-'a' <= 'z'-'a')
+#define light_bshift(b) (b)
+#define light_btst(a,b) ((a) & (b))
+#define light_bclr(a,b) ((a) &= ~(b))
+#define light_bset(a,b) ((a) |= (b))
+
__attribute_pure__
static inline uint32_t buffer_string_length(const buffer *b); /* buffer string length without terminating 0 */