This commit is contained in:
Patrick Pelissier committed 2017-12-09 15:58:46 +01:00
1 parent c751686640
commit b5a0d3dd0f
1 file changed
+3
+3
View File
@@ -920,6 +920,7 @@ static inline size_t stringi_utf8_length(const char str[])
} \ } \
} \ } \
/* Use of Compound Literals to init a constant string. /* Use of Compound Literals to init a constant string.
NOTE: The use of the additional structure layer is to ensure NOTE: The use of the additional structure layer is to ensure
that the pointer to char is properly aligned to an int (this that the pointer to char is properly aligned to an int (this
@@ -972,6 +973,7 @@ namespace m_string {
STRING_DECL_INIT(v); \ STRING_DECL_INIT(v); \
string_printf (v, format, __VA_ARGS__) string_printf (v, format, __VA_ARGS__)
/* Define the OPLIST of a STRING */ /* Define the OPLIST of a STRING */
#define STRING_OPLIST \ #define STRING_OPLIST \
(INIT(string_init),INIT_SET(string_init_set), SET(string_set), \ (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 */ /* Register the OPLIST as a global one */
#define M_OPL_string_t() STRING_OPLIST #define M_OPL_string_t() STRING_OPLIST
/* Macro encapsulation to give default value for start offset */ /* Macro encapsulation to give default value for start offset */
#define string_search_char(v, ...) \ #define string_search_char(v, ...) \
M_APPLY(string_search_char, v, M_IF_DEFAULT1(0, __VA_ARGS__)) M_APPLY(string_search_char, v, M_IF_DEFAULT1(0, __VA_ARGS__))