From b5a0d3dd0fa5e9b3ce855a37cbc6ab07da71c8e4 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 9 Dec 2017 15:58:46 +0100 Subject: [PATCH] Reformat --- m-string.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/m-string.h b/m-string.h index 4d323f1f..24054e90 100644 --- a/m-string.h +++ b/m-string.h @@ -920,6 +920,7 @@ static inline size_t stringi_utf8_length(const char str[]) } \ } \ + /* Use of Compound Literals to init a constant string. NOTE: The use of the additional structure layer is to ensure that the pointer to char is properly aligned to an int (this @@ -972,6 +973,7 @@ namespace m_string { STRING_DECL_INIT(v); \ string_printf (v, format, __VA_ARGS__) + /* Define the OPLIST of a STRING */ #define STRING_OPLIST \ (INIT(string_init),INIT_SET(string_init_set), SET(string_set), \ @@ -985,6 +987,7 @@ namespace m_string { /* Register the OPLIST as a global one */ #define M_OPL_string_t() STRING_OPLIST + /* Macro encapsulation to give default value for start offset */ #define string_search_char(v, ...) \ M_APPLY(string_search_char, v, M_IF_DEFAULT1(0, __VA_ARGS__))