Fix format
This commit is contained in:
1 parent
02897f982f
commit
a0fc57687b
1 file changed
+4
-4
+4
-4
@@ -1982,13 +1982,13 @@ namespace m_lib {
|
|||||||
/* Define a bounded (fixed) string of exactly 'max_size' characters
|
/* Define a bounded (fixed) string of exactly 'max_size' characters
|
||||||
* (excluding the final nul char).
|
* (excluding the final nul char).
|
||||||
*/
|
*/
|
||||||
#define M_BOUNDED_STRING_DEF(name, max_size) \
|
#define M_BOUNDED_STRING_DEF(name, max_size) \
|
||||||
M_BEGIN_PROTECTED_CODE \
|
M_BEGIN_PROTECTED_CODE \
|
||||||
M_BOUNDED_STR1NG_DEF_P2(name, max_size, M_C(name, _t) ) \
|
M_BOUNDED_STR1NG_DEF_P2(name, max_size, M_C(name, _t) ) \
|
||||||
M_END_PROTECTED_CODE
|
M_END_PROTECTED_CODE
|
||||||
|
|
||||||
/* Define the OPLIST of a BOUNDED_STRING */
|
/* Define the OPLIST of a BOUNDED_STRING */
|
||||||
#define M_BOUNDED_STRING_OPLIST(name) \
|
#define M_BOUNDED_STRING_OPLIST(name) \
|
||||||
(INIT(M_C(name,_init)), \
|
(INIT(M_C(name,_init)), \
|
||||||
INIT_SET(M_C(name,_init_set)), \
|
INIT_SET(M_C(name,_init_set)), \
|
||||||
SET(M_C(name,_set)), \
|
SET(M_C(name,_set)), \
|
||||||
@@ -2360,7 +2360,7 @@ namespace m_lib {
|
|||||||
/* Use of Compound Literals to init a constant string.
|
/* Use of Compound Literals to init a constant string.
|
||||||
See above */
|
See above */
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
#define M_BOUNDED_STRING_CTE(name, string) \
|
#define M_BOUNDED_STRING_CTE(name, string) \
|
||||||
((const struct M_C(name, _s) *)((M_C(name, _array_t)){string}))
|
((const struct M_C(name, _s) *)((M_C(name, _array_t)){string}))
|
||||||
#else
|
#else
|
||||||
namespace m_lib {
|
namespace m_lib {
|
||||||
@@ -2374,7 +2374,7 @@ namespace m_lib {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#define M_BOUNDED_STRING_CTE(name, string) \
|
#define M_BOUNDED_STRING_CTE(name, string) \
|
||||||
((const struct M_C(name, _s) *)(m_lib::m_bounded_string<sizeof (M_C(name, _t))>(string).s))
|
((const struct M_C(name, _s) *)(m_lib::m_bounded_string<sizeof (M_C(name, _t))>(string).s))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user