From 7c09818f4165382cbd65a6a33b655a2def0ffc65 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 31 Mar 2018 17:41:19 +0100 Subject: [Minor] Add macros to access strings data --- src/libutil/fstring.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libutil/fstring.h') diff --git a/src/libutil/fstring.h b/src/libutil/fstring.h index e83c44a1c..e5d34e022 100644 --- a/src/libutil/fstring.h +++ b/src/libutil/fstring.h @@ -30,6 +30,9 @@ typedef struct f_str_s { gchar str[]; } rspamd_fstring_t; +#define RSPAMD_FSTRING_DATA(s) ((s)->str) +#define RSPAMD_FSTRING_LEN(s) ((s)->len) + typedef struct f_str_tok { gsize len; const gchar *begin; -- cgit v1.2.3